index.html 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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.turnOver" placeholder="请选择">
  27. <el-option v-for="(option, index) in turnOverOptions" :label="option.value" :value="option.code"></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.turnOver" placeholder="请选择">
  33. <el-option v-for="(option, index) in turnOverOptions" :label="option.value" :value="option.code"></el-option>
  34. </el-select>
  35. </div>
  36. <div class="searchDiv pb20">
  37. <el-button type="primary" size="mini" @click="queryDate">查询</el-button>
  38. <el-button type="ff9526" size="mini" @click="exportTable" :disabled="exportLoading">导出</el-button>
  39. <span class="eliminate" @click="eliminateClick">清除筛选条件</span>
  40. </div>
  41. </div>
  42. <el-table :data="tableData" style="width: 100%" v-loading="loading">
  43. <el-table-column type="index" min-width="60" label="序号"></el-table-column>
  44. <el-table-column :label="item.label" v-for="item in tableHeader" :min-width="item.width" :key="item.prop">
  45. <template slot-scope="scope">{{scope.row[item.prop]}}</template>
  46. </el-table-column>
  47. </el-table>
  48. <el-pagination
  49. @current-change="handleCurrentChange"
  50. @size-change="handleSizeChange"
  51. :current-page.sync="page"
  52. :page-size="size"
  53. :page-sizes="[10, 20, 50]"
  54. layout="total, sizes, prev, pager, next, jumper"
  55. :total="total"
  56. class="pagination"></el-pagination>
  57. </div>