diff --git a/hx-ai-intelligent/src/view/equipmentControl/coldAndHeatSources/index.vue b/hx-ai-intelligent/src/view/equipmentControl/coldAndHeatSources/index.vue index c201781..f7d1135 100644 --- a/hx-ai-intelligent/src/view/equipmentControl/coldAndHeatSources/index.vue +++ b/hx-ai-intelligent/src/view/equipmentControl/coldAndHeatSources/index.vue @@ -16,10 +16,10 @@
{{ item.deviceInfoName }}
-
+
模式: {{ item.autoStatus.label }}
-
+
设定温度: {{ item.temp }} {{ item.tempUnit }}
{{ item.deviceInfoName }}
-
+
模式: {{ item.autoStatus.label }}
-
+
设定温度: {{ item.temp }} {{ item.tempUnit }}
@@ -170,10 +170,10 @@
{{ item.deviceInfoName }}
-
+
出水温度: {{ item.temp }} {{ item.tempUnit }}
-
+
容量: {{ item.vol }} {{ item.volUnit }}
{ if (res.msg === 'success') { res.data.forEach((item: any, index: any) => { - userWaterPump.value.push({ + userWaterPump.value[index] = { deviceInfoName: item.deviceInfoName, ...item.record, url: waterPumpSrc, style: userWaterPumpPosition[index].style, - }); + }; }); } }); @@ -986,12 +1137,12 @@ .then((res) => { if (res.msg === 'success') { res.data.forEach((item: any, index: any) => { - waterPump.value.push({ + waterPump.value[index] = { deviceInfoName: item.deviceInfoName, ...item.record, url: waterPumpSrc, style: waterPumpPosition[index].style, - }); + }; }); } }); @@ -1008,12 +1159,12 @@ .then((res) => { if (res.msg === 'success') { res.data.forEach((item: any, index: any) => { - airSourceThermalCollapse.value.push({ + airSourceThermalCollapse.value[index] = { deviceInfoName: item.deviceInfoName, ...item.record, url: airSourceThermalCollapseSrc, style: airSourceThermalCollapsePosition[index].style, - }); + }; }); } }); @@ -1029,12 +1180,12 @@ .then((res) => { if (res.msg === 'success') { res.data.forEach((item: any, index: any) => { - screwGeothermalHeatPump.value.push({ + screwGeothermalHeatPump.value[index] = { deviceInfoName: item.deviceInfoName, ...item.record, url: screwGeothermalHeatPumpSrc, style: screwGeothermalHeatPumpPosition[index].style, - }); + }; }); } }); @@ -1050,24 +1201,16 @@ .then((res) => { if (res.msg === 'success') { res.data.forEach((item: any) => { - coldWater.value.push({ + coldWater.value[0] = { deviceInfoName: item.deviceInfoName, ...item.record, - url: coldWaterSrc, - style: { - mLeft: '36%', - mBottom: '39%', - }, - }); + }; }); } }); }; //获取多功能传感器 const getSensorData = () => { - waterSensor.value = []; - airSourceSensor.value = []; - manifoldSensor.value = []; http .get(ventilating.getSensorData, { projectId: state.projectId, @@ -1078,17 +1221,17 @@ if (res.msg === 'success') { res.data.forEach((item: any, index: any) => { if (index < 4) { - airSourceSensor.value.push({ + airSourceSensor.value[index] = { deviceInfoName: item.deviceInfoName, ...item.record, url: sensorSrc, style: airSourceSensorPosition[index].style, - }); + }; } }); // 水泵传感器 let data = res.data[Math.floor(Math.random() * res.data.length)]; - waterSensor.value.push({ + waterSensor.value[0] = { deviceInfoName: data.deviceInfoName, ...data.record, url: sensorSrc, @@ -1096,10 +1239,10 @@ mLeft: '9%', mBottom: '27%', }, - }); + }; // 集水器 -传感器 data = res.data[Math.floor(Math.random() * res.data.length)]; - manifoldSensor.value.push({ + manifoldSensor.value[0] = { deviceInfoName: data.deviceInfoName, ...data.record, url: sensorSrc, @@ -1107,10 +1250,10 @@ mLeft: '81%', mBottom: '51%', }, - }); + }; // 土壤 -传感器 data = res.data[Math.floor(Math.random() * res.data.length)]; - soilCouplerSensor.value.push({ + soilCouplerSensor.value[0] = { deviceInfoName: data.deviceInfoName, ...data.record, url: sensorSrc, @@ -1118,7 +1261,7 @@ mLeft: '79%', mBottom: '13%', }, - }); + }; } }); };