From 041eb91765b750091557ef4b03b338d8a61b16be Mon Sep 17 00:00:00 2001 From: wj <347312259@qq.com> Date: Mon, 19 Jun 2023 09:25:29 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E8=83=BD=E8=80=97=E5=AF=B9=E6=AF=94?= =?UTF-8?q?=E3=80=81=E9=A6=96=E9=A1=B5=E6=B8=A9=E5=BA=A6=E4=BC=A0=E6=84=9F?= =?UTF-8?q?=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- psdc-ui/src/api/bigview/bigview.js | 2 +- psdc-ui/src/views/analyse/nhdb/index.vue | 24 ++++++++++++------------ psdc-ui/src/views/bigview/index.vue | 4 ++-- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/psdc-ui/src/api/bigview/bigview.js b/psdc-ui/src/api/bigview/bigview.js index 0317c4f..f8c2926 100644 --- a/psdc-ui/src/api/bigview/bigview.js +++ b/psdc-ui/src/api/bigview/bigview.js @@ -2,7 +2,7 @@ import request from '@/utils/request' /** 8个温度传感器接口*/ export function getTemperature(data) { - return request.post('/monitor/wdcgq/index/sel1?modelTypeName='+data) + return request.post('/indexLook/8wd?modelTypeName='+data) } /**运行设备工作信息查询接口*/ export function getDevicesInfo() { diff --git a/psdc-ui/src/views/analyse/nhdb/index.vue b/psdc-ui/src/views/analyse/nhdb/index.vue index de08251..deebc15 100644 --- a/psdc-ui/src/views/analyse/nhdb/index.vue +++ b/psdc-ui/src/views/analyse/nhdb/index.vue @@ -25,7 +25,7 @@ const imgSrc = ref('../src/assets/images/策略icon.png') const data = reactive({ celueInfoList:[ { - sceneName:'策略1', + sceneName:'电磁锅炉供暖策略', data:[ { key: 1, @@ -75,7 +75,7 @@ const data = reactive({ ] }, { - sceneName:'策略2', + sceneName:'空气源热泵供暖策略', data:[ { key: 1, @@ -125,52 +125,52 @@ const data = reactive({ ] }, { - sceneName:'策略3', + sceneName:'电磁锅炉水蓄热策略', data:[ { key: 1, label:'开始执行时间', - startTime:'2023-06-05 11:00:00' + startTime:'2023-06-05 08:00:00' }, { key: 2, label:'结束执行时间', - startTime:'2023-06-05 13:00:00' + startTime:'2023-06-05 12:00:00' }, { key: 3, label:'执行时长', - startTime:'2h' + startTime:'4h' }, { key: 4, label:'单位时间用电', - startTime:'6kWh' + startTime:'5kWh' }, { key: 5, label:'执行前室内温度', - startTime:'22℃' + startTime:'16℃' }, { key: 6, label:'执行前室外温度', - startTime:'15℃' + startTime:'13℃' }, { key: 7, label:'执行后室内温度', - startTime:'30℃' + startTime:'26℃' }, { key: 8, label:'执行后室外温度', - startTime:'15℃' + startTime:'16℃' }, { key: 9, label:'总用电量', - startTime:'12kWh' + startTime:'20kWh' } ] }, diff --git a/psdc-ui/src/views/bigview/index.vue b/psdc-ui/src/views/bigview/index.vue index 662030f..21685bf 100644 --- a/psdc-ui/src/views/bigview/index.vue +++ b/psdc-ui/src/views/bigview/index.vue @@ -67,7 +67,7 @@
{{ item.deviceName }}
-
{{ item.deviceTemp}}
+
{{ item.thermometerValue}}
@@ -163,7 +163,7 @@ function currentTime() { const wdcgqArr = ref([]) function getWenduFun(){ getTemperature("温度传感器").then((res)=>{ - console.log('111',res) + console.log('8个温度传感器',res) for(let i = 0;i < res.data.length;i++){ if(res.data[i].deviceTemp == null){ res.data[i].deviceTemp = '--' From f2180f5e9789df76f9b7b0817e2d4c365611d7c9 Mon Sep 17 00:00:00 2001 From: wj <347312259@qq.com> Date: Mon, 19 Jun 2023 09:32:45 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=20=E9=A6=96=E9=A1=B5=E6=97=A5=E6=9C=9F?= =?UTF-8?q?=E5=AE=9A=E6=97=B6=E8=AF=B7=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- psdc-ui/src/views/bigview/index.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/psdc-ui/src/views/bigview/index.vue b/psdc-ui/src/views/bigview/index.vue index 21685bf..c49c649 100644 --- a/psdc-ui/src/views/bigview/index.vue +++ b/psdc-ui/src/views/bigview/index.vue @@ -119,7 +119,9 @@ import {getTemperature,getDevicesInfo,getZdb} from '../../api/bigview/bigview' /** 页面加载时*/ onMounted(()=>{ - currentTime(); + setInterval(()=> { + currentTime(); + }, 1000); dcglChartFun(); kqyrbChartFun(); frdlChartFun();