forked from zhurui/management
1 line
24 KiB
JSON
1 line
24 KiB
JSON
|
{"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\\dormitoryManage\\electric.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\dormitoryManage\\electric.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.replace\";\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 dormitoryTree from \"../../../components/public/dormitory-tree\";\nexport default {\n data: function data() {\n return {\n dateTime: [new Date().toLocaleString(\"zh\", {\n year: \"numeric\",\n month: \"2-digit\",\n day: \"2-digit\"\n }).substr(0, 10) + \" 00:00:00\", new Date().toLocaleString(\"zh\", {\n year: \"numeric\",\n month: \"2-digit\",\n day: \"2-digit\"\n }).substr(0, 10) + \" 23:59:59\"],\n treeValue: {\n df_floorid: '',\n df_type: '',\n df_floorname: ''\n },\n dataForm: {\n startDate: \"\",\n endDate: \"\"\n },\n xAxisData: [],\n ydata: [],\n floorName: \"\"\n };\n },\n components: {\n dormitoryTree: dormitoryTree\n },\n activated: function activated() {\n var _this = this;\n\n var timer = setInterval(function () {\n _this.clickSearch();\n }, 30000);\n this.$once(\"hook:deactivated\", function () {\n clearInterval(timer);\n });\n this.$once(\"hook:destroyed\", function () {\n clearInterval(timer);\n });\n },\n watch: {\n '$store.state.user.defaultCheckedKeys': {\n handler: function handler(val) {\n if (val) {\n this.clickSearchs(val);\n }\n },\n deep: true,\n immediate: true\n }\n },\n methods: {\n //树形控件 回调函数\n treeFun: function treeFun(val) {\n this.treeValue = val;\n\n if (val.df_type != '2') {\n return this.$message.info('请选择房间查看宿舍电流');\n }\n\n this.floorName = val.df_floorname;\n this.clickSearch();\n },\n //搜索\n clickSearch: function clickSearch() {\n var _this2 = this;\n\n if (!this.dateTime || this.dateTime.length == '0') {\n return this.$message.error('请选择时间范围');\n } else if (!this.$store.state.user.defaultCheckedKeys) {\n return this.$message.error('暂无楼栋数据,无法查询');\n }\n\n var startDate = this.dateTime[0].replace(/\\//g, '-');\n var endDate = this.dateTime[1].replace(/\\//g, '-');\n var id = '';\n\n if (this.treeValue.df_floorid == '') {\n id = this.$store.state.user.defaultCheckedKeys;\n } else {\n id = this.treeValue.df_floorid;\n }\n\n this.$http.get(\"/system/sccurrenthistory/\".concat(id, \"/\").concat(startDate, \"/\").concat(endDate)).then(function (_ref) {\n var res = _ref.data;\n\n if (res.code != 0) {\n return _this2.$message.error(res.msg);\n } // chColltime: \"2020-10-31 17:53:08\",\n // chEcurrent: 0.0424328\n\n\n var arrData = res.data; //所有数据\n\n var xData = []; //x 数据\n\n var
|