fix: 01-branch management layout

This commit is contained in:
puriphatt 2024-07-02 09:22:06 +00:00
parent de18933332
commit 17033a1465
4 changed files with 14 additions and 14 deletions

View file

@ -1,4 +1,5 @@
export default {
branchManagementCaption: 'Manage All Branch',
branchInHQ: 'Branch within the main office',
branchLabel: 'Branch',

View file

@ -1,4 +1,5 @@
export default {
branchManagementCaption: 'จัดการสาขาทั้งหมด',
branchInHQ: 'สาขาภายในสำนักงานใหญ่',
branchLabel: 'สาขา',

View file

@ -1,6 +1,6 @@
export default {
drawerDashboard: 'Dashboard',
drawerBranchManagement: 'การจัดการสาขา',
drawerBranchManagement: 'จัดการสาขา',
drawerPersonnelManagement: 'จัดการบุคลากร',
drawerCustomerManagement: 'จัดการลูกค้า',
drawerProductsAndServices: 'สินค้าและบริการ',

View file

@ -5,7 +5,7 @@ import { Icon } from '@iconify/vue';
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 AddButton from 'components/AddButton.vue';
import TooltipComponent from 'components/TooltipComponent.vue';
@ -26,6 +26,7 @@ import { useI18n } from 'vue-i18n';
import useFlowStore from 'src/stores/flow';
const { t } = useI18n();
const utilsStore = useUtilsStore();
const modal = ref<boolean>(false);
@ -105,6 +106,9 @@ async function calculateStats() {
}
onMounted(async () => {
utilsStore.currentTitle.title = 'branchManagement';
utilsStore.currentTitle.caption = 'branchManagementCaption';
await branchStore.fetchList({ pageSize: 99999 });
await calculateStats();
@ -419,20 +423,14 @@ watch(locale, () => {
</script>
<template>
<div class="column">
<div class="row text-h6 text-weight-bold q-mb-md">
{{ $t('branchManagement') }}
<div class="column full-height no-wrap">
<div class="surface-1 bordered rounded q-pa-md q-mb-md">
<StatCard label-i18n :branch="stats" :dark="$q.dark.isActive" />
</div>
<AppBox bordered class="q-mb-md">
<StatCard label-i18n :branch="stats" :dark="$q.dark.isActive" />
</AppBox>
<AppBox
class="column"
<div
class="column col surface-1 bordered rounded scroll"
:no-padding="!!branchData.total"
bordered
style="min-height: 70vh"
>
<template v-if="!branchData.total">
<TooltipComponent
@ -895,7 +893,7 @@ watch(locale, () => {
</div>
</div>
</template>
</AppBox>
</div>
</div>
<FormDialog