1 line
41 KiB
Plaintext
1 line
41 KiB
Plaintext
{"version":3,"sources":["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/priceDifference.vue?8794","webpack:///./src/api/electrovalence.js","webpack:///./src/views/manager/electrovalence/priceDifference.vue?8753","webpack:///src/views/manager/electrovalence/priceDifference.vue","webpack:///./src/views/manager/electrovalence/priceDifference.vue?5c19","webpack:///./src/views/manager/electrovalence/priceDifference.vue"],"names":["inserted","el","binding","value","roles","store","getters","butPermission","console","log","Array","length","Error","permissionRoles","hasPermission","some","role","includes","state","user","permissionFlag","newnode","document","createElement","style","cursor","display","pointerEvents","parentNode","insertBefore","removeChild","appendChild","install","Vue","directive","permission","window","use","getAreaTreeList","data","request","url","method","params","getAreaSubByAreaId","removeArea","saveArea","updateArea","validatePhone","rule","callback","test","filterNull","val","valReplace","replace","switchTimeFormat","time","dateTime","Date","year","getFullYear","month","getMonth","date","getDate","hour","getHours","minute","getMinutes","second","getSeconds","addZero","v","addElectricityPloy","getElectricityPloyList","deleteElectricityPloy","deleteListElectricityPloy","getElectricityPloyByPloyId","getElectricityLevels","getElectricityTypes","updateElectricityPloy","getEleDifference","getEleTrendChart","getEleTrendPic","render","_vm","this","_h","$createElement","_c","_self","staticClass","_m","attrs","areaIdList","$t","checkStrictly","emitPath","on","getList","model","listQuery","$$v","$set","expression","_l","option","key","eleTypeId","eleTypeName","volLevelId","volLevelName","arrayTime","class","clicked","chargeType","$event","_v","_s","list","areaName","item","relativeVal","yoyVal","qoqVal","staticRenderFns","directives","filters","validateVal","areaId","deptId","endTime","startTime","levelsList","typesList","watch","created","getBaseList","methods","padZero","num","name","type","stack","getAreaIdList","res","subList","obj","clearListQuery","userId","curPage","pageSize","handleFilter","getBChert","mainEchart","echarts","getElementById","title","textStyle","color","tooltip","trigger","axisPointer","legend","show","top","right","icon","itemWidth","itemHeight","fontSize","padding","grid","left","bottom","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,aAjFJ,WAkFMlE,KAAKe,UAAUiD,QAAU,EACzBhE,KAAKa,WAGPsD,UAtFJ,SAsFAZ,EAAAtB,GACM,IAAImC,EAAaC,EAAA,KAAatI,SAASuI,eAAe,gBAC5D,GACQC,MAAOA,CACLC,UAAWA,CACTC,MAAOA,SAGXC,QAASA,CACPC,QAASA,OACTC,YAAaA,CAEXpB,KAAMA,WAIViB,MAAOA,CAACA,UAAWA,UAAWA,WAC9BI,OAAQA,CACNC,MAAMA,EACNC,IAAKA,MACLC,MAAOA,KACPC,KAAMA,OACNC,UAAWA,GACXC,WAAYA,GACZX,UAAWA,CACTC,MAAOA,UACPW,SAAUA,GACVC,QAASA,CAACA,EAAGA,EAAGA,EAAGA,KAGvBC,KAAMA,CACJP,IAAKA,MACLQ,KAAMA,KACNP,MAAOA,KACPQ,OAAQA,MACRC,cAAcA,GAEhBC,MAAOA,CACf,CACUlC,KAAVA,WACUmC,SAAVA,CAEYb,MAAZA,EACYc,UAAZA,CACcnB,MAAdA,2BAGUoB,UAAVA,CAEYrB,UAAZA,CACcC,MAAdA,UACcW,SAAdA,KAGUU,SAAVA,CACYhB,MAAZA,GAEU9H,KAAVA,IAGQ+I,MAAOA,CACf,CAEUvC,KAAVA,QACUwC,UAAVA,CACYlB,MAAZA,EACYc,UAAZA,CACcnB,MAAdA,yBACcjB,KAAdA,WAGUqC,UAAVA,CACYf,MAAZA,EACYN,UAAZA,CACcC,MAAdA,UACcW,SAAdA,KAGUU,SAAVA,CACYhB,MAAZA,KAIQmB,OAAQA,GAEV7B,EAAWA,UAAUA,GAAQA,MC9UoV,I,wBCQnX8B,EAAY,eACd,EACApG,EACAyC,GACA,EACA,KACA,WACA,MAIa,aAAA2D,E","file":"js/chunk-24d25099.a181f82b.js","sourcesContent":["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!./priceDifference.vue?vue&type=style&index=0&id=694ef53c&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","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('el-cascader',{staticClass:\"filter-item\",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\"}}),_c('el-select',{staticClass:\"filter-item\",attrs:{\"placeholder\":_vm.$t('electrovalence.method')},on:{\"change\":_vm.getList},model:{value:(_vm.listQuery.eleTypeId),callback:function ($$v) {_vm.$set(_vm.listQuery, \"eleTypeId\", $$v)},expression:\"listQuery.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.method')},on:{\"change\":_vm.getList},model:{value:(_vm.listQuery.volLevelId),callback:function ($$v) {_vm.$set(_vm.listQuery, \"volLevelId\", $$v)},expression:\"listQuery.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:\"long\",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\"}})],1)]),_c('div',{staticClass:\"filter-container tabList\"},[_c('div',{staticClass:\"tab left\",class:{ clicked: _vm.listQuery.chargeType == 1 },on:{\"click\":function($event){;(_vm.listQuery.chargeType = 1), _vm.getList()}}},[_vm._v(\" \"+_vm._s(_vm.$t(\"electrovalence.unitary\"))+\" \")]),_c('div',{staticClass:\"tab right\",class:{ clicked: _vm.listQuery.chargeType == 2 },on:{\"click\":function($event){;(_vm.listQuery.chargeType = 2), _vm.getList()}}},[_vm._v(\" \"+_vm._s(_vm.$t(\"electrovalence.bipartite\"))+\" \")])]),_c('div',{attrs:{\"id\":\"monthEchart\"}})]),_c('div',{staticClass:\"table-container\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"item\"},[_c('div',{staticClass:\"name\"},[_vm._v(\"地区\")]),_c('div',{staticClass:\"value\"},[_vm._v(_vm._s(_vm.list[0] && _vm.list[0].areaName))])]),_c('div',{staticClass:\"item\"},[_c('div',{staticClass:\"name\"},[_vm._v(\"用电分类\")]),_c('div',{staticClass:\"value\"},[_vm._v(_vm._s(_vm.list[0] && _vm.list[0].eleTypeName))])]),_c('div',{staticClass:\"item\"},[_c('div',{staticClass:\"name\"},[_vm._v(\"电压等级\")]),_c('div',{staticClass:\"value\"},[_vm._v(_vm._s(_vm.list[0] && _vm.list[0].volLevelName))])]),_c('div',{staticClass:\"table\"},[_c('el-row',[_c('el-col',{staticClass:\"name\",attrs:{\"span\":6}},[_vm._v(\" 时间 \")]),_c('el-col',{staticClass:\"name\",attrs:{\"span\":6}},[_vm._v(\" 峰谷价差相对值 \")]),_c('el-col',{staticClass:\"name\",attrs:{\"span\":6}},[_vm._v(\" 峰谷价差同比 \")]),_c('el-col',{staticClass:\"name none\",attrs:{\"span\":6}},[_vm._v(\" 峰谷价差环比 \")])],1),_c('div',{staticClass:\"overFlow\"},_vm._l((_vm.list),function(item){return _c('el-row',{key:item},[_c('el-col',{staticClass:\"value\",attrs:{\"span\":6}},[_vm._v(_vm._s(item.time))]),_c('el-col',{staticClass:\"value\",attrs:{\"span\":6}},[_vm._v(\" \"+_vm._s(item.relativeVal)+\" \")]),_c('el-col',{staticClass:\"value\",attrs:{\"span\":6}},[_vm._v(\" \"+_vm._s(item.yoyVal)+\" \")]),_c('el-col',{staticClass:\"value none\",attrs:{\"span\":6}},[_vm._v(\" \"+_vm._s(item.qoqVal)+\" \")])],1)}),1)],1)])])])}\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(\" 峰谷价差统计\")])])}]\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 <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 />\r\n\r\n <el-select\r\n v-model=\"listQuery.eleTypeId\"\r\n :placeholder=\"$t('electrovalence.method')\"\r\n class=\"filter-item\"\r\n @change=\"getList\"\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\r\n <el-select\r\n v-model=\"listQuery.volLevelId\"\r\n :placeholder=\"$t('electrovalence.method')\"\r\n class=\"filter-item\"\r\n @change=\"getList\"\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=\"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 />\r\n </div>\r\n </div>\r\n <div class=\"filter-container tabList\">\r\n <div\r\n class=\"tab left\"\r\n :class=\"{ clicked: listQuery.chargeType == 1 }\"\r\n @click=\";(listQuery.chargeType = 1), getList()\"\r\n >\r\n {{ $t(\"electrovalence.unitary\") }}\r\n </div>\r\n <div\r\n class=\"tab right\"\r\n :class=\"{ clicked: listQuery.chargeType == 2 }\"\r\n @click=\";(listQuery.chargeType = 2), getList()\"\r\n >\r\n {{ $t(\"electrovalence.bipartite\") }}\r\n </div>\r\n </div>\r\n <div id=\"monthEchart\"></div>\r\n </div>\r\n <div class=\"table-container\">\r\n <div class=\"row\">\r\n <div class=\"item\">\r\n <div class=\"name\">地区</div>\r\n <div class=\"value\">{{ list[0] && list[0].areaName }}</div>\r\n </div>\r\n <div class=\"item\">\r\n <div class=\"name\">用电分类</div>\r\n <div class=\"value\">{{ list[0] && list[0].eleTypeName }}</div>\r\n </div>\r\n <div class=\"item\">\r\n <div class=\"name\">电压等级</div>\r\n <div class=\"value\">{{ list[0] && list[0].volLevelName }}</div>\r\n </div>\r\n <div class=\"table\">\r\n <el-row>\r\n <el-col :span=\"6\" class=\"name\"> 时间 </el-col>\r\n <!-- <el-col :span=\"5\" class=\"name\"> 峰谷价差绝对值 </el-col> -->\r\n <el-col :span=\"6\" class=\"name\"> 峰谷价差相对值 </el-col>\r\n <el-col :span=\"6\" class=\"name\"> 峰谷价差同比 </el-col>\r\n <el-col :span=\"6\" class=\"name none\"> 峰谷价差环比 </el-col>\r\n </el-row>\r\n <div class=\"overFlow\">\r\n <el-row v-for=\"item in list\" :key=\"item\">\r\n <el-col :span=\"6\" class=\"value\">{{ item.time }}</el-col>\r\n <!-- <el-col :span=\"5\" class=\"value\"> {{ item.relativeVal }}</el-col> -->\r\n <el-col :span=\"6\" class=\"value\"> {{ item.relativeVal }} </el-col>\r\n <el-col :span=\"6\" class=\"value\"> {{ item.yoyVal }} </el-col>\r\n <el-col :span=\"6\" class=\"value none\"> {{ item.qoqVal }} </el-col>\r\n </el-row>\r\n </div>\r\n </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 getEleDifference\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 listQuery: {\r\n areaId: null,\r\n chargeType: 1,\r\n deptId: null,\r\n eleTypeId: null,\r\n endTime: null,\r\n startTime: null,\r\n volLevelId: null\r\n },\r\n list: [],\r\n areaIdList: [],\r\n levelsList: [],\r\n typesList: [],\r\n arrayTime: []\r\n }\r\n },\r\n watch: {\r\n arrayTime(val) {\r\n console.log(val, \"HH:mm:ss\")\r\n this.listQuery.startTime = val && val && val[0]\r\n this.listQuery.endTime = val && val && val[1]\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.listQuery.areaId = this.areaIdList[0].value\r\n })\r\n // 获取电力等级\r\n await getElectricityLevels().then((res) => {\r\n this.levelsList = res.data\r\n this.listQuery.volLevelId = this.levelsList[0].volLevelId\r\n })\r\n // 获取电力分类\r\n await getElectricityTypes().then((res) => {\r\n this.typesList = res.data\r\n this.listQuery.eleTypeId = this.typesList[0].eleTypeId\r\n })\r\n this.getList()\r\n // getEleTrendChart()\r\n },\r\n getList() {\r\n getEleDifference(this.listQuery).then((e) => {\r\n console.log(e)\r\n this.list = e.data\r\n const list = [\r\n {\r\n name: this.list[0] && this.list[0].volLevelName,\r\n type: \"line\",\r\n stack: \"machine\",\r\n data: this.list.map((e) => e.relativeVal)\r\n }\r\n ]\r\n this.getBChert(\r\n this.list.map((e) => e.volLevelName),\r\n list\r\n )\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 // 清空搜索选项,重置表格\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(\"monthEchart\"))\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 right: \"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.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: 330px;\r\n background: rgba(0, 255, 255, 0.1);\r\n border: 1px solid #06807f;\r\n }\r\n .tabList {\r\n justify-content: flex-end;\r\n border: 0;\r\n .tab {\r\n width: 130px;\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 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 }\r\n}\r\n#monthEchart {\r\n width: 100%;\r\n height: 200px;\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</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!./priceDifference.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!./priceDifference.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./priceDifference.vue?vue&type=template&id=694ef53c&scoped=true&\"\nimport script from \"./priceDifference.vue?vue&type=script&lang=js&\"\nexport * from \"./priceDifference.vue?vue&type=script&lang=js&\"\nimport style0 from \"./priceDifference.vue?vue&type=style&index=0&id=694ef53c&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 \"694ef53c\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""} |