1 line
7.4 KiB
JSON
1 line
7.4 KiB
JSON
{"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\\admin-temperature.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\home-cell-components\\admin-temperature.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\nimport tempWebsocket from '@/websocket/system'\nimport {\n\tmapGetters\n} from \"vuex\";\nexport default {\n\tmixins: [tempWebsocket],\n\tprops: {\n\t\t//进\n\t\tenterTitle: {\n\t\t\ttype: String,\n\t\t\tdefault: () => {}\n\t\t},\n\t\t//出\n\t\tgooutTitle: {\n\t\t\ttype: String,\n\t\t\tdefault: () => {}\n\t\t},\n\t},\n\tcomputed: {\n\t\t...mapGetters(['isFullScreen']),\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tdormitoryTotalNums: {\n\t\t\t\tentrantsCount: 0,\n\t\t\t\toutCount: 0\n\t\t\t},\n\t\t\titemStyle: {},\n\t\t\ttempArr: []\n\t\t}\n\t},\n\tmounted() {\n\t\tthis.getDataList()\n\t},\n\tactivated() {\n\t\tconst timer = setInterval(() => {\n\t\t\tthis.getDataList();\n\t\t}, 5000);\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\t//访客信息\n\t\tgetDataList() {\n\t\t\tthis.$http.get('/system/index/thermalTop')\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.tempArr = res.data.sort((a, b) => b.temperature - a.temperature)\n\t\t\t\t})\n\t\t},\n\t}\n}\n",{"version":3,"sources":["admin-temperature.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAwBA;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":"admin-temperature.vue","sourceRoot":"src/views/modules/home-cell-components","sourcesContent":["<template>\n\t<div class=\"academic-building\">\n\t\t<div class=\"academic-building__title1\">\n\t\t\t<div class=\"title\" style=\"width:240px;\">\n\t\t\t\t科研楼强弱电井温度TOP10\n\t\t\t\t<div class=\"angle-border left-top-border\"></div>\n\t\t\t\t<div class=\"angle-border right-top-border\"></div>\n\t\t\t\t<div class=\"angle-border left-bottom-border\"></div>\n\t\t\t\t<div class=\"angle-border right-bottom-border\"></div>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"temparr\" v-for=\"(item,index) in tempArr\" :key=\"index\">\n\t\t\t<div :class=\"isFullScreen?'bigbox':'box'\" @click=\"$router.push({name:'warningData-therma-imaging',params:{tfDevicename:item.name}})\">\n\t\t\t\t<span :class=\"item.temperature*1 >= $getDictLabel('thermalImaging','0' )?'dex dex1':item.temperature*1 < $getDictLabel('thermalImaging','1' )?'dex':'dex dex2'\">N0.{{index+1}}</span>\n\t\t\t\t<span>{{item.name}}    </span>\n\t\t\t\t<div :class=\"item.temperature*1 >= $getDictLabel('thermalImaging','0' )?'temp temp1':item.temperature*1 < $getDictLabel('thermalImaging','1' )?'temp':'temp temp2'\"></div>   \n\t\t\t\t<span v-if=\"item.temperature ==''\">0℃</span>\n\t\t\t\t<span v-else>{{(item.temperature*1).toFixed(2)}}℃</span>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</template>\n\n<script>\n\timport tempWebsocket from '@/websocket/system'\n\timport {\n\t\tmapGetters\n\t} from \"vuex\";\n\texport default {\n\t\tmixins: [tempWebsocket],\n\t\tprops: {\n\t\t\t//进\n\t\t\tenterTitle: {\n\t\t\t\ttype: String,\n\t\t\t\tdefault: () => {}\n\t\t\t},\n\t\t\t//出\n\t\t\tgooutTitle: {\n\t\t\t\ttype: String,\n\t\t\t\tdefault: () => {}\n\t\t\t},\n\t\t},\n\t\tcomputed: {\n\t\t\t...mapGetters(['isFullScreen']),\n\t\t},\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tdormitoryTotalNums: {\n\t\t\t\t\tentrantsCount: 0,\n\t\t\t\t\toutCount: 0\n\t\t\t\t},\n\t\t\t\titemStyle: {},\n\t\t\t\ttempArr: []\n\t\t\t}\n\t\t},\n\t\tmounted() {\n\t\t\tthis.getDataList()\n\t\t},\n\t\tactivated() {\n\t\t\tconst timer = setInterval(() => {\n\t\t\t\tthis.getDataList();\n\t\t\t}, 5000);\n\t\t\tthis.$once(\"hook:deactivated\", () => {\n\t\t\t\tclearInterval(timer)\n\t\t\t})\n\t\t\tthis.$once(\"hook:destroyed\", () => {\n\t\t\t\tclearInterval(timer)\n\t\t\t})\n\t\t},\n\t\tmethods: {\n\t\t\t//访客信息\n\t\t\tgetDataList() {\n\t\t\t\tthis.$http.get('/system/index/thermalTop')\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.tempArr = res.data.sort((a, b) => b.temperature - a.temperature)\n\t\t\t\t\t})\n\t\t\t},\n\t\t}\n\t}\n</script>\n\n<style scoped lang=\"scss\">\n\t.academic-building {\n\t\tcolor: #FFF;\n\n\t\t&__title1 {\n\t\t\tmargin-bottom: 22px;\n\t\t}\n\n\t\t&__title1 {\n\t\t\tdisplay: flex;\n\t\t\t// justify-content: space-between;\n\t\t\tfont-size: 18px;\n\n\t\t\t.title {\n\t\t\t\theight: 36px;\n\t\t\t\tline-height: 36px;\n\t\t\t\tbackground-color: #133C6F;\n\t\t\t\ttext-align: center;\n\t\t\t\tposition: relative;\n\t\t\t\tcolor: #fff;\n\n\t\t\t\t.angle-border {\n\t\t\t\t\tposition: absolute;\n\t\t\t\t\twidth: 12px;\n\t\t\t\t\theight: 12px;\n\t\t\t\t}\n\n\t\t\t\t.left-top-border {\n\t\t\t\t\ttop: -6px;\n\t\t\t\t\tleft: -6px;\n\t\t\t\t\tborder-left: 1px solid #01FFFF;\n\t\t\t\t\tborder-top: 1px solid #01FFFF;\n\t\t\t\t}\n\n\t\t\t\t.right-top-border {\n\t\t\t\t\ttop: -6px;\n\t\t\t\t\tright: -6px;\n\t\t\t\t\tborder-right: 1px solid #01FFFF;\n\t\t\t\t\tborder-top: 1px solid #01FFFF;\n\t\t\t\t}\n\n\t\t\t\t.left-bottom-border {\n\t\t\t\t\tbottom: -6px;\n\t\t\t\t\tleft: -6px;\n\t\t\t\t\tborder-left: 1px solid #01FFFF;\n\t\t\t\t\tborder-bottom: 1px solid #01FFFF;\n\t\t\t\t}\n\n\t\t\t\t.right-bottom-border {\n\t\t\t\t\tbottom: -6px;\n\t\t\t\t\tright: -6px;\n\t\t\t\t\tborder-right: 1px solid #01FFFF;\n\t\t\t\t\tborder-bottom: 1px solid #01FFFF;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t.temparr {\n\t\t\tmargin-bottom: 15px;\n\t\t\theight: 100%;\n\n\t\t\t.box {\n\t\t\t\tdisplay: flex;\n\t\t\t\theight: 18px;\n\t\t\t\tcursor: pointer;\n\t\t\t}\n\n\n\t\t\t.bigbox {\n\t\t\t\tdisplay: flex;\n\t\t\t\tmargin-bottom: 26px;\n\t\t\t\tcursor: pointer;\n\t\t\t}\n\n\t\t\t.dex {\n\t\t\t\twidth: 50px;\n\n\t\t\t}\n\n\t\t\t.dex1 {\n\t\t\t\tcolor: #CF2D1D;\n\t\t\t}\n\n\t\t\t.dex2 {\n\t\t\t\tcolor: #F46208;\n\t\t\t}\n\n\t\t\t.temp {\n\t\t\t\twidth: 240px;\n\t\t\t\theight: 18px;\n\t\t\t\tbackground-color: #0B5970;\n\t\t\t}\n\n\t\t\t.temp1 {\n\t\t\t\tbackground-color: #CF2D1D;\n\t\t\t}\n\n\t\t\t.temp2 {\n\t\t\t\tbackground-color: #F46208;\n\t\t\t}\n\t\t}\n\n\t\t.temparr:last-child {\n\t\t\tmargin-bottom: 0px;\n\t\t}\n\n\n\t}\n</style>\n"]}]} |