关联继电器编辑修复
This commit is contained in:
parent
616b75805f
commit
e501099ffd
@ -219,12 +219,16 @@ async function editRelateRelays(row: RelateRelaylistItem) {
|
||||
combinationtype.refRelaysCode = refCode;
|
||||
combinationtype.expanded = false;
|
||||
});
|
||||
relateRelayConfig.value.combinationtypes = row.combinationtypes as {
|
||||
code: string;
|
||||
refRelays: string[];
|
||||
refRelaysCode: string[];
|
||||
expanded: boolean;
|
||||
}[];
|
||||
relateRelayConfig.value.combinationtypes = [];
|
||||
row.combinationtypes.forEach((combinationtype) => {
|
||||
const { code, refRelays, refRelaysCode, expanded } = combinationtype;
|
||||
relateRelayConfig.value.combinationtypes.push({
|
||||
code,
|
||||
refRelays,
|
||||
refRelaysCode: refRelaysCode as string[],
|
||||
expanded: expanded as boolean,
|
||||
});
|
||||
});
|
||||
} catch (err) {
|
||||
$q.notify({
|
||||
type: 'negative',
|
||||
@ -262,7 +266,6 @@ function removeSelect(code: string) {
|
||||
clickTarget.refRelaysCode.splice(removeIndex, 1);
|
||||
clickTarget.refRelays.splice(removeIndex, 1);
|
||||
relayCabinetStore.getDrawApp().updateSelected(...selectGraphic);
|
||||
relayCabinetStore.getDrawApp()?.emit('postdataloaded');
|
||||
}
|
||||
|
||||
function clearAllSelect(index: number) {
|
||||
|
Loading…
Reference in New Issue
Block a user