refacrot: (03) edit path
This commit is contained in:
parent
999fe6a30e
commit
0bd2c0b3a0
1 changed files with 32 additions and 1 deletions
|
|
@ -1413,7 +1413,16 @@ async function fetchListStatsEmployeeGender() {
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
utilsStore.currentTitle.title = 'customerManagement';
|
utilsStore.currentTitle.title = 'customerManagement';
|
||||||
utilsStore.currentTitle.path = [{ text: 'customerManagementCaption' }];
|
utilsStore.currentTitle.path = [
|
||||||
|
{
|
||||||
|
text: 'customerManagementCaption',
|
||||||
|
handler: () => {
|
||||||
|
isMainPage.value = true;
|
||||||
|
currentCustomerUrlImage.value = null;
|
||||||
|
clearForm();
|
||||||
|
},
|
||||||
|
},
|
||||||
|
];
|
||||||
modeView.value = $q.screen.lt.md ? true : false;
|
modeView.value = $q.screen.lt.md ? true : false;
|
||||||
|
|
||||||
const resultStats = await getStatsCustomer();
|
const resultStats = await getStatsCustomer();
|
||||||
|
|
@ -1560,6 +1569,27 @@ watch(
|
||||||
if (v) modeView.value = true;
|
if (v) modeView.value = true;
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
watch(isMainPage, () => {
|
||||||
|
const tmp: typeof utilsStore.currentTitle.path = [
|
||||||
|
{
|
||||||
|
text: 'customerManagementCaption',
|
||||||
|
handler: () => {
|
||||||
|
isMainPage.value = true;
|
||||||
|
currentCustomerUrlImage.value = null;
|
||||||
|
clearForm();
|
||||||
|
},
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
if (isMainPage.value === false) {
|
||||||
|
tmp.push({
|
||||||
|
text: currentCustomerName.value || '',
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
utilsStore.currentTitle.path = tmp;
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
@ -1982,6 +2012,7 @@ watch(
|
||||||
|
|
||||||
const { branch, ...payload } = props.row;
|
const { branch, ...payload } = props.row;
|
||||||
currentCustomer = payload;
|
currentCustomer = payload;
|
||||||
|
|
||||||
isMainPage = false;
|
isMainPage = false;
|
||||||
}
|
}
|
||||||
"
|
"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue