diff --git a/hx-ai-intelligent/src/view/equipmentControl/electricDoor/index.vue b/hx-ai-intelligent/src/view/equipmentControl/electricDoor/index.vue index 7ee3954..6216663 100644 --- a/hx-ai-intelligent/src/view/equipmentControl/electricDoor/index.vue +++ b/hx-ai-intelligent/src/view/equipmentControl/electricDoor/index.vue @@ -20,7 +20,7 @@ class="door-box-item" :style="{ 'background-color': { '0': 'rgba(191, 205, 226, 1)', '1': '#0dffa4', '2': '#ffbc46' }[ - item.record.EGstRu + item?.record?.EGstRu ], }"> {{ item.deviceInfoName }} @@ -43,7 +43,7 @@ class="door-box-item" :style="{ 'background-color': { '0': 'rgba(191, 205, 226, 1)', '1': '#0dffa4', '2': '#ffbc46' }[ - item.record.EGstRu + item?.record?.EGstRu ], }"> {{ item.deviceInfoName }} @@ -81,14 +81,14 @@ '0': 'rgba(191, 205, 226, 1)', '1': 'rgba(0, 255, 210, 1)', '2': 'rgba(255, 188, 70, 1)', - }[record.record.EGstRu], + }[record?.record?.EGstRu], color: { '0': 'rgba(191, 205, 226, 1)', '1': 'rgba(0, 255, 210, 1)', '2': 'rgba(255, 188, 70, 1)', - }[record.record.EGstRu], + }[record?.record?.EGstRu], }"> - {{ record.record.runMode.label }} + {{ record.record?.runMode?.label }}