From e501099ffd6036116b1b233ff9e8a4d3827c8343 Mon Sep 17 00:00:00 2001 From: joylink_zhaoerwei Date: Wed, 13 Sep 2023 18:00:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E8=81=94=E7=BB=A7=E7=94=B5=E5=99=A8?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../draw-app/properties/RelateRelayConfig.vue | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/components/draw-app/properties/RelateRelayConfig.vue b/src/components/draw-app/properties/RelateRelayConfig.vue index 62474b4..e9e4a67 100644 --- a/src/components/draw-app/properties/RelateRelayConfig.vue +++ b/src/components/draw-app/properties/RelateRelayConfig.vue @@ -219,12 +219,16 @@ async function editRelateRelays(row: RelateRelaylistItem) { combinationtype.refRelaysCode = refCode; combinationtype.expanded = false; }); - relateRelayConfig.value.combinationtypes = row.combinationtypes as { - code: string; - refRelays: string[]; - refRelaysCode: string[]; - expanded: boolean; - }[]; + relateRelayConfig.value.combinationtypes = []; + row.combinationtypes.forEach((combinationtype) => { + const { code, refRelays, refRelaysCode, expanded } = combinationtype; + relateRelayConfig.value.combinationtypes.push({ + code, + refRelays, + refRelaysCode: refRelaysCode as string[], + expanded: expanded as boolean, + }); + }); } catch (err) { $q.notify({ type: 'negative', @@ -262,7 +266,6 @@ function removeSelect(code: string) { clickTarget.refRelaysCode.splice(removeIndex, 1); clickTarget.refRelays.splice(removeIndex, 1); relayCabinetStore.getDrawApp().updateSelected(...selectGraphic); - relayCabinetStore.getDrawApp()?.emit('postdataloaded'); } function clearAllSelect(index: number) {