index.html 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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="queryDate">查询</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">
  55. <el-table-column type="index" min-width="60" label="序号"></el-table-column>
  56. <el-table-column :label="item.label" v-for="item in tableHeader" :min-width="item.width" :key="item.prop">
  57. <template slot-scope="scope">{{scope.row[item.prop]}}</template>
  58. </el-table-column>
  59. </el-table>
  60. <el-pagination
  61. @current-change="handleCurrentChange"
  62. @size-change="handleSizeChange"
  63. :current-page.sync="page"
  64. :page-size="size"
  65. :page-sizes="[10, 20, 50]"
  66. layout="total, sizes, prev, pager, next, jumper"
  67. :total="total"
  68. class="pagination"></el-pagination>
  69. </div>