index.html 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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.title" placeholder="请输入活动名称进行搜索"></el-input>
  27. </div>
  28. <div class="searchDiv pb20 pr20">
  29. <label class="c-333 c-f14">活动一级类别:</label>
  30. <el-select v-model="form.firstClassify" placeholder="请输入活动名称进行搜索" @change="form.secondClassify = ''">
  31. <el-option label="全部" value=""></el-option>
  32. <el-option label="健康运动" value="健康运动"></el-option>
  33. <el-option label="健康教育" value="健康教育"></el-option>
  34. <el-option label="促进业务" value="促进业务"></el-option>
  35. </el-select>
  36. </div>
  37. <div class="searchDiv pb20 pr20">
  38. <label class="c-333 c-f14">活动二级类别:</label>
  39. <el-select v-model="form.secondClassify" placeholder="请输入活动名称进行搜索">
  40. <el-option v-for="item in getSecondClassifyList(form.firstClassify)" :label="item.label" :key="item.value" :value="item.value"></el-option>
  41. </el-select>
  42. </div>
  43. <div class="searchDiv pb20 pr20">
  44. <label class="c-333 c-f14">活动状态:</label>
  45. <el-select v-model="form.activityStatus" placeholder="请输入活动名称进行搜索">
  46. <el-option label="全部" value=""></el-option>
  47. <el-option label="报名中" value="1"></el-option>
  48. <el-option label="进行中" value="2"></el-option>
  49. <el-option label="兑奖中" value="3"></el-option>
  50. <el-option label="未开始" value="4"></el-option>
  51. <el-option label="已开始" value="5"></el-option>
  52. <el-option label="已结束" value="6"></el-option>
  53. </el-select>
  54. </div>
  55. <div class="searchDiv pb20 pr20">
  56. <label class="c-333 c-f14">举办形式:</label>
  57. <el-select v-model="form.eventForm" placeholder="请输入活动名称进行搜索">
  58. <el-option label="全部" value=""></el-option>
  59. <el-option label="线上" value="1"></el-option>
  60. <el-option label="线下" value="2"></el-option>
  61. <el-option label="综合" value="3"></el-option>
  62. </el-select>
  63. </div>
  64. <div class="searchDiv pb20 pr20">
  65. <label class="c-333 c-f14">举办目的:</label>
  66. <el-select v-model="form.eventAim" placeholder="请输入活动名称进行搜索">
  67. <el-option label="全部" value=""></el-option>
  68. <el-option label="促进健康" value="1"></el-option>
  69. <el-option label="业务宣传" value="2"></el-option>
  70. <el-option label="服务提升" value="3"></el-option>
  71. </el-select>
  72. </div>
  73. <div class="searchDiv pb20 pr20">
  74. <label class="c-333 c-f14">数据范围:</label>
  75. <el-select class="formWidth" v-model="form.range" placeholder="请选择" @change="resetArea">
  76. <el-option v-for="(option, index) in rangeOptions" :label="option.label" :value="option.value" :key="option.value"></el-option>
  77. </el-select>
  78. </div>
  79. <div class="searchDiv pb20 pr20">
  80. <label class="c-333 c-f14">地区:</label>
  81. <el-select class="formWidth" v-model="form.area" placeholder="请选择" @change="getHospital">
  82. <el-option v-for="(option, index) in areaOptions" :label="option.label" :value="option.value" :key="option.value"></el-option>
  83. </el-select>
  84. </div>
  85. <div class="searchDiv pb20 pr20" v-if="form.range == 'hospital'||form.range == 'team'">
  86. <label class="c-333 c-f14">社区:</label>
  87. <el-select class="formWidth" v-model="form.hospital" placeholder="请选择" @change="getTeam">
  88. <el-option v-for="(option, index) in hospitalOptions" :label="option.name" :value="option.code" :key="option.code"></el-option>
  89. </el-select>
  90. </div>
  91. <div class="searchDiv pb20">
  92. <el-button type="primary" size="mini" @click="searchFn">查询</el-button>
  93. <el-button type="ff9526" size="mini" @click="exportTable" :disabled="exportLoading">导出</el-button>
  94. <span class="eliminate" @click="eliminateClick">清除筛选条件</span>
  95. </div>
  96. </div>
  97. <el-table :data="tableData" style="width: 100%" v-loading="loading">
  98. <el-table-column type="index" label="序号" width="80"></el-table-column>
  99. <el-table-column v-for="item in tableHeader" :key="item.prop" :label="item.label" :prop="item.prop" :min-width="item.width || 100"></el-table-column>
  100. <el-table-column label="数据查看">
  101. <template slot-scope="scope">
  102. <el-button type="text" @click="previewDetailData(scope.row)">查看</el-button>
  103. </template>
  104. </el-table-column>
  105. </el-table>
  106. <el-pagination
  107. @current-change="handleCurrentChange($event, 1)"
  108. @size-change="handleSizeChange($event, 1)"
  109. :current-page.sync="page1"
  110. :page-size="size2"
  111. :page-sizes="[10, 20, 50]"
  112. layout="total, sizes, prev, pager, next, jumper"
  113. class="pagination"
  114. :total="total1"></el-pagination>
  115. <el-dialog :visible.sync="dialogShow" @close="closeDialog" width="1200px" title="活动数据明细">
  116. <el-form inline size="mini">
  117. <el-form-item label="居民姓名:">
  118. <el-input v-model="query.name" placeholder="请输入居民姓名进行搜索"></el-input>
  119. </el-form-item>
  120. <el-form-item label="手机号码:">
  121. <el-input v-model="query.mobile" placeholder="请输入手机号码进行搜索"></el-input>
  122. </el-form-item>
  123. <el-form-item label="签约机构:">
  124. <el-input v-model="query.hospitalName" placeholder="请输入签约机构进行搜索"></el-input>
  125. </el-form-item>
  126. <el-form-item label="签约医生:">
  127. <el-input v-model="query.doctorName" placeholder="请输入签约医生进行搜索"></el-input>
  128. </el-form-item>
  129. <el-form-item label="性别:">
  130. <el-select v-model="query.sex">
  131. <el-option label="全部" value=""></el-option>
  132. <el-option label="男" value="1"></el-option>
  133. <el-option label="女" value="2"></el-option>
  134. </el-select>
  135. </el-form-item>
  136. <el-form-item>
  137. <el-button type="primary" @click="dialogSearch">查询</el-button>
  138. <el-button type="ff9526" @click="dialogExport" :disabled="exportLoading">导出</el-button>
  139. </el-form-item>
  140. </el-form>
  141. <el-table :data="dialogTableData" border v-loading="dialogLoading">
  142. <el-table-column type="index" label="序号" width="80"></el-table-column>
  143. <el-table-column v-for="item in dialogHeader" :label="item.label" :key="item.prop" :width="item.width || 120">
  144. <template slot-scope="scope">
  145. <span>{{scope.row[item.prop]}}</span>
  146. </template>
  147. </el-table-column>
  148. </el-table>
  149. <div style="display: flex; justify-content: flex-end; margin-top: 10px">
  150. <el-pagination
  151. @current-change="handleCurrentChange($event, 2)"
  152. @size-change="handleSizeChange($event, 2)"
  153. :current-page.sync="page2"
  154. :page-size="size2"
  155. :page-sizes="[10, 20, 50]"
  156. layout="total, sizes, prev, pager, next, jumper"
  157. :total="total2"></el-pagination>
  158. </div>
  159. </el-dialog>
  160. </div>