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

1 line
15 KiB
JSON
Raw Normal View History

2023-12-18 13:12:25 +08:00
{"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// 历史访客 添加<E6B7BB>