This commit is contained in:
dong 2023-09-13 18:01:57 +08:00
commit 0445149a7e

View File

@ -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) {