|
@@ -104,7 +104,11 @@
|
|
|
@click="
|
|
|
showDoneChart({
|
|
|
data: DayPower,
|
|
|
- dialogTitle: planBtnName.indexOf('电站') !== -1 || planBtnName.indexOf('光电厂') !== -1 ? '日照强度' : '日发电量',
|
|
|
+ dialogTitle:
|
|
|
+ planBtnName.indexOf('电站') !== -1 ||
|
|
|
+ planBtnName.indexOf('光电厂') !== -1
|
|
|
+ ? '日照强度'
|
|
|
+ : '日发电量',
|
|
|
dialogType: 'doneLineChart',
|
|
|
})
|
|
|
"
|
|
@@ -528,8 +532,14 @@
|
|
|
<row align="middle">
|
|
|
<div class="situation-item fengji">
|
|
|
<div class="icon fengji-icon svg-icon svg-icon-white">
|
|
|
- <svg-icon class="" :svgid="wpId === '-2' || wpId.indexOf('GDC') !== -1 ? 'svg-photovoltaic' : 'svg-风机'" />
|
|
|
-
|
|
|
+ <svg-icon
|
|
|
+ class=""
|
|
|
+ :svgid="
|
|
|
+ wpId === '-2' || wpId.indexOf('GDC') !== -1
|
|
|
+ ? 'svg-photovoltaic'
|
|
|
+ : 'svg-风机'
|
|
|
+ "
|
|
|
+ />
|
|
|
</div>
|
|
|
<div class="info">
|
|
|
<div class="title green">接入设备</div>
|
|
@@ -796,7 +806,7 @@ import PowerPlan from "./components/power-plan.vue";
|
|
|
import Map from "./components/map.vue";
|
|
|
import ListBarChart2 from "../../components/chart/bar/list-bar-chart2.vue";
|
|
|
import DoubleLineChart from "@com/chart/line/double-line-chart.vue";
|
|
|
-
|
|
|
+import api from "@api/cockpit/matrix/index.js";
|
|
|
import Table from "./dialog/table.vue";
|
|
|
|
|
|
import $ from "jquery";
|
|
@@ -923,14 +933,11 @@ export default {
|
|
|
methods: {
|
|
|
// 打开天气弹窗
|
|
|
openWeatherDialog() {
|
|
|
- let that = this;
|
|
|
- that.API.requestData({
|
|
|
- method: "POST",
|
|
|
- subUrl: "genreset/getWeatherRealDay5Info",
|
|
|
- data: {
|
|
|
- wpId: that.wpId,
|
|
|
- },
|
|
|
- success(res) {
|
|
|
+ api
|
|
|
+ .weatherRealDay5Info({
|
|
|
+ wpId: this.wpId,
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
const keys = ["wd", "sd"];
|
|
|
let weatherChart = [
|
|
|
{
|
|
@@ -957,30 +964,71 @@ export default {
|
|
|
});
|
|
|
});
|
|
|
});
|
|
|
- that.tqmap5 = res.data.ls;
|
|
|
- that.weatherChart = weatherChart;
|
|
|
- that.showWeatherDialog = true;
|
|
|
- },
|
|
|
- });
|
|
|
+ this.tqmap5 = res.data.ls;
|
|
|
+ this.weatherChart = weatherChart;
|
|
|
+ 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;
|
|
|
+ // },
|
|
|
+ // });
|
|
|
},
|
|
|
|
|
|
// 请求服务
|
|
|
- requestData(showLoading) {
|
|
|
- let that = this;
|
|
|
- that.API.requestData({
|
|
|
- showLoading,
|
|
|
- method: "POST",
|
|
|
- subUrl: "genreset/findBasicDataInfo",
|
|
|
- timeout: 60000,
|
|
|
- data: {
|
|
|
- id: that.wpId,
|
|
|
- },
|
|
|
- success(res) {
|
|
|
- that.powerData = [
|
|
|
+ requestData() {
|
|
|
+ api
|
|
|
+ .findBasicDataInfo({
|
|
|
+ id: this.wpId,
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ this.powerData = [
|
|
|
{
|
|
|
- title: that.wpId === '-2' || that.wpId.indexOf('GDC') !== -1 ? "日照强度" : "风速",
|
|
|
-
|
|
|
- dialogTitle: that.wpId == 0 ? '详情' : that.wpId === '-2' || that.wpId.indexOf('GDC') !== -1 ? "日照强度详情" : "风速详情",
|
|
|
+ title:
|
|
|
+ this.wpId === "-2" || this.wpId.indexOf("GDC") !== -1
|
|
|
+ ? "日照强度"
|
|
|
+ : "风速",
|
|
|
+
|
|
|
+ dialogTitle:
|
|
|
+ this.wpId == 0
|
|
|
+ ? "详情"
|
|
|
+ : this.wpId === "-2" || this.wpId.indexOf("GDC") !== -1
|
|
|
+ ? "日照强度详情"
|
|
|
+ : "风速详情",
|
|
|
subUrl: "genreset/findGLDetail",
|
|
|
targetName: "ssfs",
|
|
|
dialogType: "powerLineChart",
|
|
@@ -1015,15 +1063,15 @@ export default {
|
|
|
},
|
|
|
];
|
|
|
|
|
|
- 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;
|
|
|
+ this.jczbmap = res.data.jczbmap;
|
|
|
+ this.wxssmap = res.data.wxssmap;
|
|
|
+ this.gxkmap = res.data.gxkmap;
|
|
|
+ this.mxztmap = res.data.mxztmap;
|
|
|
+ this.fcmap = res.data.fcmap;
|
|
|
+ this.xtmap = res.data.xtmap;
|
|
|
+ this.tqmap = res.data.tqmap;
|
|
|
|
|
|
- that.ForecastPower = [
|
|
|
+ this.ForecastPower = [
|
|
|
{
|
|
|
name: "当日预测电量",
|
|
|
value: res.data.jczbmap.rycfdl,
|
|
@@ -1062,7 +1110,7 @@ export default {
|
|
|
},
|
|
|
];
|
|
|
|
|
|
- that.planData = {
|
|
|
+ this.planData = {
|
|
|
yfdl: res.data.jczbmap.yfdl,
|
|
|
nfdl: res.data.jczbmap.nfdl,
|
|
|
yfdljh: res.data.gxkmap.yfdljh,
|
|
@@ -1070,32 +1118,136 @@ export default {
|
|
|
ywcl: res.data.gxkmap.ywcl,
|
|
|
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() {
|
|
|
- let that = this;
|
|
|
- that.API.requestData({
|
|
|
- method: "POST",
|
|
|
- subUrl: "genreset/findPowerInfo",
|
|
|
- data: {
|
|
|
- id: that.wpId,
|
|
|
- },
|
|
|
- success(res) {
|
|
|
+ api
|
|
|
+ .findPowerInfo({
|
|
|
+ id: this.wpId,
|
|
|
+ })
|
|
|
+ .then((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 dw = {
|
|
|
+ units: "",
|
|
|
+ title: "",
|
|
|
+ };
|
|
|
+ this.wpId === "-2" || this.wpId.indexOf("GDC") !== -1
|
|
|
+ ? (dw = {
|
|
|
+ units: "(w/㎡)",
|
|
|
+ title: "日照",
|
|
|
+ })
|
|
|
+ : (dw = {
|
|
|
+ units: "(m/s)",
|
|
|
+ title: "风速",
|
|
|
+ });
|
|
|
let DayPower = {
|
|
|
units: ["(万kWh)", dw.units],
|
|
|
value: [
|
|
@@ -1157,7 +1309,7 @@ export default {
|
|
|
value: [],
|
|
|
},
|
|
|
{
|
|
|
- title: that.wpId === '-2' ? "日照强度" : "平均风速",
|
|
|
+ title: this.wpId === "-2" ? "日照强度" : "平均风速",
|
|
|
smooth: true,
|
|
|
value: [],
|
|
|
},
|
|
@@ -1186,10 +1338,125 @@ export default {
|
|
|
});
|
|
|
});
|
|
|
|
|
|
- that.DayPower = DayPower;
|
|
|
- that.Powertrend = Powertrend;
|
|
|
- },
|
|
|
- });
|
|
|
+ this.DayPower = DayPower;
|
|
|
+ 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;
|
|
|
+ // },
|
|
|
+ // });
|
|
|
},
|
|
|
|
|
|
// 点击地图展示类型
|
|
@@ -1255,27 +1522,37 @@ export default {
|
|
|
this.changeShowType(wpId, planBtnName);
|
|
|
},
|
|
|
changeShowBackType(wpId, planBtnName) {
|
|
|
- this.historyWpId = wpId;
|
|
|
- this.historyPlanBtnName = planBtnName;
|
|
|
+ this.historyWpId = wpId;
|
|
|
+ this.historyPlanBtnName = planBtnName;
|
|
|
this.changeShowType(this.historyWpId, this.historyPlanBtnName);
|
|
|
},
|
|
|
// 打开弹窗
|
|
|
openDialog(dialogTitle, subUrl, targetName, dialogType) {
|
|
|
this.dialogTitle = dialogTitle;
|
|
|
- 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;
|
|
|
- },
|
|
|
+ let data = {
|
|
|
+ id: this.wpId,
|
|
|
+ targetName,
|
|
|
+ };
|
|
|
+ api.findInfos(subUrl, data).then((res) => {
|
|
|
+ this.dialogShow = true;
|
|
|
+ this.dialogData = res.data;
|
|
|
+ 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;
|
|
|
+ // },
|
|
|
+ // });
|
|
|
},
|
|
|
|
|
|
// 点击安全天数下的场站按钮重置数据
|
|
@@ -1292,20 +1569,31 @@ export default {
|
|
|
},
|
|
|
|
|
|
showForecastBox() {
|
|
|
- let that = this;
|
|
|
- that.dialogTitle = "预测电量详情";
|
|
|
- that.API.requestData({
|
|
|
- method: "POST",
|
|
|
- subUrl: "/genreset/getForecastwindspeedInfo",
|
|
|
- data: {
|
|
|
- wpId: that.wpId,
|
|
|
- },
|
|
|
- success(res) {
|
|
|
- that.dialogData = res.data;
|
|
|
- that.dialogType = "table";
|
|
|
- that.dialogShow = true;
|
|
|
- },
|
|
|
- });
|
|
|
+ this.dialogTitle = "预测电量详情";
|
|
|
+ api
|
|
|
+ .forecastwindspeedInfo({
|
|
|
+ wpId: this.wpId,
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ this.dialogData = res.data;
|
|
|
+ this.dialogType = "table";
|
|
|
+ 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;
|
|
|
+ // },
|
|
|
+ // });
|
|
|
},
|
|
|
|
|
|
// 显示功率复核图表
|
|
@@ -1313,17 +1601,36 @@ export default {
|
|
|
this.dialogTitle = res.dialogTitle;
|
|
|
this.dialogType = res.dialogType;
|
|
|
|
|
|
- let hour = this.nowTime.split(":")[0];
|
|
|
- let minute = this.nowTime.split(":")[1] < 30 ? minute = 1 : minute = 2;
|
|
|
- let valueLength = (hour * 2) + 1 + minute;
|
|
|
-
|
|
|
- res.data.value.forEach((ele,index)=>{
|
|
|
- if(this.wpId === '0'){
|
|
|
- ele.title.indexOf('电场') !== -1 ? ele.title+='[风速]' : ele.title;
|
|
|
- ele.title.indexOf('电站') !== -1 ? ele.title+='[日照]' : ele.title;
|
|
|
- }
|
|
|
- ele.value.splice(valueLength,48)
|
|
|
- })
|
|
|
+ let hour = this.nowTime.split(":")[0];
|
|
|
+ let minute =
|
|
|
+ this.nowTime.split(":")[1] < 30 ? (minute = 1) : (minute = 2);
|
|
|
+ let valueLength = hour * 2 + 1 + minute;
|
|
|
+ if (res.data.value) {
|
|
|
+ res.data.value.forEach((ele, index) => {
|
|
|
+ if (this.wpId === "0") {
|
|
|
+ ele.title.indexOf("电场") !== -1
|
|
|
+ ? (ele.title += "[风速]")
|
|
|
+ : ele.title;
|
|
|
+ ele.title.indexOf("电站") !== -1
|
|
|
+ ? (ele.title += "[日照]")
|
|
|
+ : ele.title;
|
|
|
+ }
|
|
|
+ ele.value.splice(valueLength, 48);
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ res.data.forEach((ele, index) => {
|
|
|
+ if (this.wpId === "0") {
|
|
|
+ ele.title.indexOf("电场") !== -1
|
|
|
+ ? (ele.title += "[风速]")
|
|
|
+ : ele.title;
|
|
|
+ ele.title.indexOf("电站") !== -1
|
|
|
+ ? (ele.title += "[日照]")
|
|
|
+ : ele.title;
|
|
|
+ }
|
|
|
+ ele.value.splice(valueLength, 48);
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
this.powerLineChartData = res.data.value;
|
|
|
if (res.dialogTitle === "详情") {
|
|
|
this.powerLineChartYAxises = [
|
|
@@ -1340,7 +1647,7 @@ export default {
|
|
|
unit: "(w/㎡)",
|
|
|
},
|
|
|
];
|
|
|
- }else if(res.dialogTitle === "风速详情") {
|
|
|
+ } else if (res.dialogTitle === "风速详情") {
|
|
|
this.powerLineChartYAxises = [
|
|
|
{
|
|
|
min: 0,
|
|
@@ -1349,16 +1656,16 @@ export default {
|
|
|
unit: "(m/s)",
|
|
|
},
|
|
|
];
|
|
|
- }else if(res.dialogTitle === "日照强度详情") {
|
|
|
- this.powerLineChartYAxises = [
|
|
|
- {
|
|
|
- min: 0,
|
|
|
- name: "日照",
|
|
|
- position: "right",
|
|
|
- unit: "(w/㎡)",
|
|
|
- },
|
|
|
- ];
|
|
|
- }else {
|
|
|
+ } else if (res.dialogTitle === "日照强度详情") {
|
|
|
+ this.powerLineChartYAxises = [
|
|
|
+ {
|
|
|
+ min: 0,
|
|
|
+ name: "日照",
|
|
|
+ position: "right",
|
|
|
+ unit: "(w/㎡)",
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ } else {
|
|
|
this.powerLineChartYAxises = [
|
|
|
{
|
|
|
min: 0,
|