|
@@ -5,7 +5,7 @@
|
|
<Row type="flex" class="weather">
|
|
<Row type="flex" class="weather">
|
|
<Col :span="24">
|
|
<Col :span="24">
|
|
<com-panel
|
|
<com-panel
|
|
- :title="tqmap.name || '---'"
|
|
|
|
|
|
+ :title="tqmap.name"
|
|
:sub-title="nowTime + ' 实况'"
|
|
:sub-title="nowTime + ' 实况'"
|
|
icon="fa fa-map-marker"
|
|
icon="fa fa-map-marker"
|
|
>
|
|
>
|
|
@@ -43,7 +43,7 @@
|
|
<div class="top-mid-panel">
|
|
<div class="top-mid-panel">
|
|
<Map
|
|
<Map
|
|
:wpId="wpId"
|
|
:wpId="wpId"
|
|
- :day="String(jczbmap.aqts || '---')"
|
|
|
|
|
|
+ :day="String(jczbmap.aqts)"
|
|
:data="fcmap"
|
|
:data="fcmap"
|
|
:xtData="xtmap"
|
|
:xtData="xtmap"
|
|
@mapClick="changeShowType"
|
|
@mapClick="changeShowType"
|
|
@@ -59,7 +59,7 @@
|
|
<!-- 避免故障、提升率、降低率、风能利用率、设备可利用率、综合场用电率、存在隐患风机 -->
|
|
<!-- 避免故障、提升率、降低率、风能利用率、设备可利用率、综合场用电率、存在隐患风机 -->
|
|
<coulometric-analysis
|
|
<coulometric-analysis
|
|
:bmgz="gxkmap.tjsl"
|
|
:bmgz="gxkmap.tjsl"
|
|
- :tsl="30"
|
|
|
|
|
|
+ :tsl="0"
|
|
:jdl="gxkmap.tjl"
|
|
:jdl="gxkmap.tjl"
|
|
:fnlyl="wxssmap.yfnlyl"
|
|
:fnlyl="wxssmap.yfnlyl"
|
|
:sbklyl="gxkmap.ysbklyl"
|
|
:sbklyl="gxkmap.ysbklyl"
|
|
@@ -656,7 +656,7 @@
|
|
</div>
|
|
</div>
|
|
<div class="value">
|
|
<div class="value">
|
|
<span class="text gray">未知</span>
|
|
<span class="text gray">未知</span>
|
|
- <span>---</span>
|
|
|
|
|
|
+ <span>0</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -931,6 +931,15 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
methods: {
|
|
methods: {
|
|
|
|
+
|
|
|
|
+ getDAY(){
|
|
|
|
+ let curDate = new Date();
|
|
|
|
+ let curMonth = curDate.getMonth(); //当前月份 需要加1
|
|
|
|
+ curDate.setMonth(curMonth + 1);
|
|
|
|
+ curDate.setDate(0) //关键
|
|
|
|
+ curDate.getDate(); //计算的当月总天数
|
|
|
|
+ return curDate.getDate()-new Date().getDate() // new Date().getDate()当前几号 总天数-当前即可
|
|
|
|
+ },
|
|
// 打开天气弹窗
|
|
// 打开天气弹窗
|
|
openWeatherDialog() {
|
|
openWeatherDialog() {
|
|
api
|
|
api
|
|
@@ -968,45 +977,6 @@ export default {
|
|
this.weatherChart = weatherChart;
|
|
this.weatherChart = weatherChart;
|
|
this.showWeatherDialog = true;
|
|
this.showWeatherDialog = true;
|
|
});
|
|
});
|
|
- // let that = this;
|
|
|
|
- // that.API.requestData({
|
|
|
|
- // method: "POST",
|
|
|
|
- // subUrl: "genreset/getWeatherRealDay5Info",
|
|
|
|
- // data: {
|
|
|
|
- // wpId: that.wpId,
|
|
|
|
- // },
|
|
|
|
- // success(res) {
|
|
|
|
- // const keys = ["wd", "sd"];
|
|
|
|
- // let weatherChart = [
|
|
|
|
- // {
|
|
|
|
- // title: "温度",
|
|
|
|
- // smooth: true,
|
|
|
|
- // value: [],
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // title: "湿度",
|
|
|
|
- // smooth: true,
|
|
|
|
- // value: [],
|
|
|
|
- // },
|
|
|
|
- // ];
|
|
|
|
-
|
|
|
|
- // res.data.ls.forEach((ele) => {
|
|
|
|
- // ele.time = new Date(ele.time).formatDate("yyyy-MM-dd hh:mm");
|
|
|
|
- // });
|
|
|
|
-
|
|
|
|
- // keys.forEach((key, keyIndex) => {
|
|
|
|
- // res.data.ls.forEach((ele) => {
|
|
|
|
- // weatherChart[keyIndex].value.push({
|
|
|
|
- // text: ele.time,
|
|
|
|
- // value: ele[key],
|
|
|
|
- // });
|
|
|
|
- // });
|
|
|
|
- // });
|
|
|
|
- // that.tqmap5 = res.data.ls;
|
|
|
|
- // that.weatherChart = weatherChart;
|
|
|
|
- // that.showWeatherDialog = true;
|
|
|
|
- // },
|
|
|
|
- // });
|
|
|
|
},
|
|
},
|
|
|
|
|
|
// 请求服务
|
|
// 请求服务
|
|
@@ -1065,7 +1035,6 @@ export default {
|
|
max: res.data.jczbmap.zjts,
|
|
max: res.data.jczbmap.zjts,
|
|
},
|
|
},
|
|
];
|
|
];
|
|
- // console.log('res.data.jczbmap',res.data.jczbmap);
|
|
|
|
this.jczbmap = res.data.jczbmap;
|
|
this.jczbmap = res.data.jczbmap;
|
|
this.wxssmap = res.data.wxssmap;
|
|
this.wxssmap = res.data.wxssmap;
|
|
this.gxkmap = res.data.gxkmap;
|
|
this.gxkmap = res.data.gxkmap;
|
|
@@ -1095,11 +1064,12 @@ export default {
|
|
},
|
|
},
|
|
{
|
|
{
|
|
name: "当月预测电量",
|
|
name: "当月预测电量",
|
|
- value: res.data.jczbmap.yycfdl,
|
|
|
|
|
|
+ value: ((res.data.jczbmap.yfdl+res.data.jczbmap.rycfdl)*(this.getDAY())* 1.08).toFixed(2),
|
|
|
|
+ // 预测电量临时算法=(月发电量+日预测发电量*(日历天数-当前日数))*预测发电量系数
|
|
// total: res.data.jczbmap.yfdlsx,
|
|
// total: res.data.jczbmap.yfdlsx,
|
|
total:
|
|
total:
|
|
res.data.jczbmap.yycfdl >= res.data.jczbmap.yfdl
|
|
res.data.jczbmap.yycfdl >= res.data.jczbmap.yfdl
|
|
- ? res.data.jczbmap.yycfdl + 200
|
|
|
|
|
|
+ ? ((res.data.jczbmap.yfdl+res.data.jczbmap.rycfdl)*(this.getDAY())* 1.08).toFixed(2) + 200
|
|
: res.data.jczbmap.yfdl + 200,
|
|
: res.data.jczbmap.yfdl + 200,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -1112,7 +1082,6 @@ export default {
|
|
: res.data.jczbmap.yfdl + 200,
|
|
: res.data.jczbmap.yfdl + 200,
|
|
},
|
|
},
|
|
];
|
|
];
|
|
-
|
|
|
|
this.planData = {
|
|
this.planData = {
|
|
yfdl: res.data.jczbmap.yfdl,
|
|
yfdl: res.data.jczbmap.yfdl,
|
|
nfdl: res.data.jczbmap.nfdl,
|
|
nfdl: res.data.jczbmap.nfdl,
|
|
@@ -1122,113 +1091,6 @@ export default {
|
|
nwcl: res.data.gxkmap.nwcl,
|
|
nwcl: res.data.gxkmap.nwcl,
|
|
};
|
|
};
|
|
});
|
|
});
|
|
-
|
|
|
|
- // let that = this;
|
|
|
|
- // that.API.requestData({
|
|
|
|
- // showLoading,
|
|
|
|
- // method: "POST",
|
|
|
|
- // subUrl: "genreset/findBasicDataInfo",
|
|
|
|
- // timeout: 60000,
|
|
|
|
- // data: {
|
|
|
|
- // id: that.wpId,
|
|
|
|
- // },
|
|
|
|
- // success(res) {
|
|
|
|
- // that.powerData = [
|
|
|
|
- // {
|
|
|
|
- // title: that.wpId === '-2' || that.wpId.indexOf('GDC') !== -1 ? "日照强度" : "风速",
|
|
|
|
-
|
|
|
|
- // dialogTitle: that.wpId == 0 ? '详情' : that.wpId === '-2' || that.wpId.indexOf('GDC') !== -1 ? "日照强度详情" : "风速详情",
|
|
|
|
- // subUrl: "genreset/findGLDetail",
|
|
|
|
- // targetName: "ssfs",
|
|
|
|
- // dialogType: "powerLineChart",
|
|
|
|
- // max: 30,
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // title: "保证功率",
|
|
|
|
- // value: res.data.jczbmap.bzgl,
|
|
|
|
- // dialogTitle: "保证功率详情",
|
|
|
|
- // subUrl: "genreset/findGLDetail",
|
|
|
|
- // targetName: "bzgl",
|
|
|
|
- // dialogType: "powerLineChart",
|
|
|
|
- // max: res.data.jczbmap.zjts,
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // title: "应发功率",
|
|
|
|
- // value: res.data.jczbmap.yfgl,
|
|
|
|
- // dialogTitle: "应发功率详情",
|
|
|
|
- // subUrl: "genreset/findGLDetail",
|
|
|
|
- // targetName: "yfgl",
|
|
|
|
- // dialogType: "powerLineChart",
|
|
|
|
- // max: res.data.jczbmap.zjts,
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // title: "实际功率",
|
|
|
|
- // value: res.data.jczbmap.sjgl,
|
|
|
|
- // dialogTitle: "实际功率详情",
|
|
|
|
- // subUrl: "genreset/findGLDetail",
|
|
|
|
- // targetName: "sjgl",
|
|
|
|
- // dialogType: "powerLineChart",
|
|
|
|
- // max: res.data.jczbmap.zjts,
|
|
|
|
- // },
|
|
|
|
- // ];
|
|
|
|
-
|
|
|
|
- // that.jczbmap = res.data.jczbmap;
|
|
|
|
- // that.wxssmap = res.data.wxssmap;
|
|
|
|
- // that.gxkmap = res.data.gxkmap;
|
|
|
|
- // that.mxztmap = res.data.mxztmap;
|
|
|
|
- // that.fcmap = res.data.fcmap;
|
|
|
|
- // that.xtmap = res.data.xtmap;
|
|
|
|
- // that.tqmap = res.data.tqmap;
|
|
|
|
-
|
|
|
|
- // that.ForecastPower = [
|
|
|
|
- // {
|
|
|
|
- // 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,
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // 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,
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // 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,
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // 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,
|
|
|
|
- // },
|
|
|
|
- // ];
|
|
|
|
-
|
|
|
|
- // that.planData = {
|
|
|
|
- // yfdl: res.data.jczbmap.yfdl,
|
|
|
|
- // nfdl: res.data.jczbmap.nfdl,
|
|
|
|
- // yfdljh: res.data.gxkmap.yfdljh,
|
|
|
|
- // nfdljh: res.data.gxkmap.nfdljh,
|
|
|
|
- // ywcl: res.data.gxkmap.ywcl,
|
|
|
|
- // nwcl: res.data.gxkmap.nwcl,
|
|
|
|
- // };
|
|
|
|
- // },
|
|
|
|
- // });
|
|
|
|
},
|
|
},
|
|
|
|
|
|
getCharts() {
|
|
getCharts() {
|
|
@@ -1324,18 +1186,16 @@ export default {
|
|
];
|
|
];
|
|
|
|
|
|
rdlKey.forEach((keyEle, keyIndex) => {
|
|
rdlKey.forEach((keyEle, keyIndex) => {
|
|
- // console.log(7777777777,keyEle,keyIndex);
|
|
|
|
- // console.log(res);
|
|
|
|
- res.data.rdlvos.forEach((cEle) => {
|
|
|
|
- DayPower.value[keyIndex].value.push({
|
|
|
|
- text: cEle.timestr,
|
|
|
|
- value: cEle[keyEle],
|
|
|
|
- });
|
|
|
|
|
|
+ res.data?.rdlvos?.forEach((cEle) => {
|
|
|
|
+ DayPower.value[keyIndex].value.push({
|
|
|
|
+ text: cEle.timestr,
|
|
|
|
+ value: cEle[keyEle],
|
|
});
|
|
});
|
|
|
|
+ });
|
|
});
|
|
});
|
|
|
|
|
|
glKey.forEach((keyEle, keyIndex) => {
|
|
glKey.forEach((keyEle, keyIndex) => {
|
|
- res.data.glvos.forEach((cEle) => {
|
|
|
|
|
|
+ res?.data?.glvos.forEach((cEle) => {
|
|
Powertrend[keyIndex].value.push({
|
|
Powertrend[keyIndex].value.push({
|
|
text: new Date(cEle.time).formatDate("hh:mm"),
|
|
text: new Date(cEle.time).formatDate("hh:mm"),
|
|
value: cEle[keyEle],
|
|
value: cEle[keyEle],
|
|
@@ -1346,122 +1206,6 @@ export default {
|
|
this.DayPower = DayPower;
|
|
this.DayPower = DayPower;
|
|
this.Powertrend = Powertrend;
|
|
this.Powertrend = Powertrend;
|
|
});
|
|
});
|
|
-
|
|
|
|
- // let that = this;
|
|
|
|
- // that.API.requestData({
|
|
|
|
- // method: "POST",
|
|
|
|
- // subUrl: "genreset/findPowerInfo",
|
|
|
|
- // data: {
|
|
|
|
- // id: that.wpId,
|
|
|
|
- // },
|
|
|
|
- // success(res) {
|
|
|
|
- // let rdlKey = ["value1", "value2", "value3", "speed"];
|
|
|
|
- // let dw = {
|
|
|
|
- // units:"",
|
|
|
|
- // title:""
|
|
|
|
- // };
|
|
|
|
- // that.wpId === '-2' || that.wpId.indexOf('GDC') !== -1 ?
|
|
|
|
- // dw={
|
|
|
|
- // units:"(w/㎡)",
|
|
|
|
- // title:"日照"
|
|
|
|
- // } : dw={
|
|
|
|
- // units:"(m/s)",
|
|
|
|
- // title:"风速"
|
|
|
|
- // };
|
|
|
|
- // let DayPower = {
|
|
|
|
- // units: ["(万kWh)", dw.units],
|
|
|
|
- // value: [
|
|
|
|
- // {
|
|
|
|
- // title: "发电量",
|
|
|
|
- // yAxisIndex: 0,
|
|
|
|
- // value: [],
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // title: "上网电量",
|
|
|
|
- // yAxisIndex: 0,
|
|
|
|
- // value: [],
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // title: "购网电量",
|
|
|
|
- // yAxisIndex: 0,
|
|
|
|
- // value: [],
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // title: dw.title,
|
|
|
|
- // yAxisIndex: 1,
|
|
|
|
- // value: [],
|
|
|
|
- // },
|
|
|
|
- // ],
|
|
|
|
- // };
|
|
|
|
-
|
|
|
|
- // let glKey = [
|
|
|
|
- // "value2",
|
|
|
|
- // "value1",
|
|
|
|
- // "value5",
|
|
|
|
- // "value4",
|
|
|
|
- // "value7",
|
|
|
|
- // "value6",
|
|
|
|
- // ];
|
|
|
|
- // let Powertrend = [
|
|
|
|
- // {
|
|
|
|
- // title: "实发功率",
|
|
|
|
- // smooth: true,
|
|
|
|
- // value: [],
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // title: "理论功率",
|
|
|
|
- // smooth: true,
|
|
|
|
- // value: [],
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // title: "保证功率",
|
|
|
|
- // smooth: true,
|
|
|
|
- // value: [],
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // title: "4小时预测功率",
|
|
|
|
- // smooth: true,
|
|
|
|
- // value: [],
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // title: "24小时预测功率",
|
|
|
|
- // smooth: true,
|
|
|
|
- // value: [],
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // title: that.wpId === '-2' ? "日照强度" : "平均风速",
|
|
|
|
- // smooth: true,
|
|
|
|
- // value: [],
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // title: "72小时预测功率",
|
|
|
|
- // smooth: true,
|
|
|
|
- // value: [],
|
|
|
|
- // },
|
|
|
|
- // ];
|
|
|
|
-
|
|
|
|
- // rdlKey.forEach((keyEle, keyIndex) => {
|
|
|
|
- // res.data.rdlvos.forEach((cEle) => {
|
|
|
|
- // DayPower.value[keyIndex].value.push({
|
|
|
|
- // text: cEle.timestr,
|
|
|
|
- // value: cEle[keyEle],
|
|
|
|
- // });
|
|
|
|
- // });
|
|
|
|
- // });
|
|
|
|
-
|
|
|
|
- // glKey.forEach((keyEle, keyIndex) => {
|
|
|
|
- // res.data.glvos.forEach((cEle) => {
|
|
|
|
- // Powertrend[keyIndex].value.push({
|
|
|
|
- // text: new Date(cEle.time).formatDate("hh:mm"),
|
|
|
|
- // value: cEle[keyEle],
|
|
|
|
- // });
|
|
|
|
- // });
|
|
|
|
- // });
|
|
|
|
-
|
|
|
|
- // that.DayPower = DayPower;
|
|
|
|
- // that.Powertrend = Powertrend;
|
|
|
|
- // },
|
|
|
|
- // });
|
|
|
|
},
|
|
},
|
|
|
|
|
|
// 点击地图展示类型
|
|
// 点击地图展示类型
|
|
@@ -1543,21 +1287,6 @@ export default {
|
|
this.dialogData = res.data;
|
|
this.dialogData = res.data;
|
|
this.dialogType = dialogType;
|
|
this.dialogType = dialogType;
|
|
});
|
|
});
|
|
-
|
|
|
|
- // let that = this;
|
|
|
|
- // that.API.requestData({
|
|
|
|
- // method: "POST",
|
|
|
|
- // subUrl,
|
|
|
|
- // data: {
|
|
|
|
- // id: that.wpId,
|
|
|
|
- // targetName,
|
|
|
|
- // },
|
|
|
|
- // success(res) {
|
|
|
|
- // that.dialogShow = true;
|
|
|
|
- // that.dialogData = res.data;
|
|
|
|
- // that.dialogType = dialogType;
|
|
|
|
- // },
|
|
|
|
- // });
|
|
|
|
},
|
|
},
|
|
|
|
|
|
// 点击安全天数下的场站按钮重置数据
|
|
// 点击安全天数下的场站按钮重置数据
|
|
@@ -1584,21 +1313,6 @@ export default {
|
|
this.dialogType = "table";
|
|
this.dialogType = "table";
|
|
this.dialogShow = true;
|
|
this.dialogShow = true;
|
|
});
|
|
});
|
|
-
|
|
|
|
- // let that = this;
|
|
|
|
-
|
|
|
|
- // that.API.requestData({
|
|
|
|
- // method: "POST",
|
|
|
|
- // subUrl: "/genreset/getForecastwindspeedInfo",
|
|
|
|
- // data: {
|
|
|
|
- // wpId: that.wpId,
|
|
|
|
- // },
|
|
|
|
- // success(res) {
|
|
|
|
- // that.dialogData = res.data;
|
|
|
|
- // that.dialogType = "table";
|
|
|
|
- // that.dialogShow = true;
|
|
|
|
- // },
|
|
|
|
- // });
|
|
|
|
},
|
|
},
|
|
|
|
|
|
// 显示功率复核图表
|
|
// 显示功率复核图表
|