feat: refactor for path support
This commit is contained in:
parent
4d8e22d64e
commit
e631ed9c47
8 changed files with 44 additions and 23 deletions
|
|
@ -151,7 +151,7 @@ async function calculateStats() {
|
|||
|
||||
onMounted(async () => {
|
||||
utilsStore.currentTitle.title = 'branchManagement';
|
||||
utilsStore.currentTitle.caption = 'branchManagementCaption';
|
||||
utilsStore.currentTitle.path = [{ text: 'branchManagementCaption' }];
|
||||
|
||||
await branchStore.fetchList({ pageSize: 99999 });
|
||||
await calculateStats();
|
||||
|
|
|
|||
|
|
@ -453,7 +453,7 @@ async function assignFormData(idEdit: string) {
|
|||
|
||||
onMounted(async () => {
|
||||
utilsStore.currentTitle.title = 'personnelManagement';
|
||||
utilsStore.currentTitle.caption = 'personnelManagementCaption';
|
||||
utilsStore.currentTitle.path = [{ text: 'personnelManagementCaption' }];
|
||||
|
||||
await fetchUserList();
|
||||
|
||||
|
|
|
|||
|
|
@ -1240,7 +1240,7 @@ async function fetchListStatsEmployeeGender() {
|
|||
|
||||
onMounted(async () => {
|
||||
utilsStore.currentTitle.title = 'customerManagement';
|
||||
utilsStore.currentTitle.caption = 'customerManagementCaption';
|
||||
utilsStore.currentTitle.path = [{ text: 'customerManagementCaption' }];
|
||||
|
||||
const resultStats = await getStatsCustomer();
|
||||
|
||||
|
|
@ -1493,7 +1493,10 @@ watch([inputSearch, currentStatus], async () => {
|
|||
</div>
|
||||
|
||||
<!-- main -->
|
||||
<div class="surface-1 bordered rounded col column">
|
||||
<div
|
||||
class="surface-1 bordered rounded col column"
|
||||
style="overflow: hidden"
|
||||
>
|
||||
<!-- tabs -->
|
||||
<div class="column">
|
||||
<div
|
||||
|
|
|
|||
|
|
@ -1012,7 +1012,7 @@ function cloneData() {
|
|||
|
||||
onMounted(async () => {
|
||||
utilsStore.currentTitle.title = 'mainProductTitle';
|
||||
utilsStore.currentTitle.caption = 'mainProductCaption';
|
||||
utilsStore.currentTitle.path = [{ text: 'mainProductCaption' }];
|
||||
|
||||
calculateStats();
|
||||
await fetchListGroups();
|
||||
|
|
@ -1229,7 +1229,7 @@ watch(inputSearchProductAndService, async () => {
|
|||
v-if="productMode === 'group' || productMode === 'type'"
|
||||
class="surface-1 col bordered rounded column no-wrap"
|
||||
>
|
||||
<div class="row surface-2 bordered-b q-px-md q-py-sm">
|
||||
<div class="row surface-2 bordered-b q-px-md q-py-sm items-center">
|
||||
<div v-if="productMode === 'type'" class="text-h6 text-weight-bold">
|
||||
{{ $t('productAndServiceType') }}
|
||||
</div>
|
||||
|
|
@ -1433,7 +1433,7 @@ watch(inputSearchProductAndService, async () => {
|
|||
<template v-else>
|
||||
<div
|
||||
v-if="productMode === 'group'"
|
||||
class="row items-center justify-between"
|
||||
class="row items-center justify-between q-px-md q-py-sm"
|
||||
>
|
||||
<div class="col-4">
|
||||
<div class="row items-center">
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ const menu = [
|
|||
|
||||
onMounted(() => {
|
||||
utilsStore.currentTitle.title = '';
|
||||
utilsStore.currentTitle.caption = '';
|
||||
utilsStore.currentTitle.path = [{ text: '' }];
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue