{"remainingRequest":"E:\\2023\\yancheng0718\\yanchengPowerSupply\\node_modules\\babel-loader\\lib\\index.js!E:\\2023\\yancheng0718\\yanchengPowerSupply\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!E:\\2023\\yancheng0718\\yanchengPowerSupply\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!E:\\2023\\yancheng0718\\yanchengPowerSupply\\src\\views\\enterprisePollutionMonitoring.vue?vue&type=script&lang=js&","dependencies":[{"path":"E:\\2023\\yancheng0718\\yanchengPowerSupply\\src\\views\\enterprisePollutionMonitoring.vue","mtime":1689924721952},{"path":"E:\\2023\\yancheng0718\\yanchengPowerSupply\\babel.config.js","mtime":1689642387810},{"path":"E:\\2023\\yancheng0718\\yanchengPowerSupply\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1689642389292},{"path":"E:\\2023\\yancheng0718\\yanchengPowerSupply\\node_modules\\babel-loader\\lib\\index.js","mtime":1689642388897},{"path":"E:\\2023\\yancheng0718\\yanchengPowerSupply\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1689642389292},{"path":"E:\\2023\\yancheng0718\\yanchengPowerSupply\\node_modules\\vue-loader\\lib\\index.js","mtime":1689642396086}],"contextDependencies":[],"result":["import \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\nimport _defineProperty from \"E:/2023/yancheng0718/yanchengPowerSupply/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\n//引入echarts\nimport * as echarts from \"echarts\";\n// 工单统计弹窗组件\nimport workOrder from \"../component/workOrder.vue\";\nimport ringMainUnit from \"./HomePop/ringMainUnit.vue\";\nimport routeDetail from \"../component/routeDetail.vue\";\n\n// 线路详情\nimport lineDetail from \"../component/lineDetail.vue\";\nexport default {\n name: \"twentyKV\",\n components: {\n ringMainUnit: ringMainUnit,\n //环网柜弹窗\n workOrder: workOrder,\n //工单统计弹窗\n routeDetail: routeDetail,\n //线路故障跳闸明细\n lineDetail: lineDetail //线路详情弹窗\n },\n data: function data() {\n var _ref;\n return _ref = {\n pageShow: true,\n totals: 5,\n pageSize: 10,\n page: 1,\n threeImg: require(\"../assets/images/pieBorder.png\"),\n enlargeShow: true,\n dateList: [\"周\", \"月\"],\n acolor: true,\n //是否展示颜色\n currentIndex: -1,\n alarmInformationData: [],\n alarmInformationShow: false,\n //报警详情信息弹窗\n realTimeAlarmShow: false,\n //实时报警弹窗\n modelOthers: false,\n componentShow: \"\",\n CompanyInfo: {},\n tableData: [],\n btnArr: [\"总览\", \"环网柜\", \"分支箱\", \"箱变\", \"开闭所\"],\n btnActive: 0,\n iconGround: [{\n icon: require(\"@/assets/images/huanwanggui.png\"),\n name: \"环网柜\"\n }, {\n icon: require(\"@/assets/images/fenzhixiang.png\"),\n name: \"分支箱\"\n }, {\n icon: require(\"@/assets/images/xiangbian.png\"),\n name: \"箱变\"\n }, {\n icon: require(\"@/assets/images/kaibisuo.png\"),\n name: \"开闭所\"\n }],\n btnEnlarge: [{\n icon: require(\"@/assets/images/btnTiShi.png\")\n }, {\n icon: require(\"@/assets/images/btnFangDa.png\")\n }],\n btnEnlarge1: [{\n icon: require(\"@/assets/images/btnTiShi.png\")\n }, {\n icon: require(\"@/assets/images/suoxiao.png\")\n }],\n options: [{\n value: \"\",\n label: \"\"\n }],\n value: \"\",\n topContent: [{\n name: \"配变数量\",\n count: \"\"\n }, {\n name: \"重复停运台次\",\n count: \"\"\n }, {\n name: \"配变重复停运率\",\n count: \"\"\n }],\n device: \"\"\n }, _defineProperty(_ref, \"tableData\", []), _defineProperty(_ref, \"tableKey\", +new Date()), _defineProperty(_ref, \"scrollTop\", 0), _defineProperty(_ref, \"option\", null), _defineProperty(_ref, \"myChartBin\", null), _defineProperty(_ref, \"orderItem\", null), _defineProperty(_ref, \"orderShow\", \"\"), _defineProperty(_ref, \"routeItem\", null), _defineProperty(_ref, \"routeShow\", \"\"), _defineProperty(_ref, \"lineItem\", null), _defineProperty(_ref, \"lineShow\", \"\"), _defineProperty(_ref, \"timer\", null), _defineProperty(_ref, \"emergencyList\", []), _defineProperty(_ref, \"rowTime\", \"\"), _defineProperty(_ref, \"pvTable\", [{\n name: \"尤伟健\",\n stationNumber: \"江苏省盐城市***组47\",\n alternatorNumber: \"2022-05-27\"\n }, {\n name: \"尤伟健\",\n stationNumber: \"江苏省盐城市***组47\",\n alternatorNumber: \"2022-05-27\"\n }, {\n name: \"尤伟健\",\n stationNumber: \"江苏省盐城市***组47\",\n alternatorNumber: \"2022-05-27\"\n }, {\n name: \"尤伟健\",\n stationNumber: \"江苏省盐城市***组47\",\n alternatorNumber: \"2022-05-27\"\n }, {\n name: \"尤伟健\",\n stationNumber: \"江苏省盐城市***组47\",\n alternatorNumber: \"2022-05-27\"\n }, {\n name: \"尤伟健\",\n stationNumber: \"江苏省盐城市***组47\",\n alternatorNumber: \"2022-05-27\"\n }, {\n name: \"尤伟健\",\n stationNumber: \"江苏省盐城市***组47\",\n alternatorNumber: \"2022-05-27\"\n }, {\n name: \"尤伟健\",\n stationNumber: \"江苏省盐城市***组47\",\n alternatorNumber: \"2022-05-27\"\n }, {\n name: \"尤伟健\",\n stationNumber: \"江苏省盐城市***组47\",\n alternatorNumber: \"2022-05-27\"\n }, {\n name: \"尤伟健\",\n stationNumber: \"江苏省盐城市***组47\",\n alternatorNumber: \"2022-05-27\"\n }]), _ref;\n },\n created: function created() {},\n mounted: function mounted() {\n this.xianDuan();\n this.detailedTwo11();\n this.detailedTwo22();\n this.detailedTwo33();\n this.detailedTwo44();\n this.barCharts();\n this.detailen();\n window.parent.getLoc();\n },\n methods: {\n //地图画线\n xianDuan: function xianDuan() {\n var canvas = document.getElementById(\"myCanvas\");\n var ctx = canvas.getContext(\"2d\");\n ctx.moveTo(600, 500); // moveTo(x,y) 定义线条开始坐标\n ctx.lineTo(770, 120); // lineTo(x,y) 定义线条结束坐标\n ctx.strokeStyle = \"orange\";\n ctx.lineWidth = 5;\n ctx.font = \"26px Arial\";\n ctx.fillStyle = \"#fff\";\n ctx.fillText(\"11.87万\", 320, 140);\n ctx.fillText(\"14.76万\", 400, 200);\n ctx.fillText(\"2.113万\", 270, 360);\n ctx.fillText(\"39.12万\", 480, 285);\n ctx.fillText(\"7.399万\", 320, 440);\n ctx.fillText(\"7.399万\", 480, 410);\n ctx.fillText(\"255.1万\", 640, 465);\n ctx.fillText(\"298.4万\", 750, 660);\n ctx.stroke();\n },\n detailedTwo11: function detailedTwo11() {\n var myChart = this.$echarts.init(document.getElementById(\"detailedTwo1\"));\n var option = {\n tooltip: {\n trigger: \"axis\",\n axisPointer: {\n type: \"shadow\"\n }\n },\n legend: {\n textStyle: {\n fontSize: 18,\n //字体大小\n color: \"#ffffff\" //字体颜色\n },\n\n data: [\"用电量\", \"碳排放量\"]\n },\n xAxis: [{\n type: \"category\",\n data: [\"2530\", \"2541\", \"2542\", \"2550\", \"2610\", \"2621\"],\n axisLabel: {\n color: \"#fff\",\n fontSize: \"18\"\n }\n }],\n yAxis: [{\n type: \"value\",\n min: 0,\n max: 200,\n interval: 50,\n axisLabel: {\n formatter: \"{value}万\",\n textStyle: {\n color: \"#ffffff\",\n fontSize: 18\n }\n },\n axisLine: {\n lineStyle: {\n color: \"#fff\"\n }\n },\n splitLine: {\n show: true,\n lineStyle: {\n type: \"dashed\",\n // color: 'rgba(66, 192, 255, .3)',\n color: \"rgba(102,102,102,0.6)\",\n width: 1\n }\n }\n }],\n series: [{\n name: \"用电量\",\n type: \"bar\",\n itemStyle: {\n color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{\n offset: 1,\n color: \"rgba(86,254,226,.2) \"\n }, {\n offset: 0.5,\n color: \"rgb(86,254,226,.6)\"\n }, {\n offset: 0,\n color: \"rgb(86,254,226)\"\n }]),\n borderRadius: [7, 7, 0, 0],\n // 柱状图圆角\n borderWidth: 0\n },\n emphasis: {\n focus: \"series\"\n },\n data: [150, 63, 72, 33, 47, 88]\n }, {\n name: \"碳排放量\",\n type: \"bar\",\n itemStyle: {\n color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{\n offset: 1,\n color: \"rgba(255,255,0,.2) \"\n }, {\n offset: 0.5,\n color: \"rgb(255,255,0,.6)\"\n }, {\n offset: 0,\n color: \"rgb(255,255,0)\"\n }]),\n borderRadius: [7, 7, 0, 0],\n // 柱状图圆角\n borderWidth: 0\n },\n emphasis: {\n focus: \"series\"\n },\n data: [45, 123, 35, 67, 58, 124]\n }]\n };\n myChart.setOption(option);\n window.addEventListener(\"resize\", function () {\n myChart.resize();\n });\n },\n detailedTwo22: function detailedTwo22() {\n var myChart = this.$echarts.init(document.getElementById(\"detailedTwo2\"));\n var honorData = [{\n name: \"用电量(单位:亿)\",\n data: [9.4, 8.1, 7.3, 8.6, 6.6]\n }, {\n name: \"碳排放量(单位:万)\",\n data: [9.4, 8.1, 7.3, 8.6, 6.6]\n }];\n var honorXAxisData = [\"No.5\", \"No.4\", \"No.3\", \"No.2\", \"No.1\"];\n var nameList = [\"滨海县\", \"阜宁县\", \"射阳县\", \"建湖县\", \"盐都区\"];\n var option = {\n color: [\"#0F9AF8\", \"#2039C3\", \"rgba(32,57,195,.5)\", \"#2ECACE\"],\n tooltip: {\n trigger: \"axis\",\n axisPointer: {\n type: \"none\"\n }\n },\n legend: {\n right: 5,\n top: \"5%\",\n itemWidth: 10,\n itemHeight: 10,\n itemGap: 15,\n textStyle: {\n color: \"#fff\",\n fontSize: 18\n }\n },\n grid: {\n top: \"15%\",\n left: \"14%\",\n right: \"0%\",\n bottom: \"0%\"\n },\n xAxis: [{\n type: \"value\",\n show: false,\n axisLine: {\n show: false\n },\n axisTick: {\n show: false\n },\n axisLabel: {\n color: \"#6B9DD7\",\n fontSize: 16,\n // 文字大小\n fontWeight: 400,\n interval: 0,\n formatter: function formatter(value) {\n return value + \"(万元)\";\n }\n },\n splitLine: {\n show: false\n }\n }],\n yAxis: [{\n type: \"category\",\n offset: 17,\n axisLine: {\n show: false\n },\n axisTick: {\n show: false\n },\n axisLabel: {\n color: \"#fff\",\n fontSize: 20,\n // 文字大小\n fontWeight: 700,\n interval: 0\n },\n data: honorXAxisData\n }, {\n //名称\n type: \"category\",\n offset: -10,\n position: \"left\",\n axisLine: {\n show: false\n },\n inverse: true,\n axisTick: {\n show: false\n },\n axisLabel: {\n interval: 0,\n color: \"#fff\",\n align: \"left\",\n verticalAlign: \"bottom\",\n lineHeight: 40,\n fontSize: 20\n },\n data: nameList\n }],\n series: [{\n name: \"用电量(单位:亿)\",\n type: \"bar\",\n stack: \"zongliang\",\n barWidth: \"25%\",\n barGap: 15,\n // 柱图之间的间距\n itemStyle: {\n //自定义颜色\n normal: {\n color: \"orange\"\n }\n },\n label: {\n normal: {\n show: true,\n position: [\"80%\", \"-100%\"],\n formatter: function formatter(params) {\n return params.value;\n },\n textStyle: {\n color: \"#fff\",\n fontSize: 18\n }\n }\n },\n data: honorData[0].data\n }, {\n name: \"碳排放量(单位:万)\",\n type: \"bar\",\n stack: \"zongliang\",\n barWidth: \"25%\",\n label: {\n normal: {\n show: true,\n position: [\"80%\", \"-100%\"],\n formatter: function formatter(params) {\n return params.value;\n },\n textStyle: {\n color: \"#fff\",\n fontSize: 18\n }\n }\n },\n data: honorData[1].data\n }]\n };\n myChart.setOption(option);\n window.addEventListener(\"resize\", function () {\n myChart.resize();\n });\n },\n detailedTwo33: function detailedTwo33() {\n var myChart = this.$echarts.init(document.getElementById(\"detailedTwo3\"));\n var honorData = [{\n name: \"用电量(单位:亿)\",\n data: [9.4, 8.1, 7.3, 8.6, 6.6]\n }, {\n name: \"碳排放量(单位:万)\",\n data: [9.4, 8.1, 7.3, 8.6, 6.6]\n }];\n var honorXAxisData = [\"No.5\", \"No.4\", \"No.3\", \"No.2\", \"No.1\"];\n var nameList = [\"滨海县\", \"阜宁县\", \"射阳县\", \"建湖县\", \"盐都区\"];\n var option = {\n color: [\"#0F9AF8\", \"#2039C3\", \"rgba(32,57,195,.5)\", \"#2ECACE\"],\n tooltip: {\n trigger: \"axis\",\n axisPointer: {\n type: \"none\"\n }\n },\n legend: {\n right: 5,\n top: \"5%\",\n itemWidth: 10,\n itemHeight: 10,\n itemGap: 15,\n textStyle: {\n color: \"#fff\",\n fontSize: 18\n }\n },\n grid: {\n top: \"15%\",\n left: \"14%\",\n right: \"0%\",\n bottom: \"0%\"\n },\n xAxis: [{\n type: \"value\",\n show: false,\n axisLine: {\n show: false\n },\n axisTick: {\n show: false\n },\n axisLabel: {\n color: \"#6B9DD7\",\n fontSize: 16,\n // 文字大小\n fontWeight: 400,\n interval: 0,\n formatter: function formatter(value) {\n return value + \"(万元)\";\n }\n },\n splitLine: {\n show: false\n }\n }],\n yAxis: [{\n type: \"category\",\n offset: 17,\n axisLine: {\n show: false\n },\n axisTick: {\n show: false\n },\n axisLabel: {\n color: \"#fff\",\n fontSize: 20,\n // 文字大小\n fontWeight: 700,\n interval: 0\n },\n data: honorXAxisData\n }, {\n //名称\n type: \"category\",\n offset: -10,\n position: \"left\",\n axisLine: {\n show: false\n },\n inverse: true,\n axisTick: {\n show: false\n },\n axisLabel: {\n interval: 0,\n color: \"#fff\",\n align: \"left\",\n verticalAlign: \"bottom\",\n lineHeight: 40,\n fontSize: 20\n },\n data: nameList\n }],\n series: [{\n name: \"用电量(单位:亿)\",\n type: \"bar\",\n stack: \"zongliang\",\n barWidth: \"25%\",\n barGap: 15,\n // 柱图之间的间距\n itemStyle: {\n //自定义颜色\n normal: {\n color: \"orange\"\n }\n },\n label: {\n normal: {\n show: true,\n position: [\"80%\", \"-100%\"],\n formatter: function formatter(params) {\n return params.value;\n },\n textStyle: {\n color: \"#fff\",\n fontSize: 18\n }\n }\n },\n data: honorData[0].data\n }, {\n name: \"碳排放量(单位:万)\",\n type: \"bar\",\n stack: \"zongliang\",\n barWidth: \"25%\",\n label: {\n normal: {\n show: true,\n position: [\"80%\", \"-100%\"],\n formatter: function formatter(params) {\n return params.value;\n },\n textStyle: {\n color: \"#fff\",\n fontSize: 18\n }\n }\n },\n data: honorData[1].data\n }]\n };\n myChart.setOption(option);\n window.addEventListener(\"resize\", function () {\n myChart.resize();\n });\n },\n detailedTwo44: function detailedTwo44() {\n var myChart = this.$echarts.init(document.getElementById(\"detailedTwo4\"));\n var data = [{\n name: \"核燃料加工\",\n value: 2530\n }, {\n name: \"煤加工\",\n value: 2541\n }, {\n name: \"煤制品制造\",\n value: 2542\n }, {\n name: \"生物质燃料加工\",\n value: 2530\n }, {\n name: \"基础化学原料制造\",\n value: 2541\n }, {\n name: \"氮肥制造\",\n value: 2542\n }];\n var arrName = getArrayValue(data, \"name\");\n var arrValue = getArrayValue(data, \"value\");\n var sumValue = eval(arrValue.join(\"+\"));\n var objData = array2obj(data, \"name\");\n var optionData = getData(data);\n function getArrayValue(array, key) {\n var key = key || \"value\";\n var res = [];\n if (array) {\n array.forEach(function (t) {\n res.push(t[key]);\n });\n }\n return res;\n }\n function array2obj(array, key) {\n var resObj = {};\n for (var i = 0; i < array.length; i++) {\n resObj[array[i][key]] = array[i];\n }\n return resObj;\n }\n function getData(data) {\n var res = {\n series: [],\n yAxis: []\n };\n for (var i = 0; i < data.length; i++) {\n // console.log([70 - i * 15 + '%', 67 - i * 15 + '%']);\n res.series.push({\n name: \"\",\n type: \"pie\",\n clockWise: false,\n //顺时加载\n hoverAnimation: false,\n //鼠标移入变大\n radius: [85 - i * 15 + \"%\", 88 - i * 15 + \"%\"],\n center: [\"30%\", \"55%\"],\n label: {\n show: false\n },\n itemStyle: {\n label: {\n show: false\n },\n labelLine: {\n show: false\n },\n borderWidth: 5\n },\n data: [{\n value: data[i].value,\n name: data[i].name\n }, {\n value: sumValue - data[i].value,\n name: \"\",\n itemStyle: {\n color: \"rgba(0,0,0,0)\",\n borderWidth: 0\n },\n tooltip: {\n show: false\n },\n hoverAnimation: false\n }]\n });\n res.series.push({\n name: \"\",\n type: \"pie\",\n silent: true,\n z: 1,\n clockWise: false,\n //顺时加载\n hoverAnimation: false,\n //鼠标移入变大\n radius: [85 - i * 15 + \"%\", 88 - i * 15 + \"%\"],\n center: [\"30%\", \"55%\"],\n label: {\n show: false\n },\n itemStyle: {\n label: {\n show: false\n },\n labelLine: {\n show: false\n },\n borderWidth: 5\n },\n data: [{\n value: 7.5,\n itemStyle: {\n color: \"rgb(3, 31, 62)\",\n borderWidth: 0\n },\n tooltip: {\n show: false\n },\n hoverAnimation: false\n }, {\n value: 2.5,\n name: \"\",\n itemStyle: {\n color: \"rgba(0,0,0,0)\",\n borderWidth: 0\n },\n tooltip: {\n show: false\n },\n hoverAnimation: false\n }]\n });\n res.yAxis.push(data[i].name);\n }\n return res;\n }\n var option = {\n legend: {\n show: true,\n icon: \"circle\",\n top: \"center\",\n left: \"60%\",\n data: arrName,\n width: 200,\n padding: [0, 5],\n itemGap: 25,\n formatter: function formatter(name) {\n return \"{title|\" + name + \"}{value|\" + \" \" + objData[name].value + \"}\";\n },\n textStyle: {\n rich: {\n title: {\n fontSize: 18,\n lineHeight: 20,\n width: 150,\n color: \"#fff\"\n },\n value: {\n fontSize: 18,\n lineHeight: 20,\n width: 50,\n color: \"#fff\"\n }\n }\n }\n },\n tooltip: {\n show: true,\n trigger: \"item\",\n formatter: \"{a}
{b}:{c}({d}%)\"\n },\n color: [\"rgb(24, 183, 142)\", \"rgb(1, 179, 238)\", \"rgb(22, 75, 205)\", \"rgb(52, 52, 176)\"],\n grid: {\n top: \"8%\",\n bottom: \"50%\",\n left: \"30%\",\n containLabel: false\n },\n yAxis: [{\n type: \"category\",\n inverse: true,\n axisLine: {\n show: false\n },\n axisTick: {\n show: false\n },\n axisLabel: {\n interval: 0,\n inside: true,\n textStyle: {\n color: \"#fff\",\n fontSize: 18\n },\n show: true\n },\n data: optionData.yAxis\n }],\n xAxis: [{\n show: false\n }],\n series: optionData.series\n };\n myChart.setOption(option);\n window.addEventListener(\"resize\", function () {\n myChart.resize();\n });\n },\n barCharts: function barCharts() {\n var myChart = this.$echarts.init(document.getElementById(\"barCharts\"));\n var honorData = [{\n name: \"用电量(单位:亿)\",\n data: [9.4, 8.1, 7.3, 8.6, 6.6]\n }, {\n name: \"碳排放量(单位:万)\",\n data: [9.4, 8.1, 7.3, 8.6, 6.6]\n }];\n var honorXAxisData = [\"No.5\", \"No.4\", \"No.3\", \"No.2\", \"No.1\"];\n var nameList = [\"滨海县\", \"阜宁县\", \"射阳县\", \"建湖县\", \"盐都区\"];\n var option = {\n color: [\"#0F9AF8\", \"#2039C3\", \"rgba(32,57,195,.5)\", \"#2ECACE\"],\n tooltip: {\n trigger: \"axis\",\n axisPointer: {\n type: \"none\"\n }\n },\n legend: {\n right: 5,\n top: \"5%\",\n itemWidth: 10,\n itemHeight: 10,\n itemGap: 15,\n textStyle: {\n color: \"#fff\",\n fontSize: 18\n }\n },\n grid: {\n top: \"15%\",\n left: \"14%\",\n right: \"0%\",\n bottom: \"0%\"\n },\n xAxis: [{\n type: \"value\",\n show: false,\n axisLine: {\n show: false\n },\n axisTick: {\n show: false\n },\n axisLabel: {\n color: \"#6B9DD7\",\n fontSize: 16,\n // 文字大小\n fontWeight: 400,\n interval: 0,\n formatter: function formatter(value) {\n return value + \"(万元)\";\n }\n },\n splitLine: {\n show: false\n }\n }],\n yAxis: [{\n type: \"category\",\n offset: 17,\n axisLine: {\n show: false\n },\n axisTick: {\n show: false\n },\n axisLabel: {\n color: \"#fff\",\n fontSize: 20,\n // 文字大小\n fontWeight: 700,\n interval: 0\n },\n data: honorXAxisData\n }, {\n //名称\n type: \"category\",\n offset: -10,\n position: \"left\",\n axisLine: {\n show: false\n },\n inverse: true,\n axisTick: {\n show: false\n },\n axisLabel: {\n interval: 0,\n color: \"#fff\",\n align: \"left\",\n verticalAlign: \"bottom\",\n lineHeight: 40,\n fontSize: 20\n },\n data: nameList\n }],\n series: [{\n name: \"用电量(单位:亿)\",\n type: \"bar\",\n stack: \"zongliang\",\n barWidth: \"25%\",\n barGap: 15,\n // 柱图之间的间距\n itemStyle: {\n //自定义颜色\n normal: {\n color: \"orange\"\n }\n },\n label: {\n normal: {\n show: true,\n position: [\"80%\", \"-100%\"],\n formatter: function formatter(params) {\n return params.value;\n },\n textStyle: {\n color: \"#fff\",\n fontSize: 18\n }\n }\n },\n data: honorData[0].data\n }, {\n name: \"碳排放量(单位:万)\",\n type: \"bar\",\n stack: \"zongliang\",\n barWidth: \"25%\",\n label: {\n normal: {\n show: true,\n position: [\"80%\", \"-100%\"],\n formatter: function formatter(params) {\n return params.value;\n },\n textStyle: {\n color: \"#fff\",\n fontSize: 18\n }\n }\n },\n data: honorData[1].data\n }]\n };\n myChart.setOption(option);\n window.addEventListener(\"resize\", function () {\n myChart.resize();\n });\n },\n detailen: function detailen() {\n var myChart = this.$echarts.init(document.getElementById(\"detailen\"));\n var option = {\n color: [\"#EAEA26\", \"#906BF9\", \"#FE5656\", \"#01E17E\", \"#3DD1F9\", \"#FFAD05\"],\n grid: {\n left: -100,\n top: 50,\n bottom: 10,\n right: 10,\n containLabel: true\n },\n // tooltip: {\n // trigger: \"item\",\n // formatter: \"{b} : {c} ({d}%)\",\n // },\n tooltip: {\n trigger: \"item\",\n backgroundColor: \"#017D7D\",\n // 修改背景颜色\n borderColor: \"#66FFFF\",\n // 修改字体颜色\n className: \"custom-tooltip-box\",\n formatter: function formatter(params) {\n console.log(params);\n // 循环处理数据,展示数据\n // \"
客户名称 | \r\n用电地址 | \r\n用电日期 | \r\n
{{ item.name }} | \r\n{{ item.stationNumber }} | \r\n{{ item.alternatorNumber }} | \r\n