|
@@ -47,6 +47,8 @@
|
|
|
:data="fcmap"
|
|
|
:xtData="xtmap"
|
|
|
@mapClick="changeShowType"
|
|
|
+ @mapClicks="changeShowTypes"
|
|
|
+ @mapClickBack="changeShowBackType"
|
|
|
@backStation="onBackStation"
|
|
|
></Map>
|
|
|
</div>
|
|
@@ -867,6 +869,8 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ historyWpId: '',
|
|
|
+ historyPlanBtnName:'',
|
|
|
timmer: null, // 计时器
|
|
|
timmer2: null,
|
|
|
timmer3: null,
|
|
@@ -1190,6 +1194,11 @@ export default {
|
|
|
smooth: true,
|
|
|
value: [],
|
|
|
},
|
|
|
+ {
|
|
|
+ title: "72小时预测功率",
|
|
|
+ smooth: true,
|
|
|
+ value: [],
|
|
|
+ },
|
|
|
];
|
|
|
|
|
|
rdlKey.forEach((keyEle, keyIndex) => {
|
|
@@ -1218,19 +1227,27 @@ export default {
|
|
|
|
|
|
// 点击地图展示类型
|
|
|
changeShowType(wpId, planBtnName) {
|
|
|
- this.wpName = planBtnName;
|
|
|
- this.planBtnName = planBtnName;
|
|
|
+ this.wpName = planBtnName?planBtnName:this.wpName;
|
|
|
+ this.planBtnName = planBtnName?planBtnName:this.planBtnName;
|
|
|
this.jczbmap = {};
|
|
|
clearInterval(this.timmer);
|
|
|
this.timmer = null;
|
|
|
- this.wpId = wpId;
|
|
|
+ this.wpId = wpId?wpId:this.wpId;
|
|
|
+
|
|
|
this.requestData(false);
|
|
|
this.getCharts();
|
|
|
this.timmer = setInterval(() => {
|
|
|
this.requestData(false);
|
|
|
}, this.$store.state.websocketTimeSec);
|
|
|
},
|
|
|
-
|
|
|
+ changeShowTypes(wpId,planBtnName){
|
|
|
+ this.historyWpId = wpId
|
|
|
+ this.historyPlanBtnName = planBtnName
|
|
|
+ this.changeShowType(wpId,planBtnName);
|
|
|
+ },
|
|
|
+ changeShowBackType(){
|
|
|
+ this.changeShowType(this.historyWpId,this.historyPlanBtnName);
|
|
|
+ },
|
|
|
// 打开弹窗
|
|
|
openDialog(dialogTitle, subUrl, targetName, dialogType) {
|
|
|
this.dialogTitle = dialogTitle;
|
|
@@ -1320,9 +1337,10 @@ export default {
|
|
|
showDoneChart(res) {
|
|
|
this.dialogTitle = res.dialogTitle;
|
|
|
this.dialogType = res.dialogType;
|
|
|
-
|
|
|
this.doneLineChartData = res.data;
|
|
|
+ this.doneLineChartData.units[0] = this.doneLineChartData.units[0]?this.doneLineChartData.units[0]:'(万KWh)';
|
|
|
this.dialogShow = true;
|
|
|
+ console.log(this.doneLineChartData)
|
|
|
},
|
|
|
|
|
|
// 地图进入事件
|