From c65e9cfdda910f07815a510fec39f42a775e0a4e Mon Sep 17 00:00:00 2001 From: wb-zhuangyuehuang-vjzzZ Date: Thu, 30 May 2024 11:17:24 +0800 Subject: [PATCH] 1 --- src/views/page/realTime.vue | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/views/page/realTime.vue b/src/views/page/realTime.vue index ddee0ba..51f34e8 100644 --- a/src/views/page/realTime.vue +++ b/src/views/page/realTime.vue @@ -8,10 +8,10 @@ 生态气象站(设备离线) -
+
- {{ list[0].updateTime ? list[0].updateTime : '' }} + {{ updateTime}}
@@ -50,10 +50,10 @@ 实时数据(设备离线)
-
+
- {{ list[0].updateTime ? list[0].updateTime : '' }} + {{ updateTime}}
@@ -491,7 +491,7 @@ export default { statusList: [], dataModel: false,//全部实时数据弹窗 weatherModel: false, - + updateTime:'', time: null,//右上角时间 list: [], inputData: [], @@ -929,6 +929,9 @@ export default { if (res.data.code == 200) { this.inputData = res.data.data; this.list = [] + + this.updateTime=res.data.data[0].updateTime + this.inputData.forEach((el, index) => { list.forEach((el1, index1) => { if (el.formula == el1.value) { @@ -1047,6 +1050,8 @@ export default { if (res.data.code == 200) { this.inputData = res.data.data; this.list = [] + + this.updateTime=res.data.data[0].updateTime this.inputData.forEach((el, index) => { list.forEach((el1, index1) => { if (el.formula == el1.value) { @@ -1166,6 +1171,7 @@ export default { this.api.getControlRtDatastation(formData).then(res => { this.controlList = [] this.list = [] + this.updateTime=res.data.data[0].updateTime if (res.data.code == 200) { res.data.data.forEach((el, index) => { list.forEach((el1, index1) => { -- 2.40.1