From 3aca13f9bb90a6ce4b32f244d01d6b4833c787c8 Mon Sep 17 00:00:00 2001 From: zhaohy <1695786511@qq.com> Date: Mon, 2 Sep 2024 15:22:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E4=B8=BA=E7=A9=BA=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../airConditioningSystem/index.vue | 59 ++++++++++++---------- .../view/equipmentControl/electricDoor/index.vue | 2 +- 2 files changed, 32 insertions(+), 29 deletions(-) diff --git a/hx-ai-intelligent/src/view/equipmentControl/airConditioningSystem/index.vue b/hx-ai-intelligent/src/view/equipmentControl/airConditioningSystem/index.vue index 0ae891a..b759746 100644 --- a/hx-ai-intelligent/src/view/equipmentControl/airConditioningSystem/index.vue +++ b/hx-ai-intelligent/src/view/equipmentControl/airConditioningSystem/index.vue @@ -22,7 +22,7 @@ @@ -32,7 +32,7 @@ @@ -43,8 +43,8 @@
@@ -52,14 +52,14 @@
@@ -81,24 +81,26 @@
@@ -122,14 +124,14 @@ :key="index" style="display: flex" :style="{ - width: item.styleText.width, - height: item.styleText.height, - background: item.styleText.color, - marginLeft: item.styleText.mLeft, - position: item.styleText.position, - top: item.styleText.top, - left: item.styleText.abLeft, - border: item.styleText.border, + width: item?.styleText?.width, + height: item?.styleText?.height, + background: item?.styleText?.color, + marginLeft: item?.styleText?.mLeft, + position: item?.styleText?.position, + top: item?.styleText?.top, + left: item?.styleText?.abLeft, + border: item?.styleText?.border, }"> @@ -148,23 +150,24 @@ style="position: absolute; z-index: 1" :style="{ left: - 'calc(' + item.styleText.left + (item.lineType === 1 ? ' - 12.9%)' : ' - 13.3%)'), + 'calc(' + item?.styleText?.left + (item.lineType === 1 ? ' - 12.9%)' : ' - 13.3%)'), bottom: - 'calc(' + item.styleText.bottom + (item.lineType === 1 ? ' + 8%)' : ' - 14%)'), + 'calc(' + item?.styleText?.bottom + (item.lineType === 1 ? ' + 8%)' : ' - 14%)'), }"> @@ -174,9 +177,9 @@ :key="index" style="display: flex" :style="{ - width: item.styleText.width, - background: item.styleText.color, - border: item.styleText.border, + width: item?.styleText?.width, + background: item?.styleText?.color, + border: item?.styleText?.border, }"> diff --git a/hx-ai-intelligent/src/view/equipmentControl/electricDoor/index.vue b/hx-ai-intelligent/src/view/equipmentControl/electricDoor/index.vue index 6216663..534a538 100644 --- a/hx-ai-intelligent/src/view/equipmentControl/electricDoor/index.vue +++ b/hx-ai-intelligent/src/view/equipmentControl/electricDoor/index.vue @@ -92,7 +92,7 @@