{"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,SAAeU,WAAW,4BAA4Bf,YAAY,OAAOgB,MAAM,CAAC,KAAO,YAAY,eAAe,aAAa,kBAAkB,IAAI,oB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QxI,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\r\n\r\n\r\n\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":""}