|
@@ -0,0 +1,233 @@
|
|
|
+<!DOCTYPE html>
|
|
|
+<html>
|
|
|
+<head>
|
|
|
+ <title>健康码管理-列表</title>
|
|
|
+ <meta charset="utf-8">
|
|
|
+ <meta name="viewport"
|
|
|
+ content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
|
|
|
+
|
|
|
+ <link rel="stylesheet" href="../../static/kj/element-ui/theme-chalk/index.css">
|
|
|
+ <link rel="stylesheet" href="../../static/sa.css">
|
|
|
+ <script src="../../static/kj/vue.min.js"></script>
|
|
|
+ <script src="../../static/kj/element-ui/index.js"></script>
|
|
|
+ <script src="../../static/kj/httpVueLoader.js"></script>
|
|
|
+ <script src="../../static/kj/jquery.min.js"></script>
|
|
|
+ <script src="../../static/kj/layer/layer.js"></script>
|
|
|
+ <script src="../../static/sa.js"></script>
|
|
|
+</head>
|
|
|
+<body>
|
|
|
+<div class="vue-box" style="display: none;" :style="'display: block;'">
|
|
|
+ <div class="c-panel">
|
|
|
+
|
|
|
+ <div class="c-title">检索参数</div>
|
|
|
+ <el-form ref="form" :model='p' @submit.native.prevent>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="20">
|
|
|
+ <div>
|
|
|
+ <div class="c-item">
|
|
|
+ <label class="c-label">数据类型:</label>
|
|
|
+ <el-select v-model="p.dataType" placeholder="请选择">
|
|
|
+ <el-option label="-全部-" value=""> </el-option>
|
|
|
+ <el-option label="健康码正常" value="0"> </el-option>
|
|
|
+ <el-option label="健康码异常" value="1"> </el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+ <sa-item type="text" name="姓名" v-model="p.name"></sa-item>
|
|
|
+ <sa-item type="enum" name="出入场" v-model="p.direction" :jv="{1: '入场', 2: '离场'}" jtype="4"
|
|
|
+ def="不限">
|
|
|
+ </sa-item>
|
|
|
+
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <div class="c-item">
|
|
|
+ <label class="c-label">健康码:</label>
|
|
|
+ <el-select v-model="p.healthStatus" placeholder="请选择">
|
|
|
+ <el-option label="-全部-" value=""> </el-option>
|
|
|
+ <el-option label="绿码" value="绿码"> </el-option>
|
|
|
+ <el-option label="黄码" value="黄码"> </el-option>
|
|
|
+ <el-option label="红码" value="红码"> </el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+ <sa-item type="datetime" name="开始时间" v-model="p.startTime"></sa-item>
|
|
|
+ <sa-item type="datetime" name="结束时间" v-model="p.endTime"></sa-item>
|
|
|
+ <el-button type="primary" icon="el-icon-search" @click="p.pageNo = 1; f5()">查询
|
|
|
+ </el-button>
|
|
|
+ <el-button type="info" icon="el-icon-refresh"
|
|
|
+ @click="p.direction='';p.name='';p.healthStatus='';p.startTime='';p.endTime='';f5()">
|
|
|
+ 重置
|
|
|
+ </el-button>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+
|
|
|
+ <el-button type="primary" icon="el-icon-plus" @click="add"
|
|
|
+ v-if="sa.isAuth('health-code-record-add')">手工补录
|
|
|
+ </el-button>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="4">
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+ </el-form>
|
|
|
+
|
|
|
+ <el-table class="data-table" ref="data-table" :data="dataList" style="margin-top: 10px;">
|
|
|
+ <sa-td name="序号" type="index"></sa-td>
|
|
|
+
|
|
|
+ <sa-td name="姓名" prop="name"></sa-td>
|
|
|
+ <sa-td name="联系号码" prop="phone"></sa-td>
|
|
|
+
|
|
|
+
|
|
|
+ <sa-td name="健康码" prop="healthStatus"></sa-td>
|
|
|
+ <sa-td name="场所/通道" prop="channel"></sa-td>
|
|
|
+ <sa-td name="出/入" prop="direction" type="enum" :jv="{1: '入场', 2: '离场'}"></sa-td>
|
|
|
+
|
|
|
+ <sa-td name="检测时间" prop="visitDate" width="160"></sa-td>
|
|
|
+
|
|
|
+ <sa-td name="通知状态" prop="isNotify" type="enum" :jv="{1: '未通知', 2: '已通知', 0: '-'}"></sa-td>
|
|
|
+ <sa-td name="处置状态" prop="isSolve" type="enum" :jv="{1: '未处置', 2: '已处置', 0: '-'}"></sa-td>
|
|
|
+ <sa-td name="处置方法" prop="way"></sa-td>
|
|
|
+ <el-table-column label="操作" width="240px">
|
|
|
+ <template slot-scope="s">
|
|
|
+ <el-button v-if="s.row.isSolve == 1" class="c-btn" type="primary"
|
|
|
+ @click="solveFn1(s.row.id)">处置
|
|
|
+ </el-button>
|
|
|
+ <el-button class="c-btn" type="success" icon="el-icon-view" @click="get(s.row)">查看
|
|
|
+ </el-button>
|
|
|
+ <el-button v-if="sa.isAuth('health-code-record-add')" class="c-btn" type="primary"
|
|
|
+ icon="el-icon-edit" @click="update(s.row)">修改
|
|
|
+ </el-button>
|
|
|
+ <el-button v-if="sa.isAuth('health-code-record-del')" class="c-btn" type="danger"
|
|
|
+ icon="el-icon-delete"
|
|
|
+ @click="del(s.row)">删除
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+
|
|
|
+ <sa-item type="page" :curr.sync="p.pageNo" :size.sync="p.pageSize" :total="dataCount" @change="f5()">
|
|
|
+ </sa-item>
|
|
|
+ </div>
|
|
|
+ <el-dialog title="请填写处置方法" :visible.sync="solveDate.visible" width="38%">
|
|
|
+ <sa-item type="textarea" name="处置方法" v-model="solveDate.form.way"></sa-item>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="solveDate.visible = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="solve">保 存</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
+</div>
|
|
|
+<script>
|
|
|
+ var app = new Vue({
|
|
|
+ components: {
|
|
|
+ "sa-item": httpVueLoader('../../sa-frame/com/sa-item.vue'),
|
|
|
+ "sa-td": httpVueLoader('../../sa-frame/com/sa-td.vue'),
|
|
|
+ },
|
|
|
+ el: '.vue-box',
|
|
|
+ data: {
|
|
|
+
|
|
|
+ healthStatusList: [{
|
|
|
+ name: '全部',
|
|
|
+ value: ''
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '绿码',
|
|
|
+ value: '绿码'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '红码',
|
|
|
+ value: '红码'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '黄码',
|
|
|
+ value: '黄码'
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ p: { // 查询参数
|
|
|
+ id: '', // 主键
|
|
|
+ direction: '', // 出入(1=入场,2=离场)
|
|
|
+ deptName: '', // 部门名称
|
|
|
+ startTime: '',
|
|
|
+ endTime: '',
|
|
|
+ name: '', // 姓名
|
|
|
+ idCard: '', // 身份证
|
|
|
+ channel: '', // 通过通道
|
|
|
+ venues: '', // 场所
|
|
|
+ temperature: '', // 体温
|
|
|
+ healthStatus: '', // 健康码
|
|
|
+ unhealthy: '',
|
|
|
+ dataType: "",
|
|
|
+ pageNo: 1, // 当前页
|
|
|
+ pageSize: 10, // 页大小
|
|
|
+ sortType: 0 // 排序方式
|
|
|
+ },
|
|
|
+ dataCount: 0,
|
|
|
+ dataList: [], // 数据集合
|
|
|
+ solveDate: {
|
|
|
+ visible: false,
|
|
|
+ form: {
|
|
|
+ id:'',
|
|
|
+ way: '',
|
|
|
+ },
|
|
|
+ },
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ solveFn1(id){
|
|
|
+ this.solveDate.visible = true;
|
|
|
+ this.solveDate.form.id = id;
|
|
|
+ },
|
|
|
+ solve(){
|
|
|
+ sa.ajax('/TbPersonVisitRecord/solve?' , this.solveDate.form, function(res) {
|
|
|
+ sa.alert('保存成功');
|
|
|
+ this.solveDate.visible = false;
|
|
|
+ this.f5();
|
|
|
+ }.bind(this))
|
|
|
+ },
|
|
|
+
|
|
|
+ // 刷新
|
|
|
+ f5: function () {
|
|
|
+ sa.ajax('/TbPersonVisitRecord/getList', sa.removeNull(this.p), function (res) {
|
|
|
+ this.dataList = res.data; // 数据
|
|
|
+ this.dataCount = res.dataCount; // 数据总数
|
|
|
+ sa.f5TableHeight(); // 刷新表格高度
|
|
|
+ }.bind(this));
|
|
|
+ },
|
|
|
+ add() {
|
|
|
+ sa.showIframe('新增数据', 'health-code-record-add.html?id=-1', '1200px', '90%');
|
|
|
+ },
|
|
|
+ // 查看
|
|
|
+ get: function (data) {
|
|
|
+ sa.showIframe('数据详情', 'health-code-record-info.html?id=' + data.id, '700px', '70%');
|
|
|
+ },
|
|
|
+ // 查看 - 根据选中的
|
|
|
+ getBySelect: function (data) {
|
|
|
+ var selection = this.$refs['data-table'].selection;
|
|
|
+ if (selection.length == 0) {
|
|
|
+ return sa.msg('请选择一条数据')
|
|
|
+ }
|
|
|
+ this.get(selection[0]);
|
|
|
+ },
|
|
|
+ // 修改
|
|
|
+ update: function (data) {
|
|
|
+ sa.showIframe('修改数据', 'health-code-record-edit.html?id=' + data.id, '900px', '70%');
|
|
|
+ },
|
|
|
+ // 删除
|
|
|
+ del: function (data) {
|
|
|
+ sa.confirm('是否删除,此操作不可撤销', function () {
|
|
|
+ sa.ajax('/TbPersonVisitRecord/deleteHealthRecord?id=' + data.id, function (res) {
|
|
|
+ sa.arrayDelete(this.dataList, data);
|
|
|
+ sa.ok('删除成功');
|
|
|
+ sa.f5TableHeight(); // 刷新表格高度
|
|
|
+ }.bind(this))
|
|
|
+ }.bind(this));
|
|
|
+ },
|
|
|
+
|
|
|
+ },
|
|
|
+ created: function () {
|
|
|
+ this.f5();
|
|
|
+ sa.onInputEnter();
|
|
|
+ }
|
|
|
+ })
|
|
|
+</script>
|
|
|
+</body>
|
|
|
+</html>
|