|
@@ -174,7 +174,7 @@
|
|
|
<table class="table-card">
|
|
|
<tr class="">
|
|
|
<td class="text gray">装机容量</td>
|
|
|
- <td class="value green">{{ Number(jczbmap.zjrl)}}</td>
|
|
|
+ <td class="value green">{{ Number(jczbmap.zjrl) }}</td>
|
|
|
<td class="unit gray">MW</td>
|
|
|
</tr>
|
|
|
<tr class="">
|
|
@@ -187,7 +187,7 @@
|
|
|
{{ wpId === "0" ? "减排二氧化硫" : "年运行小时" }}
|
|
|
</td>
|
|
|
<td class="value green">
|
|
|
- <!-- {{ wpId === "0" ? jczbmap.jpeyhl : gxkmap.nyxxs }} -->
|
|
|
+ <!-- {{ wpId === "0" ? jczbmap.jpeyhl : gxkmap.nyxxs }} -->
|
|
|
{{ wpId === "0" ? jczbmap.jpeyhl : gxkmap.nyxxs }}
|
|
|
</td>
|
|
|
<!-- <td class="unit gray">
|
|
@@ -203,7 +203,7 @@
|
|
|
</td>
|
|
|
<td class="value green">
|
|
|
<!-- {{ wpId === "0" ? jczbmap.jpeyht : gxkmap.ndxkyss }} -->
|
|
|
- {{ wpId === "0" ? jczbmap.jpeyht : gxkmap.ndxkyss }}
|
|
|
+ {{ wpId === "0" ? jczbmap.jpeyht : gxkmap.ndxkyss }}
|
|
|
</td>
|
|
|
<!-- <td class="unit gray">{{ wpId === "0" ? "万吨" : "%" }}</td> -->
|
|
|
<td class="unit gray">{{ wpId === "0" ? "吨" : "%" }}</td>
|
|
@@ -214,7 +214,7 @@
|
|
|
</td>
|
|
|
<td class="value green">
|
|
|
<!-- {{ wpId === "0" ? jczbmap.jys : gxkmap.ngzxs }} -->
|
|
|
- {{ wpId === "0" ? jczbmap.jys : gxkmap.ngzxs }}
|
|
|
+ {{ wpId === "0" ? jczbmap.jys : gxkmap.ngzxs }}
|
|
|
</td>
|
|
|
<!-- <td class="unit gray">
|
|
|
{{ wpId === "0" ? "万吨" : "小时" }}
|
|
@@ -229,7 +229,7 @@
|
|
|
</td>
|
|
|
<td class="value green">
|
|
|
<!-- {{ wpId === "0" ? jczbmap.jybm : gxkmap.ndjxs }} -->
|
|
|
- {{ wpId === "0" ? jczbmap.jybm : gxkmap.ndjxs }}
|
|
|
+ {{ wpId === "0" ? jczbmap.jybm : gxkmap.ndjxs }}
|
|
|
</td>
|
|
|
<!-- <td class="unit gray">
|
|
|
{{ wpId === "0" ? "万吨" : "小时" }}
|
|
@@ -791,15 +791,27 @@
|
|
|
top="10vh"
|
|
|
custom-class="modal"
|
|
|
:close-on-click-modal="true"
|
|
|
- @closed="dialogType = ''"
|
|
|
+ @closed="
|
|
|
+ (res) => {
|
|
|
+ dialogType = '';
|
|
|
+ powerLineChartData = null;
|
|
|
+ }
|
|
|
+ "
|
|
|
>
|
|
|
<Table :data="dialogData" v-if="dialogType === 'table'" />
|
|
|
<multiple-y-line-chart-normal
|
|
|
height="500px"
|
|
|
+ :list="powerLineChartData"
|
|
|
+ :yAxises="powerLineChartYAxises"
|
|
|
+ :showLegend="true"
|
|
|
+ v-if="dialogType === 'powerLineChart' && powerLineChartData"
|
|
|
+ />
|
|
|
+ <multiple-y-line-chart-normal
|
|
|
+ height="500px"
|
|
|
:list="Powertrend"
|
|
|
:yAxises="PowertrendYAxises"
|
|
|
:showLegend="true"
|
|
|
- v-if="dialogType === 'powerLineChart'"
|
|
|
+ v-if="dialogType === 'powerLineChart' && !powerLineChartData"
|
|
|
/>
|
|
|
<multiple-bar-chart
|
|
|
height="500px"
|
|
@@ -881,6 +893,7 @@ export default {
|
|
|
tqmap: {},
|
|
|
nowTime: "",
|
|
|
planBtnName: "全部",
|
|
|
+ powerLineChartYAxises: [],
|
|
|
powerLineChartData: [
|
|
|
{
|
|
|
title: "",
|
|
@@ -959,7 +972,6 @@ export default {
|
|
|
wpId: that.wpId,
|
|
|
},
|
|
|
success(res) {
|
|
|
- console.log("resWeather:", res);
|
|
|
const keys = ["wd", "sd"];
|
|
|
let weatherChart = [
|
|
|
{
|
|
@@ -1005,7 +1017,6 @@ export default {
|
|
|
id: that.wpId,
|
|
|
},
|
|
|
success(res) {
|
|
|
- // console.log('basicData:',res)
|
|
|
that.powerData = [
|
|
|
{
|
|
|
title: "风速",
|
|
@@ -1058,25 +1069,37 @@ export default {
|
|
|
name: "当日预测电量",
|
|
|
value: res.data.jczbmap.rycfdl,
|
|
|
// total: res.data.jczbmap.rfdlsx,
|
|
|
- total: res.data.jczbmap.rycfdl >= res.data.jczbmap.rfdl ? res.data.jczbmap.rycfdl + 100 : res.data.jczbmap.rfdl + 100,
|
|
|
+ total:
|
|
|
+ res.data.jczbmap.rycfdl >= res.data.jczbmap.rfdl
|
|
|
+ ? res.data.jczbmap.rycfdl + 100
|
|
|
+ : res.data.jczbmap.rfdl + 100,
|
|
|
},
|
|
|
{
|
|
|
name: "实际发电量",
|
|
|
value: res.data.jczbmap.rfdl,
|
|
|
// total: res.data.jczbmap.rfdlsx,
|
|
|
- total: res.data.jczbmap.rycfdl >= res.data.jczbmap.rfdl ? res.data.jczbmap.rycfdl + 100 : res.data.jczbmap.rfdl + 100,
|
|
|
+ total:
|
|
|
+ res.data.jczbmap.rycfdl >= res.data.jczbmap.rfdl
|
|
|
+ ? res.data.jczbmap.rycfdl + 100
|
|
|
+ : res.data.jczbmap.rfdl + 100,
|
|
|
},
|
|
|
{
|
|
|
name: "当月预测电量",
|
|
|
value: res.data.jczbmap.yycfdl,
|
|
|
// total: res.data.jczbmap.yfdlsx,
|
|
|
- total: res.data.jczbmap.yycfdl >= res.data.jczbmap.yfdl ? res.data.jczbmap.yycfdl + 200 : res.data.jczbmap.yfdl + 200,
|
|
|
+ total:
|
|
|
+ res.data.jczbmap.yycfdl >= res.data.jczbmap.yfdl
|
|
|
+ ? res.data.jczbmap.yycfdl + 200
|
|
|
+ : res.data.jczbmap.yfdl + 200,
|
|
|
},
|
|
|
{
|
|
|
name: "实际发电量",
|
|
|
value: res.data.jczbmap.yfdl,
|
|
|
// total: res.data.jczbmap.yfdlsx,
|
|
|
- total: res.data.jczbmap.yycfdl >= res.data.jczbmap.yfdl ? res.data.jczbmap.yycfdl + 200 : res.data.jczbmap.yfdl + 200,
|
|
|
+ total:
|
|
|
+ res.data.jczbmap.yycfdl >= res.data.jczbmap.yfdl
|
|
|
+ ? res.data.jczbmap.yycfdl + 200
|
|
|
+ : res.data.jczbmap.yfdl + 200,
|
|
|
},
|
|
|
];
|
|
|
|
|
@@ -1101,7 +1124,6 @@ export default {
|
|
|
id: that.wpId,
|
|
|
},
|
|
|
success(res) {
|
|
|
- console.log("resCharts:", res);
|
|
|
let rdlKey = ["value1", "value2", "value3", "speed"];
|
|
|
let DayPower = {
|
|
|
units: ["(万kWh)", "(m/s)"],
|
|
@@ -1213,7 +1235,6 @@ export default {
|
|
|
openDialog(dialogTitle, subUrl, targetName, dialogType) {
|
|
|
this.dialogTitle = dialogTitle;
|
|
|
let that = this;
|
|
|
- console.log("dialogSuburl:", subUrl);
|
|
|
that.API.requestData({
|
|
|
method: "POST",
|
|
|
subUrl,
|
|
@@ -1222,7 +1243,6 @@ export default {
|
|
|
targetName,
|
|
|
},
|
|
|
success(res) {
|
|
|
- console.log("resDialog:", res);
|
|
|
that.dialogShow = true;
|
|
|
that.dialogData = res.data;
|
|
|
that.dialogType = dialogType;
|
|
@@ -1253,7 +1273,6 @@ export default {
|
|
|
wpId: that.wpId,
|
|
|
},
|
|
|
success(res) {
|
|
|
- console.log("forecastBoxRes:", res);
|
|
|
that.dialogData = res.data;
|
|
|
that.dialogType = "table";
|
|
|
that.dialogShow = true;
|
|
@@ -1263,17 +1282,42 @@ export default {
|
|
|
|
|
|
// 显示功率复核图表
|
|
|
showPowerChart(res) {
|
|
|
- console.log("powerChartRes:", res);
|
|
|
this.dialogTitle = res.dialogTitle;
|
|
|
this.dialogType = res.dialogType;
|
|
|
|
|
|
- this.powerLineChartData = res.data;
|
|
|
+ // this.powerLineChartData = res.data;
|
|
|
+ this.powerLineChartData = res.data.value;
|
|
|
+ if (res.dialogTitle === "风速详情") {
|
|
|
+ this.powerLineChartYAxises = [
|
|
|
+ {
|
|
|
+ min: 0,
|
|
|
+ name: "风速",
|
|
|
+ position: "left",
|
|
|
+ unit: "(m/s)",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ min: 0,
|
|
|
+ name: "日照",
|
|
|
+ position: "right",
|
|
|
+ unit: "(w/㎡)",
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ } else {
|
|
|
+ this.powerLineChartYAxises = [
|
|
|
+ {
|
|
|
+ min: 0,
|
|
|
+ name: "功率",
|
|
|
+ position: "left",
|
|
|
+ unit: "(万kWh)",
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ }
|
|
|
+
|
|
|
this.dialogShow = true;
|
|
|
},
|
|
|
|
|
|
// 显示计划电量完成情况图表
|
|
|
showDoneChart(res) {
|
|
|
- console.log("doneChartRes:", res);
|
|
|
this.dialogTitle = res.dialogTitle;
|
|
|
this.dialogType = res.dialogType;
|
|
|
|