health-code-record-list.html 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>健康码管理-列表</title>
  5. <meta charset="utf-8">
  6. <meta name="viewport"
  7. content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
  8. <!-- 所有的 css & js 资源 -->
  9. <link rel="stylesheet" href="../../static/kj/element-ui/theme-chalk/index.css">
  10. <link rel="stylesheet" href="../../static/sa.css">
  11. <script src="../../static/kj/vue.min.js"></script>
  12. <script src="../../static/kj/element-ui/index.js"></script>
  13. <script src="../../static/kj/httpVueLoader.js"></script>
  14. <script src="../../static/kj/jquery.min.js"></script>
  15. <script src="../../static/kj/layer/layer.js"></script>
  16. <script src="../../static/sa.js"></script>
  17. </head>
  18. <body>
  19. <div class="vue-box" style="display: none;" :style="'display: block;'">
  20. <div class="c-panel">
  21. <!-- ------------- 检索参数 ------------- -->
  22. <div class="c-title">检索参数</div>
  23. <el-form ref="form" :model='p' @submit.native.prevent>
  24. <el-row>
  25. <el-col :span="20">
  26. <div>
  27. <div class="c-item">
  28. <label class="c-label">数据类型:</label>
  29. <el-select v-model="p.dataType" placeholder="请选择">
  30. <el-option label="-全部-" value=""> </el-option>
  31. <el-option label="健康码正常" value="0"> </el-option>
  32. <el-option label="健康码异常" value="1"> </el-option>
  33. </el-select>
  34. </div>
  35. <sa-item type="text" name="姓名" v-model="p.name"></sa-item>
  36. <sa-item type="enum" name="出入场" v-model="p.direction" :jv="{1: '入场', 2: '离场'}" jtype="4"
  37. def="不限">
  38. </sa-item>
  39. </div>
  40. <div>
  41. <div class="c-item">
  42. <label class="c-label">健康码:</label>
  43. <el-select v-model="p.healthStatus" placeholder="请选择">
  44. <el-option label="-全部-" value=""> </el-option>
  45. <el-option label="绿码" value="绿码"> </el-option>
  46. <el-option label="黄码" value="黄码"> </el-option>
  47. <el-option label="红码" value="红码"> </el-option>
  48. </el-select>
  49. </div>
  50. <sa-item type="datetime" name="开始时间" v-model="p.startTime"></sa-item>
  51. <sa-item type="datetime" name="结束时间" v-model="p.endTime"></sa-item>
  52. <el-button type="primary" icon="el-icon-search" @click="p.pageNo = 1; f5()">查询
  53. </el-button>
  54. <el-button type="info" icon="el-icon-refresh"
  55. @click="p.direction='';p.name='';p.healthStatus='';p.startTime='';p.endTime='';f5()">
  56. 重置
  57. </el-button>
  58. </div>
  59. </el-col>
  60. <el-col :span="4">
  61. </el-col>
  62. </el-row>
  63. </el-form>
  64. <!-- ------------- 快捷按钮 ------------- -->
  65. <el-table class="data-table" ref="data-table" :data="dataList" style="margin-top: 10px;">
  66. <sa-td name="序号" type="index"></sa-td>
  67. <!-- <sa-td name="组织" prop="deptName" width="120"></sa-td>-->
  68. <sa-td name="姓名" prop="name"></sa-td>
  69. <sa-td name="联系号码" prop="phone"></sa-td>
  70. <!-- <sa-td name="图片" prop="picture" type="img"></sa-td>-->
  71. <!-- <sa-td name="体温" prop="temperature"></sa-td>-->
  72. <sa-td name="健康码" prop="healthStatus"></sa-td>
  73. <sa-td name="场所/通道" prop="channel"></sa-td>
  74. <sa-td name="出/入" prop="direction" type="enum" :jv="{1: '入场', 2: '离场'}"></sa-td>
  75. <!-- <sa-td name="检测设备" prop="terminalName"></sa-td>-->
  76. <sa-td name="检测时间" prop="visitDate" width="160"></sa-td>
  77. <!-- <sa-td name="分类" prop="type" type="enum" :jv="{1: '补录', 2: '设备上传'}"></sa-td>-->
  78. <sa-td name="通知状态" prop="isNotify" type="enum" :jv="{1: '未通知', 2: '已通知', 0: '-'}"></sa-td>
  79. <sa-td name="处置状态" prop="isSolve" type="enum" :jv="{1: '未处置', 2: '已处置', 0: '-'}"></sa-td>
  80. <sa-td name="处置方法" prop="way"></sa-td>
  81. <el-table-column label="操作" width="240px">
  82. <template slot-scope="s">
  83. <el-button v-if="!s.row.isSolve&&s.row.healthStatus!='绿码'" class="c-btn" type="primary"
  84. @click="solveFn1(s.row.id)">处置
  85. </el-button>
  86. <el-button class="c-btn" type="success" icon="el-icon-view" @click="get(s.row)">查看
  87. </el-button>
  88. <el-button v-if="sa.isAuth('health-code-record-del')" class="c-btn" type="danger"
  89. icon="el-icon-delete"
  90. @click="del(s.row)">删除
  91. </el-button>
  92. </template>
  93. </el-table-column>
  94. </el-table>
  95. <!-- ------------- 分页 ------------- -->
  96. <sa-item type="page" :curr.sync="p.pageNo" :size.sync="p.pageSize" :total="dataCount" @change="f5()">
  97. </sa-item>
  98. </div>
  99. <el-dialog title="请填写处置方法" :visible.sync="solveDate.visible" width="38%">
  100. <sa-item type="textarea" name="处置方法" v-model="solveDate.form.way"></sa-item>
  101. <span slot="footer" class="dialog-footer">
  102. <el-button @click="solveDate.visible = false">取 消</el-button>
  103. <el-button type="primary" @click="solve">保 存</el-button>
  104. </span>
  105. </el-dialog>
  106. </div>
  107. <script>
  108. var app = new Vue({
  109. components: {
  110. "sa-item": httpVueLoader('../../sa-frame/com/sa-item.vue'),
  111. "sa-td": httpVueLoader('../../sa-frame/com/sa-td.vue'),
  112. },
  113. el: '.vue-box',
  114. data: {
  115. healthStatusList: [{
  116. name: '全部',
  117. value: ''
  118. },
  119. {
  120. name: '绿码',
  121. value: '绿码'
  122. },
  123. {
  124. name: '红码',
  125. value: '红码'
  126. },
  127. {
  128. name: '黄码',
  129. value: '黄码'
  130. },
  131. ],
  132. p: { // 查询参数
  133. id: '', // 主键
  134. direction: '', // 出入(1=入场,2=离场)
  135. deptName: '', // 单位名称
  136. startTime: '',
  137. endTime: '',
  138. name: '', // 姓名
  139. idCard: '', // 身份证
  140. channel: '', // 通过通道
  141. venues: '', // 场所
  142. temperature: '', // 体温
  143. healthStatus: '', // 健康码
  144. unhealthy: '',
  145. dataType: "",
  146. pageNo: 1, // 当前页
  147. pageSize: 10, // 页大小
  148. sortType: 0 // 排序方式
  149. },
  150. dataCount: 0,
  151. dataList: [], // 数据集合
  152. solveDate: {
  153. visible: false,
  154. form: {
  155. id:'',
  156. way: '',
  157. },
  158. },
  159. },
  160. methods: {
  161. solveFn1(id){
  162. this.solveDate.visible = true;
  163. this.solveDate.form.id = id;
  164. },
  165. solve(){
  166. sa.ajax('/health-status/solve?' , this.solveDate.form, function(res) {
  167. sa.alert('操作成功');
  168. this.solveDate.visible = false;
  169. this.f5();
  170. }.bind(this))
  171. },
  172. // 刷新
  173. f5: function () {
  174. sa.ajax('/health-status/getList', sa.removeNull(this.p), function (res) {
  175. this.dataList = res.data; // 数据
  176. this.dataCount = res.dataCount; // 数据总数
  177. sa.f5TableHeight(); // 刷新表格高度
  178. }.bind(this));
  179. },
  180. // 查看
  181. get: function (data) {
  182. sa.showIframe('数据详情', 'health-code-record-info.html?id=' + data.id, '700px', '70%');
  183. },
  184. // 查看 - 根据选中的
  185. getBySelect: function (data) {
  186. var selection = this.$refs['data-table'].selection;
  187. if (selection.length == 0) {
  188. return sa.msg('请选择一条数据')
  189. }
  190. this.get(selection[0]);
  191. },
  192. // 删除
  193. del: function (data) {
  194. sa.confirm('是否删除,此操作不可撤销', function () {
  195. sa.ajax('/TbPersonVisitRecord/deleteHealthRecord?id=' + data.id, function (res) {
  196. sa.arrayDelete(this.dataList, data);
  197. sa.ok('删除成功');
  198. sa.f5TableHeight(); // 刷新表格高度
  199. }.bind(this))
  200. }.bind(this));
  201. },
  202. },
  203. created: function () {
  204. this.f5();
  205. sa.onInputEnter();
  206. }
  207. })
  208. </script>
  209. </body>
  210. </html>