From 695ec5f4a0f677768185db6c64266b5e861ba346 Mon Sep 17 00:00:00 2001
From: zhaohy <1695786511@qq.com>
Date: Thu, 29 Aug 2024 17:06:10 +0800
Subject: [PATCH] =?UTF-8?q?fix:=E5=86=B7=E7=83=AD=E6=BA=90=E5=AF=B9?=
=?UTF-8?q?=E6=8E=A5=E6=8E=A5=E5=8F=A3=20=E7=9B=B4=E6=8E=A5=E5=B1=95?=
=?UTF-8?q?=E7=A4=BA=E5=9B=BE=E7=89=87?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../equipmentControl/coldAndHeatSources/index.vue | 231 +++++++++++++++++----
1 file changed, 187 insertions(+), 44 deletions(-)
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%',
},
- });
+ };
}
});
};