index.html 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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-input v-model="form.patientName" placeholder="请输入居民姓名进行搜索"></el-input>
  27. </div>
  28. <div class="searchDiv pb20 pr20">
  29. <label class="c-333 c-f14">手机号码:</label>
  30. <el-input v-model="form.mobile" placeholder="请输入居民手机号码进行搜索"></el-input>
  31. </div>
  32. <div class="searchDiv pb20 pr20">
  33. <label class="c-333 c-f14">签约医生:</label>
  34. <el-input v-model="form.doctorName" placeholder="请输入签约医生姓名进行搜索"></el-input>
  35. </div>
  36. <div class="searchDiv pb20 pr20">
  37. <label class="c-333 c-f14">活动名称:</label>
  38. <el-input v-model="form.title" placeholder="请输入活动名称进行搜索"></el-input>
  39. </div>
  40. <div class="searchDiv pb20 pr20">
  41. <label class="c-333 c-f14">活动一级类别:</label>
  42. <el-select v-model="form.firstClassify" @change="form.secondClassify = ''">
  43. <el-option label="全部" value=""></el-option>
  44. <el-option label="健康运动类" value="健康运动类"></el-option>
  45. <el-option label="健康教育类" value="健康教育类"></el-option>
  46. <el-option label="促进业务类" value="促进业务类"></el-option>
  47. </el-select>
  48. </div>
  49. <div class="searchDiv pb20 pr20">
  50. <label class="c-333 c-f14">活动二级类别:</label>
  51. <el-select v-model="form.secondClassify">
  52. <el-option :label="item.label" :value="item.value" v-for="item in getSecondClassifyList(form.firstClassify)" :key="item.value"></el-option>
  53. </el-select>
  54. </div>
  55. <div class="searchDiv pb20 pr20">
  56. <label class="c-333 c-f14">数据范围:</label>
  57. <el-select class="formWidth" v-model="form.range" placeholder="请选择" @change="resetArea">
  58. <el-option v-for="(option, index) in rangeOptions" :label="option.label" :value="option.value" :key="option.value"></el-option>
  59. </el-select>
  60. </div>
  61. <div class="searchDiv pb20 pr20">
  62. <label class="c-333 c-f14">地区:</label>
  63. <el-select class="formWidth" v-model="form.area" placeholder="请选择" @change="getHospital">
  64. <el-option v-for="(option, index) in areaOptions" :label="option.label" :value="option.value" :key="option.value"></el-option>
  65. </el-select>
  66. </div>
  67. <div class="searchDiv pb20 pr20" v-if="form.range == 'hospital'||form.range == 'team'">
  68. <label class="c-333 c-f14">社区:</label>
  69. <el-select class="formWidth" v-model="form.hospital" placeholder="请选择" @change="getTeam">
  70. <el-option v-for="(option, index) in hospitalOptions" :label="option.name" :value="option.code" :key="option.code"></el-option>
  71. </el-select>
  72. </div>
  73. <div class="searchDiv pb20 pr20" v-if="form.range == 'team'">
  74. <label class="c-333 c-f14">团队:</label>
  75. <el-select class="formWidth" v-model="form.team" placeholder="请选择">
  76. <el-option v-for="(option, index) in teamOptions" :label="option.name" :value="option.id" :key="option.id"></el-option>
  77. </el-select>
  78. </div>
  79. <div class="searchDiv pb20">
  80. <el-button type="primary" size="mini" @click="searchFn">查询</el-button>
  81. <el-button type="ff9526" size="mini" @click="exportTable" :disabled="exportLoading">导出</el-button>
  82. <span class="eliminate" @click="eliminateClick">清除筛选条件</span>
  83. </div>
  84. </div>
  85. <el-table :data="tableData" style="width: 100%" v-loading="loading">
  86. <el-table-column type="index" label="序号" width="80"></el-table-column>
  87. <el-table-column v-for="item in tableHeader" :key="item.id" :label="item.label" :min-width="item.width || 140">
  88. <template slot-scope="scope">
  89. <span>{{scope.row[item.prop]}}</span>
  90. </template>
  91. </el-table-column>
  92. </el-table>
  93. <el-pagination
  94. @current-change="handleCurrentChange"
  95. @size-change="handleSizeChange"
  96. :current-page.sync="page"
  97. :page-size="size"
  98. :page-sizes="[10, 20, 50]"
  99. layout="total, sizes, prev, pager, next, jumper"
  100. :total="total"
  101. class="pagination"></el-pagination>
  102. </div>