|
@@ -105,14 +105,14 @@
|
|
|
<span class="dj">待机</span>
|
|
|
<span
|
|
|
:style="`color: #${$store.state.theme ? '000' : 'fff'}`"
|
|
|
- >{{ ztmap.tjsum }}</span
|
|
|
+ >{{ ztmap.djsum }}</span
|
|
|
>
|
|
|
</div>
|
|
|
<div class="info">
|
|
|
<span class="gz">故障</span>
|
|
|
<span
|
|
|
:style="`color: #${$store.state.theme ? '000' : 'fff'}`"
|
|
|
- >{{ ztmap.whsum }}</span
|
|
|
+ >{{ ztmap.jxsum }}</span
|
|
|
>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -123,7 +123,7 @@
|
|
|
<span class="wh">维护</span>
|
|
|
<span
|
|
|
:style="`color: #${$store.state.theme ? '000' : 'fff'}`"
|
|
|
- >{{ ztmap.jxsum }}</span
|
|
|
+ >{{ ztmap.whsum }}</span
|
|
|
>
|
|
|
</div>
|
|
|
<div class="info">
|
|
@@ -136,12 +136,12 @@
|
|
|
<div class="info">
|
|
|
<span
|
|
|
class="sl"
|
|
|
- :style="`color: ${$store.state.theme ? '#000' : '#fff'}`"
|
|
|
+ :style="`color:${$store.state.theme ? '#000' : '#fff'}`"
|
|
|
>受累</span
|
|
|
>
|
|
|
<span
|
|
|
:style="`color: #${$store.state.theme ? '000' : 'fff'}`"
|
|
|
- >{{ ztmap.djsum }}</span
|
|
|
+ >{{ ztmap.tjsum }}</span
|
|
|
>
|
|
|
</div>
|
|
|
<div class="info">
|
|
@@ -1056,7 +1056,7 @@ export default {
|
|
|
data: xAxis,
|
|
|
axisLine: {
|
|
|
lineStyle: {
|
|
|
- color: theme ? "1850B3" : "#fff", // 修改为需要的颜色
|
|
|
+ color: theme ? "#1850B3" : "#fff", // 修改为需要的颜色
|
|
|
},
|
|
|
},
|
|
|
},
|
|
@@ -1066,7 +1066,7 @@ export default {
|
|
|
type: "value",
|
|
|
splitLine: {
|
|
|
lineStyle: {
|
|
|
- color: ["#ccc"],
|
|
|
+ color: this.$store.state.theme ? "#000" : "#ccc",
|
|
|
type: "dashed", // 修改为虚线
|
|
|
opacity: 0.2,
|
|
|
},
|
|
@@ -1074,7 +1074,7 @@ export default {
|
|
|
name: "单位:万KWh",
|
|
|
axisLine: {
|
|
|
lineStyle: {
|
|
|
- color: theme ? "1850B3" : "#fff",
|
|
|
+ color: theme ? "#1850B3" : "#fff",
|
|
|
},
|
|
|
},
|
|
|
},
|
|
@@ -1111,6 +1111,14 @@ export default {
|
|
|
seriesSJ.push(it.power);
|
|
|
seriesYc.push(it.predictedpower);
|
|
|
});
|
|
|
+
|
|
|
+ const allPowerData = seriesGl.concat(seriesSJ, seriesYc);
|
|
|
+ const powerMin = Math.min(...allPowerData);
|
|
|
+ const powerMax = Math.max(...allPowerData);
|
|
|
+ const windSpeedMin = Math.min(...seriesSpeed);
|
|
|
+ const windSpeedMax = Math.max(...seriesSpeed);
|
|
|
+ const splitNumber = 7;
|
|
|
+
|
|
|
let series = [
|
|
|
{
|
|
|
name: "平均风速",
|
|
@@ -1124,18 +1132,21 @@ export default {
|
|
|
data: seriesGl,
|
|
|
type: "line",
|
|
|
symbol: "none",
|
|
|
+ yAxisIndex: 0,
|
|
|
},
|
|
|
{
|
|
|
name: "实际功率",
|
|
|
data: seriesSJ,
|
|
|
type: "line",
|
|
|
symbol: "none",
|
|
|
+ yAxisIndex: 0,
|
|
|
},
|
|
|
{
|
|
|
name: "预测功率",
|
|
|
data: seriesYc,
|
|
|
type: "line",
|
|
|
symbol: "none",
|
|
|
+ yAxisIndex: 0,
|
|
|
},
|
|
|
];
|
|
|
let option = {
|
|
@@ -1177,7 +1188,7 @@ export default {
|
|
|
data: xAxis,
|
|
|
axisLine: {
|
|
|
lineStyle: {
|
|
|
- color: theme ? "1850B3" : "#fff", // 修改为需要的颜色
|
|
|
+ color: theme ? "#1850B3" : "#fff", // 修改为需要的颜色
|
|
|
},
|
|
|
},
|
|
|
},
|
|
@@ -1186,7 +1197,7 @@ export default {
|
|
|
type: "value",
|
|
|
splitLine: {
|
|
|
lineStyle: {
|
|
|
- color: ["#ccc"],
|
|
|
+ color: this.$store.state.theme ? "#000" : "#ccc",
|
|
|
type: "dashed", // 修改为虚线
|
|
|
opacity: 0.2,
|
|
|
},
|
|
@@ -1194,7 +1205,18 @@ export default {
|
|
|
name: "单位:MW",
|
|
|
axisLine: {
|
|
|
lineStyle: {
|
|
|
- color: theme ? "1850B3" : "#fff",
|
|
|
+ color: theme ? "#1850B3" : "#fff",
|
|
|
+ },
|
|
|
+ },
|
|
|
+ min: powerMin,
|
|
|
+ max: powerMax, // 动态设置最大值
|
|
|
+ interval: parseFloat(
|
|
|
+ ((powerMax - powerMin) / splitNumber).toFixed(4)
|
|
|
+ ),
|
|
|
+ splitNumber,
|
|
|
+ axisLabel: {
|
|
|
+ formatter(value) {
|
|
|
+ return parseInt(value);
|
|
|
},
|
|
|
},
|
|
|
},
|
|
@@ -1202,7 +1224,7 @@ export default {
|
|
|
type: "value",
|
|
|
splitLine: {
|
|
|
lineStyle: {
|
|
|
- color: ["#ccc"],
|
|
|
+ color: this.$store.state.theme ? "#000" : "#ccc",
|
|
|
type: "dashed", // 修改为虚线
|
|
|
opacity: 0.2,
|
|
|
},
|
|
@@ -1210,7 +1232,18 @@ export default {
|
|
|
name: "单位:m/s",
|
|
|
axisLine: {
|
|
|
lineStyle: {
|
|
|
- color: theme ? "1850B3" : "#fff",
|
|
|
+ color: theme ? "#1850B3" : "#fff",
|
|
|
+ },
|
|
|
+ },
|
|
|
+ min: windSpeedMin,
|
|
|
+ max: windSpeedMax, // 动态设置最大值
|
|
|
+ splitNumber,
|
|
|
+ interval: parseFloat(
|
|
|
+ ((windSpeedMax - windSpeedMin) / splitNumber).toFixed(4)
|
|
|
+ ),
|
|
|
+ axisLabel: {
|
|
|
+ formatter(value) {
|
|
|
+ return parseFloat(value.toFixed(1));
|
|
|
},
|
|
|
},
|
|
|
},
|
|
@@ -1321,7 +1354,7 @@ export default {
|
|
|
data: xAxis,
|
|
|
axisLine: {
|
|
|
lineStyle: {
|
|
|
- color: theme ? "1850B3" : "#fff", // 修改为需要的颜色
|
|
|
+ color: theme ? "#1850B3" : "#fff", // 修改为需要的颜色
|
|
|
},
|
|
|
},
|
|
|
},
|
|
@@ -1332,7 +1365,7 @@ export default {
|
|
|
splitNumber: 3.5,
|
|
|
splitLine: {
|
|
|
lineStyle: {
|
|
|
- color: ["#ccc"],
|
|
|
+ color: this.$store.state.theme ? "#000" : "#ccc",
|
|
|
type: "dashed", // 修改为虚线
|
|
|
opacity: 0.2,
|
|
|
},
|
|
@@ -1340,7 +1373,7 @@ export default {
|
|
|
name: "单位:万KWh",
|
|
|
axisLine: {
|
|
|
lineStyle: {
|
|
|
- color: theme ? "1850B3" : "#fff",
|
|
|
+ color: theme ? "#1850B3" : "#fff",
|
|
|
},
|
|
|
},
|
|
|
},
|
|
@@ -1435,9 +1468,6 @@ export default {
|
|
|
};
|
|
|
// weatherObj.dqtq.weather = "ddddddddddddd";
|
|
|
this.weatherObj = weatherObj;
|
|
|
- // console.log(1111111111, res.data);
|
|
|
- // console.log(2222222222, weatherObj);
|
|
|
- // console.log(3333333333, JSON.stringify(res));
|
|
|
that.weatherFrom = {
|
|
|
temperature: weatherObj.dqtq.temperatureDay,
|
|
|
weather: weatherObj.dqtq.weather,
|
|
@@ -1577,21 +1607,40 @@ export default {
|
|
|
data: seriesGl,
|
|
|
type: "line",
|
|
|
symbol: "none",
|
|
|
+ yAxisIndex: 0,
|
|
|
},
|
|
|
{
|
|
|
name: "实际功率",
|
|
|
data: seriesSJ,
|
|
|
type: "line",
|
|
|
symbol: "none",
|
|
|
+ yAxisIndex: 0,
|
|
|
},
|
|
|
{
|
|
|
name: "预测功率",
|
|
|
data: seriesYc,
|
|
|
type: "line",
|
|
|
symbol: "none",
|
|
|
+ yAxisIndex: 0,
|
|
|
},
|
|
|
];
|
|
|
- that.getPowerLine(xAxis, series);
|
|
|
+
|
|
|
+ const allPowerData = seriesGl.concat(seriesSJ, seriesYc);
|
|
|
+ const powerMin = Math.min(...allPowerData);
|
|
|
+ const powerMax = Math.max(...allPowerData);
|
|
|
+ const windSpeedMin = Math.min(...seriesSpeed);
|
|
|
+ const windSpeedMax = Math.max(...seriesSpeed);
|
|
|
+ const splitNumber = 4;
|
|
|
+
|
|
|
+ that.getPowerLine(
|
|
|
+ xAxis,
|
|
|
+ series,
|
|
|
+ powerMin,
|
|
|
+ powerMax,
|
|
|
+ windSpeedMin,
|
|
|
+ windSpeedMax,
|
|
|
+ splitNumber
|
|
|
+ );
|
|
|
}
|
|
|
|
|
|
this.ylyxsList = res?.data?.yllxs || [];
|
|
@@ -1848,7 +1897,7 @@ export default {
|
|
|
data: xAxis,
|
|
|
axisLine: {
|
|
|
lineStyle: {
|
|
|
- color: theme ? "1850B3" : "#fff", // 修改为需要的颜色
|
|
|
+ color: theme ? "#1850B3" : "#fff", // 修改为需要的颜色
|
|
|
},
|
|
|
},
|
|
|
},
|
|
@@ -1865,7 +1914,7 @@ export default {
|
|
|
name: "单位:小时",
|
|
|
axisLine: {
|
|
|
lineStyle: {
|
|
|
- color: theme ? "1850B3" : "#fff",
|
|
|
+ color: theme ? "#1850B3" : "#fff",
|
|
|
},
|
|
|
},
|
|
|
},
|
|
@@ -1980,7 +2029,7 @@ export default {
|
|
|
data: xAxis,
|
|
|
axisLine: {
|
|
|
lineStyle: {
|
|
|
- color: theme ? "1850B3" : "#fff", // 修改为需要的颜色
|
|
|
+ color: theme ? "#1850B3" : "#fff", // 修改为需要的颜色
|
|
|
},
|
|
|
},
|
|
|
},
|
|
@@ -1991,7 +2040,7 @@ export default {
|
|
|
splitNumber: 3.5,
|
|
|
splitLine: {
|
|
|
lineStyle: {
|
|
|
- color: ["#ccc"],
|
|
|
+ color: this.$store.state.theme ? "#000" : "#ccc",
|
|
|
type: "dashed", // 修改为虚线
|
|
|
opacity: 0.2,
|
|
|
},
|
|
@@ -1999,7 +2048,7 @@ export default {
|
|
|
name: "单位:万KWh",
|
|
|
axisLine: {
|
|
|
lineStyle: {
|
|
|
- color: theme ? "1850B3" : "#fff",
|
|
|
+ color: theme ? "#1850B3" : "#fff",
|
|
|
},
|
|
|
},
|
|
|
},
|
|
@@ -2536,13 +2585,22 @@ export default {
|
|
|
return unit;
|
|
|
},
|
|
|
|
|
|
- getPowerLine(xAxis, series) {
|
|
|
+ getPowerLine(
|
|
|
+ xAxis,
|
|
|
+ series,
|
|
|
+ powerMin,
|
|
|
+ powerMax,
|
|
|
+ windSpeedMin,
|
|
|
+ windSpeedMax,
|
|
|
+ splitNumber
|
|
|
+ ) {
|
|
|
const theme = sessionStorage.getItem("theme") === "true" ? true : false;
|
|
|
let myChart;
|
|
|
let legendState = {};
|
|
|
if (this.chart72Options?.getOption) {
|
|
|
legendState = this.chart72Options.getOption().legend[0].selected;
|
|
|
}
|
|
|
+
|
|
|
let option = {
|
|
|
animation: this.isFirstLoad,
|
|
|
title: {
|
|
@@ -2583,7 +2641,7 @@ export default {
|
|
|
data: xAxis,
|
|
|
axisLine: {
|
|
|
lineStyle: {
|
|
|
- color: theme ? "1850B3" : "#fff", // 修改为需要的颜色
|
|
|
+ color: theme ? "#1850B3" : "#fff", // 修改为需要的颜色
|
|
|
},
|
|
|
},
|
|
|
},
|
|
@@ -2592,7 +2650,7 @@ export default {
|
|
|
type: "value",
|
|
|
splitLine: {
|
|
|
lineStyle: {
|
|
|
- color: ["#ccc"],
|
|
|
+ color: this.$store.state.theme ? "#000" : "#ccc",
|
|
|
type: "dashed", // 修改为虚线
|
|
|
opacity: 0.2,
|
|
|
},
|
|
@@ -2600,7 +2658,18 @@ export default {
|
|
|
name: "单位:MW",
|
|
|
axisLine: {
|
|
|
lineStyle: {
|
|
|
- color: theme ? "1850B3" : "#fff",
|
|
|
+ color: theme ? "#1850B3" : "#fff",
|
|
|
+ },
|
|
|
+ },
|
|
|
+ min: powerMin,
|
|
|
+ max: powerMax, // 动态设置最大值
|
|
|
+ interval: parseFloat(
|
|
|
+ ((powerMax - powerMin) / splitNumber).toFixed(4)
|
|
|
+ ),
|
|
|
+ splitNumber,
|
|
|
+ axisLabel: {
|
|
|
+ formatter(value) {
|
|
|
+ return parseInt(value);
|
|
|
},
|
|
|
},
|
|
|
},
|
|
@@ -2608,7 +2677,7 @@ export default {
|
|
|
type: "value",
|
|
|
splitLine: {
|
|
|
lineStyle: {
|
|
|
- color: ["#ccc"],
|
|
|
+ color: this.$store.state.theme ? "#000" : "#ccc",
|
|
|
type: "dashed", // 修改为虚线
|
|
|
opacity: 0.2,
|
|
|
},
|
|
@@ -2616,7 +2685,18 @@ export default {
|
|
|
name: "单位:m/s",
|
|
|
axisLine: {
|
|
|
lineStyle: {
|
|
|
- color: theme ? "1850B3" : "#fff",
|
|
|
+ color: theme ? "#1850B3" : "#fff",
|
|
|
+ },
|
|
|
+ },
|
|
|
+ min: windSpeedMin,
|
|
|
+ max: windSpeedMax, // 动态设置最大值
|
|
|
+ splitNumber,
|
|
|
+ interval: parseFloat(
|
|
|
+ ((windSpeedMax - windSpeedMin) / splitNumber).toFixed(4)
|
|
|
+ ),
|
|
|
+ axisLabel: {
|
|
|
+ formatter(value) {
|
|
|
+ return parseFloat(value.toFixed(1));
|
|
|
},
|
|
|
},
|
|
|
},
|