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>
import FormAddress from './FormAddress.vue';
defineProps<{
readonly?: boolean;
titleFormAddress?: string;
@ -12,15 +10,6 @@ defineProps<{
employee?: boolean;
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');
</script>
<template>

View file

@ -1700,7 +1700,8 @@ watch(currentHq, () => {
<DrawerInfo
ref="formDialogRef"
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')"
:addressSeparator="true"
:undo="() => undo()"

View file

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