refactor: project structure (1)

This commit is contained in:
Methapon Metanipat 2024-10-30 09:34:46 +07:00
parent 725edad3e1
commit 7ea8a618fa
12 changed files with 23 additions and 48 deletions

View file

@ -18,7 +18,7 @@ import { columnsEmployee } from './constant';
import { useCustomerBranchForm, useEmployeeForm } from './form';
import EmployerFormAuthorized from './components/employer/EmployerFormAuthorized.vue';
import ButtonAddComponent from 'components/ButtonAddCompoent.vue';
import FloatingActionButton from 'components/FloatingActionButton.vue';
import SideMenu from 'components/SideMenu.vue';
import { DialogFormContainer, DialogHeader } from 'components/dialog';
import BranchCardCustomer from 'components/03_customer-management/BranchCardCustomer.vue';
@ -220,7 +220,7 @@ watch([customerId, inputSearch, currentStatus], async () => {
</script>
<template>
<ButtonAddComponent
<FloatingActionButton
style="z-index: 999"
v-if="$route.name !== 'CustomerManagement'"
>
@ -237,7 +237,7 @@ watch([customerId, inputSearch, currentStatus], async () => {
external-label
label-position="left"
/>
</ButtonAddComponent>
</FloatingActionButton>
<div
class="row justify-between bordered-b surface-3 full-width q-px-md"
style="z-index: 1"

View file

@ -34,7 +34,7 @@ import { AddressForm } from 'components/form';
import BranchCard from 'src/components/01_branch-management/BranchCard.vue';
import ItemCard from 'src/components/ItemCard.vue';
import DrawerInfo from 'components/DrawerInfo.vue';
import ButtonAddComponent from 'components/ButtonAddCompoent.vue';
import FloatingActionButton from 'components/FloatingActionButton.vue';
import StatCardComponent from 'components/StatCardComponent.vue';
import TooltipComponent from 'components/TooltipComponent.vue';
import EmptyAddButton from 'components/AddButton.vue';
@ -55,7 +55,7 @@ import { runOcr, parseResultMRZ } from 'src/utils/ocr';
import {
UploadFileGroup,
FormTm6,
noticeJobEmployment,
NoticeJobEmployment,
} from 'components/upload-file';
import {
@ -722,7 +722,7 @@ const emptyCreateDialog = ref(false);
</script>
<template>
<ButtonAddComponent
<FloatingActionButton
style="z-index: 999"
:hide-icon="currentTab === 'employee'"
v-if="$route.name === 'CustomerManagement'"
@ -756,7 +756,7 @@ const emptyCreateDialog = ref(false);
padding="xs"
icon="mdi-account-plus-outline"
/>
</ButtonAddComponent>
</FloatingActionButton>
<div class="column full-height no-wrap">
<div v-if="$route.name === 'CustomerManagement'" class="column full-height">
@ -2944,7 +2944,7 @@ const emptyCreateDialog = ref(false);
v-model:visa-issuing-place="meta.issuePlace"
/>
<noticeJobEmployment v-if="mode === 'noticeJobEmployment'" />
<NoticeJobEmployment v-if="mode === 'noticeJobEmployment'" />
</template>
</UploadFileGroup>
</div>
@ -4474,7 +4474,7 @@ const emptyCreateDialog = ref(false);
v-model:visa-issuing-place="meta.issuePlace"
/>
<noticeJobEmployment v-if="mode === 'noticeJobEmployment'" />
<NoticeJobEmployment v-if="mode === 'noticeJobEmployment'" />
</template>
</UploadFileGroup>
</template>