|
@@ -12,36 +12,36 @@
|
|
|
<Row type="flex">
|
|
|
<Col :span="24">
|
|
|
<com-panel title="预测电量" sub-title="(单位:万KWh)">
|
|
|
- <list-bar-chart :list="ForecastPower" height="16.6667vh" />
|
|
|
+ <list-bar-chart-2 :list="ForecastPower" height="16.6667vh" />
|
|
|
</com-panel>
|
|
|
</Col>
|
|
|
</Row>
|
|
|
<Row type="flex">
|
|
|
<Col :span="24">
|
|
|
<com-panel title="功率复核" sub-title="(单位:万KW)">
|
|
|
- <power-review :data="powerData" />
|
|
|
+ <power-review :data="powerData" :id="wpId" @chartClick="showPowerChart" />
|
|
|
</com-panel>
|
|
|
</Col>
|
|
|
</Row>
|
|
|
</Col>
|
|
|
<Col :span="12">
|
|
|
- <Map></Map>
|
|
|
+ <Map :wpId="wpId" :day="String(jczbmap.aqts || '---')" :data="fcmap" @mapClick="changeShowType"></Map>
|
|
|
</Col>
|
|
|
<Col :span="6">
|
|
|
- <Row type="flex">
|
|
|
- <Col :span="24">
|
|
|
- <com-panel title="电量分析" sub-title="(单位:万KWh)">
|
|
|
- <coulometric-analysis />
|
|
|
- </com-panel>
|
|
|
- </Col>
|
|
|
- </Row>
|
|
|
- <Row type="flex">
|
|
|
- <Col :span="24">
|
|
|
- <com-panel title="计划电量完成情况" sub-title="(单位:万KWh)">
|
|
|
- <power-plan :data="planData" />
|
|
|
- </com-panel>
|
|
|
- </Col>
|
|
|
- </Row>
|
|
|
+ <Row type="flex">
|
|
|
+ <Col :span="24">
|
|
|
+ <com-panel title="电量分析" sub-title="(单位:万KWh)">
|
|
|
+ <coulometric-analysis />
|
|
|
+ </com-panel>
|
|
|
+ </Col>
|
|
|
+ </Row>
|
|
|
+ <Row type="flex">
|
|
|
+ <Col :span="24">
|
|
|
+ <com-panel title="计划电量完成情况" sub-title="(单位:万KWh)">
|
|
|
+ <power-plan :data="planData" :showSingle="powerplanShowSingle" :id="wpId" @chartClick="showDownChart" />
|
|
|
+ </com-panel>
|
|
|
+ </Col>
|
|
|
+ </Row>
|
|
|
</Col>
|
|
|
</Row>
|
|
|
<Row type="flex">
|
|
@@ -109,24 +109,24 @@
|
|
|
<tr class="">
|
|
|
<td class="text gray">装机容量</td>
|
|
|
<td class="value green">{{jczbmap.zjrl}}</td>
|
|
|
- <td class="unit gray">万kwh</td>
|
|
|
+ <td class="unit gray">万kw</td>
|
|
|
</tr>
|
|
|
<tr class="">
|
|
|
<td class="text gray">装机台数</td>
|
|
|
<td class="value green">{{jczbmap.zjts}}</td>
|
|
|
<td class="unit gray">台</td>
|
|
|
</tr>
|
|
|
- <tr class="">
|
|
|
+ <tr class="" @click="openDialog('日发电量详情', 'genreset/findDayInfo', 'rfdl', 'table')">
|
|
|
<td class="text gray">日发电量</td>
|
|
|
<td class="value green">{{jczbmap.rfdl}}</td>
|
|
|
<td class="unit gray">万kwh</td>
|
|
|
</tr>
|
|
|
- <tr class="">
|
|
|
+ <tr class="" @click="openDialog('月发电量详情', 'genreset/findMonthInfo', 'yfdl', 'table')">
|
|
|
<td class="text gray">月发电量</td>
|
|
|
<td class="value green">{{jczbmap.yfdl}}</td>
|
|
|
<td class="unit gray gray">万kwh</td>
|
|
|
</tr>
|
|
|
- <tr class="">
|
|
|
+ <tr class="" @click="openDialog('年发电量详情', 'genreset/findYearInfo', 'nfdl', 'table')">
|
|
|
<td class="text gray">年发电量</td>
|
|
|
<td class="value green">{{jczbmap.nfdl}}</td>
|
|
|
<td class="unit gray">万kwh</td>
|
|
@@ -143,12 +143,12 @@
|
|
|
<com-panel>
|
|
|
<table class="table-card">
|
|
|
<tr class="">
|
|
|
- <td class="text gray">mttr</td>
|
|
|
+ <td class="text gray">MTTR</td>
|
|
|
<td class="value green">{{jczbmap.mttr}}</td>
|
|
|
<td class="unit gray">小时</td>
|
|
|
</tr>
|
|
|
<tr class="">
|
|
|
- <td class="text gray">mtbf</td>
|
|
|
+ <td class="text gray">MTBF</td>
|
|
|
<td class="value green">{{jczbmap.mtbf}}</td>
|
|
|
<td class="unit gray">小时</td>
|
|
|
</tr>
|
|
@@ -168,9 +168,9 @@
|
|
|
<td class="unit gray gray">%</td>
|
|
|
</tr>
|
|
|
<tr class="">
|
|
|
- <td class="text gray">年等效科利用系数</td>
|
|
|
- <td class="value green">{{gxkmap.ndxkyss}}</td>
|
|
|
- <td class="unit gray">%</td>
|
|
|
+ <td class="text gray">{{wpId === "0" ? "节约二氧化碳" : "年等效科利用系数"}}</td>
|
|
|
+ <td class="value green">{{wpId === "0" ? jczbmap.jpeyht : gxkmap.ndxkyss}}</td>
|
|
|
+ <td class="unit gray">{{wpId === "0" ? "万吨" : "%"}}</td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
</com-panel>
|
|
@@ -178,35 +178,35 @@
|
|
|
<Col>
|
|
|
<com-panel>
|
|
|
<table class="table-card">
|
|
|
- <tr class="">
|
|
|
+ <tr class="" @click="openDialog('日性能损失详情', 'genreset/findDayInfo', 'rxnssdl', 'table')">
|
|
|
<td class="text gray">日性能损失</td>
|
|
|
<td class="value green">{{wxssmap.rqfssdl}}</td>
|
|
|
<td class="unit gray">万kwh</td>
|
|
|
</tr>
|
|
|
- <tr class="">
|
|
|
+ <tr class="" @click="openDialog('日故障损失详情', 'genreset/findDayInfo', 'rgzssdl', 'table')">
|
|
|
<td class="text gray">日故障损失</td>
|
|
|
<td class="value green">{{wxssmap.rgzssdl}}</td>
|
|
|
<td class="unit gray">万kwh</td>
|
|
|
</tr>
|
|
|
- <tr class="">
|
|
|
+ <tr class="" @click="openDialog('日检修损失详情', 'genreset/findDayInfo', 'rjxssdl', 'table')">
|
|
|
<td class="text gray">日检修损失</td>
|
|
|
<td class="value green">{{wxssmap.rjxssdl}}</td>
|
|
|
<td class="unit gray">万kwh</td>
|
|
|
</tr>
|
|
|
- <tr class="">
|
|
|
+ <tr class="" @click="openDialog('日限电损失详情', 'genreset/findDayInfo', 'rxdssdl', 'table')">
|
|
|
<td class="text gray">日限电损失</td>
|
|
|
<td class="value green">{{wxssmap.rxdssdl}}</td>
|
|
|
<td class="unit gray gray">万kwh</td>
|
|
|
</tr>
|
|
|
- <tr class="">
|
|
|
+ <tr class="" @click="openDialog('日受累损失详情', 'genreset/findDayInfo', 'rslssdl', 'table')">
|
|
|
<td class="text gray">日受累损失</td>
|
|
|
<td class="value green">{{wxssmap.rslssdl}}</td>
|
|
|
<td class="unit gray">万kwh</td>
|
|
|
</tr>
|
|
|
<tr class="">
|
|
|
- <td class="text gray">年待机小时</td>
|
|
|
- <td class="value green">{{gxkmap.ndjxs}}</td>
|
|
|
- <td class="unit gray">小时</td>
|
|
|
+ <td class="text gray">{{wpId === "0" ? "节约标煤" : "年待机小时"}}</td>
|
|
|
+ <td class="value green">{{wpId === "0" ? jczbmap.jybm : gxkmap.ndjxs}}</td>
|
|
|
+ <td class="unit gray">{{wpId === "0" ? "万吨" : "小时"}}</td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
</com-panel>
|
|
@@ -214,35 +214,35 @@
|
|
|
<Col>
|
|
|
<com-panel>
|
|
|
<table class="table-card">
|
|
|
- <tr class="">
|
|
|
+ <tr class="" @click="openDialog('月性能损失详情', 'genreset/findMonthInfo', 'yxnssdl', 'table')">
|
|
|
<td class="text gray">月性能损失</td>
|
|
|
<td class="value green">{{wxssmap.yqfssdl}}</td>
|
|
|
<td class="unit gray">万kwh</td>
|
|
|
</tr>
|
|
|
- <tr class="">
|
|
|
+ <tr class="" @click="openDialog('月故障损失详情', 'genreset/findMonthInfo', 'ygzssdl', 'table')">
|
|
|
<td class="text gray">月故障损失</td>
|
|
|
<td class="value green">{{wxssmap.ygzssdl}}</td>
|
|
|
<td class="unit gray">万kwh</td>
|
|
|
</tr>
|
|
|
- <tr class="">
|
|
|
+ <tr class="" @click="openDialog('月检修损失详情', 'genreset/findMonthInfo', 'yjxssdl', 'table')">
|
|
|
<td class="text gray">月检修损失</td>
|
|
|
<td class="value green">{{wxssmap.yjxssdl}}</td>
|
|
|
<td class="unit gray">万kwh</td>
|
|
|
</tr>
|
|
|
- <tr class="">
|
|
|
+ <tr class="" @click="openDialog('月限电损失详情', 'genreset/findMonthInfo', 'yxdssdl', 'table')">
|
|
|
<td class="text gray">月限电损失</td>
|
|
|
<td class="value green">{{wxssmap.yxdssdl}}</td>
|
|
|
<td class="unit gray gray">万kwh</td>
|
|
|
</tr>
|
|
|
- <tr class="">
|
|
|
+ <tr class="" @click="openDialog('月受累损失详情', 'genreset/findMonthInfo', 'yslssdl', 'table')">
|
|
|
<td class="text gray">月受累损失</td>
|
|
|
<td class="value green">{{wxssmap.yslssdl}}</td>
|
|
|
<td class="unit gray">万kwh</td>
|
|
|
</tr>
|
|
|
<tr class="">
|
|
|
- <td class="text gray">年运行小时</td>
|
|
|
- <td class="value green">{{gxkmap.nyxxs}}</td>
|
|
|
- <td class="unit gray">小时</td>
|
|
|
+ <td class="text gray">{{wpId === "0" ? "节约二氧化硫" : "年运行小时"}}</td>
|
|
|
+ <td class="value green">{{wpId === "0" ? jczbmap.jpeyhl : gxkmap.nyxxs}}</td>
|
|
|
+ <td class="unit gray">{{wpId === "0" ? "万吨" : "小时"}}</td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
</com-panel>
|
|
@@ -250,35 +250,35 @@
|
|
|
<Col>
|
|
|
<com-panel>
|
|
|
<table class="table-card">
|
|
|
- <tr class="">
|
|
|
+ <tr class="" @click="openDialog('年性能损失详情', 'genreset/findYearInfo', 'nxnssdl', 'table')">
|
|
|
<td class="text gray">年性能损失</td>
|
|
|
<td class="value green">{{wxssmap.nqfssdl}}</td>
|
|
|
<td class="unit gray">万kwh</td>
|
|
|
</tr>
|
|
|
- <tr class="">
|
|
|
+ <tr class="" @click="openDialog('年故障损失详情', 'genreset/findYearInfo', 'ngzssdl', 'table')">
|
|
|
<td class="text gray">年故障损失</td>
|
|
|
<td class="value green">{{wxssmap.ngzssdl}}</td>
|
|
|
<td class="unit gray">万kwh</td>
|
|
|
</tr>
|
|
|
- <tr class="">
|
|
|
+ <tr class="" @click="openDialog('年检修损失详情', 'genreset/findYearInfo', 'njxssdl', 'table')">
|
|
|
<td class="text gray">年检修损失</td>
|
|
|
<td class="value green">{{wxssmap.njxssdl}}</td>
|
|
|
<td class="unit gray">万kwh</td>
|
|
|
</tr>
|
|
|
- <tr class="">
|
|
|
+ <tr class="" @click="openDialog('年限电损失详情', 'genreset/findYearInfo', 'nxdssdl', 'table')">
|
|
|
<td class="text gray">年限电损失</td>
|
|
|
<td class="value green">{{wxssmap.nxdssdl}}</td>
|
|
|
<td class="unit gray gray">万kwh</td>
|
|
|
</tr>
|
|
|
- <tr class="">
|
|
|
+ <tr class="" @click="openDialog('年受累损失详情', 'genreset/findYearInfo', 'nslssdl', 'table')">
|
|
|
<td class="text gray">年受累损失</td>
|
|
|
<td class="value green">{{wxssmap.nslssdl}}</td>
|
|
|
<td class="unit gray">万kwh</td>
|
|
|
</tr>
|
|
|
<tr class="">
|
|
|
- <td class="text gray">年故障小时</td>
|
|
|
- <td class="value green">{{gxkmap.ngzxs}}</td>
|
|
|
- <td class="unit gray">小时</td>
|
|
|
+ <td class="text gray">{{wpId === "0" ? "节约用水" : "年故障小时"}}</td>
|
|
|
+ <td class="value green">{{wpId === "0" ? jczbmap.jys : gxkmap.ngzxs}}</td>
|
|
|
+ <td class="unit gray">{{wpId === "0" ? "万吨" : "小时"}}</td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
</com-panel>
|
|
@@ -418,6 +418,11 @@
|
|
|
</panel-3>
|
|
|
</Col>
|
|
|
</Row>
|
|
|
+ <el-dialog :title="dialogTitle" v-model="dialogShow" width="70%" top="10vh" custom-class="modal" :close-on-click-modal="true" @closed="dialogType = ''">
|
|
|
+ <Table :data="dialogData" v-if="dialogType === 'table'" />
|
|
|
+ <MultipleLineChart height="500px" :units="powerLineChartData.units" :list="powerLineChartData.value" :showLegend="true" v-if="dialogType === 'powerLineChart'" />
|
|
|
+ <multiple-bar-chart height="500px" :list="doneLineChartData.value" :units="doneLineChartData.units" v-if="dialogType === 'doneLineChart'" />
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -426,7 +431,7 @@
|
|
|
import Row from "../../components/coms/grid/row.vue";
|
|
|
import Col from "../../components/coms/grid/col.vue";
|
|
|
import ComPanel from "../../components/coms/panel/panel";
|
|
|
-import ListBarChart from "../../components/chart/bar/list-bar-chart.vue";
|
|
|
+// import ListBarChart from "../../components/chart/bar/list-bar-chart.vue";
|
|
|
import ToolbarPanel from "../../components/coms/panel/toolbar-panel.vue";
|
|
|
import MultipleBarChart from "../../components/chart/bar/multiple-bar-chart.vue";
|
|
|
import MultipleLineChart from "../../components/chart/line/multiple-line-chart.vue";
|
|
@@ -437,6 +442,9 @@ import Weather from "./components/weather.vue";
|
|
|
import PowerReview from "./components/power-review.vue";
|
|
|
import PowerPlan from "./components/power-plan.vue";
|
|
|
import Map from "./components/map.vue";
|
|
|
+import ListBarChart2 from '../../components/chart/bar/list-bar-chart2.vue';
|
|
|
+
|
|
|
+import Table from "./dialog/table.vue";
|
|
|
|
|
|
export default {
|
|
|
name: "Home",
|
|
@@ -446,7 +454,7 @@ export default {
|
|
|
ComPanel,
|
|
|
Weather,
|
|
|
CoulometricAnalysis,
|
|
|
- ListBarChart,
|
|
|
+ // ListBarChart,
|
|
|
PowerReview,
|
|
|
ToolbarPanel,
|
|
|
PowerPlan,
|
|
@@ -455,6 +463,8 @@ export default {
|
|
|
Panel3,
|
|
|
SvgIcon,
|
|
|
Map,
|
|
|
+ ListBarChart2,
|
|
|
+ Table
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
@@ -465,25 +475,36 @@ export default {
|
|
|
mxztmap: {},
|
|
|
planData: {},
|
|
|
powerData: {},
|
|
|
+ powerLineChartData: {
|
|
|
+ // 图表所用单位
|
|
|
+ units: [""],
|
|
|
+ value: [
|
|
|
+ {
|
|
|
+ title: "",
|
|
|
+ yAxisIndex: 0, // 使用单位
|
|
|
+ value: [],
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ doneLineChartData: {
|
|
|
+ // 图表所用单位
|
|
|
+ units: [""],
|
|
|
+ value: [
|
|
|
+ {
|
|
|
+ title: "",
|
|
|
+ yAxisIndex: 0, // 使用单位
|
|
|
+ value: [],
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ dialogType: null,
|
|
|
+ wpId: "0",
|
|
|
+ fcmap:{},
|
|
|
+ dialogShow: false,
|
|
|
+ dialogTitle: "",
|
|
|
+ dialogData:{},
|
|
|
// 预测电量
|
|
|
- ForecastPower: [
|
|
|
- {
|
|
|
- name: "当日预测电量",
|
|
|
- value: 103.62,
|
|
|
- },
|
|
|
- {
|
|
|
- name: "实际发电量",
|
|
|
- value: 98.62,
|
|
|
- },
|
|
|
- {
|
|
|
- name: "当月预测电量",
|
|
|
- value: 113.27,
|
|
|
- },
|
|
|
- {
|
|
|
- name: "实际发电量",
|
|
|
- value: 136.72,
|
|
|
- },
|
|
|
- ],
|
|
|
+ ForecastPower: [],
|
|
|
// 日发电量
|
|
|
DayPower: {
|
|
|
// 图表所用单位
|
|
@@ -519,8 +540,9 @@ export default {
|
|
|
showLoading,
|
|
|
method: "POST",
|
|
|
subUrl: "genreset/findBasicDataInfo",
|
|
|
+ timeout: 60000,
|
|
|
data: {
|
|
|
- id: "MHS_FDC",
|
|
|
+ id: that.wpId,
|
|
|
},
|
|
|
success (res) {
|
|
|
let glvos = [];
|
|
@@ -578,7 +600,7 @@ export default {
|
|
|
rdlKey.forEach((keyEle, keyIndex) => {
|
|
|
res.data.rdlvos.forEach(cEle => {
|
|
|
DayPower.value[keyIndex].value.push({
|
|
|
- text: new Date(cEle.time).formatDate("yyyy-MM-dd"),
|
|
|
+ text: cEle.timestr,
|
|
|
value: cEle[keyEle]
|
|
|
});
|
|
|
});
|
|
@@ -587,7 +609,7 @@ export default {
|
|
|
glKey.forEach((keyEle, keyIndex) => {
|
|
|
res.data.glvos.forEach(cEle => {
|
|
|
Powertrend.value[keyIndex].value.push({
|
|
|
- text: new Date(cEle.time).formatDate("yyyy-MM-dd"),
|
|
|
+ text: new Date(cEle.time).formatDate("hh:mm:ss"),
|
|
|
value: cEle[keyEle]
|
|
|
});
|
|
|
});
|
|
@@ -595,16 +617,32 @@ export default {
|
|
|
|
|
|
that.powerData = [{
|
|
|
title: "风速",
|
|
|
- value: res.data.jczbmap.ssfs
|
|
|
+ value: res.data.jczbmap.ssfs,
|
|
|
+ dialogTitle: "风速详情",
|
|
|
+ subUrl: "genreset/findGLDetail",
|
|
|
+ targetName: "ssfs",
|
|
|
+ dialogType: "powerLineChart"
|
|
|
}, {
|
|
|
title: "保证功率",
|
|
|
- value: res.data.jczbmap.bzgl
|
|
|
+ value: res.data.jczbmap.bzgl,
|
|
|
+ dialogTitle: "保证功率详情",
|
|
|
+ subUrl: "genreset/findGLDetail",
|
|
|
+ targetName: "bzgl",
|
|
|
+ dialogType: "powerLineChart"
|
|
|
}, {
|
|
|
title: "应发功率",
|
|
|
- value: res.data.jczbmap.yfgl
|
|
|
+ value: res.data.jczbmap.yfgl,
|
|
|
+ dialogTitle: "应发功率详情",
|
|
|
+ subUrl: "genreset/findGLDetail",
|
|
|
+ targetName: "yfgl",
|
|
|
+ dialogType: "powerLineChart"
|
|
|
}, {
|
|
|
title: "实际功率",
|
|
|
- value: res.data.jczbmap.sjgl
|
|
|
+ value: res.data.jczbmap.sjgl,
|
|
|
+ dialogTitle: "实际功率详情",
|
|
|
+ subUrl: "genreset/findGLDetail",
|
|
|
+ targetName: "sjgl",
|
|
|
+ dialogType: "powerLineChart"
|
|
|
}];
|
|
|
|
|
|
that.DayPower = DayPower;
|
|
@@ -613,6 +651,26 @@ export default {
|
|
|
that.wxssmap = res.data.wxssmap;
|
|
|
that.gxkmap = res.data.gxkmap;
|
|
|
that.mxztmap = res.data.mxztmap;
|
|
|
+ that.fcmap = res.data.fcmap;
|
|
|
+
|
|
|
+ that.ForecastPower = [{
|
|
|
+ name: "当日预测电量",
|
|
|
+ value: res.data.jczbmap.rycfdl,
|
|
|
+ total: res.data.jczbmap.rfdlsx
|
|
|
+ },{
|
|
|
+ name: "实际发电量",
|
|
|
+ value: res.data.jczbmap.rfdl,
|
|
|
+ total: res.data.jczbmap.rfdlsx
|
|
|
+ },{
|
|
|
+ name: "当月预测电量",
|
|
|
+ value: res.data.jczbmap.yycfdl,
|
|
|
+ total: res.data.jczbmap.yfdlsx
|
|
|
+ },{
|
|
|
+ name: "实际发电量",
|
|
|
+ value: res.data.jczbmap.yfdl,
|
|
|
+ total: res.data.jczbmap.yfdlsx
|
|
|
+ }];
|
|
|
+
|
|
|
that.planData = {
|
|
|
yfdl: res.data.jczbmap.yfdl,
|
|
|
nfdl: res.data.jczbmap.nfdl,
|
|
@@ -621,10 +679,89 @@ export default {
|
|
|
ywcl: res.data.gxkmap.ywcl,
|
|
|
nwcl: res.data.gxkmap.nwcl
|
|
|
};
|
|
|
- console.log(111, res);
|
|
|
},
|
|
|
});
|
|
|
},
|
|
|
+
|
|
|
+ // 点击地图展示类型
|
|
|
+ changeShowType(wpId){
|
|
|
+ clearInterval(this.timmer);
|
|
|
+ this.timmer = null;
|
|
|
+ this.wpId = wpId;
|
|
|
+ this.requestData(false);
|
|
|
+ this.timmer = setInterval(() => {
|
|
|
+ this.requestData(false);
|
|
|
+ }, this.$store.state.websocketTimeSec);
|
|
|
+ },
|
|
|
+
|
|
|
+ // 打开弹窗
|
|
|
+ openDialog(dialogTitle, subUrl, targetName, dialogType){
|
|
|
+ console.log(123123,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;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
+ // 显示功率复核图表
|
|
|
+ showPowerChart(res){
|
|
|
+ this.dialogTitle = res.dialogTitle;
|
|
|
+ this.dialogType = res.dialogType;
|
|
|
+
|
|
|
+ let powerLineChartData = {
|
|
|
+ // 图表所用单位
|
|
|
+ units: [""],
|
|
|
+ value: [],
|
|
|
+ };
|
|
|
+
|
|
|
+ res.data.forEach((pEle,pIndex)=>{
|
|
|
+ powerLineChartData.value.push({
|
|
|
+ title: pEle[0].name,
|
|
|
+ yAxisIndex: 0,
|
|
|
+ value: [],
|
|
|
+ });
|
|
|
+
|
|
|
+ pEle.forEach(cEle=>{
|
|
|
+ powerLineChartData.value[pIndex].value.push({
|
|
|
+ text: new Date(cEle.time).formatDate("hh:mm:ss"),
|
|
|
+ value: cEle.value1
|
|
|
+ });
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
+ this.powerLineChartData = powerLineChartData;
|
|
|
+ this.dialogShow = true;
|
|
|
+ },
|
|
|
+
|
|
|
+ // 显示计划电量完成情况图表
|
|
|
+ showDownChart(res){
|
|
|
+ this.dialogTitle = res.dialogTitle;
|
|
|
+ this.dialogType = res.dialogType;
|
|
|
+
|
|
|
+ this.doneLineChartData = res.data;
|
|
|
+ this.dialogShow = true;
|
|
|
+ },
|
|
|
+
|
|
|
+ // 地图进入事件
|
|
|
+ onEnter() {
|
|
|
+ this.powerplanShowSingle = true;
|
|
|
+ },
|
|
|
+
|
|
|
+ // 地图退出事件
|
|
|
+ onBack() {
|
|
|
+ this.powerplanShowSingle = false;
|
|
|
+ },
|
|
|
},
|
|
|
|
|
|
created () {
|
|
@@ -640,7 +777,7 @@ export default {
|
|
|
unmounted () {
|
|
|
clearInterval(this.timmer);
|
|
|
this.timmer = null;
|
|
|
- },
|
|
|
+ }
|
|
|
};
|
|
|
</script>
|
|
|
|