psl调整
This commit is contained in:
parent
7f05058cb4
commit
30eaf3d5f2
@ -140,7 +140,7 @@ watch(
|
||||
(val) => {
|
||||
if (val && val.length > 0 && clickIndex !== null) {
|
||||
const selectFilter = pslDrawStore.selectedGraphics?.filter(
|
||||
(g) => (g) =>
|
||||
(g) =>
|
||||
g.type == PslKey.Type ||
|
||||
g.type == PslButton.Type ||
|
||||
g.type == PslLight.Type
|
||||
@ -148,7 +148,7 @@ watch(
|
||||
selectGraphic.push(...selectFilter);
|
||||
selectGraphic = Array.from(new Set(selectGraphic));
|
||||
pslDrawStore.getDrawApp().updateSelected(...selectGraphic);
|
||||
relateDeviceConfig.value.combinationtypes[clickIndex].refRelaysCode =
|
||||
relateDeviceConfig.value.combinationtypes[clickIndex].refDevicesCode =
|
||||
selectGraphic.map((g) =>
|
||||
(g as PslKey | PslButton | PslLight).datas.code == ''
|
||||
? g.id
|
||||
@ -162,7 +162,7 @@ watch(
|
||||
clickIndex,
|
||||
relateDeviceConfig.value
|
||||
);
|
||||
relateDeviceConfig.value.combinationtypes[clickIndex].refRelays =
|
||||
relateDeviceConfig.value.combinationtypes[clickIndex].refDevices =
|
||||
selectGraphic.map((g) => g.id) as string[];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user