|
@@ -135,7 +135,12 @@
|
|
|
</div>
|
|
|
<div class="body-box" v-if="dashboard === 3">
|
|
|
<div>
|
|
|
- <front-elec-three :dashboardelecdata="dashboardelecdata" :dashboarddata="dashboarddata"></front-elec-three>
|
|
|
+ <front-elec-three
|
|
|
+ :dashboardelecdata="dashboardelecdata"
|
|
|
+ :dashboarddata="dashboarddata"
|
|
|
+ :latest7DayData="latest7DayData"
|
|
|
+ >
|
|
|
+ </front-elec-three>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -160,6 +165,7 @@ import dayjs from "dayjs";
|
|
|
import {selectLast,selectMonth,selecctfiftyday} from "@/api/aspen/dashboarddayelec";
|
|
|
import {selectWeek} from "@/api/aspen/dashboarddayeleceight";
|
|
|
import {getRealtimeByMaxDate} from "@/api/aspen/realtime.js";
|
|
|
+import {listDayLatest7} from "@/api/aspen/day.js";
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -176,6 +182,9 @@ export default {
|
|
|
bgCol0:"#0a84ff",
|
|
|
wh:"3.25rem",
|
|
|
tAlign:"left",
|
|
|
+ // 最近7天的数据
|
|
|
+ latest7DayData: [],
|
|
|
+ // 电厂大屏实时数据
|
|
|
dashboardelecdata: {
|
|
|
pageNum: 1,
|
|
|
pageSize: 20,
|
|
@@ -218,7 +227,13 @@ export default {
|
|
|
dataDate: null,
|
|
|
dateDay: null
|
|
|
},
|
|
|
- dashboarddata: {},
|
|
|
+ dashboarddata: {
|
|
|
+ latest7DayData:[],
|
|
|
+ rainPh: null,
|
|
|
+ rainCod: null,
|
|
|
+ wastePh: null,
|
|
|
+ wasteCod: null
|
|
|
+ },
|
|
|
monthData:{
|
|
|
pageNum: 1,
|
|
|
pageSize: 20,
|
|
@@ -354,6 +369,8 @@ export default {
|
|
|
window.setInterval(() => {
|
|
|
this.getRealtimeData();
|
|
|
}, 5000);
|
|
|
+ // 抓取最近7天的数据
|
|
|
+ this.getLatest7DayData();
|
|
|
|
|
|
// this.getList1();
|
|
|
// this.getMonthList1();
|
|
@@ -392,78 +409,87 @@ export default {
|
|
|
// }, 1000 * 10 * 6 * 60 * 6)
|
|
|
},
|
|
|
methods: {
|
|
|
+ /** 抓取最近7天的数据 */
|
|
|
+ getLatest7DayData() {
|
|
|
+ listDayLatest7().then(response => {
|
|
|
+ // 最近7天的数据
|
|
|
+ let data = response.rows;
|
|
|
+ for (let i = 0; i < data.length; i++) {
|
|
|
+ this.latest7DayData.push(data[i]);
|
|
|
+ this.dashboarddata.latest7DayData.push(data[i]);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ /** 抓取实时数据 */
|
|
|
getRealtimeData() {
|
|
|
getRealtimeByMaxDate().then(response => {
|
|
|
// 电厂大屏实时数据
|
|
|
- let realtimeData = response.data;
|
|
|
+ let data = response.data;
|
|
|
// 第一页
|
|
|
- this.dashboardelecdata.gtg1Lv = realtimeData.gtg1PowerGenLevel;
|
|
|
- this.dashboardelecdata.gtg2Lv = realtimeData.gtg2PowerGenLevel;
|
|
|
- this.dashboardelecdata.gtg3Lv = realtimeData.gtg3PowerGenLevel;
|
|
|
- this.dashboardelecdata.stg1Lv = realtimeData.stgPowerGenLevel;
|
|
|
- this.dashboardelecdata.mwhLv = realtimeData.totalPowerGen;
|
|
|
- this.dashboardelecdata.mwhWr = realtimeData.totalEfficiency;
|
|
|
- this.dashboardelecdata.stg1Wr = realtimeData.stgEfficiency;
|
|
|
- this.dashboardelecdata.gtg3Wr = realtimeData.gtg3Efficiency;
|
|
|
- this.dashboardelecdata.gtg2Wr = realtimeData.gtg2Efficiency;
|
|
|
- this.dashboardelecdata.gtg1Wr = realtimeData.gtg1Efficiency;
|
|
|
- this.dashboardelecdata.sub = realtimeData.sub;
|
|
|
- this.dashboardelecdata.elecPowerGen = realtimeData.elecPowerGen;
|
|
|
- this.dashboardelecdata.elecPowerSwitch = realtimeData.elecPowerSwitch;
|
|
|
- this.dashboardelecdata.elecUsed = realtimeData.elecUsed;
|
|
|
- this.dashboardelecdata.gasLeft = realtimeData.gasLeft;
|
|
|
- this.dashboardelecdata.gasElec = realtimeData.gasElec;
|
|
|
- this.dashboardelecdata.gasSynGas = realtimeData.gasSynGas;
|
|
|
- this.dashboardelecdata.gasU2 = realtimeData.gasU2;
|
|
|
- this.dashboardelecdata.gasStyrene = realtimeData.gasStyrene;
|
|
|
+ this.dashboardelecdata.gtg1Lv = data.gtg1PowerGenLevel;
|
|
|
+ this.dashboardelecdata.gtg2Lv = data.gtg2PowerGenLevel;
|
|
|
+ this.dashboardelecdata.gtg3Lv = data.gtg3PowerGenLevel;
|
|
|
+ this.dashboardelecdata.stg1Lv = data.stgPowerGenLevel;
|
|
|
+ this.dashboardelecdata.mwhLv = data.totalPowerGen;
|
|
|
+ this.dashboardelecdata.mwhWr = data.totalEfficiency;
|
|
|
+ this.dashboardelecdata.stg1Wr = data.stgEfficiency;
|
|
|
+ this.dashboardelecdata.gtg3Wr = data.gtg3Efficiency;
|
|
|
+ this.dashboardelecdata.gtg2Wr = data.gtg2Efficiency;
|
|
|
+ this.dashboardelecdata.gtg1Wr = data.gtg1Efficiency;
|
|
|
+ this.dashboardelecdata.sub = data.sub;
|
|
|
+ this.dashboardelecdata.elecPowerGen = data.elecPowerGen;
|
|
|
+ this.dashboardelecdata.elecPowerSwitch = data.elecPowerSwitch;
|
|
|
+ this.dashboardelecdata.elecUsed = data.elecUsed;
|
|
|
+ this.dashboardelecdata.gasLeft = data.gasLeft;
|
|
|
+ this.dashboardelecdata.gasElec = data.gasElec;
|
|
|
+ this.dashboardelecdata.gasSynGas = data.gasSynGas;
|
|
|
+ this.dashboardelecdata.gasU2 = data.gasU2;
|
|
|
+ this.dashboardelecdata.gasStyrene = data.gasStyrene;
|
|
|
// 第二页
|
|
|
- this.dashboardelecdata.hhpPphhp = realtimeData.hhpPphhp;
|
|
|
- this.dashboardelecdata.hhpAaae = realtimeData.hhpAaae;
|
|
|
- this.dashboardelecdata.hhpGaa = realtimeData.hhpGaa;
|
|
|
- this.dashboardelecdata.hhpSyn = realtimeData.hhpSyn;
|
|
|
- this.dashboardelecdata.hhpP3802 = realtimeData.hhpP3802;
|
|
|
- this.dashboardelecdata.hpLpg = realtimeData.hpLpg;
|
|
|
- this.dashboardelecdata.hpSub = realtimeData.hpSub;
|
|
|
- this.dashboardelecdata.hpNg = realtimeData.hpNg;
|
|
|
- this.dashboardelecdata.hpJ1501 = realtimeData.hpJ1501;
|
|
|
- this.dashboardelecdata.hpJ1504In = realtimeData.hpJ1504In;
|
|
|
- this.dashboardelecdata.hpJ1504Out = realtimeData.hpJ1504Out;
|
|
|
- this.dashboardelecdata.hpUser = realtimeData.hpUser;
|
|
|
- this.dashboardelecdata.mpNcipMp = realtimeData.mpNcipMp;
|
|
|
- this.dashboardelecdata.mp150511 = realtimeData.mp150511;
|
|
|
- this.dashboardelecdata.mp150512 = realtimeData.mp150512;
|
|
|
- this.dashboardelecdata.mpPpMp = realtimeData.mpPpMp;
|
|
|
- this.dashboardelecdata.mpP9801In = realtimeData.mpP9801In;
|
|
|
- this.dashboardelecdata.mpP9801Out = realtimeData.mpP9801Out;
|
|
|
- this.dashboardelecdata.mpJ1502 = realtimeData.mpJ1502;
|
|
|
- this.dashboardelecdata.mpUser = realtimeData.mpUser;
|
|
|
- this.dashboardelecdata.lpPpLp = realtimeData.lpPpLp;
|
|
|
- this.dashboardelecdata.lpEmpty = realtimeData.lpEmpty;
|
|
|
- this.dashboardelecdata.lpMpLetdown = realtimeData.lpMpLetdown;
|
|
|
- this.dashboardelecdata.lpJ1509 = realtimeData.lpJ1509;
|
|
|
- this.dashboardelecdata.lpJ1503 = realtimeData.lpJ1503;
|
|
|
- this.dashboardelecdata.lpLdpeTs = realtimeData.lpLdpeTs;
|
|
|
- this.dashboardelecdata.lpLdpeDm = realtimeData.lpLdpeDm;
|
|
|
- this.dashboardelecdata.lpUser = realtimeData.lpUser;
|
|
|
- this.dashboardelecdata.bccYpc = realtimeData.bccYpc;
|
|
|
- this.dashboardelecdata.bccSyn = realtimeData.bccSyn;
|
|
|
+ this.dashboardelecdata.hhpPphhp = data.hhpPphhp;
|
|
|
+ this.dashboardelecdata.hhpAaae = data.hhpAaae;
|
|
|
+ this.dashboardelecdata.hhpGaa = data.hhpGaa;
|
|
|
+ this.dashboardelecdata.hhpSyn = data.hhpSyn;
|
|
|
+ this.dashboardelecdata.hhpP3802 = data.hhpP3802;
|
|
|
+ this.dashboardelecdata.hpLpg = data.hpLpg;
|
|
|
+ this.dashboardelecdata.hpSub = data.hpSub;
|
|
|
+ this.dashboardelecdata.hpNg = data.hpNg;
|
|
|
+ this.dashboardelecdata.hpJ1501 = data.hpJ1501;
|
|
|
+ this.dashboardelecdata.hpJ1504In = data.hpJ1504In;
|
|
|
+ this.dashboardelecdata.hpJ1504Out = data.hpJ1504Out;
|
|
|
+ this.dashboardelecdata.hpUser = data.hpUser;
|
|
|
+ this.dashboardelecdata.mpNcipMp = data.mpNcipMp;
|
|
|
+ this.dashboardelecdata.mp150511 = data.mp150511;
|
|
|
+ this.dashboardelecdata.mp150512 = data.mp150512;
|
|
|
+ this.dashboardelecdata.mpPpMp = data.mpPpMp;
|
|
|
+ this.dashboardelecdata.mpP9801In = data.mpP9801In;
|
|
|
+ this.dashboardelecdata.mpP9801Out = data.mpP9801Out;
|
|
|
+ this.dashboardelecdata.mpJ1502 = data.mpJ1502;
|
|
|
+ this.dashboardelecdata.mpUser = data.mpUser;
|
|
|
+ this.dashboardelecdata.lpPpLp = data.lpPpLp;
|
|
|
+ this.dashboardelecdata.lpEmpty = data.lpEmpty;
|
|
|
+ this.dashboardelecdata.lpMpLetdown = data.lpMpLetdown;
|
|
|
+ this.dashboardelecdata.lpJ1509 = data.lpJ1509;
|
|
|
+ this.dashboardelecdata.lpJ1503 = data.lpJ1503;
|
|
|
+ this.dashboardelecdata.lpLdpeTs = data.lpLdpeTs;
|
|
|
+ this.dashboardelecdata.lpLdpeDm = data.lpLdpeDm;
|
|
|
+ this.dashboardelecdata.lpUser = data.lpUser;
|
|
|
+ this.dashboardelecdata.bccYpc = data.bccYpc;
|
|
|
+ this.dashboardelecdata.bccSyn = data.bccSyn;
|
|
|
// 第三页
|
|
|
- this.dashboardelecdata.hrsg1SmokeConvert = realtimeData.hrsg1SmokeConvert;
|
|
|
- this.dashboardelecdata.hrsg1So2Convert = realtimeData.hrsg1So2Convert;
|
|
|
- this.dashboardelecdata.hrsg1NoxConvert = realtimeData.hrsg1NoxConvert;
|
|
|
- this.dashboardelecdata.hrsg2SmokeConvert = realtimeData.hrsg2SmokeConvert;
|
|
|
- this.dashboardelecdata.hrsg2So2Convert = realtimeData.hrsg2So2Convert;
|
|
|
- this.dashboardelecdata.hrsg2NoxConvert = realtimeData.hrsg2NoxConvert;
|
|
|
- this.dashboardelecdata.hrsg3SmokeConvert = realtimeData.hrsg3SmokeConvert;
|
|
|
- this.dashboardelecdata.hrsg3So2Convert = realtimeData.hrsg3So2Convert;
|
|
|
- this.dashboardelecdata.hrsg3NoxConvert = realtimeData.hrsg3NoxConvert;
|
|
|
-
|
|
|
- this.dashboarddata.rainPh = realtimeData.rainPh;
|
|
|
- this.dashboarddata.rainCod = realtimeData.rainCod;
|
|
|
- this.dashboarddata.wastePh = realtimeData.wastePh;
|
|
|
- this.dashboarddata.wasteCod = realtimeData.wasteCod;
|
|
|
-
|
|
|
-
|
|
|
+ this.dashboardelecdata.hrsg1SmokeConvert = data.hrsg1SmokeConvert;
|
|
|
+ this.dashboardelecdata.hrsg1So2Convert = data.hrsg1So2Convert;
|
|
|
+ this.dashboardelecdata.hrsg1NoxConvert = data.hrsg1NoxConvert;
|
|
|
+ this.dashboardelecdata.hrsg2SmokeConvert = data.hrsg2SmokeConvert;
|
|
|
+ this.dashboardelecdata.hrsg2So2Convert = data.hrsg2So2Convert;
|
|
|
+ this.dashboardelecdata.hrsg2NoxConvert = data.hrsg2NoxConvert;
|
|
|
+ this.dashboardelecdata.hrsg3SmokeConvert = data.hrsg3SmokeConvert;
|
|
|
+ this.dashboardelecdata.hrsg3So2Convert = data.hrsg3So2Convert;
|
|
|
+ this.dashboardelecdata.hrsg3NoxConvert = data.hrsg3NoxConvert;
|
|
|
+ this.dashboarddata.rainPh = data.rainPh;
|
|
|
+ this.dashboarddata.rainCod = data.rainCod;
|
|
|
+ this.dashboarddata.wastePh = data.wastePh;
|
|
|
+ this.dashboarddata.wasteCod = data.wasteCod;
|
|
|
});
|
|
|
},
|
|
|
/** 查询dashboarddayelec抓取数据列表 */
|