fix(01): remove drawer info header code

This commit is contained in:
puriphatt 2024-08-08 08:55:28 +00:00
parent c241d70c3c
commit 71a7abc93b
3 changed files with 3 additions and 22 deletions

View file

@ -1,6 +1,4 @@
<script lang="ts" setup> <script lang="ts" setup>
import FormAddress from './FormAddress.vue';
defineProps<{ defineProps<{
readonly?: boolean; readonly?: boolean;
titleFormAddress?: string; titleFormAddress?: string;
@ -12,15 +10,6 @@ defineProps<{
employee?: boolean; employee?: boolean;
tabsList?: { name: string; label: string }[]; tabsList?: { name: string; label: string }[];
}>(); }>();
const address = defineModel('address', { default: '' });
const addressEN = defineModel('addressEN', { default: '' });
const provinceId = defineModel<string | null | undefined>('provinceId');
const districtId = defineModel<string | null | undefined>('districtId');
const subDistrictId = defineModel<string | null | undefined>('subDistrictId');
const zipCode = defineModel<string>('zipCode', { default: '' });
const sameWithEmployer = defineModel<boolean>('sameWithEmployer');
const employeeTab = defineModel<string>('employeeTab'); const employeeTab = defineModel<string>('employeeTab');
</script> </script>
<template> <template>

View file

@ -1700,7 +1700,8 @@ watch(currentHq, () => {
<DrawerInfo <DrawerInfo
ref="formDialogRef" ref="formDialogRef"
v-model:drawerOpen="modalDrawer" v-model:drawerOpen="modalDrawer"
:title="changeTitle(formType, formTypeBranch) + ' ' + currentEdit.code" :category="changeTitle(formType, formTypeBranch)"
:title="$i18n.locale === 'en-US' ? formData.nameEN : formData.name"
:titleFormAddress="$t('formDialogTitleAddress')" :titleFormAddress="$t('formDialogTitleAddress')"
:addressSeparator="true" :addressSeparator="true"
:undo="() => undo()" :undo="() => undo()"

View file

@ -1554,14 +1554,6 @@ watch(
v-if="currentUser" v-if="currentUser"
:category="$t('personnelTitle')" :category="$t('personnelTitle')"
bg-on bg-on
:badgeClass="
formData.gender === 'male'
? 'app-bg-male text-white'
: formData.gender === 'female'
? 'app-bg-female text-white'
: ''
"
:badgeLabel="userCode"
:isEdit="infoDrawerEdit" :isEdit="infoDrawerEdit"
:title=" :title="
$i18n.locale === 'en-US' $i18n.locale === 'en-US'
@ -1600,7 +1592,7 @@ watch(
:readonly="!infoDrawerEdit" :readonly="!infoDrawerEdit"
:toggleTitle="$t('formDialogTitleUserStatus')" :toggleTitle="$t('formDialogTitleUserStatus')"
:title="`${formData.firstName} ${formData.lastName}`" :title="`${formData.firstName} ${formData.lastName}`"
:caption="`${formData.firstNameEN} ${formData.lastNameEN}`" :caption="userCode"
:img=" :img="
urlProfile || urlProfile ||
{ {
@ -1754,7 +1746,6 @@ watch(
:toggleTitle="$t('formDialogTitleUserStatus')" :toggleTitle="$t('formDialogTitleUserStatus')"
:title="`${formData.firstName} ${formData.lastName}`" :title="`${formData.firstName} ${formData.lastName}`"
hideFade hideFade
:caption="`${formData.firstNameEN} ${formData.lastNameEN}`"
@view="imageDialog = true" @view="imageDialog = true"
@edit="refImageUpload && refImageUpload.browse()" @edit="refImageUpload && refImageUpload.browse()"
@update:toggle-status=" @update:toggle-status="