浏览代码

title youhua

rui.jiang 4 月之前
父节点
当前提交
7f8964d2e8

+ 2 - 2
src/views/overview/components/production_indicator_unit/index.vue

@@ -80,7 +80,7 @@
             </el-table-column>
             <el-table-column prop="WindSpeedAvr" label="平均风速(m/s)">
             </el-table-column>
-            <el-table-column prop="Thi" label="利用小时(h)">
+            <el-table-column prop="Thi" label="等效利用小时(h)">
             </el-table-column>
             <el-table-column prop="Ws" label="功率曲线一致性系数">
             </el-table-column>
@@ -196,7 +196,7 @@ export default {
     isShowTinymceEditorCom: {
       default: true,
       type: Boolean,
-    },
+    },  
     isShow: {
       default: false,
       type: Boolean,

+ 28 - 24
src/views/performance/components/chartsCom/Radar.vue

@@ -124,7 +124,11 @@ export default {
           min: this.minValues[1],
         },
         { name: "平均风速", max: this.maxValues[2], min: this.minValues[2] },
-        { name: "利用小时", max: this.maxValues[3], min: this.minValues[3] },
+        {
+          name: "等效利用小时",
+          max: this.maxValues[3],
+          min: this.minValues[3],
+        },
         {
           name: "功率曲线一致性系数",
           max: this.maxValues[4],
@@ -134,11 +138,14 @@ export default {
 
       // 构建 ECharts 配置项
       const option = {
+        // backgroundColor: 'rgba(240, 240, 240, 0.5)', // 整体背景颜色
         title: {
           text: this.chartData.wind_turbine_name + "机组指标",
           left: "center",
+          textStyle: {
+            fontSize: 16, // 设置字体大小为 16px
+          },
         },
-
         tooltip: {
           trigger: "item",
           formatter: (params) => {
@@ -149,29 +156,29 @@ export default {
               "利用小时",
               "功率曲线一致性系数",
             ];
-            // 获取当前鼠标悬停的数据
             const values = params.value;
             const medianValues = window.medianValues || [];
             let content = `<strong>${params.seriesName}</strong><br/>`;
-            console.log("aa");
             for (let i = 0; i < indicators.length; i++) {
-              // 判断是否是当前鼠标悬停的指标
-              if (params.encode && params.encode[`indicator_${i}`]) {
-                // 判断当前悬停的值是否与该指标匹配
-
-                // if (params.encode[`indicator_${i}`][0] === params.dataIndex) {
-                content += `${indicators[i]}: ${values[i]}<br/>中位值: ${medianValues[i]}<br/><br/>`;
-                // }
-              }
+              content += `${indicators[i]}: ${values[i]}<br/>中位值: ${medianValues[i]}<br/><br/>`;
             }
             return content;
           },
         },
         radar: {
           indicator: indicators,
-          center: ["45%", "45%"], // 雷达图的位置
-          radius: "50%", // 设置雷达图的半径
-          splitNumber: 5, // 设置雷达图网格的数量
+          center: ["45%", "45%"],
+          radius: "50%",
+          splitNumber: 5,
+          splitArea: {
+            show: true,
+            areaStyle: {
+              color: [
+                "rgba(200, 200, 200, 0.1)",
+                "rgba(rgba(200, 200, 200, 0.1)",
+              ], // 交替背景色
+            },
+          },
         },
         toolbox: {
           feature: {
@@ -187,11 +194,11 @@ export default {
                 value: values,
                 name: this.chartData.wind_turbine_name + "机组指标",
                 lineStyle: {
-                  width: 2, // 边框宽度
-                  color: "#636efc", // 边框颜色
+                  width: 2,
+                  color: "#636efc",
                 },
                 areaStyle: {
-                  color: "rgba(99, 110, 252, 0.3)", // 填充区域的颜色
+                  color: "rgba(99, 110, 252, 0.3)",
                 },
               },
             ],
@@ -204,12 +211,9 @@ export default {
                 value: this.medianValues,
                 name: "中位值",
                 lineStyle: {
-                  width: 2, // 边框宽度
-                  color: "#f39c12", // 中位值线条颜色
-                  type: "dashed", // 中位值线条类型(虚线)
-                },
-                areaStyle: {
-                  color: "rgba(243, 156, 18, 0.3)", // 中位值的填充区域颜色
+                  width: 2,
+                  color: "#f39c12",
+                  type: "dashed",
                 },
               },
             ],

+ 2 - 2
vue.config.js

@@ -66,8 +66,8 @@ module.exports = {
         // target: "http://192.168.5.4:16200", // 石月
         // target: "http://192.168.50.235:16200", // 内网
         // target: "http://192.168.5.15:16200",
-        // target: "http://192.168.50.235:16500", //演示环境
-        target: "http://106.120.102.238:26500", //外网演示环境
+        target: "http://192.168.50.235:16500", //演示环境
+        // target: "http://106.120.102.238:26500", //外网演示环境
         // target: "http://106.120.102.238:16700", // 外网16700  生产16600
         // target: "http://10.96.137.5",
         changeOrigin: true,