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