fix: 01-branch management layout
This commit is contained in:
parent
de18933332
commit
17033a1465
4 changed files with 14 additions and 14 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
export default {
|
export default {
|
||||||
|
branchManagementCaption: 'Manage All Branch',
|
||||||
branchInHQ: 'Branch within the main office',
|
branchInHQ: 'Branch within the main office',
|
||||||
|
|
||||||
branchLabel: 'Branch',
|
branchLabel: 'Branch',
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
export default {
|
export default {
|
||||||
|
branchManagementCaption: 'จัดการสาขาทั้งหมด',
|
||||||
branchInHQ: 'สาขาภายในสำนักงานใหญ่',
|
branchInHQ: 'สาขาภายในสำนักงานใหญ่',
|
||||||
|
|
||||||
branchLabel: 'สาขา',
|
branchLabel: 'สาขา',
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
export default {
|
export default {
|
||||||
drawerDashboard: 'Dashboard',
|
drawerDashboard: 'Dashboard',
|
||||||
drawerBranchManagement: 'การจัดการสาขา',
|
drawerBranchManagement: 'จัดการสาขา',
|
||||||
drawerPersonnelManagement: 'จัดการบุคลากร',
|
drawerPersonnelManagement: 'จัดการบุคลากร',
|
||||||
drawerCustomerManagement: 'จัดการลูกค้า',
|
drawerCustomerManagement: 'จัดการลูกค้า',
|
||||||
drawerProductsAndServices: 'สินค้าและบริการ',
|
drawerProductsAndServices: 'สินค้าและบริการ',
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import { Icon } from '@iconify/vue';
|
||||||
|
|
||||||
import useBranchStore from 'stores/branch';
|
import useBranchStore from 'stores/branch';
|
||||||
|
|
||||||
import { dialog } from 'src/stores/utils';
|
import useUtilsStore, { dialog } from 'src/stores/utils';
|
||||||
import AppBox from 'components/app/AppBox.vue';
|
import AppBox from 'components/app/AppBox.vue';
|
||||||
import AddButton from 'components/AddButton.vue';
|
import AddButton from 'components/AddButton.vue';
|
||||||
import TooltipComponent from 'components/TooltipComponent.vue';
|
import TooltipComponent from 'components/TooltipComponent.vue';
|
||||||
|
|
@ -26,6 +26,7 @@ import { useI18n } from 'vue-i18n';
|
||||||
import useFlowStore from 'src/stores/flow';
|
import useFlowStore from 'src/stores/flow';
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
const utilsStore = useUtilsStore();
|
||||||
|
|
||||||
const modal = ref<boolean>(false);
|
const modal = ref<boolean>(false);
|
||||||
|
|
||||||
|
|
@ -105,6 +106,9 @@ async function calculateStats() {
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
|
utilsStore.currentTitle.title = 'branchManagement';
|
||||||
|
utilsStore.currentTitle.caption = 'branchManagementCaption';
|
||||||
|
|
||||||
await branchStore.fetchList({ pageSize: 99999 });
|
await branchStore.fetchList({ pageSize: 99999 });
|
||||||
await calculateStats();
|
await calculateStats();
|
||||||
|
|
||||||
|
|
@ -419,20 +423,14 @@ watch(locale, () => {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="column">
|
<div class="column full-height no-wrap">
|
||||||
<div class="row text-h6 text-weight-bold q-mb-md">
|
<div class="surface-1 bordered rounded q-pa-md q-mb-md">
|
||||||
{{ $t('branchManagement') }}
|
<StatCard label-i18n :branch="stats" :dark="$q.dark.isActive" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<AppBox bordered class="q-mb-md">
|
<div
|
||||||
<StatCard label-i18n :branch="stats" :dark="$q.dark.isActive" />
|
class="column col surface-1 bordered rounded scroll"
|
||||||
</AppBox>
|
|
||||||
|
|
||||||
<AppBox
|
|
||||||
class="column"
|
|
||||||
:no-padding="!!branchData.total"
|
:no-padding="!!branchData.total"
|
||||||
bordered
|
|
||||||
style="min-height: 70vh"
|
|
||||||
>
|
>
|
||||||
<template v-if="!branchData.total">
|
<template v-if="!branchData.total">
|
||||||
<TooltipComponent
|
<TooltipComponent
|
||||||
|
|
@ -895,7 +893,7 @@ watch(locale, () => {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</AppBox>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<FormDialog
|
<FormDialog
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue