门控箱关联屏蔽门调整
This commit is contained in:
parent
e8142b63a6
commit
a28a1c7eec
@ -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>(GatedBox.Type);
|
||||
gatedBoxs.forEach((p) => {
|
||||
gatedBoxList.push({
|
||||
.queryStore.queryByType<ScreenDoor>(ScreenDoor.Type);
|
||||
screenDoors.forEach((p) => {
|
||||
screenDoorList.push({
|
||||
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