management/front/dkha-web-sz-main/node_modules/.cache/vue-loader/beed5bbf165f966d125905a1c75...

1 line
11 KiB
JSON

{"remainingRequest":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\visitor\\index.vue?vue&type=style&index=0&id=d2ffcd82&lang=scss&scoped=true&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\visitor\\index.vue","mtime":1614735254000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\css-loader\\index.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\loaders\\stylePostLoader.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\postcss-loader\\src\\index.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\sass-loader\\lib\\loader.js","mtime":1533139052000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.el-table {\n\t.student-img {\n\t\tvertical-align: top;\n\t\twidth: 53px;\n\t\theight: 70px;\n\t}\n}\n",{"version":3,"sources":["index.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgOA;AACA;AACA;AACA;AACA;AACA;AACA","file":"index.vue","sourceRoot":"src/views/modules/visitor","sourcesContent":["<template>\n\t<el-card shadow=\"never\" class=\"aui-card--fill\">\n\t\t<el-form ref=\"dataForm\" :model=\"dataForm\" label-width=\"80px\" inline>\n\t\t\t<el-form-item label=\"姓名\" prop=\"vrName\">\n\t\t\t\t<el-input v-model=\"dataForm.vrName\" placeholder=\"请输入\" clearable></el-input>\n\t\t\t</el-form-item>\n\t\t\t<el-form-item label=\"性别\" prop=\"vrSex\">\n\t\t\t\t<el-select v-model=\"dataForm.vrSex\" placeholder=\"请选择\" clearable>\n\t\t\t\t\t<el-option v-for=\"item in genderList\" :key=\"item.dictLabel\" :label=\"item.dictLabel\" :value=\"item.dictValue\">\n\t\t\t\t\t</el-option>\n\t\t\t\t</el-select>\n\t\t\t</el-form-item>\n\t\t\t<el-form-item label=\"人证设备\">\n\t\t\t\t<el-select v-model=\"dataForm.deviceNumber\" placeholder=\"请选择\" @change=\"setVistorEquip\" clearable filterable>\n\t\t\t\t\t<el-option v-for=\"item in equipList\" :key=\"item.pieEquipsn\" :label=\"item.pieDevicename\" :value=\"item.pieEquipsn\">\n\t\t\t\t\t</el-option>\n\t\t\t\t</el-select>\n\t\t\t</el-form-item>\n\t\t\t<el-form-item>\n\t\t\t\t<el-button @click=\"search\">查询</el-button>\n\t\t\t\t<el-button type=\"warning\" @click=\"resetForm('dataForm')\">重置</el-button>\n\t\t\t\t<el-button type=\"primary\" @click=\"addVisitor\">新建</el-button>\n\t\t\t</el-form-item>\n\t\t</el-form>\n\t\t<el-table :data=\"dataList\">\n\t\t\t<el-table-column type=\"index\" label=\"序号\" width=\"60\" align=\"center\"></el-table-column>\n\t\t\t<el-table-column label=\"照片\" align=\"center\" width=\"100\">\n\t\t\t\t<template slot-scope=\"scope\">\n\t\t\t\t\t<el-image class=\"student-img\" :src=\"$ImgServerUrl+scope.row.vrPhoneimg\" :preview-src-list=\"previewList\">\n\t\t\t\t\t\t<div slot=\"error\" class=\"image-slot\">\n\t\t\t\t\t\t\t<img class=\"student-img\" src=\"../../../assets/img/person.jpg\">\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</el-image>\n\t\t\t\t</template>\n\t\t\t</el-table-column>\n\t\t\t<el-table-column prop=\"vrName\" label=\"姓名\" width=\"100\" show-overflow-tooltip align=\"center\"></el-table-column>\n\t\t\t<el-table-column prop=\"vrPhone\" label=\"访客电话\" show-overflow-tooltip align=\"center\"></el-table-column>\n\t\t\t<el-table-column prop=\"vrInterviewedName\" label=\"被访人员\" show-overflow-tooltip align=\"center\"></el-table-column>\n\t\t\t<el-table-column prop=\"vrInterviewedPhone\" label=\"被访人电话\" show-overflow-tooltip align=\"center\"></el-table-column>\n\t\t\t<el-table-column prop=\"vrAddress\" label=\"访问地址\" show-overflow-tooltip align=\"center\"></el-table-column>\n\t\t\t<el-table-column prop=\"vrTemperature\" label=\"体温(℃)\" width=\"100\" show-overflow-tooltip align=\"center\">\n\t\t\t\t<template slot-scope=\"scope\">\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<span style=\"color:#f56c6c;\" v-if=\"scope.row.vrTemperature>=37.3\">{{scope.row.vrTemperature}}</span>\n\t\t\t\t\t\t<span style=\"color:#67C23A;\" v-else>{{scope.row.vrTemperature}}</span>\n\t\t\t\t\t</div>\n\t\t\t\t</template>\n\t\t\t</el-table-column>\n\t\t\t<el-table-column prop=\"vrVistorbegintime\" label=\"进入时间\" show-overflow-tooltip align=\"center\"></el-table-column>\n\t\t\t<el-table-column prop=\"vrVistorendtime\" label=\"离开时间\" show-overflow-tooltip align=\"center\"></el-table-column>\n\t\t\t<el-table-column label=\"操作\" width=\"180\" align=\"center\">\n\t\t\t\t<template slot-scope=\"scope\">\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<el-button type=\"text\" v-if=\"scope.row.vrUwbid\" @click=\"trackHandle(scope.row)\">轨迹跟踪</el-button>\n\t\t\t\t\t\t<el-button type=\"text\" @click=\"viewHandle(scope.row)\">详情</el-button>\n\t\t\t\t\t\t<el-button type=\"text\" v-if=\"!scope.row.vrReturnuwb&&scope.row.vrUwbid\" @click=\"returnCardHandle(scope.row)\">还卡</el-button>\n\t\t\t\t\t\t<el-button type=\"text\" v-if=\"!scope.row.vrUwbid&&!scope.row.vrVistorendtime\" @click=\"editVisitor(scope.row)\">绑卡</el-button>\n\t\t\t\t\t</div>\n\t\t\t\t</template>\n\t\t\t</el-table-column>\n\t\t</el-table>\n\t\t<el-pagination :current-page=\"page\" :page-sizes=\"[6,10, 20, 50, 100]\" :page-size=\"limit\" :total=\"total\" layout=\"total, sizes, prev, pager, next, jumper\"\n\t\t @size-change=\"pageSizeChangeHandle\" @current-change=\"pageCurrentChangeHandle\">\n\t\t</el-pagination>\n\t\t<!-- 新增修改 -->\n\t\t<add-or-update ref=\"addOrUpdate\"></add-or-update>\n\t\t<!-- 查看 -->\n\t\t<view-visitor ref=\"viewVisitor\"></view-visitor>\n\t</el-card>\n</template>\n\n<script>\n\timport mixinViewModule from '@/mixins/view-module'\n\timport addOrUpdate from '@/views/modules/visitor/visitor-add-or-update'\n\timport viewVisitor from '@/views/modules/visitor/visitor-view'\n\timport {\n\t\tgetDictLabel,\n\t\tgetDictDataList\n\t} from '@/utils'\n\texport default {\n\t\tmixins: [mixinViewModule],\n\t\tcomponents: {\n\t\t\taddOrUpdate,\n\t\t\tviewVisitor\n\t\t},\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tmixinViewModuleOptions: {\n\t\t\t\t\tgetDataListURL: '/system/scvisitorrecord/page',\n\t\t\t\t\tdeleteURL: '/system/scvisitorrecord',\n\t\t\t\t\tgetDataListIsPage: true\n\t\t\t\t},\n\t\t\t\tgenderList: getDictDataList('gender').filter(item => item.dictValue < 2),\n\t\t\t\tdataForm: {\n\t\t\t\t\tscStuname: '',\n\t\t\t\t\tvrName:'',\n\t\t\t\t\tscSex: '',\n\t\t\t\t\tdeviceNumber: ''\n\t\t\t\t},\n\t\t\t\tequipList: [],\n\t\t\t\tdataList: [],\n\t\t\t\tlimit: 6,\n\t\t\t}\n\t\t},\n\t\tcomputed: {\n\t\t\tpreviewList() {\n\t\t\t\treturn this.dataList.map(item => {\n\t\t\t\t\treturn this.$ImgServerUrl + item.vrPhoneimg\n\t\t\t\t})\n\t\t\t},\n\t\t},\n\t\tcreated() {\n\t\t\tthis.getEquipList();\n\t\t},\n\t\tactivated() {\n\t\t\t//let params = this.$route.params;\t\n\t\t\n\t\t\t// // 判断从闸机设备过来 查询对应出入数据\n\t\t\t// let visitorName = window.sessionStorage.getItem('visitorName');\n\t\t\t// if (visitorName) {\n\t\t\t// \twindow.sessionStorage.removeItem('visitorName');\n\t\t\t// \tthis.dataForm.vrName = visitorName;\n\t\t\t// \tthis.search();\n\t\t\t// }\n\t\t},\n\t\tmethods: {\n\t\t\taddVisitor() {\n\t\t\t\tthis.$refs['addOrUpdate'].init()\n\t\t\t},\n\t\t\teditVisitor(row) {\n\t\t\t\tthis.$refs['addOrUpdate'].init(row)\n\t\t\t},\n\t\t\tsearch() {\n\t\t\t\tthis.page = 1;\n\t\t\t\tthis.query();\n\t\t\t},\n\t\t\tresetQuery() {\n\t\t\t\tthis.dataForm = {\n\t\t\t\t\tscStuname: '',\n\t\t\t\t\tscSex: ''\n\t\t\t\t};\n\t\t\t\tthis.search();\n\t\t\t},\n\t\t\t// 详情\n\t\t\tviewHandle(row) {\n\t\t\t\tthis.$refs['viewVisitor'].init(row)\n\t\t\t},\n\t\t\t// 还卡\n\t\t\treturnCardHandle(row) {\n\t\t\t\tthis.$confirm('确认进行还卡操作?', '提示', {\n\t\t\t\t\tconfirmButtonText: '确定',\n\t\t\t\t\tcancelButtonText: '取消',\n\t\t\t\t\ttype: 'warning'\n\t\t\t\t}).then(() => {\n\t\t\t\t\tthis.$http({\n\t\t\t\t\t\turl: `/system/scvisitorrecord/returncard/${row.vrId}`,\n\t\t\t\t\t\tmethod: \"put\",\n\t\t\t\t\t}).then(({\n\t\t\t\t\t\tdata: res\n\t\t\t\t\t}) => {\n\t\t\t\t\t\tif (res.code != 0) {\n\t\t\t\t\t\t\treturn this.$message.error(res.msg)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthis.query();\n\t\t\t\t\t\tthis.$message.success(res.msg)\n\t\t\t\t\t})\n\t\t\t\t}).catch(() => {\n\t\t\t\t\tthis.$message({\n\t\t\t\t\t\ttype: 'info',\n\t\t\t\t\t\tmessage: '已取消删除'\n\t\t\t\t\t})\n\t\t\t\t})\n\t\t\t},\n\t\t\ttrackHandle(row) {\n\t\t\t\tlet start = new Date(row.vrVistorbegintime).getTime();\n\t\t\t\tlet end = new Date(row.vrVistorendtime).getTime() || '';\n\t\t\t\tlet query = {\n\t\t\t\t\ttid: row.vrUwbid,\n\t\t\t\t\tstart: start,\n\t\t\t\t\tend: end\n\t\t\t\t};\n\t\t\t\t// 历史访客 添加历史访客id \n\t\t\t\tif (row.vrReturnuwb) {\n\t\t\t\t\tquery.vrid = row.vrId\n\t\t\t\t}\n\t\t\t\tthis.$router.push({\n\t\t\t\t\tpath: \"/xwyl-track\",\n\t\t\t\t\tquery: query\n\t\t\t\t})\n\t\t\t},\n\t\t\t// formatterSex(row) {\n\t\t\t// \treturn getDictLabel('gender', row.vrSex)\n\t\t\t// },\n\t\t\tgetEquipList() {\n\t\t\t\tthis.$http({\n\t\t\t\t\turl: \"/system/scpersonidequip/getAll\",\n\t\t\t\t\tmethod: \"get\"\n\t\t\t\t}).then(({\n\t\t\t\t\tdata: res\n\t\t\t\t}) => {\n\t\t\t\t\tif (res.code != 0) {\n\t\t\t\t\t\treturn this.$message.error(res.msg)\n\t\t\t\t\t}\n\t\t\t\t\tthis.equipList = res.data;\n\t\t\t\t\t// 判断是否更新了设备\n\t\t\t\t\tlet id = window.localStorage.getItem(\"visitor_eqid\");\n\t\t\t\t\tif (id) {\n\t\t\t\t\t\tlet state = res.data.some(item => item.pieEquipsn == id);\n\t\t\t\t\t\tthis.dataForm.deviceNumber = id;\n\t\t\t\t\t\t// 更新了设备绑定值 清除设备\n\t\t\t\t\t\tif (!state) {\n\t\t\t\t\t\t\twindow.localStorage.removeItem(\"visitor_eqid\");\n\t\t\t\t\t\t\tthis.dataForm.deviceNumber = '';\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t},\n\t\t\tsetVistorEquip(val) {\n\t\t\t\twindow.localStorage.setItem(\"visitor_eqid\", val)\n\t\t\t}\n\t\t}\n\t}\n</script>\n<style lang=\"scss\" scoped>\n\t.el-table {\n\t\t.student-img {\n\t\t\tvertical-align: top;\n\t\t\twidth: 53px;\n\t\t\theight: 70px;\n\t\t}\n\t}\n</style>\n"]}]}