{"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=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":["//\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 {\n\tgetDictLabel,\n\tgetDictDataList\n} from '@/utils'\nexport default {\n\tmixins: [mixinViewModule],\n\tcomponents: {\n\t\taddOrUpdate,\n\t\tviewVisitor\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tmixinViewModuleOptions: {\n\t\t\t\tgetDataListURL: '/system/scvisitorrecord/page',\n\t\t\t\tdeleteURL: '/system/scvisitorrecord',\n\t\t\t\tgetDataListIsPage: true\n\t\t\t},\n\t\t\tgenderList: getDictDataList('gender').filter(item => item.dictValue < 2),\n\t\t\tdataForm: {\n\t\t\t\tscStuname: '',\n\t\t\t\tvrName:'',\n\t\t\t\tscSex: '',\n\t\t\t\tdeviceNumber: ''\n\t\t\t},\n\t\t\tequipList: [],\n\t\t\tdataList: [],\n\t\t\tlimit: 6,\n\t\t}\n\t},\n\tcomputed: {\n\t\tpreviewList() {\n\t\t\treturn this.dataList.map(item => {\n\t\t\t\treturn this.$ImgServerUrl + item.vrPhoneimg\n\t\t\t})\n\t\t},\n\t},\n\tcreated() {\n\t\tthis.getEquipList();\n\t},\n\tactivated() {\n\t\t//let params = this.$route.params;\t\n\t\n\t\t// // 判断从闸机设备过来 查询对应出入数据\n\t\t// let visitorName = window.sessionStorage.getItem('visitorName');\n\t\t// if (visitorName) {\n\t\t// \twindow.sessionStorage.removeItem('visitorName');\n\t\t// \tthis.dataForm.vrName = visitorName;\n\t\t// \tthis.search();\n\t\t// }\n\t},\n\tmethods: {\n\t\taddVisitor() {\n\t\t\tthis.$refs['addOrUpdate'].init()\n\t\t},\n\t\teditVisitor(row) {\n\t\t\tthis.$refs['addOrUpdate'].init(row)\n\t\t},\n\t\tsearch() {\n\t\t\tthis.page = 1;\n\t\t\tthis.query();\n\t\t},\n\t\tresetQuery() {\n\t\t\tthis.dataForm = {\n\t\t\t\tscStuname: '',\n\t\t\t\tscSex: ''\n\t\t\t};\n\t\t\tthis.search();\n\t\t},\n\t\t// 详情\n\t\tviewHandle(row) {\n\t\t\tthis.$refs['viewVisitor'].init(row)\n\t\t},\n\t\t// 还卡\n\t\treturnCardHandle(row) {\n\t\t\tthis.$confirm('确认进行还卡操作?', '提示', {\n\t\t\t\tconfirmButtonText: '确定',\n\t\t\t\tcancelButtonText: '取消',\n\t\t\t\ttype: 'warning'\n\t\t\t}).then(() => {\n\t\t\t\tthis.$http({\n\t\t\t\t\turl: `/system/scvisitorrecord/returncard/${row.vrId}`,\n\t\t\t\t\tmethod: \"put\",\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.query();\n\t\t\t\t\tthis.$message.success(res.msg)\n\t\t\t\t})\n\t\t\t}).catch(() => {\n\t\t\t\tthis.$message({\n\t\t\t\t\ttype: 'info',\n\t\t\t\t\tmessage: '已取消删除'\n\t\t\t\t})\n\t\t\t})\n\t\t},\n\t\ttrackHandle(row) {\n\t\t\tlet start = new Date(row.vrVistorbegintime).getTime();\n\t\t\tlet end = new Date(row.vrVistorendtime).getTime() || '';\n\t\t\tlet query = {\n\t\t\t\ttid: row.vrUwbid,\n\t\t\t\tstart: start,\n\t\t\t\tend: end\n\t\t\t};\n\t\t\t// 历史访客 添加历史访客id \n\t\t\tif (row.vrReturnuwb) {\n\t\t\t\tquery.vrid = row.vrId\n\t\t\t}\n\t\t\tthis.$router.push({\n\t\t\t\tpath: \"/xwyl-track\",\n\t\t\t\tquery: query\n\t\t\t})\n\t\t},\n\t\t// formatterSex(row) {\n\t\t// \treturn getDictLabel('gender', row.vrSex)\n\t\t// },\n\t\tgetEquipList() {\n\t\t\tthis.$http({\n\t\t\t\turl: \"/system/scpersonidequip/getAll\",\n\t\t\t\tmethod: \"get\"\n\t\t\t}).then(({\n\t\t\t\tdata: res\n\t\t\t}) => {\n\t\t\t\tif (res.code != 0) {\n\t\t\t\t\treturn this.$message.error(res.msg)\n\t\t\t\t}\n\t\t\t\tthis.equipList = res.data;\n\t\t\t\t// 判断是否更新了设备\n\t\t\t\tlet id = window.localStorage.getItem(\"visitor_eqid\");\n\t\t\t\tif (id) {\n\t\t\t\t\tlet state = res.data.some(item => item.pieEquipsn == id);\n\t\t\t\t\tthis.dataForm.deviceNumber = id;\n\t\t\t\t\t// 更新了设备绑定值 清除设备\n\t\t\t\t\tif (!state) {\n\t\t\t\t\t\twindow.localStorage.removeItem(\"visitor_eqid\");\n\t\t\t\t\t\tthis.dataForm.deviceNumber = '';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t})\n\t\t},\n\t\tsetVistorEquip(val) {\n\t\t\twindow.localStorage.setItem(\"visitor_eqid\", val)\n\t\t}\n\t}\n}\n",{"version":3,"sources":["index.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"index.vue","sourceRoot":"src/views/modules/visitor","sourcesContent":["\n\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t查询\n\t\t\t\t重置\n\t\t\t\t新建\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\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\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t=37.3\">{{scope.row.vrTemperature}}\n\t\t\t\t\t\t{{scope.row.vrTemperature}}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t轨迹跟踪\n\t\t\t\t\t\t详情\n\t\t\t\t\t\t还卡\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\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\n\n\n\n\n"]}]}