Browse Source

问题修改

sunzehao 2 weeks ago
parent
commit
1613581b94

+ 1 - 1
src/components/chart/combination/area-line-chart.vue

@@ -127,7 +127,7 @@ export default {
       let chart = echarts.init(this.$el);
 
       let option = {
-        color: this.color,
+        // color: this.color,
         grid: {
           left: 40,
           right: 40,

+ 67 - 61
src/utils/nxfCodeStyle.js

@@ -1,65 +1,71 @@
-export function nxfCodeStyle(name) {
-    const faultCategories = [
-        "实时有功",
-        "实时有功可调上限",
-        "AGC指令",
-        "全场理论功率",
-        "实时有功可调下限",
-        "风速",
-        "实际发电量",
-        "检修损失电量",
-        "故障损失电量",
-        "限电损失电量",
-        "受累损失电量",
-        "性能损失电量",
-        "理论发电量",
-        "综合场用电量",
-        "上网电量",
-        "购网电量",
-        "有功设定限值",
-        "实发有功",
-        "理论功率",
-        "偏差上限",
-        "偏差下限",
-        "保证功率",
-        "平均风速",
-        "拟合功率",
-        "CP值"
-    ];
+const faultCategories = [
+    "实时有功",
+    "实时有功可调上限",
+    "AGC指令",
+    "全场理论功率",
+    "实时有功可调下限",
+    "风速",
+    "实际发电量",
+    "检修损失电量",
+    "故障损失电量",
+    "限电损失电量",
+    "受累损失电量",
+    "性能损失电量",
+    "理论发电量",
+    "综合场用电量",
+    "上网电量",
+    "购网电量",
+    "有功设定限值",
+    "实发有功",
+    "理论功率",
+    "偏差上限",
+    "偏差下限",
+    "保证功率",
+    "平均风速",
+    "拟合功率",
+    "CP值"
+];
 
-    const chartColors = [
-        "#5470C6",
-        "#91CC75",
-        "#FAC858",
-        "#EE6666",
-        "#73C0DE",
-        "#3BA272",
-        "#21A4F7",
-        "#E17E23",
-        "#C7393E",
-        "#D237D4",
-        "#FFFFFF",
-        "#05BB4C",
-        "#050BBB",
-        "#30A4AC",
-        "#F76B7B",
-        "#0ABEF7",
-        "#205081",
-        "#E96767",
-        "#41A273",
-        "#4D77FF",
-        "#01BFEC",
-        "#F2C94C",
-        "#7BBFDD",
-        "#227C84",
-        "#0EEC65"
-    ];
+const chartColors = [
+    "#5470C6",
+    "#91CC75",
+    "#FAC858",
+    "#EE6666",
+    "#73C0DE",
+    "#3BA272",
+    "#21A4F7",
+    "#E17E23",
+    "#C7393E",
+    "#D237D4",
+    "#FFFFFF",
+    "#05BB4C",
+    "#050BBB",
+    "#30A4AC",
+    "#F76B7B",
+    "#0ABEF7",
+    "#205081",
+    "#E96767",
+    "#41A273",
+    "#4D77FF",
+    "#01BFEC",
+    "#F2C94C",
+    "#7BBFDD",
+    "#227C84",
+    "#0EEC65"
+];
 
+const colorMapping = {}
+for (let i = 0; i < faultCategories.length; i++) {
+    colorMapping[faultCategories[i]] = chartColors[i];
+}
+    console.log("js====>>>", colorMapping)
+
+// const colorMapping = {};
+// faultCategories.forEach((category, index) => {
+//     colorMapping[category] = chartColors[index % chartColors.length]; // 使用 % 防止 color 数组不够长
+// });
+
+export function nxfStyle(name) {
     // 创建一个对象,将每个故障类别或部件与一种颜色对应起来
-    let colorMapping = {};
-    for (let i = 0; i < faultCategories.length; i++) {
-        colorMapping[faultCategories[i]] = chartColors[i];
-    }
-    // return colorMapping[name]
-    return colorMapping
+    return colorMapping[name] || "#ccc"
 }

+ 15 - 4
src/views/economicsOperation/benchmarkingManagement/compontent/bar-line-chart.vue

@@ -6,6 +6,7 @@
 import util from "@/helper/util.js";
 import partten from "@/helper/partten.js";
 import * as echarts from "echarts";
+import { nxfStyle } from "@/utils/nxfCodeStyle";
 
 export default {
   name: "multiple-bar-chart",
@@ -85,7 +86,17 @@ export default {
   },
   computed: {
     legend() {
-      return this.bardata.legend;
+        let arr = []
+        this.bardata.legend.forEach(it => {
+            let obj = {
+                name: it,
+                itemStyle: {
+                    color: nxfStyle(it)
+                }
+            }
+            arr.push(obj)
+        })
+      return arr
     },
     end() {
       var result = 20;
@@ -110,7 +121,7 @@ export default {
         },
         legend: {
           show: this.showLegend,
-          data: this.bardata.legend,
+          data: this.legend,
           right: 0,
           icon: "ract",
           itemWidth: 4,
@@ -249,10 +260,10 @@ export default {
           smooth: false, //平滑展示
           xAxisIndex: 0,
           lineStyle: {
-            color: "#05bb4c",
+            color: "#050BBB",
           },
           itemStyle: {
-            color: "#05bb4c",
+            color: "#050BBB",
           },
         });
       }

+ 12 - 1
src/views/economicsOperation/benchmarkingManagement/intervalBenchmarking/index.vue

@@ -292,6 +292,7 @@ import PieChart from "../../homePage/components/pieChart.vue";
 import BarCharts from "../../homePage/components/barCharts.vue";
 import dayinfo from "../compontent/dayinfo.vue";
 import dataJson from "./dataJson.json";
+import { nxfStyle } from "@/utils/nxfCodeStyle";
 export default {
   name: "intervalBenchmarking", //场际对标
   components: {
@@ -398,7 +399,7 @@ export default {
       //   this.initialization()
     },
     initialization() {
-      //   this.dataChange(dataJson.data);
+        // this.dataChange(dataJson.data);
 
       companys().then(({ data: res }) => {
         if (res.data) {
@@ -441,23 +442,28 @@ export default {
         let barList = [
           {
             name: "故障损失电量",
+            itemStyle: { color: nxfStyle("故障损失电量") },
             children: [],
             date: [],
           },
           {
             name: "检修损失电量",
+            itemStyle: { color: nxfStyle("检修损失电量") },
             children: [],
           },
           {
             name: "性能损失电量",
+            itemStyle: { color: nxfStyle("性能损失电量") },
             children: [],
           },
           {
             name: "限电损失电量",
+            itemStyle: { color: nxfStyle("限电损失电量") },
             children: [],
           },
           {
             name: "受累损失电量",
+            itemStyle: { color: nxfStyle("受累损失电量") },
             children: [],
           },
         ];
@@ -689,26 +695,31 @@ export default {
           title: "故障损失电量(万kWh)",
           yAxisIndex: 0,
           value: gzssdl,
+          itemStyle: { color: nxfStyle("故障损失电量") },
         },
         {
           title: "检修损失电量(万kWh)",
           yAxisIndex: 0,
           value: jxssdl,
+          itemStyle: { color: nxfStyle("检修损失电量") },
         },
         {
           title: "性能损失电量(万kWh)",
           yAxisIndex: 0,
           value: xnssdl,
+          itemStyle: { color: nxfStyle("性能损失电量") },
         },
         {
           title: "限电损失电量(万kWh)",
           yAxisIndex: 0,
           value: xdssdl,
+          itemStyle: { color: nxfStyle("限电损失电量") },
         },
         {
           title: "受累损失电量(万kWh)",
           yAxisIndex: 0,
           value: slssdl,
+          itemStyle: { color: nxfStyle("受累损失电量") },
         }
       );
       this.analyisDialog = analyis;

+ 67 - 4
src/views/economicsOperation/benchmarkingManagement/performanceRankingList/index.vue

@@ -175,13 +175,13 @@
       </div>
       <div class="left">
         <div :style="{ width: 'calc(100% - 130px)', height: height }">
+            <!-- :color="barColor" -->
           <bar-line-chart
             v-if="showDisplay"
             height="100%"
             width="100%"
             :bardata="bardata"
             :lineData="lineData"
-            :color="barColor"
             lineName="理论发电量"
           />
         </div>
@@ -201,7 +201,7 @@
 </template>
 
 <script>
-// import {nxfCodeStyle} from "@/utils/nxfCodeStyle.js";
+import { nxfStyle } from "@/utils/nxfCodeStyle";
 import BarLineChart from "../compontent/bar-line-chart.vue";
 import { companys } from "@/api/curveAnalyse";
 import dataJson from "./dataJson.json";
@@ -316,6 +316,7 @@ export default {
         },
       ],
       initFlag: false,
+      colorMapping: {}
     };
   },
   computed: {},
@@ -349,6 +350,68 @@ export default {
   },
   mounted() {},
   methods: {
+    test(name) {
+        const faultCategories = [
+            "实时有功",
+            "实时有功可调上限",
+            "AGC指令",
+            "全场理论功率",
+            "实时有功可调下限",
+            "风速",
+            "实际发电量",
+            "检修损失电量",
+            "故障损失电量",
+            "限电损失电量",
+            "受累损失电量",
+            "性能损失电量",
+            "理论发电量",
+            "综合场用电量",
+            "上网电量",
+            "购网电量",
+            "有功设定限值",
+            "实发有功",
+            "理论功率",
+            "偏差上限",
+            "偏差下限",
+            "保证功率",
+            "平均风速",
+            "拟合功率",
+            "CP值"
+        ];
+
+        const chartColors = [
+            "#5470C6",
+            "#91CC75",
+            "#FAC858",
+            "#EE6666",
+            "#73C0DE",
+            "#3BA272",
+            "#21A4F7",
+            "#E17E23",
+            "#C7393E",
+            "#D237D4",
+            "#FFFFFF",
+            "#05BB4C",
+            "#050BBB",
+            "#30A4AC",
+            "#F76B7B",
+            "#0ABEF7",
+            "#205081",
+            "#E96767",
+            "#41A273",
+            "#4D77FF",
+            "#01BFEC",
+            "#F2C94C",
+            "#7BBFDD",
+            "#227C84",
+            "#0EEC65"
+        ];
+
+        for (let i = 0; i < faultCategories.length; i++) {
+            this.colorMapping[faultCategories[i]] = chartColors[i];
+        }
+        return this.colorMapping[name]
+    },
     onHeaderClick(column) {
       this.target = column.property;
       this.sortList.forEach((item) => {
@@ -362,7 +425,7 @@ export default {
       this.getPerformance();
     },
     initialization() {
-      // this.dataChange(dataJson)
+    //   this.dataChange(dataJson)
       companys().then(({ data: res }) => {
         this.companyOptions = res.data;
         if (res.data.length) {
@@ -530,7 +593,7 @@ export default {
               // arr2.push(ele[i]);
               let obj = {
                 value: ele[i],
-                // itemStyle: { color: nxfCodeStyle[legend[i]] },
+                itemStyle: { color: nxfStyle([legend[i]]) },
               };
               arr2.push(obj)
             });

+ 12 - 1
src/views/economicsOperation/benchmarkingManagement/projectBenchmarking/index.vue

@@ -313,6 +313,7 @@ import PieChart from "../../homePage/components/pieChart.vue";
 import BarCharts from "../../homePage/components/barCharts.vue";
 import dayinfo from "../compontent/dayinfo.vue";
 import dataJson from "./dataJson.json";
+import { nxfStyle } from "@/utils/nxfCodeStyle";
 export default {
   name: "projectBenchmarking", //项目对标
   components: {
@@ -405,7 +406,7 @@ export default {
       this.getXmdb();
     },
     initialization() {
-      // this.dataChange(dataJson.data)
+    //   this.dataChange(dataJson.data)
 
       companys().then(({ data: res }) => {
         if (res.data) {
@@ -460,23 +461,28 @@ export default {
         let barList = [
           {
             name: "故障损失电量",
+            itemStyle: { color: nxfStyle("故障损失电量") },
             children: [],
             date: [],
           },
           {
             name: "检修损失电量",
+            itemStyle: { color: nxfStyle("检修损失电量") },
             children: [],
           },
           {
             name: "性能损失电量",
+            itemStyle: { color: nxfStyle("性能损失电量") },
             children: [],
           },
           {
             name: "限电损失电量",
+            itemStyle: { color: nxfStyle("限电损失电量") },
             children: [],
           },
           {
             name: "受累损失电量",
+            itemStyle: { color: nxfStyle("受累损失电量") },
             children: [],
           },
         ];
@@ -696,26 +702,31 @@ export default {
           title: "故障损失电量(万kWh)",
           yAxisIndex: 0,
           value: gzssdl,
+          itemStyle: { color: nxfStyle("故障损失电量") },
         },
         {
           title: "检修损失电量(万kWh)",
           yAxisIndex: 0,
           value: jxssdl,
+          itemStyle: { color: nxfStyle("检修损失电量") },
         },
         {
           title: "性能损失电量(万kWh)",
           yAxisIndex: 0,
           value: xnssdl,
+          itemStyle: { color: nxfStyle("性能损失电量") },
         },
         {
           title: "限电损失电量(万kWh)",
           yAxisIndex: 0,
           value: xdssdl,
+          itemStyle: { color: nxfStyle("限电损失电量") },
         },
         {
           title: "受累损失电量(万kWh)",
           yAxisIndex: 0,
           value: slssdl,
+          itemStyle: { color: nxfStyle("受累损失电量") },
         }
       );
       this.analyisDialog = analyis;

+ 12 - 1
src/views/economicsOperation/benchmarkingManagement/siteBenchmarking/index.vue

@@ -719,6 +719,7 @@ import PieChart from "../../homePage/components/pieChart.vue";
 import BarCharts from "../../homePage/components/barCharts.vue";
 import dayinfo from "../compontent/dayinfo.vue";
 import dataJson from "./dataJson.json";
+import { nxfStyle } from "@/utils/nxfCodeStyle";
 export default {
   name: "siteBenchmarking", //场内对标
   components: {
@@ -833,7 +834,7 @@ export default {
       //   this.initialization();
     },
     initialization() {
-      //   this.dataChange(dataJson.data);
+        // this.dataChange(dataJson.data);
 
       companys().then(({ data: res }) => {
         if (res.data) {
@@ -880,23 +881,28 @@ export default {
         let barList = [
           {
             name: "故障损失电量",
+            itemStyle: { color: nxfStyle("故障损失电量") },
             children: [],
             date: [],
           },
           {
             name: "检修损失电量",
+            itemStyle: { color: nxfStyle("检修损失电量") },
             children: [],
           },
           {
             name: "性能损失电量",
+            itemStyle: { color: nxfStyle("性能损失电量") },
             children: [],
           },
           {
             name: "限电损失电量",
+            itemStyle: { color: nxfStyle("限电损失电量") },
             children: [],
           },
           {
             name: "受累损失电量",
+            itemStyle: { color: nxfStyle("受累损失电量") },
             children: [],
           },
         ];
@@ -1131,26 +1137,31 @@ export default {
           title: "故障损失电量(万kWh)",
           yAxisIndex: 0,
           value: gzssdl,
+          itemStyle: { color: nxfStyle("故障损失电量") },
         },
         {
           title: "检修损失电量(万kWh)",
           yAxisIndex: 0,
           value: jxssdl,
+          itemStyle: { color: nxfStyle("检修损失电量") },
         },
         {
           title: "性能损失电量(万kWh)",
           yAxisIndex: 0,
           value: xnssdl,
+          itemStyle: { color: nxfStyle("性能损失电量") },
         },
         {
           title: "限电损失电量(万kWh)",
           yAxisIndex: 0,
           value: xdssdl,
+          itemStyle: { color: nxfStyle("限电损失电量") },
         },
         {
           title: "受累损失电量(万kWh)",
           yAxisIndex: 0,
           value: slssdl,
+          itemStyle: { color: nxfStyle("受累损失电量") },
         }
       );
       this.analyisDialog = analyis;

+ 12 - 1
src/views/economicsOperation/benchmarkingManagement/wiringBenchmarking/index.vue

@@ -345,6 +345,7 @@ import PieChart from "../../homePage/components/pieChart.vue";
 import BarCharts from "../../homePage/components/barCharts.vue";
 import dayinfo from "../compontent/dayinfo.vue";
 import dataJson from "./dataJson.json";
+import { nxfStyle } from "@/utils/nxfCodeStyle";
 export default {
   name: "wiringBenchmarking", //线路对标
   components: {
@@ -453,7 +454,7 @@ export default {
       this.gerXldb();
     },
     initialization() {
-      // this.dataChange(dataJson.data)
+    //   this.dataChange(dataJson.data)
 
       companys().then(({ data: res }) => {
         if (res.data) {
@@ -517,23 +518,28 @@ export default {
         let barList = [
           {
             name: "故障损失电量",
+            itemStyle: { color: nxfStyle("故障损失电量") },
             children: [],
             date: [],
           },
           {
             name: "检修损失电量",
+            itemStyle: { color: nxfStyle("检修损失电量") },
             children: [],
           },
           {
             name: "性能损失电量",
+            itemStyle: { color: nxfStyle("性能损失电量") },
             children: [],
           },
           {
             name: "限电损失电量",
+            itemStyle: { color: nxfStyle("限电损失电量") },
             children: [],
           },
           {
             name: "受累损失电量",
+            itemStyle: { color: nxfStyle("受累损失电量") },
             children: [],
           },
         ];
@@ -773,26 +779,31 @@ export default {
           title: "故障损失电量(万kWh)",
           yAxisIndex: 0,
           value: gzssdl,
+          itemStyle: { color: nxfStyle("故障损失电量") },
         },
         {
           title: "检修损失电量(万kWh)",
           yAxisIndex: 0,
           value: jxssdl,
+          itemStyle: { color: nxfStyle("检修损失电量") },
         },
         {
           title: "性能损失电量(万kWh)",
           yAxisIndex: 0,
           value: xnssdl,
+          itemStyle: { color: nxfStyle("性能损失电量") },
         },
         {
           title: "限电损失电量(万kWh)",
           yAxisIndex: 0,
           value: xdssdl,
+          itemStyle: { color: nxfStyle("限电损失电量") },
         },
         {
           title: "受累损失电量(万kWh)",
           yAxisIndex: 0,
           value: slssdl,
+          itemStyle: { color: nxfStyle("受累损失电量") },
         }
       );
       this.analyisDialog = analyis;

+ 7 - 6
src/views/economicsOperation/homePage/components/barCharts.vue

@@ -180,16 +180,17 @@ export default {
         this.list.forEach((value, index) => {
           let seriesItem = {
             name: value.name,
+            itemStyle: value.itemStyle,
             type: "bar",
             barWidth: "12",
             animation: this.firstAnimation && this.showAnimation,
             yAxisIndex: value.yAxisIndex,
-            itemStyle: {
-              borderColor: this.color[index],
-              borderWidth: 1,
-              // shadowBlur: 1,
-              // shadowColor: "#16ADD4",
-            },
+            // itemStyle: {
+            //   borderColor: this.color[index],
+            //   borderWidth: 1,
+            //   // shadowBlur: 1,
+            //   // shadowColor: "#16ADD4",
+            // },
             data: value.children,
           };
           result.push(seriesItem);

+ 1 - 0
src/views/economicsOperation/homePage/components/multiple-bar-chart.vue

@@ -259,6 +259,7 @@ export default {
             data: value.value.map((t) => {
               return t.value;
             }),
+            itemStyle: value.itemStyle,
           };
 
           if (this.barGap) {

+ 6 - 5
src/views/economicsOperation/stationAnalyse/stationElectricAnalyse/index.vue

@@ -182,6 +182,7 @@ import {
   getAllStation,
 } from "@/api/monthlyPerformanceAnalysis.js";
 import dayjs from "dayjs";
+import { nxfStyle } from "@/utils/nxfCodeStyle";
 export default {
   name: "StationElectricAnalyse",
   components: {
@@ -252,7 +253,7 @@ export default {
       }
     },
     initialization() {
-      //   this.dataChange(dataJson.data, dataJson.code);
+        // this.dataChange(dataJson.data, dataJson.code);
 
       companys().then(({ data: res }) => {
         if (res.data) {
@@ -342,22 +343,22 @@ export default {
           {
             name: "综合场用电量",
             data: resData.map((ele) => ele.zhcydl),
-            color: "#4B55AE",
+            color: nxfStyle("综合场用电量")
           },
           {
             name: "实发电量",
             data: resData.map((ele) => ele.sjdl),
-            color: "#05BB4C",
+            color: nxfStyle("实际发电量")
           },
           {
             name: "上网电量",
             data: resData.map((ele) => ele.swdl),
-            color: "#21a4f7",
+            color: nxfStyle("上网电量")
           },
           {
             name: "购网电量",
             data: resData.map((ele) => ele.gwdl),
-            color: "#FF8300",
+            color: nxfStyle("购网电量")
           },
         ];
         this.list = list;

+ 1 - 1
src/views/economicsOperation/thematicAnalysis/MTBF/index.vue

@@ -357,7 +357,7 @@ export default {
       }
     },
     initialization() {
-      // this.dataChange(dataJson.data.mtbfdata)
+    //   this.dataChange(dataJson.data.mtbfdata)
       companys().then(({ data: res }) => {
         if (res.data) {
           this.companyOptions = res.data;

+ 34 - 33
src/views/economicsOperation/thematicAnalysis/comprehensiveAnalysis/index.vue

@@ -334,6 +334,7 @@ import Get_PDF from "@/tools/htmlToPdf.js";
 import * as echarts from "echarts";
 import dataJson from "./dataJson.json";
 import dayjs from "dayjs";
+import { nxfStyle } from "@/utils/nxfCodeStyle";
 export default {
   name: "comprehensiveAnalysis",
   data() {
@@ -565,7 +566,7 @@ export default {
     },
     // 处理饼状图数据
     changePieData() {
-      let lenged = ["性能损失", "维护损失", "故障损失", "限电损失", "受累损失"];
+      let lenged = ["性能损失电量", "维护损失电量", "故障损失电量", "限电损失电量", "受累损失电量"];
       let series = [];
       let series2 = [];
       let series3 = [];
@@ -573,33 +574,33 @@ export default {
       this.comAnalysisData.forEach((it) => {
         if (it.type === "本期") {
           series = [
-            { name: "性能损失", value: it.yxnssdl },
-            { name: "维护损失", value: it.ywhssl },
-            { name: "故障损失", value: it.ygzssdl },
-            { name: "限电损失", value: it.yxdssdl },
-            { name: "受累损失", value: it.yslssdl },
+            { name: "性能损失电量", value: it.yxnssdl, itemStyle: { color: nxfStyle("性能损失电量") },},
+            { name: "维护损失电量", value: it.ywhssl, itemStyle: { color: nxfStyle("检修损失电量") },},
+            { name: "故障损失电量", value: it.ygzssdl, itemStyle: { color: nxfStyle("故障损失电量") }, },
+            { name: "限电损失电量", value: it.yxdssdl, itemStyle: { color: nxfStyle("限电损失电量") }, },
+            { name: "受累损失电量", value: it.yslssdl, itemStyle: { color: nxfStyle("受累损失电量") }, },
           ];
           series3 = [
-            { name: "性能损失", value: it.nxnssdl },
-            { name: "维护损失", value: it.nwhssl },
-            { name: "故障损失", value: it.ngzssdl },
-            { name: "限电损失", value: it.nxdssdl },
-            { name: "受累损失", value: it.nslssdl },
+            { name: "性能损失电量", value: it.nxnssdl, itemStyle: { color: nxfStyle("性能损失电量") }, },
+            { name: "维护损失电量", value: it.nwhssl, itemStyle: { color: nxfStyle("检修损失电量") }, },
+            { name: "故障损失电量", value: it.ngzssdl, itemStyle: { color: nxfStyle("故障损失电量") }, },
+            { name: "限电损失电量", value: it.nxdssdl, itemStyle: { color: nxfStyle("限电损失电量") }, },
+            { name: "受累损失电量", value: it.nslssdl, itemStyle: { color: nxfStyle("受累损失电量") }, },
           ];
         } else if (it.type === "同期") {
           series2 = [
-            { name: "性能损失", value: it.yxnssdl },
-            { name: "维护损失", value: it.ywhssl },
-            { name: "故障损失", value: it.ygzssdl },
-            { name: "限电损失", value: it.yxdssdl },
-            { name: "受累损失", value: it.yslssdl },
+            { name: "性能损失电量", value: it.yxnssdl, itemStyle: { color: nxfStyle("性能损失电量") }, },
+            { name: "维护损失电量", value: it.ywhssl, itemStyle: { color: nxfStyle("检修损失电量") }, },
+            { name: "故障损失电量", value: it.ygzssdl, itemStyle: { color: nxfStyle("故障损失电量") }, },
+            { name: "限电损失电量", value: it.yxdssdl, itemStyle: { color: nxfStyle("限电损失电量") }, },
+            { name: "受累损失电量", value: it.yslssdl, itemStyle: { color: nxfStyle("受累损失电量") }, },
           ];
           series4 = [
-            { name: "性能损失", value: it.nxnssdl },
-            { name: "维护损失", value: it.nwhssl },
-            { name: "故障损失", value: it.ngzssdl },
-            { name: "限电损失", value: it.nxdssdl },
-            { name: "受累损失", value: it.nslssdl },
+            { name: "性能损失电量", value: it.nxnssdl, itemStyle: { color: nxfStyle("性能损失电量") }, },
+            { name: "维护损失电量", value: it.nwhssl, itemStyle: { color: nxfStyle("检修损失电量") },},
+            { name: "故障损失电量", value: it.ngzssdl, itemStyle: { color: nxfStyle("故障损失电量") }, },
+            { name: "限电损失电量", value: it.nxdssdl, itemStyle: { color: nxfStyle("限电损失电量") }, },
+            { name: "受累损失电量", value: it.nslssdl, itemStyle: { color: nxfStyle("受累损失电量") }, },
           ];
         }
       });
@@ -658,45 +659,45 @@ export default {
           },
           formatter(params) {
             switch (params) {
-              case "实发电量":
+              case "实发电量电量":
                 return (
                   params +
-                  "       " +
+                  "  " +
                   series.find((val) => val.name === params)?.value
                 );
 
-              case "故障损失":
+              case "故障损失电量":
                 return (
                   params +
-                  "       " +
+                  "  " +
                   series.find((val) => val.name === params)?.value
                 );
 
-              case "维护损失":
+              case "维护损失电量":
                 return (
                   params +
-                  "       " +
+                  "  " +
                   series.find((val) => val.name === params)?.value
                 );
 
-              case "受累损失":
+              case "受累损失电量":
                 return (
                   params +
-                  "       " +
+                  "  " +
                   series.find((val) => val.name === params)?.value
                 );
 
-              case "限电损失":
+              case "限电损失电量":
                 return (
                   params +
-                  "       " +
+                  "  " +
                   series.find((val) => val.name === params)?.value
                 );
 
-              case "性能损失":
+              case "性能损失电量":
                 return (
                   params +
-                  "       " +
+                  "  " +
                   series.find((val) => val.name === params)?.value
                 );
             }

+ 2 - 2
src/views/economicsOperation/thematicAnalysis/failure/index.vue

@@ -314,7 +314,7 @@ export default {
       this.BASE.showLoading();
       switch (this.selectValue) {
         case "故障损失率":
-          // this.dataChange(dataJson.data.gzdata)
+        //   this.dataChange(dataJson.data.gzdata)
           gzsslList({
             companys: this.company,
             type: this.tabIndex,
@@ -406,7 +406,7 @@ export default {
       }
     },
     initialization() {
-      //   this.dataChange(dataJson.data.gzdata);
+        // this.dataChange(dataJson.data.gzdata);
       companys().then(({ data: res }) => {
         if (res.data) {
           this.companyOptions = res.data;

+ 1 - 1
src/views/economicsOperation/thematicAnalysis/generation/index.vue

@@ -435,7 +435,7 @@ export default {
       }
     },
     initialization() {
-      // this.dataChange(dataJson.data.fdldata)
+    //   this.dataChange(dataJson.data.fdldata)
       companys().then(({ data: res }) => {
         if (res.data) {
           this.companyOptions = res.data;

+ 1 - 1
src/views/economicsOperation/thematicAnalysis/windEnergy/index.vue

@@ -311,7 +311,7 @@ export default {
       }
     },
     initialization() {
-      //   this.dataChange(dataJson.data);
+        // this.dataChange(dataJson.data);
 
       companys().then(({ data: res }) => {
         if (res.data) {

+ 1 - 1
src/views/economicsOperation/windAnalyse/monthlyAnalysis/reportDialog.vue

@@ -31,7 +31,7 @@
           :prop="item.field"
           :label="item.name"
           header-align="center"
-          :align="item.field == 'name' ? 'left' : 'right'"
+          align="center"
           :width="item.width"
         >
         </el-table-column>

+ 4 - 1
src/views/economicsOperation/windAnalyse/singleWindAnasyle/windDetailDialog.vue

@@ -1037,6 +1037,7 @@ import {
   getApiComPie,
 } from "@/api/monthlyPerformanceAnalysis";
 import * as echarts from "echarts";
+import { nxfStyle } from "@/utils/nxfCodeStyle";
 export default {
   components: {
     panel,
@@ -1366,14 +1367,17 @@ export default {
               //     value: 1,
               //   },
             ],
+            itemStyle: { color: nxfStyle("实发有功") },
           },
           {
             text: "保证功率",
             value: [],
+            itemStyle: { color: nxfStyle("保证功率") },
           },
           {
             text: "风速",
             value: [],
+            itemStyle: { color: nxfStyle("风速") },
           },
         ];
         const lostChartUnit = ["实发功率", "保证功率", "风速"];
@@ -1593,7 +1597,6 @@ export default {
       };
       const { data: datas } = await getApiwadAjax(params);
       if (datas && datas.data) {
-        debugger;
         that.dayPowerInfo = datas.data;
       }
     },