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.refRelaysCode = refCode;
combinationtype.expanded = false; combinationtype.expanded = false;
}); });
relateRelayConfig.value.combinationtypes = row.combinationtypes as { relateRelayConfig.value.combinationtypes = [];
code: string; row.combinationtypes.forEach((combinationtype) => {
refRelays: string[]; const { code, refRelays, refRelaysCode, expanded } = combinationtype;
refRelaysCode: string[]; relateRelayConfig.value.combinationtypes.push({
expanded: boolean; code,
}[]; refRelays,
refRelaysCode: refRelaysCode as string[],
expanded: expanded as boolean,
});
});
} catch (err) { } catch (err) {
$q.notify({ $q.notify({
type: 'negative', type: 'negative',
@ -262,7 +266,6 @@ function removeSelect(code: string) {
clickTarget.refRelaysCode.splice(removeIndex, 1); clickTarget.refRelaysCode.splice(removeIndex, 1);
clickTarget.refRelays.splice(removeIndex, 1); clickTarget.refRelays.splice(removeIndex, 1);
relayCabinetStore.getDrawApp().updateSelected(...selectGraphic); relayCabinetStore.getDrawApp().updateSelected(...selectGraphic);
relayCabinetStore.getDrawApp()?.emit('postdataloaded');
} }
function clearAllSelect(index: number) { function clearAllSelect(index: number) {