|
@@ -1,11 +1,21 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<div class="btn-group-tabs">
|
|
|
- <BtnGroup2 :btnGroups="btnGroupsss" :rowIndex="rowIndex" :index="selectIndex" @select="select"></BtnGroup2>
|
|
|
+ <BtnGroup2
|
|
|
+ :btnGroups="btnGroupsss"
|
|
|
+ :rowIndex="rowIndex"
|
|
|
+ :index="selectIndex"
|
|
|
+ @select="select"
|
|
|
+ ></BtnGroup2>
|
|
|
</div>
|
|
|
<div class="wind-site-home">
|
|
|
<div class="mg-b-16">
|
|
|
- <btn-group-double :btnGroups="btnGroups" :rowIndex="0" :index="1" @select="select" />
|
|
|
+ <btn-group-double
|
|
|
+ :btnGroups="btnGroups"
|
|
|
+ :rowIndex="0"
|
|
|
+ :index="1"
|
|
|
+ @select="select"
|
|
|
+ />
|
|
|
</div>
|
|
|
<!-- <row v-if="paramsId.includes('FDC')">
|
|
|
<wind-site-weather :time="nowTime" :data="tqmap" :paramsId="resCode" />
|
|
@@ -156,7 +166,7 @@
|
|
|
</row>
|
|
|
</panel-3>
|
|
|
</row> -->
|
|
|
- <row >
|
|
|
+ <row>
|
|
|
<wind-site-weather :time="nowTime" :data="tqmap" :paramsId="resCode" />
|
|
|
<panel-3 class="wind-site-info">
|
|
|
<row align="middle">
|
|
@@ -187,7 +197,9 @@
|
|
|
<div class="info-item">
|
|
|
<div class="value">{{ jczbmap.ssfs }}</div>
|
|
|
<!-- <div class="text">实时风速</div> -->
|
|
|
- <div class="text">{{resCode.includes('FDC')?'实时风速':'平均功率'}} </div>
|
|
|
+ <div class="text">
|
|
|
+ {{ resCode.includes("FDC") ? "实时风速" : "平均功率" }}
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<div class="info-item">
|
|
|
<div class="value">{{ jczbmap.sjgl }}</div>
|
|
@@ -197,24 +209,24 @@
|
|
|
</panel-3>
|
|
|
<panel-3 class="wind-running-info">
|
|
|
<row align="middle">
|
|
|
- <div class="fengji" v-if=" resCode.indexOf('GDC') == -1 ">
|
|
|
+ <div class="fengji" v-if="resCode.indexOf('GDC') == -1">
|
|
|
<div class="fengji-icon svg-icon svg-icon-white">
|
|
|
<svg-icon class="" svgid="svg-风机" />
|
|
|
</div>
|
|
|
<div class="info">
|
|
|
- <div class="text green" >接入风机 </div>
|
|
|
- <!-- <div class="text green" v-if="resCode.includes('FDC') && resCode != ''">接入风机 </div>
|
|
|
+ <div class="text green">接入风机</div>
|
|
|
+ <!-- <div class="text green" v-if="resCode.includes('FDC') && resCode != ''">接入风机 </div>
|
|
|
<div class="text green" v-else-if="resCode.includes('GDC') && resCode != ''">接入光伏 </div> -->
|
|
|
<div class="value">{{ jczbmap.jrts }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="fengji" v-else-if=" resCode.indexOf('FDC') == -1 ">
|
|
|
+ <div class="fengji" v-else-if="resCode.indexOf('FDC') == -1">
|
|
|
<div class="fengji-icon svg-icon svg-icon-white">
|
|
|
<svg-icon class="" svgid="svg-gf-matrix" />
|
|
|
</div>
|
|
|
<div class="info">
|
|
|
<div class="text green">接入光伏</div>
|
|
|
- <!-- <div class="text green" v-if="resCode.includes('FDC') && resCode != ''">接入风机 </div>
|
|
|
+ <!-- <div class="text green" v-if="resCode.includes('FDC') && resCode != ''">接入风机 </div>
|
|
|
<div class="text green" v-else-if="resCode.includes('GDC') && resCode != ''">接入光伏 </div> -->
|
|
|
<div class="value">{{ jczbmap.jrts }}</div>
|
|
|
</div>
|
|
@@ -225,57 +237,46 @@
|
|
|
<span class="svg-icon svg-icon-green">
|
|
|
<svg-icon svgid="svg-standby" />
|
|
|
</span>
|
|
|
- <span class="text green">
|
|
|
- 待机
|
|
|
- </span>
|
|
|
+ <span class="text green"> 待机 </span>
|
|
|
</div>
|
|
|
<div class="status">
|
|
|
<span class="svg-icon svg-icon-purple">
|
|
|
<svg-icon svgid="svg-normal-power" />
|
|
|
</span>
|
|
|
- <span class="text purple">
|
|
|
- 运行
|
|
|
- </span>
|
|
|
+ <span class="text purple"> 运行 </span>
|
|
|
</div>
|
|
|
- <div class="status ">
|
|
|
+ <div class="status">
|
|
|
<span class="svg-icon svg-icon-pink">
|
|
|
- <svg-icon svgid="svg-limit-power" style="margin:3px 0.3704vh -3px 0;" />
|
|
|
- </span>
|
|
|
- <span class="text pink">
|
|
|
- 限电
|
|
|
+ <svg-icon
|
|
|
+ svgid="svg-limit-power"
|
|
|
+ style="margin: 3px 0.3704vh -3px 0"
|
|
|
+ />
|
|
|
</span>
|
|
|
+ <span class="text pink"> 限电 </span>
|
|
|
</div>
|
|
|
<div class="status">
|
|
|
<span class="svg-icon svg-icon-red">
|
|
|
<svg-icon svgid="svg-gz-downtime" />
|
|
|
</span>
|
|
|
- <span class="text red">
|
|
|
- 故障
|
|
|
- </span>
|
|
|
+ <span class="text red"> 故障 </span>
|
|
|
</div>
|
|
|
<div class="status">
|
|
|
<span class="svg-icon svg-icon-orange">
|
|
|
<svg-icon svgid="svg-jx-downtime" />
|
|
|
</span>
|
|
|
- <span class="text orange">
|
|
|
- 检修
|
|
|
- </span>
|
|
|
+ <span class="text orange"> 检修 </span>
|
|
|
</div>
|
|
|
<div class="status">
|
|
|
<span class="svg-icon svg-icon-gray">
|
|
|
<svg-icon svgid="svg-offline" />
|
|
|
</span>
|
|
|
- <span class="text gray">
|
|
|
- 离线
|
|
|
- </span>
|
|
|
+ <span class="text gray"> 离线 </span>
|
|
|
</div>
|
|
|
<div class="status">
|
|
|
<span class="svg-icon svg-icon-white">
|
|
|
<svg-icon svgid="svg-intranet-involvement" />
|
|
|
</span>
|
|
|
- <span class="text white">
|
|
|
- 受累
|
|
|
- </span>
|
|
|
+ <span class="text white"> 受累 </span>
|
|
|
</div>
|
|
|
</row>
|
|
|
<row>
|
|
@@ -320,22 +321,32 @@
|
|
|
</panel-3>
|
|
|
</row>
|
|
|
<div class="first-info mg-t-16 mg-b-16">
|
|
|
- <div style="flex:0 1 450px;">
|
|
|
+ <div style="flex: 0 1 450px">
|
|
|
<panel title="场站">
|
|
|
- <station height="18.519vh" />
|
|
|
+ <station height="18.519vh" :chartData="stationChartData" />
|
|
|
</panel>
|
|
|
</div>
|
|
|
- <div class="mg-l-16" style="flex:1 1 auto;" ref="lineChart">
|
|
|
+ <div class="mg-l-16" style="flex: 1 1 auto" ref="lineChart">
|
|
|
<panel title="4小时功率曲线图" v-if="resCode.includes('FDC')">
|
|
|
- <multiple-line-chart height="18.519vh" v-if="Powertrend" :list="Powertrend.value" :units="Powertrend.units"
|
|
|
- :showLegend="true" />
|
|
|
+ <multiple-line-chart
|
|
|
+ height="18.519vh"
|
|
|
+ v-if="Powertrend"
|
|
|
+ :list="Powertrend.value"
|
|
|
+ :units="Powertrend.units"
|
|
|
+ :showLegend="true"
|
|
|
+ />
|
|
|
</panel>
|
|
|
- <panel title="4小时功率曲线图" v-if="resCode.includes('GDC')">
|
|
|
- <multiple-line-chart height="18.519vh" v-if="Powertrend1" :list="Powertrend1.value" :units="Powertrend1.units"
|
|
|
- :showLegend="true" />
|
|
|
+ <panel title="4小时功率曲线图" v-if="resCode.includes('GDC')">
|
|
|
+ <multiple-line-chart
|
|
|
+ height="18.519vh"
|
|
|
+ v-if="Powertrend1"
|
|
|
+ :list="Powertrend1.value"
|
|
|
+ :units="Powertrend1.units"
|
|
|
+ :showLegend="true"
|
|
|
+ />
|
|
|
</panel>
|
|
|
</div>
|
|
|
- <div class="mg-l-16" style="flex:0 0 400px;">
|
|
|
+ <div class="mg-l-16" style="flex: 0 0 400px">
|
|
|
<panel class="light-matrix-panel">
|
|
|
<light-matrix :list="fjmap" />
|
|
|
</panel>
|
|
@@ -343,45 +354,77 @@
|
|
|
</div>
|
|
|
<row>
|
|
|
<Col :span="8">
|
|
|
- <panel title="日度损失电量分析">
|
|
|
- <dual-pie-chart :innerData="pieChartData.dayData" :outerData="pieChartData.dayData" height="21.296vh" />
|
|
|
- </panel>
|
|
|
+ <panel title="日度损失电量分析">
|
|
|
+ <dual-pie-chart
|
|
|
+ :innerData="pieChartData.dayData"
|
|
|
+ :outerData="pieChartData.dayData"
|
|
|
+ height="21.296vh"
|
|
|
+ />
|
|
|
+ </panel>
|
|
|
</Col>
|
|
|
<Col :span="8">
|
|
|
- <panel title="月度损失电量分析">
|
|
|
- <dual-pie-chart :innerData="pieChartData.monthData" :outerData="pieChartData.monthData" height="21.296vh" />
|
|
|
- </panel>
|
|
|
+ <panel title="月度损失电量分析">
|
|
|
+ <dual-pie-chart
|
|
|
+ :innerData="pieChartData.monthData"
|
|
|
+ :outerData="pieChartData.monthData"
|
|
|
+ height="21.296vh"
|
|
|
+ />
|
|
|
+ </panel>
|
|
|
</Col>
|
|
|
<Col :span="8">
|
|
|
- <panel title="年度损失电量分析">
|
|
|
- <dual-pie-chart :innerData="pieChartData.yearData" :outerData="pieChartData.yearData" height="21.296vh" />
|
|
|
- </panel>
|
|
|
+ <panel title="年度损失电量分析">
|
|
|
+ <dual-pie-chart
|
|
|
+ :innerData="pieChartData.yearData"
|
|
|
+ :outerData="pieChartData.yearData"
|
|
|
+ height="21.296vh"
|
|
|
+ />
|
|
|
+ </panel>
|
|
|
</Col>
|
|
|
</row>
|
|
|
<row>
|
|
|
<Col :span="8">
|
|
|
- <panel title="日度损失电量分析">
|
|
|
- <hover-bar-chart :list="dayLost" height="21.296vh" />
|
|
|
- </panel>
|
|
|
+ <panel title="日度损失电量分析">
|
|
|
+ <hover-bar-chart :list="dayLost" height="21.296vh" />
|
|
|
+ </panel>
|
|
|
</Col>
|
|
|
<Col :span="8">
|
|
|
- <panel title="日发电量对比" subTitle="详情" @click='rfdl'>
|
|
|
- <multiple-bar-chart height="21.296vh" :list="CompleteElectricity.data" :units="CompleteElectricity.units"
|
|
|
- :showLegend="true" />
|
|
|
- </panel>
|
|
|
- <el-dialog title="日发电量对比" v-model="rfdlDialog" width="70%" top="15vh" custom-class="modal" :close-on-click-modal="false">
|
|
|
- <el-row type="flex">
|
|
|
- <ComTable :data="tableData" height="15vh"></ComTable>
|
|
|
- </el-row>
|
|
|
- <el-row type="flex">
|
|
|
- <multiple-bar-chart height="45vh" :list="CompleteElectricity.data" :units="CompleteElectricity.units" :showLegend="true" />
|
|
|
- </el-row>
|
|
|
- </el-dialog>
|
|
|
+ <panel title="日发电量对比" subTitle="详情" @click="rfdl">
|
|
|
+ <multiple-bar-chart
|
|
|
+ height="21.296vh"
|
|
|
+ :list="CompleteElectricity.data"
|
|
|
+ :units="CompleteElectricity.units"
|
|
|
+ :showLegend="true"
|
|
|
+ />
|
|
|
+ </panel>
|
|
|
+ <el-dialog
|
|
|
+ title="日发电量对比"
|
|
|
+ v-model="rfdlDialog"
|
|
|
+ width="70%"
|
|
|
+ top="15vh"
|
|
|
+ custom-class="modal"
|
|
|
+ :close-on-click-modal="false"
|
|
|
+ >
|
|
|
+ <el-row type="flex">
|
|
|
+ <ComTable :data="tableData" height="15vh"></ComTable>
|
|
|
+ </el-row>
|
|
|
+ <el-row type="flex">
|
|
|
+ <multiple-bar-chart
|
|
|
+ height="45vh"
|
|
|
+ :list="CompleteElectricity.data"
|
|
|
+ :units="CompleteElectricity.units"
|
|
|
+ :showLegend="true"
|
|
|
+ />
|
|
|
+ </el-row>
|
|
|
+ </el-dialog>
|
|
|
</Col>
|
|
|
<Col :span="8">
|
|
|
- <panel title="月发电量对比">
|
|
|
- <normal-line-chart height="21.296vh" :list="MonthCompare.value" :units="MonthCompare.units" />
|
|
|
- </panel>
|
|
|
+ <panel title="月发电量对比">
|
|
|
+ <normal-line-chart
|
|
|
+ height="21.296vh"
|
|
|
+ :list="MonthCompare.value"
|
|
|
+ :units="MonthCompare.units"
|
|
|
+ />
|
|
|
+ </panel>
|
|
|
</Col>
|
|
|
</row>
|
|
|
</div>
|
|
@@ -410,14 +453,31 @@ export default {
|
|
|
// 名称
|
|
|
name: "WindSiteHome",
|
|
|
// 使用组件
|
|
|
- components: { BtnGroup2, WindSiteWeather, Row, Col, Panel, DualPieChart, MultipleLineChart, Panel3, SvgIcon, HoverBarChart, MultipleBarChart, NormalLineChart, LightMatrix, BtnGroupDouble, Station ,ComTable},
|
|
|
+ components: {
|
|
|
+ BtnGroup2,
|
|
|
+ WindSiteWeather,
|
|
|
+ Row,
|
|
|
+ Col,
|
|
|
+ Panel,
|
|
|
+ DualPieChart,
|
|
|
+ MultipleLineChart,
|
|
|
+ Panel3,
|
|
|
+ SvgIcon,
|
|
|
+ HoverBarChart,
|
|
|
+ MultipleBarChart,
|
|
|
+ NormalLineChart,
|
|
|
+ LightMatrix,
|
|
|
+ BtnGroupDouble,
|
|
|
+ Station,
|
|
|
+ ComTable,
|
|
|
+ },
|
|
|
// 数据
|
|
|
- data () {
|
|
|
+ data() {
|
|
|
return {
|
|
|
timmer: null, // 计时器
|
|
|
timmer2: null,
|
|
|
- paramsId:"",
|
|
|
- resCode:"",
|
|
|
+ paramsId: "",
|
|
|
+ resCode: "",
|
|
|
nowTime: "", // 时间
|
|
|
fjmap: [], // 分机矩阵
|
|
|
tqmap: {}, // 天气数据
|
|
@@ -426,6 +486,7 @@ export default {
|
|
|
jczbmap: {}, // 顶部基础数据
|
|
|
dayLost: [], // 日度损失电量分析柱状图
|
|
|
donePower: [], // 完成电量柱状图
|
|
|
+ stationChartData: [],
|
|
|
// 饼图数据
|
|
|
pieChartData: {
|
|
|
// 日度
|
|
@@ -514,21 +575,21 @@ export default {
|
|
|
btns: [],
|
|
|
},
|
|
|
],
|
|
|
- rfdlDialog:false,
|
|
|
- tableData: {
|
|
|
- column: [],
|
|
|
- data: [],
|
|
|
- },
|
|
|
+ rfdlDialog: false,
|
|
|
+ tableData: {
|
|
|
+ column: [],
|
|
|
+ data: [],
|
|
|
+ },
|
|
|
};
|
|
|
},
|
|
|
// 函数
|
|
|
methods: {
|
|
|
- getWp () {
|
|
|
+ getWp() {
|
|
|
let that = this;
|
|
|
that.API.requestData({
|
|
|
method: "GET",
|
|
|
subUrl: "powercompare/windfarmAllAjax",
|
|
|
- success (res) {
|
|
|
+ success(res) {
|
|
|
let btnGroups = [
|
|
|
{
|
|
|
icon: "svg-wind-site",
|
|
@@ -560,7 +621,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
|
|
|
- renderBtnActiveIndex () {
|
|
|
+ renderBtnActiveIndex() {
|
|
|
this.btnGroupsss.forEach((pEle, pIndex) => {
|
|
|
pEle.btns.forEach((cEle, cIndex) => {
|
|
|
if (cEle.code === this.wpId) {
|
|
@@ -571,21 +632,15 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
|
|
|
- select (res) {
|
|
|
+ select(res) {
|
|
|
let that = this;
|
|
|
this.$router.replace({
|
|
|
path: `/monitor/windsite/home/${res.code}`,
|
|
|
});
|
|
|
that.resCode = res.code;
|
|
|
- // console.log('resCode:',that.resCode)
|
|
|
- // console.log('ParamsId:',that.paramsId)
|
|
|
- console.log('paramsId:',that.paramsId.indexOf('FDC'))
|
|
|
- console.log('resCode:',that.resCode.indexOf('FDC'))
|
|
|
- console.log('paramsId:',that.paramsId.indexOf('GDC'))
|
|
|
- console.log('resCode:',that.resCode.indexOf('GDC'))
|
|
|
},
|
|
|
// 根据风机状态码返回对应 class
|
|
|
- getColor (fjzt) {
|
|
|
+ getColor(fjzt) {
|
|
|
switch (fjzt) {
|
|
|
case 0:
|
|
|
return "green";
|
|
@@ -604,13 +659,12 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
// 请求服务
|
|
|
- requestData (showLoading) {
|
|
|
+ requestData(showLoading) {
|
|
|
this.requestWpInfo(showLoading);
|
|
|
-
|
|
|
},
|
|
|
|
|
|
// 获取场站监视数据
|
|
|
- requestWpInfo (showLoading) {
|
|
|
+ requestWpInfo(showLoading) {
|
|
|
let that = this;
|
|
|
that.API.requestData({
|
|
|
showLoading,
|
|
@@ -619,14 +673,22 @@ export default {
|
|
|
data: {
|
|
|
wpId: that.wpId,
|
|
|
},
|
|
|
- success (res) {
|
|
|
+ success(res) {
|
|
|
if (res.data) {
|
|
|
- // console.log('resWpinfo:',res.data)
|
|
|
that.tqmap = res.data.tqmap;
|
|
|
- that.tqmap.name = res.data.jczbmap.name
|
|
|
- that.tqmap.resCode = that.resCode
|
|
|
+ that.tqmap.name = res.data.jczbmap.name;
|
|
|
+ that.tqmap.resCode = that.resCode;
|
|
|
let fjmap = [];
|
|
|
- let keys = ["value1", "value2", "value3", "value4", "value5", "value6", "value7", "value9"];
|
|
|
+ let keys = [
|
|
|
+ "value1",
|
|
|
+ "value2",
|
|
|
+ "value3",
|
|
|
+ "value4",
|
|
|
+ "value5",
|
|
|
+ "value6",
|
|
|
+ "value7",
|
|
|
+ "value9",
|
|
|
+ ];
|
|
|
let Powertrend = {
|
|
|
// 图表所用单位
|
|
|
units: ["(万KWh)", "(风速)"],
|
|
@@ -673,7 +735,7 @@ export default {
|
|
|
},
|
|
|
],
|
|
|
};
|
|
|
- let Powertrend1 = {
|
|
|
+ let Powertrend1 = {
|
|
|
// 图表所用单位
|
|
|
units: ["(万KWh)", "(风速)"],
|
|
|
value: [
|
|
@@ -767,7 +829,7 @@ export default {
|
|
|
text: new Date(ele.time).formatDate("hh:mm"),
|
|
|
value: ele[key],
|
|
|
});
|
|
|
- Powertrend1.value[keyIndex].value.push({
|
|
|
+ Powertrend1.value[keyIndex].value.push({
|
|
|
text: new Date(ele.time).formatDate("hh:mm"),
|
|
|
value: ele[key],
|
|
|
});
|
|
@@ -819,7 +881,7 @@ export default {
|
|
|
},
|
|
|
|
|
|
// 获取日度损失电量分析
|
|
|
- requestLoss (showLoading) {
|
|
|
+ requestLoss(showLoading) {
|
|
|
let that = this;
|
|
|
that.API.requestData({
|
|
|
showLoading,
|
|
@@ -828,7 +890,7 @@ export default {
|
|
|
data: {
|
|
|
wpId: that.wpId,
|
|
|
},
|
|
|
- success (res) {
|
|
|
+ success(res) {
|
|
|
let dayLost = [];
|
|
|
res.data.forEach((ele) => {
|
|
|
dayLost.push({
|
|
@@ -842,7 +904,7 @@ export default {
|
|
|
},
|
|
|
|
|
|
// 获取完成电量
|
|
|
- requestPower (showLoading) {
|
|
|
+ requestPower(showLoading) {
|
|
|
let that = this;
|
|
|
that.API.requestData({
|
|
|
showLoading,
|
|
@@ -851,14 +913,16 @@ export default {
|
|
|
data: {
|
|
|
wpId: that.wpId,
|
|
|
},
|
|
|
- success (res) {
|
|
|
- let column = [{
|
|
|
- name: '',
|
|
|
- field: 'tit',
|
|
|
- is_num: false,
|
|
|
- is_light: false,
|
|
|
- }],
|
|
|
- tableData = [];
|
|
|
+ success(res) {
|
|
|
+ let column = [
|
|
|
+ {
|
|
|
+ name: "",
|
|
|
+ field: "tit",
|
|
|
+ is_num: false,
|
|
|
+ is_light: false,
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ tableData = [];
|
|
|
let data = [
|
|
|
{
|
|
|
title: "日发电量",
|
|
@@ -870,62 +934,62 @@ export default {
|
|
|
yAxisIndex: 0,
|
|
|
value: [],
|
|
|
},
|
|
|
- {
|
|
|
- title: "风速",
|
|
|
- yAxisIndex: 0,
|
|
|
- value: [],
|
|
|
- },
|
|
|
- {
|
|
|
- title: "上网电量",
|
|
|
- yAxisIndex: 0,
|
|
|
- value: [],
|
|
|
- },
|
|
|
+ {
|
|
|
+ title: "风速",
|
|
|
+ yAxisIndex: 0,
|
|
|
+ value: [],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "上网电量",
|
|
|
+ yAxisIndex: 0,
|
|
|
+ value: [],
|
|
|
+ },
|
|
|
];
|
|
|
-
|
|
|
- res.data.forEach((ele,idx) => {
|
|
|
- data[0].value.push({
|
|
|
- text: ele.timestr,
|
|
|
- value: ele.value1 || 0,
|
|
|
- });
|
|
|
- data[1].value.push({
|
|
|
- text: ele.timestr,
|
|
|
- value: ele.value2 || 0,
|
|
|
- });
|
|
|
- data[2].value.push({
|
|
|
- text: ele.timestr,
|
|
|
- value: ele.value3 || 0,
|
|
|
- });
|
|
|
- data[3].value.push({
|
|
|
- text: ele.timestr,
|
|
|
- value: ele.value4 || 0,
|
|
|
- });
|
|
|
-
|
|
|
- column.push({
|
|
|
- name: ele.timestr,
|
|
|
- field: idx,
|
|
|
- is_num: false,
|
|
|
- is_light: false,
|
|
|
- });
|
|
|
+
|
|
|
+ res.data.forEach((ele, idx) => {
|
|
|
+ data[0].value.push({
|
|
|
+ text: ele.timestr,
|
|
|
+ value: ele.value1 || 0,
|
|
|
+ });
|
|
|
+ data[1].value.push({
|
|
|
+ text: ele.timestr,
|
|
|
+ value: ele.value2 || 0,
|
|
|
+ });
|
|
|
+ data[2].value.push({
|
|
|
+ text: ele.timestr,
|
|
|
+ value: ele.value3 || 0,
|
|
|
+ });
|
|
|
+ data[3].value.push({
|
|
|
+ text: ele.timestr,
|
|
|
+ value: ele.value4 || 0,
|
|
|
+ });
|
|
|
+
|
|
|
+ column.push({
|
|
|
+ name: ele.timestr,
|
|
|
+ field: idx,
|
|
|
+ is_num: false,
|
|
|
+ is_light: false,
|
|
|
+ });
|
|
|
});
|
|
|
- that.CompleteElectricity.data = data;
|
|
|
- data.forEach((ele,idx)=>{
|
|
|
- let obj = [];
|
|
|
- ele.value.forEach((ele2,idx2)=>{
|
|
|
- obj[idx2] = ele2.value;
|
|
|
- })
|
|
|
- obj['tit'] = ele.title;
|
|
|
- tableData.push(obj)
|
|
|
- })
|
|
|
- that.tableData = {
|
|
|
- column:column,
|
|
|
- data:tableData
|
|
|
- }
|
|
|
+ that.CompleteElectricity.data = data;
|
|
|
+ data.forEach((ele, idx) => {
|
|
|
+ let obj = [];
|
|
|
+ ele.value.forEach((ele2, idx2) => {
|
|
|
+ obj[idx2] = ele2.value;
|
|
|
+ });
|
|
|
+ obj["tit"] = ele.title;
|
|
|
+ tableData.push(obj);
|
|
|
+ });
|
|
|
+ that.tableData = {
|
|
|
+ column: column,
|
|
|
+ data: tableData,
|
|
|
+ };
|
|
|
},
|
|
|
});
|
|
|
},
|
|
|
|
|
|
// 获取月发电量对比
|
|
|
- requestMonthPower (showLoading) {
|
|
|
+ requestMonthPower(showLoading) {
|
|
|
let that = this;
|
|
|
that.API.requestData({
|
|
|
showLoading,
|
|
@@ -934,7 +998,7 @@ export default {
|
|
|
data: {
|
|
|
wpId: that.wpId,
|
|
|
},
|
|
|
- success (res) {
|
|
|
+ success(res) {
|
|
|
let data = [
|
|
|
{
|
|
|
title: "月发电量",
|
|
@@ -963,24 +1027,21 @@ export default {
|
|
|
},
|
|
|
});
|
|
|
},
|
|
|
- rfdl(){
|
|
|
- this.rfdlDialog = true;
|
|
|
- }
|
|
|
+ rfdl() {
|
|
|
+ this.rfdlDialog = true;
|
|
|
+ },
|
|
|
},
|
|
|
|
|
|
- created () {
|
|
|
+ created() {
|
|
|
let that = this;
|
|
|
that.wpId = that.$route.params.wpId;
|
|
|
that.paramsId = that.$route.params.wpId;
|
|
|
that.resCode = that.$route.params.wpId;
|
|
|
- console.log('paramsId:',that.paramsId.indexOf('FDC'))
|
|
|
- console.log('resCode:',that.resCode.indexOf('FDC'))
|
|
|
- console.log('paramsId:',that.paramsId.indexOf('GDC'))
|
|
|
- console.log('resCode:',that.resCode.indexOf('GDC'))
|
|
|
+ that.stationChartData = require(`./stationJson/${that.$route.params.wpId}.js`).default;
|
|
|
that.$nextTick(() => {
|
|
|
that.getWp();
|
|
|
that.requestData(false);
|
|
|
- that.requestLoss(false);
|
|
|
+ that.requestLoss(false);
|
|
|
that.requestPower(false);
|
|
|
that.requestMonthPower(false);
|
|
|
that.timmer = setInterval(() => {
|
|
@@ -992,16 +1053,16 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
|
|
|
- mounted () { },
|
|
|
+ mounted() {},
|
|
|
|
|
|
- unmounted () {
|
|
|
+ unmounted() {
|
|
|
clearInterval(this.timmer);
|
|
|
clearInterval(this.timmer2);
|
|
|
this.timmer = null;
|
|
|
this.timmer2 = null;
|
|
|
},
|
|
|
watch: {
|
|
|
- $route (res) {
|
|
|
+ $route(res) {
|
|
|
this.wpId = res.params.wpId;
|
|
|
if (res.params.wpId) {
|
|
|
this.requestData(false);
|
|
@@ -1014,7 +1075,9 @@ export default {
|
|
|
|
|
|
<style lang="less">
|
|
|
.wind-site-home {
|
|
|
- .wind-site-weather{width: 29%;}
|
|
|
+ .wind-site-weather {
|
|
|
+ width: 29%;
|
|
|
+ }
|
|
|
.first-info {
|
|
|
display: flex;
|
|
|
}
|
|
@@ -1022,7 +1085,7 @@ export default {
|
|
|
.wind-site-info {
|
|
|
margin-left: 0.7407vh;
|
|
|
// flex: 1 0 auto;
|
|
|
- width: 33%;
|
|
|
+ width: 33%;
|
|
|
padding: 8px;
|
|
|
|
|
|
& > .row {
|
|
@@ -1132,8 +1195,8 @@ export default {
|
|
|
}
|
|
|
|
|
|
.light-matrix-panel {
|
|
|
- width: 673px;
|
|
|
- overflow-y:scroll;
|
|
|
+ width: 673px;
|
|
|
+ overflow-y: scroll;
|
|
|
height: 240px;
|
|
|
|
|
|
.panel-body {
|