门控箱关联屏蔽门调整
This commit is contained in:
parent
e8142b63a6
commit
a28a1c7eec
@ -19,7 +19,7 @@
|
|||||||
outlined
|
outlined
|
||||||
style="margin-top: 10px"
|
style="margin-top: 10px"
|
||||||
v-model="gatedBoxModel.refScreenDoor"
|
v-model="gatedBoxModel.refScreenDoor"
|
||||||
:options="gatedBoxList"
|
:options="screenDoorList"
|
||||||
:map-options="true"
|
:map-options="true"
|
||||||
:emit-value="true"
|
:emit-value="true"
|
||||||
@update:model-value="onUpdate"
|
@update:model-value="onUpdate"
|
||||||
@ -33,22 +33,22 @@ import { GatedBoxData } from 'src/drawApp/graphics/GatedBoxInteraction';
|
|||||||
import { useFormData } from 'src/components/DrawAppFormUtils';
|
import { useFormData } from 'src/components/DrawAppFormUtils';
|
||||||
import { useDrawStore } from 'src/stores/draw-store';
|
import { useDrawStore } from 'src/stores/draw-store';
|
||||||
import { onMounted, reactive } from 'vue';
|
import { onMounted, reactive } from 'vue';
|
||||||
import { GatedBox } from 'src/graphics/gatedBox/GatedBox';
|
import { ScreenDoor } from 'src/graphics/screenDoor/ScreenDoor';
|
||||||
|
|
||||||
const { data: gatedBoxModel, onUpdate } = useFormData(
|
const { data: gatedBoxModel, onUpdate } = useFormData(
|
||||||
new GatedBoxData(),
|
new GatedBoxData(),
|
||||||
useDrawStore().getDrawApp()
|
useDrawStore().getDrawApp()
|
||||||
);
|
);
|
||||||
const gatedBoxList: { label: string; value: string }[] = reactive([]);
|
const screenDoorList: { label: string; value: string }[] = reactive([]);
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
const gatedBoxs = useDrawStore()
|
const screenDoors = useDrawStore()
|
||||||
.getDrawApp()
|
.getDrawApp()
|
||||||
.queryStore.queryByType<GatedBox>(GatedBox.Type);
|
.queryStore.queryByType<ScreenDoor>(ScreenDoor.Type);
|
||||||
gatedBoxs.forEach((p) => {
|
screenDoors.forEach((p) => {
|
||||||
gatedBoxList.push({
|
screenDoorList.push({
|
||||||
value: p.id,
|
value: p.id,
|
||||||
label: `${p.datas.code}[${p.datas.index}]`,
|
label: `${p.datas.code}[${p.datas.id}]`,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user