|
@@ -116,17 +116,17 @@
|
|
|
<td class="value green">{{jczbmap.zjts}}</td>
|
|
|
<td class="unit gray">台</td>
|
|
|
</tr>
|
|
|
- <tr class="">
|
|
|
+ <tr class="" @click="openDialog('日发电量详情', 'genreset/findDayInfo', 'rfdl')">
|
|
|
<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')">
|
|
|
<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')">
|
|
|
<td class="text gray">年发电量</td>
|
|
|
<td class="value green">{{jczbmap.nfdl}}</td>
|
|
|
<td class="unit gray">万kwh</td>
|
|
@@ -178,27 +178,27 @@
|
|
|
<Col>
|
|
|
<com-panel>
|
|
|
<table class="table-card">
|
|
|
- <tr class="">
|
|
|
+ <tr class="" @click="openDialog('日性能损失详情', 'genreset/findDayInfo', 'rxnssdl')">
|
|
|
<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')">
|
|
|
<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')">
|
|
|
<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')">
|
|
|
<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')">
|
|
|
<td class="text gray">日受累损失</td>
|
|
|
<td class="value green">{{wxssmap.rslssdl}}</td>
|
|
|
<td class="unit gray">万kwh</td>
|
|
@@ -214,27 +214,27 @@
|
|
|
<Col>
|
|
|
<com-panel>
|
|
|
<table class="table-card">
|
|
|
- <tr class="">
|
|
|
+ <tr class="" @click="openDialog('月性能损失详情', 'genreset/findMonthInfo', 'yxnssdl')">
|
|
|
<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')">
|
|
|
<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')">
|
|
|
<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')">
|
|
|
<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')">
|
|
|
<td class="text gray">月受累损失</td>
|
|
|
<td class="value green">{{wxssmap.yslssdl}}</td>
|
|
|
<td class="unit gray">万kwh</td>
|
|
@@ -250,27 +250,27 @@
|
|
|
<Col>
|
|
|
<com-panel>
|
|
|
<table class="table-card">
|
|
|
- <tr class="">
|
|
|
+ <tr class="" @click="openDialog('年性能损失详情', 'genreset/findYearInfo', 'nxnssdl')">
|
|
|
<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')">
|
|
|
<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')">
|
|
|
<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')">
|
|
|
<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')">
|
|
|
<td class="text gray">年受累损失</td>
|
|
|
<td class="value green">{{wxssmap.nslssdl}}</td>
|
|
|
<td class="unit gray">万kwh</td>
|
|
@@ -418,6 +418,9 @@
|
|
|
</panel-3>
|
|
|
</Col>
|
|
|
</Row>
|
|
|
+ <el-dialog :title="dialogTitle" v-model="dialogShow" width="70%" top="10vh" custom-class="modal" :close-on-click-modal="true">
|
|
|
+ <Table :data="dialogData" />
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -438,6 +441,8 @@ import PowerReview from "./components/power-review.vue";
|
|
|
import PowerPlan from "./components/power-plan.vue";
|
|
|
import Map from "./components/map.vue";
|
|
|
|
|
|
+import Table from "./dialog/table.vue";
|
|
|
+
|
|
|
export default {
|
|
|
name: "Home",
|
|
|
components: {
|
|
@@ -455,6 +460,7 @@ export default {
|
|
|
Panel3,
|
|
|
SvgIcon,
|
|
|
Map,
|
|
|
+ Table
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
@@ -467,6 +473,9 @@ export default {
|
|
|
powerData: {},
|
|
|
wpId: "0",
|
|
|
fcmap:{},
|
|
|
+ dialogShow: false,
|
|
|
+ dialogTitle: "",
|
|
|
+ dialogData:{},
|
|
|
// 预测电量
|
|
|
ForecastPower: [],
|
|
|
// 日发电量
|
|
@@ -634,8 +643,31 @@ export default {
|
|
|
|
|
|
// 点击地图展示类型
|
|
|
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){
|
|
|
+ this.dialogTitle = dialogTitle;
|
|
|
+ let that = this;
|
|
|
+ that.API.requestData({
|
|
|
+ method: "POST",
|
|
|
+ subUrl,
|
|
|
+ data: {
|
|
|
+ id:that.wpId,
|
|
|
+ targetName
|
|
|
+ },
|
|
|
+ success (res) {
|
|
|
+ that.dialogData = res.data;
|
|
|
+ that.dialogShow = true;
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
|