feat: เพิ่ม i18n ของ mainPage branch

This commit is contained in:
Net 2024-04-03 14:55:37 +07:00
parent 4a4bf587f0
commit 130622962f
5 changed files with 26 additions and 8 deletions

View file

@ -0,0 +1,5 @@
export default {
branchManagement: 'Branch Management',
branchNoMainOfficeYet: 'No main office yet',
branchClickToCreateMainOffice: 'Click + to create a main office',
};

View file

@ -1,6 +1,7 @@
// This is just an example, // This is just an example,
// so you can safely delete all default props below // so you can safely delete all default props below
import drawerComponent from './drawer-component'; import drawerComponent from './drawer-component';
import branchMainPage from './branch-main-page';
export default { export default {
ok: 'Confirm', ok: 'Confirm',
@ -11,4 +12,5 @@ export default {
download: 'Download', download: 'Download',
save: 'Save', save: 'Save',
...drawerComponent, ...drawerComponent,
...branchMainPage,
}; };

View file

@ -0,0 +1,5 @@
export default {
branchManagement: 'จัดการสาขา',
branchNoMainOfficeYet: 'ยังไม่มีสำนักงานใหญ่',
branchClickToCreateMainOffice: 'คลิก + เพื่อสร้างสำนักงานใหญ่', // Click to create a main office.
};

View file

@ -1,4 +1,5 @@
import drawerComponent from './drawer-component'; import drawerComponent from './drawer-component';
import branchMainPage from './branch-main-page';
export default { export default {
ok: 'ยืนยัน', ok: 'ยืนยัน',
@ -9,4 +10,5 @@ export default {
download: 'ดาวน์โหลด', download: 'ดาวน์โหลด',
save: 'บันทึก', save: 'บันทึก',
...drawerComponent, ...drawerComponent,
...branchMainPage,
}; };

View file

@ -4,7 +4,9 @@ import AppBox from 'components/app/AppBox.vue';
</script> </script>
<template> <template>
<div class="column"> <div class="column">
<div class="row text-h6 text-weight-bold q-mb-md">ดการสาขา</div> <div class="row text-h6 text-weight-bold q-mb-md">
{{ $t('branchManagement') }}
</div>
<app-box bordered style="width: 100%; height: 500px"> <app-box bordered style="width: 100%; height: 500px">
<div class="column" style="height: 100%"> <div class="column" style="height: 100%">
@ -14,7 +16,7 @@ import AppBox from 'components/app/AppBox.vue';
<q-btn <q-btn
unelevated unelevated
class="color-btn-icon" class="color-btn-icon"
size="5px" size="10px"
round round
icon="mdi-exclamation" icon="mdi-exclamation"
:class="{ 'dark-btn-icon': $q.dark.isActive }" :class="{ 'dark-btn-icon': $q.dark.isActive }"
@ -25,6 +27,7 @@ import AppBox from 'components/app/AppBox.vue';
:class="{ 'dark-tooltip-text': $q.dark.isActive }" :class="{ 'dark-tooltip-text': $q.dark.isActive }"
> >
<q-img <q-img
class="q-mt-md"
:src="`/img-table-${$q.dark.isActive ? 'dark' : 'light'}.png`" :src="`/img-table-${$q.dark.isActive ? 'dark' : 'light'}.png`"
width="60%" width="60%"
/> />
@ -33,13 +36,13 @@ import AppBox from 'components/app/AppBox.vue';
:class="{ 'dack-box-content': $q.dark.isActive }" :class="{ 'dack-box-content': $q.dark.isActive }"
> >
<div class="column justify-center" style="height: 100%"> <div class="column justify-center" style="height: 100%">
<div class="col-4">งไมสำนกงานใหญ</div> <div class="col-4">{{ $t('branchNoMainOfficeYet') }}</div>
<div class="col-4 q-mb-md q-px-md"> <div class="col-4 q-mb-md q-px-md">
<div <div
class="content-text q-pa-sm" class="content-text q-pa-sm"
:class="{ 'dack-content-text': $q.dark.isActive }" :class="{ 'dack-content-text': $q.dark.isActive }"
> >
คล + เพอสรางสำนกงานใหญ {{ $t('branchClickToCreateMainOffice') }}
</div> </div>
</div> </div>
</div> </div>
@ -102,6 +105,7 @@ import AppBox from 'components/app/AppBox.vue';
--_bg-tooltip-branch-arrow: var(--_bg-box-content); --_bg-tooltip-branch-arrow: var(--_bg-box-content);
--_bg-box-content-text: var(--gray-11); --_bg-box-content-text: var(--gray-11);
--_color-box-content-text: var(--gray-0); --_color-box-content-text: var(--gray-0);
--_main-page-branch-tooltip: 100.5%;
} }
} }
@ -113,7 +117,7 @@ import AppBox from 'components/app/AppBox.vue';
.tooltip .tooltip-text { .tooltip .tooltip-text {
visibility: hidden; visibility: hidden;
width: 242px; width: 250px;
height: 200px; height: 200px;
background-color: var(--_bg-tooltip-branch); background-color: var(--_bg-tooltip-branch);
color: white; color: white;
@ -122,8 +126,8 @@ import AppBox from 'components/app/AppBox.vue';
padding: 5px 0; padding: 5px 0;
position: absolute; position: absolute;
z-index: 1; z-index: 1;
bottom: -170px; bottom: -165px;
left: -255px; left: -265px;
} }
.tooltip .tooltip-text::after { .tooltip .tooltip-text::after {
@ -131,7 +135,7 @@ import AppBox from 'components/app/AppBox.vue';
z-index: -99; z-index: -99;
position: absolute; position: absolute;
top: 7%; top: 7%;
left: 100.2%; left: var(--_main-page-branch-tooltip);
border-width: 8px; border-width: 8px;
border-style: solid; border-style: solid;
border-color: var(--_bg-tooltip-branch-arrow) transparent transparent border-color: var(--_bg-tooltip-branch-arrow) transparent transparent