refacrot: (01) edit path
This commit is contained in:
parent
0bd2c0b3a0
commit
377a82b9dd
1 changed files with 25 additions and 0 deletions
|
|
@ -164,6 +164,8 @@ onMounted(async () => {
|
|||
};
|
||||
},
|
||||
},
|
||||
// track of the currently selected HQ branch, so when we reset it to an empty
|
||||
// object, we are effectively unselecting any HQ branch.
|
||||
];
|
||||
|
||||
await branchStore.fetchList({ pageSize: 99999 });
|
||||
|
|
@ -539,6 +541,29 @@ watch(
|
|||
if (v) modeView.value = true;
|
||||
},
|
||||
);
|
||||
|
||||
watch(currentHq, () => {
|
||||
const tmp: typeof utilsStore.currentTitle.path = [
|
||||
{
|
||||
text: 'branchManagementCaption',
|
||||
handler: () => {
|
||||
fieldSelectedBranch.value.value = 'branchHQLabel';
|
||||
currentHq.value = {
|
||||
id: '',
|
||||
code: '',
|
||||
};
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
if (currentHq.value.id !== '') {
|
||||
tmp.push({
|
||||
text: currentHq.value.code,
|
||||
});
|
||||
}
|
||||
|
||||
utilsStore.currentTitle.path = tmp;
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue