|
|
@@ -127,25 +127,25 @@
|
|
|
|
|
|
<!-- tab1 -->
|
|
|
<div v-if="tabIndex == 0" class="TabOne tabsev">
|
|
|
- <panel :title="'功率分析'" class="TabOne_topChart">
|
|
|
- <area-line-chart
|
|
|
- :height="'100%'"
|
|
|
- :lineData="lostChartData"
|
|
|
- :units="lostChartUnit"
|
|
|
- :areaData="LostChartBgColorData"
|
|
|
- @areaClick="areaBarChartClick"
|
|
|
- :showLegend="true"
|
|
|
- />
|
|
|
- </panel>
|
|
|
- <panel :title="'损失电量分析'" class="TabOne_centerChart">
|
|
|
- <multiple-bar-line-chart
|
|
|
- :height="'100%'"
|
|
|
- :barData="powerChartData"
|
|
|
- :lineData="powerChartLineData"
|
|
|
- :units="['(kWh)', '(m/s)']"
|
|
|
- :showLegend="true"
|
|
|
- />
|
|
|
- </panel>
|
|
|
+ <panel :title="'功率分析'" class="TabOne_topChart">
|
|
|
+ <area-line-chart
|
|
|
+ :height="'100%'"
|
|
|
+ :lineData="lostChartData"
|
|
|
+ :units="lostChartUnit"
|
|
|
+ :areaData="LostChartBgColorData"
|
|
|
+ @areaClick="areaBarChartClick"
|
|
|
+ :showLegend="true"
|
|
|
+ />
|
|
|
+ </panel>
|
|
|
+ <panel :title="'损失电量分析'" class="TabOne_centerChart">
|
|
|
+ <multiple-bar-line-chart
|
|
|
+ :height="'100%'"
|
|
|
+ :barData="powerChartData"
|
|
|
+ :lineData="powerChartLineData"
|
|
|
+ :units="['(kWh)', '(m/s)']"
|
|
|
+ :showLegend="true"
|
|
|
+ />
|
|
|
+ </panel>
|
|
|
<div class="table-info">
|
|
|
<panel class="table-panel" :title="'当日报警记录'" :showLine="false">
|
|
|
<el-table
|
|
|
@@ -367,7 +367,7 @@
|
|
|
</panel>
|
|
|
</div>
|
|
|
<div class="month-info-right">
|
|
|
- <!-- style="height: calc(100% - 220px - 10px)" -->
|
|
|
+ <!-- style="height: calc(100% - 220px - 10px)" -->
|
|
|
<panel
|
|
|
:title="'年发电量信息'"
|
|
|
:subTitle="'单位:万kWh'"
|
|
|
@@ -393,9 +393,14 @@
|
|
|
</div>
|
|
|
<div class="info-item">
|
|
|
<div class="text">年停机小时:</div>
|
|
|
- <div class="value green">{{
|
|
|
- Number(dayPowerInfo.ngzxs) + Number(dayPowerInfo.njxxs)
|
|
|
- }}</div>
|
|
|
+ <div class="value green">
|
|
|
+ {{
|
|
|
+ (
|
|
|
+ Number(dayPowerInfo.ngzxs) +
|
|
|
+ Number(dayPowerInfo.njxxs)
|
|
|
+ ).toFixed(2)
|
|
|
+ }}
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="info-item">
|
|
|
<div class="text">年故障小时:</div>
|
|
|
@@ -695,6 +700,8 @@
|
|
|
<rander-new-chart
|
|
|
width="100%"
|
|
|
height="100%"
|
|
|
+ title="日最大风速"
|
|
|
+ subtext="(m/s)"
|
|
|
:lenged="rzdfsLen"
|
|
|
:xAxis="rzdfsxaisx"
|
|
|
:series="rzdfsData"
|
|
|
@@ -723,6 +730,8 @@
|
|
|
<rander-new-chart
|
|
|
width="100%"
|
|
|
height="100%"
|
|
|
+ title="月最大风速"
|
|
|
+ subtext="(m/s)"
|
|
|
:lenged="yzdfsLen"
|
|
|
:xAxis="yzdfsxaisx"
|
|
|
:series="yzdfsData"
|
|
|
@@ -751,6 +760,8 @@
|
|
|
<rander-new-chart
|
|
|
width="100%"
|
|
|
height="100%"
|
|
|
+ title="年最大风速"
|
|
|
+ subtext="(m/s)"
|
|
|
:lenged="nzdfsLen"
|
|
|
:xAxis="nzdfsxaisx"
|
|
|
:series="nzdfsData"
|
|
|
@@ -781,6 +792,8 @@
|
|
|
<rander-new-chart
|
|
|
width="100%"
|
|
|
height="100%"
|
|
|
+ title="日风向频率"
|
|
|
+ subtext="(%)"
|
|
|
:lenged="rfxplLen"
|
|
|
:xAxis="rfxplxaisx"
|
|
|
:series="rfxplData"
|
|
|
@@ -809,6 +822,8 @@
|
|
|
<rander-new-chart
|
|
|
width="100%"
|
|
|
height="100%"
|
|
|
+ title="月风向频率"
|
|
|
+ subtext="(%)"
|
|
|
:lenged="yfxplLen"
|
|
|
:xAxis="yfxplxaisx"
|
|
|
:series="yfxplData"
|
|
|
@@ -834,14 +849,16 @@
|
|
|
:value="nfxplData"
|
|
|
title="年风向频率"
|
|
|
/> -->
|
|
|
- <!-- <rander-new-chart
|
|
|
+ <rander-new-chart
|
|
|
width="100%"
|
|
|
height="100%"
|
|
|
+ title="年风向频率"
|
|
|
+ subtext="(%)"
|
|
|
:lenged="nfxplLen"
|
|
|
:xAxis="nfxplxaisx"
|
|
|
:series="nfxplData"
|
|
|
:isRadar="false"
|
|
|
- /> -->
|
|
|
+ />
|
|
|
</div>
|
|
|
</panel>
|
|
|
</el-col>
|
|
|
@@ -1084,7 +1101,7 @@ export default {
|
|
|
column: [
|
|
|
{
|
|
|
name: "风机",
|
|
|
- field: "windTurbineId",
|
|
|
+ field: "aname",
|
|
|
is_num: false,
|
|
|
is_light: false,
|
|
|
},
|
|
|
@@ -1096,7 +1113,7 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
name: "恢复时间",
|
|
|
- field: "starttime",
|
|
|
+ field: "startTime",
|
|
|
is_num: false,
|
|
|
is_light: false,
|
|
|
},
|
|
|
@@ -1494,18 +1511,25 @@ export default {
|
|
|
pageNum: "1",
|
|
|
pageSize: "5",
|
|
|
};
|
|
|
- const { data: datas } = await getApigzjllist(params);
|
|
|
- if (datas && datas.data && datas.data.records.length > 0) {
|
|
|
- datas.data.records.forEach((ele) => {
|
|
|
- ele.stopTime = new Date(ele.stopTime).formatDate(
|
|
|
- "yyyy-MM-dd hh:mm:ss"
|
|
|
- );
|
|
|
- ele.starttime = ele.starttime
|
|
|
- ? new Date(ele.starttime).formatDate("yyyy-MM-dd hh:mm:ss")
|
|
|
- : "";
|
|
|
+ const { data: datas } = await getApigzjllist(params);
|
|
|
+ if (datas && datas.data && datas.data.records.length > 0) {
|
|
|
+ datas.data.records.forEach((ele) => {
|
|
|
+ ele.stopTime = new Date(ele.stopTime).formatDate(
|
|
|
+ "yyyy-MM-dd hh:mm:ss"
|
|
|
+ );
|
|
|
+ ele.startTime = ele.startTime
|
|
|
+ ? new Date(ele.startTime).formatDate("yyyy-MM-dd hh:mm:ss")
|
|
|
+ : "";
|
|
|
+ });
|
|
|
+ datas.data.records.forEach((it) => {
|
|
|
+ this.wtArray.forEach((ic) => {
|
|
|
+ if (it.windturbineId === ic.id) {
|
|
|
+ it.aname = ic.aname;
|
|
|
+ }
|
|
|
});
|
|
|
- that.stopTableData.data = datas.data.records;
|
|
|
- }
|
|
|
+ });
|
|
|
+ that.stopTableData.data = datas.data.records;
|
|
|
+ }
|
|
|
},
|
|
|
// tab1 - 获取当日限电数据
|
|
|
async getXdData() {
|
|
|
@@ -1516,18 +1540,18 @@ export default {
|
|
|
pageNum: "1",
|
|
|
pageSize: "5",
|
|
|
};
|
|
|
- const { data: datas } = await getApixdjllist(params);
|
|
|
- if (datas && datas.data && datas.data.records.length > 0) {
|
|
|
- datas.data.records.forEach((ele) => {
|
|
|
- ele.stopTime = new Date(ele.stopTime).formatDate(
|
|
|
- "yyyy-MM-dd hh:mm:ss"
|
|
|
- );
|
|
|
- ele.starttime = ele.starttime
|
|
|
- ? new Date(ele.starttime).formatDate("yyyy-MM-dd hh:mm:ss")
|
|
|
- : "";
|
|
|
- });
|
|
|
- that.xdTableData.data = datas.data.records;
|
|
|
- }
|
|
|
+ const { data: datas } = await getApixdjllist(params);
|
|
|
+ if (datas && datas.data && datas.data.records.length > 0) {
|
|
|
+ datas.data.records.forEach((ele) => {
|
|
|
+ ele.stopTime = new Date(ele.stopTime).formatDate(
|
|
|
+ "yyyy-MM-dd hh:mm:ss"
|
|
|
+ );
|
|
|
+ ele.starttime = ele.starttime
|
|
|
+ ? new Date(ele.starttime).formatDate("yyyy-MM-dd hh:mm:ss")
|
|
|
+ : "";
|
|
|
+ });
|
|
|
+ that.xdTableData.data = datas.data.records;
|
|
|
+ }
|
|
|
},
|
|
|
// tab2 ----------------------------------------
|
|
|
// tab2 - 获取日发电量信息
|
|
|
@@ -1539,6 +1563,7 @@ export default {
|
|
|
};
|
|
|
const { data: datas } = await getApiwadAjax(params);
|
|
|
if (datas && datas.data) {
|
|
|
+ debugger;
|
|
|
that.dayPowerInfo = datas.data;
|
|
|
}
|
|
|
},
|
|
|
@@ -1849,11 +1874,11 @@ export default {
|
|
|
} else {
|
|
|
this.hisWpid = this.wpId;
|
|
|
}
|
|
|
- // if (index == 2) {
|
|
|
- // this.wpId = this.hisSubid ? this.hisSubid : this.cftlist[0].id;
|
|
|
- // } else {
|
|
|
- // this.wpId = this.hisWpid ? this.hisWpid : this.wpArray[0].id;
|
|
|
- // }
|
|
|
+ // if (index == 2) {
|
|
|
+ // this.wpId = this.hisSubid ? this.hisSubid : this.cftlist[0].id;
|
|
|
+ // } else {
|
|
|
+ // this.wpId = this.hisWpid ? this.hisWpid : this.wpArray[0].id;
|
|
|
+ // }
|
|
|
this.tabIndex = index;
|
|
|
this.search();
|
|
|
},
|
|
|
@@ -1977,13 +2002,13 @@ export default {
|
|
|
|
|
|
.TabOne {
|
|
|
.TabOne_topChart {
|
|
|
- height: calc((100% - 260px) / 2);
|
|
|
- margin-bottom: 10px;
|
|
|
- }
|
|
|
- .TabOne_centerChart {
|
|
|
- margin-bottom: 10px;
|
|
|
- height: calc((100% - 260px) / 2);
|
|
|
- }
|
|
|
+ height: calc((100% - 260px) / 2);
|
|
|
+ margin-bottom: 10px;
|
|
|
+ }
|
|
|
+ .TabOne_centerChart {
|
|
|
+ margin-bottom: 10px;
|
|
|
+ height: calc((100% - 260px) / 2);
|
|
|
+ }
|
|
|
.table-info {
|
|
|
display: flex;
|
|
|
height: 260px;
|
|
|
@@ -2004,14 +2029,14 @@ export default {
|
|
|
flex-wrap: wrap;
|
|
|
height: 100%;
|
|
|
color: #05bb4c;
|
|
|
- &.month-1{
|
|
|
+ &.month-1 {
|
|
|
justify-content: flex-start;
|
|
|
.info-item {
|
|
|
- margin-right: 8px;
|
|
|
+ margin-right: 8px;
|
|
|
}
|
|
|
}
|
|
|
&.month-3 {
|
|
|
- justify-content: space-between;
|
|
|
+ justify-content: space-between;
|
|
|
.info-item {
|
|
|
height: calc((100% - 8px * 4) / 5);
|
|
|
line-height: calc((100% - 8px * 4) / 5);
|
|
|
@@ -2063,12 +2088,12 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- .power-infoss{
|
|
|
- display: flex;
|
|
|
- flex-wrap: wrap;
|
|
|
- justify-content: space-between;
|
|
|
- height: calc(100% - 230px);
|
|
|
- color: #05bb4c;
|
|
|
+ .power-infoss {
|
|
|
+ display: flex;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ justify-content: space-between;
|
|
|
+ height: calc(100% - 230px);
|
|
|
+ color: #05bb4c;
|
|
|
}
|
|
|
|
|
|
.month-info {
|