Merge branch 'master' of https://git.code.tencent.com/beijing-rtss-test/bj-rtss-client
This commit is contained in:
commit
0445149a7e
@ -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