|
@@ -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",
|
|
|
},
|
|
|
},
|
|
|
],
|