forked from zhurui/management
1 line
18 KiB
JSON
1 line
18 KiB
JSON
{"remainingRequest":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!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=script&lang=js&","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\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000},{"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":["import \"core-js/modules/es6.regexp.search\";\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//\nimport mixinViewModule from '@/mixins/view-module';\nimport addOrUpdate from '@/views/modules/visitor/visitor-add-or-update';\nimport viewVisitor from '@/views/modules/visitor/visitor-view';\nimport { getDictLabel, getDictDataList } from '@/utils';\nexport default {\n mixins: [mixinViewModule],\n components: {\n addOrUpdate: addOrUpdate,\n viewVisitor: viewVisitor\n },\n data: function data() {\n return {\n mixinViewModuleOptions: {\n getDataListURL: '/system/scvisitorrecord/page',\n deleteURL: '/system/scvisitorrecord',\n getDataListIsPage: true\n },\n genderList: getDictDataList('gender').filter(function (item) {\n return item.dictValue < 2;\n }),\n dataForm: {\n scStuname: '',\n vrName: '',\n scSex: '',\n deviceNumber: ''\n },\n equipList: [],\n dataList: [],\n limit: 6\n };\n },\n computed: {\n previewList: function previewList() {\n var _this = this;\n\n return this.dataList.map(function (item) {\n return _this.$ImgServerUrl + item.vrPhoneimg;\n });\n }\n },\n created: function created() {\n this.getEquipList();\n },\n activated: function activated() {//let params = this.$route.params;\t\n // // 判断从闸机设备过来 查询对应出入数据\n // let visitorName = window.sessionStorage.getItem('visitorName');\n // if (visitorName) {\n // \twindow.sessionStorage.removeItem('visitorName');\n // \tthis.dataForm.vrName = visitorName;\n // \tthis.search();\n // }\n },\n methods: {\n addVisitor: function addVisitor() {\n this.$refs['addOrUpdate'].init();\n },\n editVisitor: function editVisitor(row) {\n this.$refs['addOrUpdate'].init(row);\n },\n search: function search() {\n this.page = 1;\n this.query();\n },\n resetQuery: function resetQuery() {\n this.dataForm = {\n scStuname: '',\n scSex: ''\n };\n this.search();\n },\n // 详情\n viewHandle: function viewHandle(row) {\n this.$refs['viewVisitor'].init(row);\n },\n // 还卡\n returnCardHandle: function returnCardHandle(row) {\n var _this2 = this;\n\n this.$confirm('确认进行还卡操作?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(function () {\n _this2.$http({\n url: \"/system/scvisitorrecord/returncard/\".concat(row.vrId),\n method: \"put\"\n }).then(function (_ref) {\n var res = _ref.data;\n\n if (res.code != 0) {\n return _this2.$message.error(res.msg);\n }\n\n _this2.query();\n\n _this2.$message.success(res.msg);\n });\n }).catch(function () {\n _this2.$message({\n type: 'info',\n message: '已取消删除'\n });\n });\n },\n trackHandle: function trackHandle(row) {\n var start = new Date(row.vrVistorbegintime).getTime();\n var end = new Date(row.vrVistorendtime).getTime() || '';\n var query = {\n tid: row.vrUwbid,\n start: start,\n end: end\n }; // 历史访客 添加历史访客id \n\n if (row.vrReturnuwb) {\n query.vrid = row.vrId;\n }\n\n this.$router.push({\n path: \"/xwyl-track\",\n query: query\n });\n },\n // formatterSex(row) {\n // \treturn getDictLabel('gender', row.vrSex)\n // },\n getEquipList: function getEquipList() {\n var _this3 = this;\n\n this.$http({\n url: \"/system/scpersonidequip/getAll\",\n method: \"get\"\n }).then(function (_ref2) {\n var res = _ref2.data;\n\n if (res.code != 0) {\n return _this3.$message.error(res.msg);\n }\n\n _this3.equipList = res.data; // 判断是否更新了设备\n\n var id = window.localStorage.getItem(\"visitor_eqid\");\n\n if (id) {\n var state = res.data.some(function (item) {\n return item.pieEquipsn == id;\n });\n _this3.dataForm.deviceNumber = id; // 更新了设备绑定值 清除设备\n\n if (!state) {\n window.localStorage.removeItem(\"visitor_eqid\");\n _this3.dataForm.deviceNumber = '';\n }\n }\n });\n },\n setVistorEquip: function setVistorEquip(val) {\n window.localStorage.setItem(\"visitor_eqid\", val);\n }\n }\n};",{"version":3,"sources":["index.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwEA,OAAA,eAAA,MAAA,sBAAA;AACA,OAAA,WAAA,MAAA,+CAAA;AACA,OAAA,WAAA,MAAA,sCAAA;AACA,SACA,YADA,EAEA,eAFA,QAGA,SAHA;AAIA,eAAA;AACA,EAAA,MAAA,EAAA,CAAA,eAAA,CADA;AAEA,EAAA,UAAA,EAAA;AACA,IAAA,WAAA,EAAA,WADA;AAEA,IAAA,WAAA,EAAA;AAFA,GAFA;AAMA,EAAA,IANA,kBAMA;AACA,WAAA;AACA,MAAA,sBAAA,EAAA;AACA,QAAA,cAAA,EAAA,8BADA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"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"],"sourceRoot":"src/views/modules/visitor"}]} |