{"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\\home-cell-components\\academic-traffic.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\home-cell-components\\academic-traffic.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\nimport {\n\tgetDictLabel,\n} from '@/utils'\nimport {\n\tmapGetters\n} from \"vuex\";\nexport default {\n\tdata() {\n\t\treturn {\n\t\t\tdataList: [],\n\t\t}\n\t},\n\tcomputed: {\n\t\t...mapGetters(['isFullScreen']),\n\t},\n\tcreated() {\n\t\tthis.$http.get('/system/index/twoBuildingPeerRecord')\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\tif (res.data.length > 10) {\n\t\t\t\t\tthis.dataList = res.data.slice(0, 5)\n\t\t\t\t}\n\t\t\t\tthis.dataList = this.dataList.map(item => {\n\t\t\t\t\tif (item.temperature) {\n\t\t\t\t\t\tif (item.temperature < 37.3) {\n\t\t\t\t\t\t\titem.status = 1\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\titem.status = 0\n\t\t\t\t\t\t}\n\t\t\t\t\t\titem.temperature = (item.temperature * 1).toFixed(2)\n\t\t\t\t\t}\n\t\t\t\t\treturn item\n\t\t\t\t})\n\n\t\t\t})\n\t},\n\tactivated() {\n\t\tconst timer = setInterval(() => {\n\t\t\tthis.getDataList();\n\t\t}, 3 * 1000);\n\t\tthis.$once(\"hook:deactivated\", () => {\n\t\t\tclearInterval(timer)\n\t\t})\n\t\tthis.$once(\"hook:destroyed\", () => {\n\t\t\tclearInterval(timer)\n\t\t})\n\t},\n\tmethods: {\n\t\tgetDataList() {\n\t\t\tthis.$http.get('/system/index/twoBuildingPeerRecord')\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.dataList = res.data.map(item => {\n\t\t\t\t\t\tif (item.temperature) {\n\t\t\t\t\t\t\tif (item.temperature < 37.3) {\n\t\t\t\t\t\t\t\titem.status = 1\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\titem.status = 0\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\titem.temperature = (item.temperature * 1).toFixed(2)\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn item\n\t\t\t\t\t})\n\n\t\t\t\t})\n\t\t},\n\t\trouteHandle(name) {\n\t\t\tsessionStorage.setItem(\"tempName\", name)\n\t\t\tthis.$router.push({\n\t\t\t\tpath: 'statistics-accessRecord'\n\t\t\t})\n\t\t}\n\t}\n}\n",{"version":3,"sources":["academic-traffic.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4CA;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;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"academic-traffic.vue","sourceRoot":"src/views/modules/home-cell-components","sourcesContent":["\n\t\n\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
\n\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\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\t\n\t\t\t\t\t\n\t\t\t\t\t\t{{scope.row.recognitionName}}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t {{ scope.row.temperature}}\n\t\t\t\t\t\t {{ scope.row.temperature }}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t {{ $getDictLabel(\"accessEquipType\", scope.row.verificationType) }}\n\t\t\t\t\t\t {{ $getDictLabel(\"accessEquipType\", scope.row.verificationType) }}\n\t\t\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
\n\n\n\n\n"]}]}