From 1f49a3af20d0d4a4fe2bcd26f8a2c7b35c13061e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8F=9C?= <43331987+JiaLiBai@users.noreply.github.com> Date: Thu, 25 Sep 2025 17:58:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=960918?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ems/dzjk/home/index.vue | 9 ++ src/views/ems/dzjk/sbjk/db/index.vue | 152 +++++++++++++-------------- 2 files changed, 84 insertions(+), 77 deletions(-) diff --git a/src/views/ems/dzjk/home/index.vue b/src/views/ems/dzjk/home/index.vue index f01824c..403ffbe 100644 --- a/src/views/ems/dzjk/home/index.vue +++ b/src/views/ems/dzjk/home/index.vue @@ -110,6 +110,14 @@ export default { title: "今日放电量(kWh)", attr: "dayDisChargedCap", }, + { + title: "总收入", + attr: "todo", + }, + { + title: "当日实时收入", + attr: "todo", + }, { title: "总充电量(MWh)", attr: "totalChargedCap", @@ -118,6 +126,7 @@ export default { title: "总放电量(MWh)", attr: "totalDischargedCap", }, + ], info: {}, //基本信息 runningInfo: {}, //总累计运行数据+报警表格 diff --git a/src/views/ems/dzjk/sbjk/db/index.vue b/src/views/ems/dzjk/sbjk/db/index.vue index 52f6450..ce893a7 100644 --- a/src/views/ems/dzjk/sbjk/db/index.vue +++ b/src/views/ems/dzjk/sbjk/db/index.vue @@ -1,76 +1,78 @@ - + - - 1#{{ zbInfo.deviceName }} - - - {{ - $store.state.ems.communicationStatusOptions[ - zbInfo.emsCommunicationStatus - ] - }} - - 数据更新时间:{{ zbInfo.dataUpdateTime }} - - - {handlerCell(zbInfo.deviceId,row,col)}" - stripe - style="width: 100%" - > - - - - - - - - - + {{ item.ammeterLoadData.deviceName }} + + + {{ + $store.state.ems.communicationStatusOptions[ + item.ammeterLoadData.emsCommunicationStatus + ] + }} + + 数据更新时间:{{ item.ammeterLoadData.dataUpdateTime }} + + + {handlerCell(item.ammeterLoadData.deviceId,row,col)}" + stripe + style="width: 100%" + > + + + + + + + + + - - 2#{{ cnbInfo.deviceName }} - - - {{ - $store.state.ems.communicationStatusOptions[ - cnbInfo.emsCommunicationStatus - ] - }} - - 数据更新时间:{{ cnbInfo.dataUpdateTime }} - - - {handlerCellCN(cnbInfo.deviceId,row,col)}" - stripe - style="width: 100%" - > - - - - - - + > + + {{ item.ammeterMeteData.deviceName }} + + + {{ + $store.state.ems.communicationStatusOptions[ + item.ammeterMeteData.emsCommunicationStatus + ] + }} + + 数据更新时间:{{ item.ammeterMeteData.dataUpdateTime }} + + + {handlerCellCN(item.ammeterMeteData.deviceId,row,col)}" + stripe + style="width: 100%" + > + + + + + + + @@ -87,8 +89,7 @@ export default { data() { return { loading: false, - zbInfo: {}, - cnbInfo: {}, + list:[], }; }, methods: { @@ -114,12 +115,9 @@ export default { this.loading = true; getAmmeterDataList(this.siteId) .then((response) => { - this.zbInfo = JSON.parse( - JSON.stringify(response?.data?.ammeterLoadData || {}) - ); - this.cnbInfo = JSON.parse( - JSON.stringify(response?.data?.ammeterMeteData || {}) - ); + // todo check + const data = response?.data || [] + this.list = Array.isArray(data) ? data : [data] }) .finally(() => { this.loading = false;