EMS2.0-Documents/7.部署文档/Window安装/项目前端文件/IEMS/js/chunk-03aa0638.e87f4f36.js.map

1 line
62 KiB
Plaintext

{"version":3,"sources":["webpack:///./src/views/manager/electrovalence/analysis.vue?2f22","webpack:///src/views/manager/electrovalence/analysis.vue","webpack:///./src/views/manager/electrovalence/analysis.vue?a3e8","webpack:///./src/views/manager/electrovalence/analysis.vue","webpack:///./src/directive/permission/permission.js","webpack:///./src/directive/permission/index.js","webpack:///./src/api/area.js","webpack:///./src/utils/validate.js","webpack:///./src/views/manager/electrovalence/analysis.vue?9754","webpack:///./src/api/electrovalence.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_m","class","clicked","listQuery","timeType","on","$event","_v","_s","$t","directives","name","rawName","value","expression","attrs","getList","model","callback","$$v","arrayTime","staticStyle","areaIdList","checkStrictly","emitPath","$set","_l","i","key","list","areaIdLists","getEleTrendPic","listQuerys","option","eleTypeId","eleTypeName","volLevelId","volLevelName","staticRenderFns","permission","filters","switchTimeFormat","val","validateVal","data","areaId","deptId","startTime","chargeType","endTime","dayEndTime","dayStartTime","type","energyList","flatCost","flatSaveCost","flatSaveEnergy","flatSupplyEnergy","lowCost","lowSaveCost","lowSaveEnergy","lowSupplyEnergy","peakCost","flatPrice","lowPrice","peakPrice","spikePrice","peakSaveCost","peakSaveEnergy","peakSupplyEnergy","spikeCost","spikeSaveCost","spikeSaveEnergy","spikeSupplyEnergy","levelsList","typesList","costList","watch","console","created","getBaseList","methods","padZero","num","date","getAreaSubByAreaId","getElectricityLevels","getElectricityTypes","getEleTrendChart","stack","barWidth","itemStyle","color","e","getAreaIdList","length","res","subList","obj","getAreaIdLists","label","clearListQuery","userId","curPage","pageSize","handleFilter","getBChert","mainEchart","echarts","document","getElementById","title","textStyle","tooltip","trigger","axisPointer","legend","show","top","left","icon","itemWidth","itemHeight","fontSize","padding","grid","right","bottom","containLabel","xAxis","axisLine","lineStyle","axisLabel","axisTick","yAxis","splitLine","series","getMaxChert","text","fontStyle","fontWeight","getEChert","component","inserted","el","binding","roles","store","getters","butPermission","log","Array","Error","permissionRoles","hasPermission","some","role","includes","state","user","permissionFlag","newnode","createElement","style","cursor","display","pointerEvents","parentNode","insertBefore","removeChild","appendChild","install","Vue","directive","window","use","getAreaTreeList","request","url","method","params","removeArea","saveArea","updateArea","validatePhone","rule","test","filterNull","valReplace","replace","time","dateTime","Date","year","getFullYear","month","getMonth","getDate","hour","getHours","minute","getMinutes","second","getSeconds","addZero","v","addElectricityPloy","getElectricityPloyList","deleteElectricityPloy","deleteListElectricityPloy","getElectricityPloyByPloyId","updateElectricityPloy","getEleDifference"],"mappings":"uHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,iCAAiC,CAACF,EAAG,MAAM,CAACE,YAAY,aAAaF,EAAG,MAAM,CAACE,YAAY,YAAY,CAACF,EAAG,MAAM,CAACE,YAAY,oBAAoB,CAACN,EAAIO,GAAG,GAAGH,EAAG,MAAM,CAACE,YAAY,OAAO,CAACF,EAAG,MAAM,CAACE,YAAY,WAAWE,MAAM,CAAEC,QAAmC,GAA1BT,EAAIU,UAAUC,UAAgBC,GAAG,CAAC,MAAQ,SAASC,GAAQb,EAAIU,UAAUC,SAAW,KAAK,CAACX,EAAIc,GAAG,IAAId,EAAIe,GAAGf,EAAIgB,GAAG,uBAAuB,OAAOZ,EAAG,MAAM,CAACE,YAAY,YAAYE,MAAM,CAAEC,QAAmC,GAA1BT,EAAIU,UAAUC,UAAgBC,GAAG,CAAC,MAAQ,SAASC,GAAQb,EAAIU,UAAUC,SAAW,KAAK,CAACX,EAAIc,GAAG,IAAId,EAAIe,GAAGf,EAAIgB,GAAG,yBAAyB,OAAOZ,EAAG,iBAAiB,CAACa,WAAW,CAAC,CAACC,KAAK,OAAOC,QAAQ,SAASC,MAAiC,GAA1BpB,EAAIU,UAAUC,SA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AAQxI,IAMT,SAAS0C,EAAqB1C,GACjC,OAAOqI,eAAQ,CACXC,IAAK,0CACLC,OAAQ,MACRC,OAAQxI,IAMT,SAAS2C,EAAoB3C,GAChC,OAAOqI,eAAQ,CACXC,IAAK,0CACLC,OAAQ,MACRC,OAAQxI,IAMT,SAASuK,EAAsBvK,GAClC,OAAOqI,eAAQ,CACXC,IAAK,2CACLC,OAAQ,MACRvI,SAcD,SAASwK,EAAiBxK,GAC7B,OAAOqI,eAAQ,CACXC,IAAK,uCACLC,OAAQ,MACRC,OAAQxI,IAKT,SAAS4C,EAAiB5C,GAC7B,OAAOqI,eAAQ,CACXC,IAAK,uCACLC,OAAQ,MACRC,OAAQxI,IAKT,SAASb,EAAea,GAC3B,OAAOqI,eAAQ,CACXC,IAAK,qCACLC,OAAQ,MACRC,OAAQxI","file":"js/chunk-03aa0638.e87f4f36.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"app-container priceDifference\"},[_c('div',{staticClass:\"decorate\"}),_c('div',{staticClass:\"priceBox\"},[_c('div',{staticClass:\"filter-container\"},[_vm._m(0),_c('div',{staticClass:\"box\"},[_c('div',{staticClass:\"tab left\",class:{ clicked: _vm.listQuery.timeType == 1 },on:{\"click\":function($event){_vm.listQuery.timeType = 1}}},[_vm._v(\" \"+_vm._s(_vm.$t(\"electrovalence.day\"))+\" \")]),_c('div',{staticClass:\"tab right\",class:{ clicked: _vm.listQuery.timeType == 2 },on:{\"click\":function($event){_vm.listQuery.timeType = 2}}},[_vm._v(\" \"+_vm._s(_vm.$t(\"electrovalence.month\"))+\" \")]),_c('el-date-picker',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.listQuery.timeType == 1),expression:\"listQuery.timeType == 1\"}],staticClass:\"long\",attrs:{\"type\":\"daterange\",\"value-format\":\"yyyy-MM-dd\",\"range-separator\":\"-\",\"start-placeholder\":_vm.$t('startTime'),\"end-placeholder\":_vm.$t('endTime')},on:{\"change\":_vm.getList},model:{value:(_vm.arrayTime),callback:function ($$v) {_vm.arrayTime=$$v},expression:\"arrayTime\"}}),_c('el-date-picker',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.listQuery.timeType == 2),expression:\"listQuery.timeType == 2\"}],staticClass:\"long\",staticStyle:{\"width\":\"350px\"},attrs:{\"type\":\"monthrange\",\"value-format\":\"yyyy-MM\",\"range-separator\":\"-\",\"start-placeholder\":_vm.$t('startTime'),\"end-placeholder\":_vm.$t('endTime')},on:{\"change\":_vm.getList},model:{value:(_vm.arrayTime),callback:function ($$v) {_vm.arrayTime=$$v},expression:\"arrayTime\"}}),_c('el-cascader',{staticClass:\"filter-item\",staticStyle:{\"margin\":\"0\",\"margin-left\":\"10px\"},attrs:{\"collapse-tags\":\"\",\"options\":_vm.areaIdList,\"placeholder\":_vm.$t('listQuery.areaId'),\"props\":{ checkStrictly: true, emitPath: false },\"clearable\":\"\"},on:{\"change\":_vm.getList},model:{value:(_vm.listQuery.areaId),callback:function ($$v) {_vm.$set(_vm.listQuery, \"areaId\", $$v)},expression:\"listQuery.areaId\"}})],1)]),_c('div',{staticClass:\"cost\"},_vm._l((_vm.costList),function(i){return _c('div',{key:i.name,staticClass:\"costItem\"},[_c('div',{staticClass:\"save\"},[_c('div',[_vm._v(_vm._s(i.name))]),_c('div',[_vm._v(\" 节省电费\"),_c('span',[_vm._v(_vm._s(_vm.list[i.value + \"SaveCost\"]))]),_vm._v(\"元 \")])]),_c('div',{staticClass:\"rate\"},[_c('div',{staticClass:\"item\"},[_c('div',[_vm._v(\"电费(元)\")]),_c('div',[_vm._v(_vm._s(_vm.list[i.value + \"Cost\"]))])]),_c('div',{staticClass:\"item\"},[_c('div',[_vm._v(\"市电用量(kWh)\")]),_c('div',[_vm._v(_vm._s(_vm.list[i.value + \"SupplyEnergy\"]))])]),_c('div',{staticClass:\"item\"},[_c('div',[_vm._v(\"储蓄电用量(kWh)\")]),_c('div',[_vm._v(_vm._s(_vm.list[i.value + \"SaveEnergy\"]))])])])])}),0),_c('div',{attrs:{\"id\":\"energyEchart\"}})]),_c('div',{staticClass:\"changeBox\"},[_c('div',{staticClass:\"filter-container\"},[_vm._m(1),_c('div',{staticClass:\"box\"},[_c('el-cascader',{staticClass:\"filter-item\",attrs:{\"collapse-tags\":\"\",\"options\":_vm.areaIdLists,\"placeholder\":_vm.$t('listQuery.areaId'),\"props\":{ checkStrictly: true, emitPath: false },\"clearable\":\"\"},on:{\"change\":_vm.getEleTrendPic},model:{value:(_vm.listQuerys.areaId),callback:function ($$v) {_vm.$set(_vm.listQuerys, \"areaId\", $$v)},expression:\"listQuerys.areaId\"}}),_c('el-select',{staticClass:\"filter-item\",attrs:{\"placeholder\":\"用电分类\"},on:{\"change\":_vm.getEleTrendPic},model:{value:(_vm.listQuerys.eleTypeId),callback:function ($$v) {_vm.$set(_vm.listQuerys, \"eleTypeId\", $$v)},expression:\"listQuerys.eleTypeId\"}},_vm._l((_vm.typesList),function(option){return _c('el-option',{key:option.eleTypeId,attrs:{\"label\":option.eleTypeName,\"value\":option.eleTypeId}})}),1),_c('el-select',{staticClass:\"filter-item\",attrs:{\"placeholder\":_vm.$t('electrovalence.level')},on:{\"change\":_vm.getEleTrendPic},model:{value:(_vm.listQuerys.volLevelId),callback:function ($$v) {_vm.$set(_vm.listQuerys, \"volLevelId\", $$v)},expression:\"listQuerys.volLevelId\"}},_vm._l((_vm.levelsList),function(option){return _c('el-option',{key:option.volLevelId,attrs:{\"label\":option.volLevelName,\"value\":option.volLevelId}})}),1),_c('el-date-picker',{staticClass:\"filter-item\",attrs:{\"type\":\"month\",\"placeholder\":\"选择月\",\"value-format\":\"yyyy-MM\"},on:{\"change\":_vm.getEleTrendPic},model:{value:(_vm.listQuerys.startTime),callback:function ($$v) {_vm.$set(_vm.listQuerys, \"startTime\", $$v)},expression:\"listQuerys.startTime\"}})],1)]),_vm._m(2)])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"name\"},[_c('i',{staticClass:\"iconfont icon-biaoti\"}),_c('span',[_vm._v(\" 峰谷价差统计\")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"name\"},[_c('i',{staticClass:\"iconfont icon-biaoti\"}),_c('span',[_vm._v(\" 价差变化图\")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"echart\"},[_c('div',{attrs:{\"id\":\"maxEchart\"}}),_c('div',{attrs:{\"id\":\"changeEchart\"}})])}]\n\nexport { render, staticRenderFns }","<!-- 平台日志 -->\r\n<template>\r\n <div class=\"app-container priceDifference\">\r\n <div class=\"decorate\"></div>\r\n <div class=\"priceBox\">\r\n <div class=\"filter-container\">\r\n <div class=\"name\">\r\n <i class=\"iconfont icon-biaoti\" />\r\n <span> 峰谷价差统计</span>\r\n </div>\r\n <div class=\"box\">\r\n <div\r\n class=\"tab left\"\r\n :class=\"{ clicked: listQuery.timeType == 1 }\"\r\n @click=\"listQuery.timeType = 1\"\r\n >\r\n {{ $t(\"electrovalence.day\") }}\r\n </div>\r\n <div\r\n class=\"tab right\"\r\n :class=\"{ clicked: listQuery.timeType == 2 }\"\r\n @click=\"listQuery.timeType = 2\"\r\n >\r\n {{ $t(\"electrovalence.month\") }}\r\n </div>\r\n <el-date-picker\r\n v-show=\"listQuery.timeType == 1\"\r\n v-model=\"arrayTime\"\r\n class=\"long\"\r\n type=\"daterange\"\r\n value-format=\"yyyy-MM-dd\"\r\n range-separator=\"-\"\r\n :start-placeholder=\"$t('startTime')\"\r\n :end-placeholder=\"$t('endTime')\"\r\n @change=\"getList\"\r\n />\r\n <el-date-picker\r\n v-show=\"listQuery.timeType == 2\"\r\n v-model=\"arrayTime\"\r\n class=\"long\"\r\n type=\"monthrange\"\r\n value-format=\"yyyy-MM\"\r\n range-separator=\"-\"\r\n :start-placeholder=\"$t('startTime')\"\r\n :end-placeholder=\"$t('endTime')\"\r\n @change=\"getList\"\r\n style=\"width: 350px\"\r\n />\r\n\r\n <el-cascader\r\n v-model=\"listQuery.areaId\"\r\n class=\"filter-item\"\r\n collapse-tags\r\n :options=\"areaIdList\"\r\n :placeholder=\"$t('listQuery.areaId')\"\r\n :props=\"{ checkStrictly: true, emitPath: false }\"\r\n clearable\r\n @change=\"getList\"\r\n style=\"margin: 0; margin-left: 10px\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"cost\">\r\n <div v-for=\"i in costList\" :key=\"i.name\" class=\"costItem\">\r\n <div class=\"save\">\r\n <div>{{ i.name }}</div>\r\n <div>\r\n 节省电费<span>{{ list[i.value + \"SaveCost\"] }}</span\r\n >元\r\n </div>\r\n </div>\r\n <div class=\"rate\">\r\n <div class=\"item\">\r\n <div>电费(元)</div>\r\n <div>{{ list[i.value + \"Cost\"] }}</div>\r\n </div>\r\n <div class=\"item\">\r\n <div>市电用量(kWh)</div>\r\n <div>{{ list[i.value + \"SupplyEnergy\"] }}</div>\r\n </div>\r\n <div class=\"item\">\r\n <div>储蓄电用量(kWh)</div>\r\n <div>{{ list[i.value + \"SaveEnergy\"] }}</div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div id=\"energyEchart\"></div>\r\n </div>\r\n <div class=\"changeBox\">\r\n <div class=\"filter-container\">\r\n <div class=\"name\">\r\n <i class=\"iconfont icon-biaoti\" />\r\n <span> 价差变化图</span>\r\n </div>\r\n <div class=\"box\">\r\n <el-cascader\r\n v-model=\"listQuerys.areaId\"\r\n class=\"filter-item\"\r\n collapse-tags\r\n :options=\"areaIdLists\"\r\n :placeholder=\"$t('listQuery.areaId')\"\r\n :props=\"{ checkStrictly: true, emitPath: false }\"\r\n clearable\r\n @change=\"getEleTrendPic\"\r\n />\r\n <el-select\r\n v-model=\"listQuerys.eleTypeId\"\r\n placeholder=\"用电分类\"\r\n class=\"filter-item\"\r\n @change=\"getEleTrendPic\"\r\n >\r\n <el-option\r\n v-for=\"option in typesList\"\r\n :key=\"option.eleTypeId\"\r\n :label=\"option.eleTypeName\"\r\n :value=\"option.eleTypeId\"\r\n ></el-option>\r\n </el-select>\r\n <el-select\r\n v-model=\"listQuerys.volLevelId\"\r\n :placeholder=\"$t('electrovalence.level')\"\r\n class=\"filter-item\"\r\n @change=\"getEleTrendPic\"\r\n >\r\n <el-option\r\n v-for=\"option in levelsList\"\r\n :key=\"option.volLevelId\"\r\n :label=\"option.volLevelName\"\r\n :value=\"option.volLevelId\"\r\n ></el-option>\r\n </el-select>\r\n <el-date-picker\r\n v-model=\"listQuerys.startTime\"\r\n type=\"month\"\r\n class=\"filter-item\"\r\n placeholder=\"选择月\"\r\n value-format=\"yyyy-MM\"\r\n @change=\"getEleTrendPic\"\r\n >\r\n </el-date-picker>\r\n </div>\r\n </div>\r\n <div class=\"echart\">\r\n <div id=\"maxEchart\"></div>\r\n <div id=\"changeEchart\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport { getAreaSubByAreaId } from \"@/api/area\"\r\nimport {\r\n getElectricityLevels,\r\n getElectricityTypes,\r\n getEleTrendPic,\r\n getEleTrendChart\r\n} from \"@/api/electrovalence\"\r\nimport permission from \"@/directive/permission/index.js\" // 权限判断指令\r\nimport { switchTimeFormat } from \"@/utils/validate\"\r\nimport * as echarts from \"echarts\"\r\nexport default {\r\n directives: { permission },\r\n filters: {\r\n switchTimeFormat(val) {\r\n const validateVal = switchTimeFormat(val)\r\n return validateVal\r\n }\r\n },\r\n data() {\r\n return {\r\n listQuerys: {\r\n areaId: null,\r\n deptId: null,\r\n startTime: null,\r\n chargeType: null,\r\n eleTypeId: null,\r\n volLevelId: null\r\n },\r\n listQuery: {\r\n areaId: null,\r\n deptId: null,\r\n endTime: null,\r\n startTime: null,\r\n dayEndTime: null,\r\n dayStartTime: null,\r\n timeType: 1\r\n },\r\n type: \"day\",\r\n list: {\r\n energyList: {},\r\n flatCost: 0,\r\n flatSaveCost: 0,\r\n flatSaveEnergy: 0,\r\n flatSupplyEnergy: 0,\r\n lowCost: 0,\r\n lowSaveCost: 0,\r\n lowSaveEnergy: 0,\r\n lowSupplyEnergy: 0,\r\n peakCost: 0,\r\n flatPrice: 0.4,\r\n lowPrice: 0.3,\r\n peakPrice: 0.5,\r\n spikePrice: 0.8,\r\n peakSaveCost: 0,\r\n peakSaveEnergy: 0,\r\n peakSupplyEnergy: 0,\r\n spikeCost: 0,\r\n spikeSaveCost: 0,\r\n spikeSaveEnergy: 0,\r\n spikeSupplyEnergy: 0\r\n },\r\n areaIdList: [],\r\n areaIdLists: [],\r\n levelsList: [],\r\n typesList: [],\r\n arrayTime: [],\r\n costList: [\r\n {\r\n name: \"尖时段\",\r\n value: \"spike\"\r\n },\r\n {\r\n name: \"峰时段\",\r\n value: \"peak\"\r\n },\r\n {\r\n name: \"平时段\",\r\n value: \"flat\"\r\n },\r\n {\r\n name: \"谷时段\",\r\n value: \"low\"\r\n }\r\n ]\r\n }\r\n },\r\n watch: {\r\n arrayTime(val) {\r\n console.log(val, \"HH:mm:ss\")\r\n if (this.listQuery.timeType == 1) {\r\n this.listQuery.dayStartTime = val && val && val[0]\r\n this.listQuery.dayEndTime = val && val && val[1]\r\n this.listQuery.startTime = null\r\n this.listQuery.endTime = null\r\n } else if (this.listQuery.timeType == 2) {\r\n this.listQuery.dayStartTime = null\r\n this.listQuery.dayEndTime = null\r\n this.listQuery.startTime = val && val && val[0]\r\n this.listQuery.endTime = val && val && val[1]\r\n }\r\n }\r\n },\r\n created() {\r\n this.getBaseList()\r\n },\r\n methods: {\r\n padZero(num) {\r\n return num > 9 ? num : `0${num}`\r\n },\r\n async getBaseList() {\r\n const date = new Date()\r\n date.setMonth(date.getMonth() - 1)\r\n console.log(date)\r\n this.arrayTime = [\r\n `${date.getFullYear()}-${this.padZero(date.getMonth() + 1)}`,\r\n `${new Date().getFullYear()}-${this.padZero(new Date().getMonth() + 1)}`\r\n ]\r\n\r\n // this.listQuery.startTime = this.arrayTime[0]\r\n // this.listQuery.endTime = this.arrayTime[1]\r\n // 获取区域列表\r\n await getAreaSubByAreaId().then((res) => {\r\n this.areaIdList = res.data && this.getAreaIdList(res.data)\r\n this.areaIdLists = res.data && this.getAreaIdLists(res.data)\r\n this.listQuery.areaId = this.areaIdList[0].value\r\n })\r\n\r\n // 获取电力等级\r\n await getElectricityLevels().then((res) => {\r\n this.levelsList = res.data\r\n })\r\n // 获取电力分类\r\n await getElectricityTypes().then((res) => {\r\n this.typesList = res.data\r\n })\r\n // this.getList()\r\n // getEleTrendChart()\r\n },\r\n getList() {\r\n console.log(this.listQuery, \"this.listQuery\")\r\n getEleTrendChart(this.listQuery).then((e) => {\r\n console.log(e)\r\n this.list = e.data\r\n this.list.flatPrice = this.list.flatPrice.toFixed(2) - 0\r\n this.list.lowPrice = this.list.lowPrice.toFixed(2) - 0\r\n this.list.peakPrice = this.list.peakPrice.toFixed(2) - 0\r\n this.list.spikePrice = this.list.spikePrice.toFixed(2) - 0\r\n const list = []\r\n const data = this.list.energyList\r\n // {\r\n // \"2020-1-1\": [\r\n // { spikeEnergy: 1, peakEnergy: 2, lowEnergy: 3, flatEnergy: 4 }\r\n // ],\r\n // \"2020-1-2\": [\r\n // { spikeEnergy: 1, peakEnergy: 2, lowEnergy: 3, flatEnergy: 4 }\r\n // ]\r\n // }\r\n\r\n for (let i in data) {\r\n list.push({\r\n name: i,\r\n data: data[i]\r\n })\r\n }\r\n console.log(list, \"1111111\")\r\n const name = list.map((e) => e.name)\r\n const lists = [\r\n // sharp: '尖峰时段',\r\n // peak: '高峰时段',\r\n // shoulder: '平时段',\r\n // offPeak: '谷时段',\r\n {\r\n name: this.$t(\"electrovalence.sharp\"),\r\n type: \"bar\",\r\n stack: \"machine\",\r\n barWidth: 30,\r\n itemStyle: {\r\n color: \"#EC6941\"\r\n },\r\n data: list.map((e) => e.data[0] && e.data[0].spikeEnergy)\r\n },\r\n\r\n {\r\n name: this.$t(\"electrovalence.peak\"),\r\n type: \"bar\",\r\n stack: \"machine\",\r\n barWidth: 30,\r\n itemStyle: {\r\n color: \"#FF9100\"\r\n },\r\n data: list.map((e) => e.data[0] && e.data[0].peakEnergy)\r\n },\r\n\r\n {\r\n name: this.$t(\"electrovalence.shoulder\"),\r\n type: \"bar\",\r\n stack: \"machine\",\r\n barWidth: 30,\r\n itemStyle: {\r\n color: \"#FDF879\"\r\n },\r\n data: list.map((e) => e.data[0] && e.data[0].lowEnergy)\r\n },\r\n {\r\n name: this.$t(\"electrovalence.offPeak\"),\r\n type: \"bar\",\r\n stack: \"machine\",\r\n barWidth: 30,\r\n itemStyle: {\r\n color: \"#01FFE9\"\r\n },\r\n data: list.map((e) => e.data[0] && e.data[0].flatEnergy)\r\n }\r\n ]\r\n this.getBChert(name, lists)\r\n })\r\n },\r\n getEleTrendPic() {\r\n if (\r\n !this.listQuerys.areaId ||\r\n !this.listQuerys.startTime ||\r\n !this.listQuerys.eleTypeId ||\r\n !this.listQuerys.volLevelId\r\n ) {\r\n return\r\n }\r\n getEleTrendPic(this.listQuerys).then((e) => {\r\n e = e.data\r\n // e = {\r\n // \"chargeType1-cur\": [\r\n // {\r\n // areaId: 792,\r\n // areaName: \"地区名称1\",\r\n // relativeVal: 7.92,\r\n // time: \"2024-01\"\r\n // },\r\n // {\r\n // areaId: 792,\r\n // areaName: \"地区名称2\",\r\n // relativeVal: 7.92,\r\n // time: \"2024-01\"\r\n // }\r\n // ], //单一制当月\r\n // \"chargeType1-pre\": [\r\n // {\r\n // areaId: 792,\r\n // areaName: \"地区名称\",\r\n // relativeVal: 7.92,\r\n // time: \"2024-01\"\r\n // },\r\n // {\r\n // areaId: 792,\r\n // areaName: \"地区名称\",\r\n // relativeVal: 7.92,\r\n // time: \"2024-01\"\r\n // }\r\n // ], //单一制上月\r\n // \"chargeType2-cur\": [\r\n // {\r\n // areaId: 792,\r\n // areaName: \"地区名称1\",\r\n // relativeVal: 7.92,\r\n // time: \"2024-01\"\r\n // },\r\n // {\r\n // areaId: 792,\r\n // areaName: \"地区名称2\",\r\n // relativeVal: 7.92,\r\n // time: \"2024-01\"\r\n // }\r\n // ], //两部制当月\r\n // \"chargeType2-pre\": [\r\n // {\r\n // areaId: 792,\r\n // areaName: \"地区名称\",\r\n // relativeVal: 7.92,\r\n // time: \"2024-01\"\r\n // },\r\n // {\r\n // areaId: 792,\r\n // areaName: \"地区名称\",\r\n // relativeVal: 7.92,\r\n // time: \"2024-01\"\r\n // }\r\n // ] //两部制上月\r\n // }\r\n const name1 = e[\"chargeType1-cur\"].map((e) => e.areaName)\r\n const name2 = e[\"chargeType2-cur\"].map((e) => e.areaName)\r\n const list = [\r\n {\r\n name: this.$t(\"electrovalence.current\"),\r\n type: \"bar\",\r\n barWidth: 30,\r\n itemStyle: {\r\n color: \"#01FFE9\"\r\n },\r\n data: e[\"chargeType1-cur\"].map((e) => e.relativeVal)\r\n },\r\n {\r\n name: this.$t(\"electrovalence.last\"),\r\n type: \"bar\",\r\n barWidth: 30,\r\n itemStyle: {\r\n color: \"#FDF879\"\r\n },\r\n data: e[\"chargeType1-pre\"].map((e) => e.relativeVal)\r\n }\r\n ]\r\n\r\n const lists = [\r\n {\r\n name: this.$t(\"electrovalence.current\"),\r\n type: \"bar\",\r\n barWidth: 30,\r\n itemStyle: {\r\n color: \"#01FFE9\"\r\n },\r\n data: e[\"chargeType2-cur\"].map((e) => e.relativeVal)\r\n },\r\n {\r\n name: this.$t(\"electrovalence.last\"),\r\n type: \"bar\",\r\n barWidth: 30,\r\n itemStyle: {\r\n color: \"#FDF879\"\r\n },\r\n data: e[\"chargeType2-pre\"].map((e) => e.relativeVal)\r\n }\r\n ]\r\n this.getMaxChert(name1, list)\r\n this.getEChert(name2, lists)\r\n })\r\n },\r\n // 数组遍历\r\n getAreaIdList(data) {\r\n if (!data.length) {\r\n data = [data]\r\n }\r\n const list = data.map((res) => {\r\n const obj = {}\r\n if (res.subList) {\r\n obj.children = this.getAreaIdList(res.subList)\r\n obj.label = res.areaName\r\n obj.value = res.areaId\r\n return obj\r\n } else {\r\n obj.label = res.areaName\r\n obj.value = res.areaId\r\n return obj\r\n }\r\n })\r\n return list\r\n },\r\n getAreaIdLists(data) {\r\n if (!data.length) {\r\n data = [data]\r\n }\r\n let list = data.map((res) => {\r\n const obj = {}\r\n console.log(res.subList, \"res.subList\")\r\n if (res.subList) {\r\n obj.children = this.getAreaIdLists(res.subList)\r\n obj.label = res.areaName\r\n obj.value = res.areaId\r\n return obj\r\n } else {\r\n return obj\r\n }\r\n })\r\n list = list.filter((e) => {\r\n return e.label\r\n })\r\n if (list.length == 0) {\r\n list = null\r\n }\r\n return list\r\n },\r\n // 清空搜索选项,重置表格\r\n clearListQuery() {\r\n this.listQuery = {\r\n userId: null,\r\n curPage: 1,\r\n pageSize: 10\r\n }\r\n // this.getList()\r\n },\r\n // 搜索\r\n handleFilter() {\r\n this.listQuery.curPage = 1\r\n // this.getList()\r\n },\r\n\r\n getBChert(name, list) {\r\n var mainEchart = echarts.init(document.getElementById(\"energyEchart\"))\r\n let option = {\r\n title: {\r\n textStyle: {\r\n color: \"#222\"\r\n }\r\n },\r\n tooltip: {\r\n trigger: \"axis\",\r\n axisPointer: {\r\n // 坐标轴指示器,坐标轴触发有效\r\n type: \"shadow\" // 默认为直线,可选为:'line' | 'shadow'\r\n }\r\n //formatter: '{a}<br />{c}'\r\n },\r\n color: [\"#EC6941\", \"#FF9100\", \"#FDF879\"],\r\n legend: {\r\n show: true,\r\n top: \"10%\",\r\n left: \"5%\",\r\n icon: \"rect\",\r\n itemWidth: 15, // 图例标记的图形宽度。\r\n itemHeight: 15, // 图例标记的图形高度。\r\n textStyle: {\r\n color: \"#00BFAD\",\r\n fontSize: 14,\r\n padding: [0, 8, 0, 8]\r\n }\r\n },\r\n grid: {\r\n top: \"25%\",\r\n left: \"5%\",\r\n right: \"5%\",\r\n bottom: \"10%\",\r\n containLabel: true\r\n },\r\n xAxis: [\r\n {\r\n type: \"category\",\r\n axisLine: {\r\n //坐标轴轴线相关设置。数学上的x轴\r\n show: true,\r\n lineStyle: {\r\n color: \"rgba(1, 255, 233, 0.2)\"\r\n }\r\n },\r\n axisLabel: {\r\n //坐标轴刻度标签的相关设置\r\n textStyle: {\r\n color: \"#00BFAD\",\r\n fontSize: 12\r\n }\r\n },\r\n axisTick: {\r\n show: false\r\n },\r\n data: name\r\n }\r\n ],\r\n yAxis: [\r\n {\r\n // minInterval: 1,\r\n type: \"value\",\r\n splitLine: {\r\n show: true,\r\n lineStyle: {\r\n color: \"rgba(1, 255, 233, 0.2)\",\r\n type: \"soiled\"\r\n }\r\n },\r\n axisLabel: {\r\n show: true,\r\n textStyle: {\r\n color: \"#00BFAD\",\r\n fontSize: 14\r\n }\r\n },\r\n axisTick: {\r\n show: false\r\n }\r\n }\r\n ],\r\n series: list\r\n }\r\n mainEchart.setOption(option, true)\r\n },\r\n getMaxChert(name, list) {\r\n var mainEchart = echarts.init(document.getElementById(\"maxEchart\"))\r\n let option = {\r\n title: {\r\n text: this.$t(\"electrovalence.single\"),\r\n top: 10,\r\n left: \"40%\",\r\n textStyle: {\r\n color: \"#BEFFFF\",\r\n fontStyle: \"normal\",\r\n fontWeight: \"normal\",\r\n fontSize: \"14\"\r\n }\r\n },\r\n tooltip: {\r\n trigger: \"axis\",\r\n axisPointer: {\r\n // 坐标轴指示器,坐标轴触发有效\r\n type: \"shadow\" // 默认为直线,可选为:'line' | 'shadow'\r\n }\r\n //formatter: '{a}<br />{c}'\r\n },\r\n color: [\"#EC6941\", \"#FF9100\", \"#FDF879\"],\r\n legend: {\r\n show: true,\r\n top: \"10%\",\r\n left: \"5%\",\r\n icon: \"rect\",\r\n itemWidth: 15, // 图例标记的图形宽度。\r\n itemHeight: 15, // 图例标记的图形高度。\r\n textStyle: {\r\n color: \"#00BFAD\",\r\n fontSize: 14,\r\n padding: [0, 8, 0, 8]\r\n }\r\n },\r\n grid: {\r\n top: \"25%\",\r\n left: \"5%\",\r\n right: \"5%\",\r\n bottom: \"10%\",\r\n containLabel: true\r\n },\r\n xAxis: [\r\n {\r\n type: \"category\",\r\n axisLine: {\r\n //坐标轴轴线相关设置。数学上的x轴\r\n show: true,\r\n lineStyle: {\r\n color: \"rgba(1, 255, 233, 0.2)\"\r\n }\r\n },\r\n axisLabel: {\r\n //坐标轴刻度标签的相关设置\r\n textStyle: {\r\n color: \"#00BFAD\",\r\n fontSize: 12\r\n }\r\n },\r\n axisTick: {\r\n show: false\r\n },\r\n data: name\r\n }\r\n ],\r\n yAxis: [\r\n {\r\n // minInterval: 1,\r\n type: \"value\",\r\n splitLine: {\r\n show: true,\r\n lineStyle: {\r\n color: \"rgba(1, 255, 233, 0.2)\",\r\n type: \"soiled\"\r\n }\r\n },\r\n axisLabel: {\r\n show: true,\r\n textStyle: {\r\n color: \"#00BFAD\",\r\n fontSize: 14\r\n }\r\n },\r\n axisTick: {\r\n show: false\r\n }\r\n }\r\n ],\r\n series: list\r\n }\r\n mainEchart.setOption(option, true)\r\n },\r\n getEChert(name, list) {\r\n var mainEchart = echarts.init(document.getElementById(\"changeEchart\"))\r\n let option = {\r\n title: {\r\n text: this.$t(\"electrovalence.twopart\"),\r\n top: 10,\r\n left: \"40%\",\r\n right: 0,\r\n textStyle: {\r\n color: \"#BEFFFF\",\r\n fontStyle: \"normal\",\r\n fontWeight: \"normal\",\r\n fontSize: \"14\"\r\n }\r\n },\r\n textStyle: {\r\n color: \"#222\"\r\n },\r\n tooltip: {\r\n trigger: \"axis\",\r\n axisPointer: {\r\n // 坐标轴指示器,坐标轴触发有效\r\n type: \"shadow\" // 默认为直线,可选为:'line' | 'shadow'\r\n }\r\n //formatter: '{a}<br />{c}'\r\n },\r\n color: [\"#EC6941\", \"#FF9100\", \"#FDF879\"],\r\n legend: {\r\n show: true,\r\n top: \"10%\",\r\n left: \"5%\",\r\n icon: \"rect\",\r\n itemWidth: 15, // 图例标记的图形宽度。\r\n itemHeight: 15, // 图例标记的图形高度。\r\n textStyle: {\r\n color: \"#00BFAD\",\r\n fontSize: 14,\r\n padding: [0, 8, 0, 8]\r\n }\r\n },\r\n grid: {\r\n top: \"25%\",\r\n left: \"5%\",\r\n right: \"5%\",\r\n bottom: \"10%\",\r\n containLabel: true\r\n },\r\n xAxis: [\r\n {\r\n type: \"category\",\r\n axisLine: {\r\n //坐标轴轴线相关设置。数学上的x轴\r\n show: true,\r\n lineStyle: {\r\n color: \"rgba(1, 255, 233, 0.2)\"\r\n }\r\n },\r\n axisLabel: {\r\n //坐标轴刻度标签的相关设置\r\n textStyle: {\r\n color: \"#00BFAD\",\r\n fontSize: 12\r\n }\r\n },\r\n axisTick: {\r\n show: false\r\n },\r\n data: name\r\n }\r\n ],\r\n yAxis: [\r\n {\r\n // minInterval: 1,\r\n type: \"value\",\r\n splitLine: {\r\n show: true,\r\n lineStyle: {\r\n color: \"rgba(1, 255, 233, 0.2)\",\r\n type: \"soiled\"\r\n }\r\n },\r\n axisLabel: {\r\n show: true,\r\n textStyle: {\r\n color: \"#00BFAD\",\r\n fontSize: 14\r\n }\r\n },\r\n axisTick: {\r\n show: false\r\n }\r\n }\r\n ],\r\n series: list\r\n }\r\n mainEchart.setOption(option, true)\r\n }\r\n }\r\n}\r\n</script>\r\n<style rel=\"stylesheet/scss\" lang=\"scss\" scoped>\r\n.tab {\r\n width: 100px;\r\n text-align: center;\r\n height: 38px;\r\n border: 1px solid #00a696;\r\n line-height: 36px;\r\n font-size: 14px;\r\n font-family: Microsoft YaHei;\r\n font-weight: 400;\r\n color: #00bfad;\r\n cursor: pointer;\r\n &.left {\r\n border-radius: 2px 0px 0px 2px;\r\n border-right: 0;\r\n }\r\n &.right {\r\n border-left: 0;\r\n margin-right: 10px;\r\n border-radius: 0px 2px 2px 0px;\r\n }\r\n &.clicked {\r\n background: #02e2d4;\r\n border-color: #02e2d4;\r\n color: #ffffff;\r\n }\r\n}\r\n.name {\r\n font-size: 15px;\r\n line-height: 28px;\r\n font-family: Microsoft YaHei;\r\n font-weight: 400;\r\n color: #00bfad;\r\n position: relative;\r\n .iconfont {\r\n margin-right: 8px;\r\n }\r\n}\r\n.priceDifference {\r\n padding: 24px;\r\n .filter-container {\r\n justify-content: space-between;\r\n padding: 10px 34px;\r\n border-bottom: 1px solid #06807f;\r\n .box {\r\n display: flex;\r\n }\r\n }\r\n .priceBox {\r\n width: 100%;\r\n height: 400px;\r\n background: rgba(0, 255, 255, 0.1);\r\n border: 1px solid #06807f;\r\n }\r\n}\r\n#energyEchart {\r\n width: 100%;\r\n height: 240px;\r\n}\r\n.table-container {\r\n width: 100%;\r\n min-height: 200px;\r\n height: 385px;\r\n display: flex;\r\n\r\n border: 1px solid #06807f;\r\n border-top: none;\r\n padding: 0;\r\n .row {\r\n display: flex;\r\n height: 100%;\r\n width: 100%;\r\n .name {\r\n height: 35px;\r\n line-height: 35px;\r\n font-size: 14px;\r\n font-family: Microsoft YaHei;\r\n font-weight: 400;\r\n color: #00bfad;\r\n border-bottom: 1px solid #06807f;\r\n }\r\n\r\n .value {\r\n font-size: 14px;\r\n font-family: Microsoft YaHei;\r\n font-weight: 400;\r\n color: #deffff;\r\n }\r\n .item {\r\n width: 180px;\r\n height: 100%;\r\n text-align: center;\r\n border-right: 1px solid #06807f;\r\n .value {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n height: 100%;\r\n }\r\n }\r\n .table {\r\n flex: 1;\r\n text-align: center;\r\n .name {\r\n border-right: 1px solid #06807f;\r\n }\r\n .value {\r\n height: 35px;\r\n line-height: 35px;\r\n border-bottom: 1px solid #06807f;\r\n border-right: 1px solid #06807f;\r\n }\r\n .none {\r\n border-right: 0;\r\n }\r\n }\r\n .overFlow {\r\n height: 350px;\r\n overflow: auto;\r\n }\r\n }\r\n}\r\n.cost {\r\n width: 100%;\r\n height: 104px;\r\n padding: 0 34px;\r\n display: flex;\r\n .costItem {\r\n width: 25%;\r\n padding: 12px;\r\n height: 104px;\r\n border: 1px solid #06807f;\r\n border-left: none;\r\n border-top: none;\r\n &:first-child {\r\n border-left: 1px solid #06807f;\r\n }\r\n .save {\r\n display: flex;\r\n justify-content: space-between;\r\n font-size: 15px;\r\n font-family: Microsoft YaHei;\r\n font-weight: 400;\r\n color: #00bfad;\r\n margin-bottom: 12px;\r\n span {\r\n color: #fdf879;\r\n margin: 0 4px;\r\n }\r\n }\r\n .rate {\r\n display: flex;\r\n justify-content: space-between;\r\n font-family: Microsoft YaHei;\r\n font-weight: 400;\r\n color: rgba(0, 191, 173, 0.7);\r\n .item {\r\n div:nth-child(2) {\r\n color: #beffff;\r\n }\r\n }\r\n }\r\n }\r\n}\r\n.changeBox {\r\n margin-top: 10px;\r\n height: 310px;\r\n background: rgba(0, 255, 255, 0.1);\r\n border: 1px solid #06807f;\r\n}\r\n.echart {\r\n height: calc(100% - 63px);\r\n display: flex;\r\n div {\r\n height: 100%;\r\n width: 50%;\r\n }\r\n}\r\n</style>\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./analysis.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./analysis.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./analysis.vue?vue&type=template&id=2ba4def2&scoped=true&\"\nimport script from \"./analysis.vue?vue&type=script&lang=js&\"\nexport * from \"./analysis.vue?vue&type=script&lang=js&\"\nimport style0 from \"./analysis.vue?vue&type=style&index=0&id=2ba4def2&rel=stylesheet%2Fscss&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2ba4def2\",\n null\n \n)\n\nexport default component.exports","import store from \"@/store\";\r\n\r\nexport default {\r\n inserted(el, binding) {\r\n const { value } = binding;\r\n // const roles = store.getters && store.getters.roles\r\n const roles = store.getters && store.getters.butPermission;\r\n console.log(roles, 'roles');\r\n if (value && value instanceof Array && value.length > 0) {\r\n const permissionRoles = value;\r\n const hasPermission = roles.some(role => {\r\n return permissionRoles.includes(role);\r\n });\r\n console.log(hasPermission, 'hasPermission');\r\n if (!hasPermission) {\r\n // el.parentNode && el.parentNode.removeChild(el) \r\n\r\n store.state.user.permissionFlag[permissionRoles] = true;\r\n\r\n\r\n console.log(store.state.user.permissionFlag[permissionRoles], 'permissionRoles');\r\n const newnode = document.createElement(\"div\");\r\n newnode.style.cursor = 'not-allowed'\r\n newnode.style.display = 'inline-block'\r\n el.style.pointerEvents = \"none\"\r\n el.parentNode.insertBefore(newnode, el)\r\n el.parentNode && el.parentNode.removeChild(el)\r\n newnode.appendChild(el);\r\n console.log(el, 'permissionRoles');\r\n } else {\r\n store.state.user.permissionFlag[permissionRoles] = false;\r\n }\r\n } else {\r\n throw new Error(`need roles! Like v-permission=\"['admin','editor']\"`);\r\n }\r\n }\r\n};","import permission from \"./permission\";\n\nconst install = function(Vue) {\n Vue.directive(\"permission\", permission);\n};\n\nif (window.Vue) {\n window[\"permission\"] = permission;\n Vue.use(install); // eslint-disable-line\n}\n\npermission.install = install;\nexport default permission;\n","import request from '@/utils/request'\r\n/*\r\n 系统管理-区域管理 权限操作api\r\n*/\r\n\r\n// 查询区域列表树\r\nexport function getAreaTreeList(data) {\r\n return request({\r\n url: 'user-service/area/getAreaTreeList',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n\r\n// 查询本级节点-直系子级节点\r\nexport function getAreaSubByAreaId(data) {\r\n return request({\r\n url: 'user-service/area/getAreaSubByAreaId',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n// 删除区域\r\nexport function removeArea(data) {\r\n return request({\r\n url: 'user-service/area/removeArea',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n// 新增\r\nexport function saveArea(data) {\r\n return request({\r\n url: 'user-service/area/saveArea',\r\n method: 'post',\r\n data\r\n })\r\n}\r\n\r\n// 修改\r\nexport function updateArea(data) {\r\n return request({\r\n url: 'user-service/area/updateArea',\r\n method: 'post',\r\n data\r\n })\r\n}","/**\r\n * Created by jiachenpan on 16/11/18.\r\n */\r\n\r\n/**\r\n * @param {string} path\r\n * @returns {Boolean}\r\n */\r\nexport function isExternal(path) {\r\n return /^(https?:|mailto:|tel:)/.test(path)\r\n}\r\n/* 小写字母*/\r\nexport function validLowerCase(str) {\r\n const reg = /^[a-z]+$/\r\n return reg.test(str)\r\n}\r\n\r\n/* 大写字母*/\r\nexport function validUpperCase(str) {\r\n const reg = /^[A-Z]+$/\r\n return reg.test(str)\r\n}\r\n\r\n/* 大小写字母*/\r\nexport function validAlphabets(str) {\r\n const reg = /^[A-Za-z]+$/\r\n return reg.test(str)\r\n}\r\n\r\n/*8位16进制*/\r\nexport function validHexadecimal(rule, value, callback) {\r\n if (/^[0-9A-F]{8}$/.test(value)) {\r\n callback()\r\n } else {\r\n callback(new Error(\"请输入8位16进制数\"))\r\n }\r\n}\r\n\r\nexport function validateNumber(rule, value, callback) {\r\n console.log(!/^\\d+$|^\\d*\\.\\d+$/g.test(value), value)\r\n if (value === \"\") {\r\n callback(new Error(\"不能为空\"))\r\n } else if (!/^\\d+$|^\\d*\\.\\d+$/g.test(value)) {\r\n callback(new Error(\"只能输入数字\"))\r\n } else {\r\n callback()\r\n }\r\n}\r\n\r\nexport function validatePhone(rule, value, callback) {\r\n if (value === \"\") {\r\n callback(new Error(\"请输入手机号码\"))\r\n } else if (!/^[0-9-]+$/.test(value)) {\r\n\r\n\r\n callback(new Error(\"手机号码格式不对\"))\r\n } else {\r\n callback()\r\n }\r\n}\r\n\r\nexport function validateLong(rule, value, callback) {\r\n if (value === \"\") {\r\n callback(new Error(\"经度不能为空\"))\r\n } else if (Number(value) > 180) {\r\n callback(new Error(\"经度不能大于180\"))\r\n } else if (!/^\\d+$|^\\d*\\.\\d+$/g.test(value)) {\r\n callback(new Error(\"只允许输入数字\"))\r\n } else if (Number(value) < 0) {\r\n callback(new Error(\"数值不能小于0\"))\r\n } else {\r\n callback()\r\n }\r\n}\r\n\r\nexport function validateLat(rule, value, callback) {\r\n if (value === \"\") {\r\n callback(new Error(\"纬度不能为空\"))\r\n } else if (Number(value) > 90) {\r\n callback(new Error(\"纬度不能大于90\"))\r\n } else if (!/^\\d+$|^\\d*\\.\\d+$/g.test(value)) {\r\n callback(new Error(\"只允许输入数字\"))\r\n } else if (Number(value) < 0) {\r\n callback(new Error(\"数值不能小于0\"))\r\n } else {\r\n callback()\r\n }\r\n}\r\n\r\nexport function temperature(rule, value, callback) {\r\n if (value > 100) {\r\n callback(new Error(\"温度不能超过100\"))\r\n } else if (value < 0) {\r\n callback(new Error(\"温度不能小于0\"))\r\n } else if (value == \"\") {\r\n callback(new Error(\"数据必填\"))\r\n } else {\r\n callback()\r\n }\r\n}\r\n\r\nexport function humity(rule, value, callback) {\r\n if (value > 99) {\r\n callback(new Error(\"湿度不能超过99\"))\r\n } else if (value < 20) {\r\n callback(new Error(\"湿度不能小于20\"))\r\n } else if (value == \"\") {\r\n callback(new Error(\"数据必填\"))\r\n } else {\r\n callback()\r\n }\r\n}\r\n\r\n// 验证是否为空\r\nexport function filterNull(val) {\r\n if (val || val === 0) {\r\n if (val.length > 0) {\r\n var valReplace = val.replace(/(^\\s*)|(\\s*$)/g, \"\") // 去除字符串左右两端的空格\r\n if (valReplace) {\r\n return valReplace\r\n } else {\r\n return \"--\"\r\n }\r\n } else {\r\n return val\r\n }\r\n } else {\r\n return \"--\"\r\n }\r\n}\r\n\r\n// 验证是否为空,为空则为0\r\nexport function filterNull0(val) {\r\n if (val || val === 0) {\r\n if (val.length > 0) {\r\n var valReplace = val.replace(/(^\\s*)|(\\s*$)/g, \"\") // 去除字符串左右两端的空格\r\n if (valReplace) {\r\n return valReplace\r\n } else {\r\n return 0\r\n }\r\n } else {\r\n return val\r\n }\r\n } else {\r\n return 0\r\n }\r\n}\r\n\r\n// 验证开关状态\r\nexport function filterOpenCloseStatus(val) {\r\n if (parseInt(val) === 0) {\r\n return \"关\"\r\n } else if (parseInt(val) === 1) {\r\n return \"开\"\r\n } else {\r\n return \"--\"\r\n }\r\n}\r\n\r\n// UTC:世界标准时间转换为正常格式 \"yyyy-MM-dd' 'HH:mm:ss'\r\nexport function switchTimeFormat(time) {\r\n if (!time) {\r\n return \"\"\r\n }\r\n const dateTime = new Date(time)\r\n const year = dateTime.getFullYear()\r\n const month = dateTime.getMonth() + 1\r\n const date = dateTime.getDate()\r\n const hour = dateTime.getHours()\r\n const minute = dateTime.getMinutes()\r\n const second = dateTime.getSeconds()\r\n return (\r\n year +\r\n \"-\" +\r\n addZero(month) +\r\n \"-\" +\r\n addZero(date) +\r\n `\\n` +\r\n addZero(hour) +\r\n \":\" +\r\n addZero(minute) +\r\n \":\" +\r\n addZero(second)\r\n )\r\n}\r\n\r\nfunction addZero(v) {\r\n return v < 10 ? \"0\" + v : v\r\n}","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./analysis.vue?vue&type=style&index=0&id=2ba4def2&rel=stylesheet%2Fscss&lang=scss&scoped=true&\"","import request from '@/utils/request'\r\n// import qs from 'qs'\r\n/*\r\n 管理台-综合柜设备参数 权限操作api\r\n*/\r\n\r\n// 录入电价策略信息\r\nexport function addElectricityPloy(data) {\r\n return request({\r\n url: 'device-service/ele/addElectricityPloy',\r\n method: 'post',\r\n data\r\n })\r\n}\r\n\r\n// 根据筛选条件查询电价策略的列表信息\r\nexport function getElectricityPloyList(data) {\r\n return request({\r\n url: 'device-service/ele/getElectricityPloyList',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n// 删除电价策略\r\nexport function deleteElectricityPloy(data) {\r\n return request({\r\n url: 'device-service/ele/deleteElectricityPloy',\r\n method: 'delete',\r\n params: data\r\n })\r\n}\r\n\r\n// 批量删除电价策略\r\nexport function deleteListElectricityPloy(data) {\r\n return request({\r\n url: 'device-service/ele/deleteListElectricityPloy',\r\n method: 'delete',\r\n params: data\r\n })\r\n}\r\n\r\n// 编辑前根据ployId查询单个电价策略信息\r\nexport function getElectricityPloyByPloyId(data) {\r\n return request({\r\n url: 'device-service/ele/getElectricityPloyByPloyId',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n\r\n// 查询所有电压等级信息\r\nexport function getElectricityLevels(data) {\r\n return request({\r\n url: 'device-service/ele/getElectricityLevels',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n\r\n// 查询所有用电类型信息\r\nexport function getElectricityTypes(data) {\r\n return request({\r\n url: 'device-service//ele/getElectricityTypes',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n\r\n// 修改电价策略信息\r\nexport function updateElectricityPloy(data) {\r\n return request({\r\n url: 'device-service/ele/updateElectricityPloy',\r\n method: 'put',\r\n data\r\n })\r\n}\r\n\r\n// 修改电价策略状态信息\r\nexport function updatePloyInfo(data) {\r\n return request({\r\n url: 'device-service/ele/updatePloyInfo',\r\n method: 'put',\r\n data\r\n })\r\n}\r\n\r\n// 查询峰谷差值信息\r\nexport function getEleDifference(data) {\r\n return request({\r\n url: 'device-service/stat/getEleDifference',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n// 查询统计分析-趋势图中的时段信息\r\nexport function getEleTrendChart(data) {\r\n return request({\r\n url: 'device-service/stat/getEleTrendChart',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n// 查询统计分析-趋势图中的时段信息\r\nexport function getEleTrendPic(data) {\r\n return request({\r\n url: 'device-service/stat/getEleTrendPic',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n"],"sourceRoot":""}