From a28a1c7eec861e445f7d4da11beec7d0d3321287 Mon Sep 17 00:00:00 2001 From: fan Date: Thu, 12 Oct 2023 16:39:21 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=A8=E6=8E=A7=E7=AE=B1=E5=85=B3=E8=81=94?= =?UTF-8?q?=E5=B1=8F=E8=94=BD=E9=97=A8=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../draw-app/properties/GatedBoxProperty.vue | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/draw-app/properties/GatedBoxProperty.vue b/src/components/draw-app/properties/GatedBoxProperty.vue index bd9ae78..27f96e0 100644 --- a/src/components/draw-app/properties/GatedBoxProperty.vue +++ b/src/components/draw-app/properties/GatedBoxProperty.vue @@ -19,7 +19,7 @@ outlined style="margin-top: 10px" v-model="gatedBoxModel.refScreenDoor" - :options="gatedBoxList" + :options="screenDoorList" :map-options="true" :emit-value="true" @update:model-value="onUpdate" @@ -33,22 +33,22 @@ import { GatedBoxData } from 'src/drawApp/graphics/GatedBoxInteraction'; import { useFormData } from 'src/components/DrawAppFormUtils'; import { useDrawStore } from 'src/stores/draw-store'; import { onMounted, reactive } from 'vue'; -import { GatedBox } from 'src/graphics/gatedBox/GatedBox'; +import { ScreenDoor } from 'src/graphics/screenDoor/ScreenDoor'; const { data: gatedBoxModel, onUpdate } = useFormData( new GatedBoxData(), useDrawStore().getDrawApp() ); -const gatedBoxList: { label: string; value: string }[] = reactive([]); +const screenDoorList: { label: string; value: string }[] = reactive([]); onMounted(() => { - const gatedBoxs = useDrawStore() + const screenDoors = useDrawStore() .getDrawApp() - .queryStore.queryByType(GatedBox.Type); - gatedBoxs.forEach((p) => { - gatedBoxList.push({ + .queryStore.queryByType(ScreenDoor.Type); + screenDoors.forEach((p) => { + screenDoorList.push({ value: p.id, - label: `${p.datas.code}[${p.datas.index}]`, + label: `${p.datas.code}[${p.datas.id}]`, }); }); });