{"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;AAEA,QAAA,SAAA,EAAA,yBAFA;AAGA,QAAA,i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