index.html 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <!-- css文件位置位于/component/common/jtbc.css -->
  2. <div id="app" class="jtbc">
  3. <div class="copd-filter-group ui-col-1 bgc-fff" style="min-width: 900px">
  4. <div class="searchDiv pb20 pr20">
  5. <label class="c-333 c-f14">
  6. <el-radio v-model="yearType" label="1">按创建年份:</el-radio>
  7. <el-select v-model="chooseYear" class="formWidth wd160">
  8. <el-option v-for="(item , index) in years" :key="index" :label="item" :value="item"></el-option>
  9. </el-select>
  10. </label>
  11. </div>
  12. <div class="searchDiv pb20 pr20">
  13. <label class="c-333 c-f14" style="display: flex; align-items: center">
  14. <el-radio v-model="yearType" label="2">自定义创建时间:</el-radio>
  15. <el-date-picker
  16. v-model="chooseTime"
  17. type="daterange"
  18. range-separator="至"
  19. start-placeholder="开始日期"
  20. end-placeholder="结束日期"
  21. value-format="yyyy-MM-dd"></el-date-picker>
  22. </label>
  23. </div>
  24. <div class="searchDiv pb20 pr20">
  25. <label class="c-333 c-f14">数据范围:</label>
  26. <el-select class="formWidth" v-model="form.range" placeholder="请选择" @change="resetArea">
  27. <el-option v-for="(option, index) in rangeOptions" :label="option.label" :value="option.value" :key="option.value"></el-option>
  28. </el-select>
  29. </div>
  30. <div class="searchDiv pb20 pr20">
  31. <label class="c-333 c-f14">地区:</label>
  32. <el-select class="formWidth" v-model="form.area" placeholder="请选择" @change="getHospital">
  33. <el-option v-for="(option, index) in areaOptions" :label="option.label" :value="option.value" :key="option.value"></el-option>
  34. </el-select>
  35. </div>
  36. <div class="searchDiv pb20 pr20" v-if="form.range == 'hospital'||form.range == 'team'">
  37. <label class="c-333 c-f14">社区:</label>
  38. <el-select class="formWidth" v-model="form.hospital" placeholder="请选择" @change="getTeam">
  39. <el-option v-for="(option, index) in hospitalOptions" :label="option.name" :value="option.code" :key="option.code"></el-option>
  40. </el-select>
  41. </div>
  42. <div class="searchDiv pb20 pr20" v-if="form.range == 'team'">
  43. <label class="c-333 c-f14">团队:</label>
  44. <el-select class="formWidth" v-model="form.team" placeholder="请选择">
  45. <el-option v-for="(option, index) in teamOptions" :label="option.name" :value="option.id" :key="option.id"></el-option>
  46. </el-select>
  47. </div>
  48. <div class="searchDiv pb20">
  49. <el-button type="primary" size="mini" @click="searchFn">查询</el-button>
  50. <el-button type="ff9526" size="mini" @click="exportTable" :disabled="exportLoading">导出</el-button>
  51. <span class="eliminate" @click="eliminateClick">清除筛选条件</span>
  52. </div>
  53. </div>
  54. <el-table :data="tableData" style="width: 100%" v-loading="loading" row-key="code" lazy :load="load" :tree-props="{children: 'children', hasChildren: 'hasChildren'}">
  55. <el-table-column :label="item.label" v-for="item in tableHeader" :min-width="item.width" :key="item.prop">
  56. <template slot-scope="scope">
  57. <span @click="toPage(scope.row, item.prop)" :class="`${['totalNum','turnUpNum','turnDownNum','rehabilitationNum'].includes(item.prop)&&scope.row.code?'pointer c-409eff':''}`">{{scope.row[item.prop]}}</span>
  58. </template>
  59. </el-table-column>
  60. </el-table>
  61. </div>