fix: clean for remove warning console

This commit is contained in:
puriphatt 2024-07-01 08:40:37 +00:00
parent d1e6239a1f
commit 20e12b407a
6 changed files with 346 additions and 347 deletions

View file

@ -128,7 +128,17 @@ const formDataEmployeeSameAddr = ref(true);
const formDataEmployeeTab = ref('personalInfo');
const infoDrawerEmployee = ref(false);
const infoDrawerEmployeeEdit = ref(false);
const infoEmployeePersonCard = ref();
const infoEmployeePersonCard = ref<
{
id: string;
img: string;
name: string;
male: boolean;
female: boolean;
badge: string;
disabled: boolean;
}[]
>();
const statsEmployee = ref(0);
const statsEmployeeGender = ref<{ male: number; female: number }>();
const formDataEmployeeOwner = ref<{
@ -272,8 +282,8 @@ const inputFile = (() => {
if (infoDrawerEdit.value && currentCustomer.value)
currentCustomer.value.imageUrl = profileUrl.value as string;
if (infoDrawerEmployeeEdit.value)
infoEmployeePersonCard.value[0].img = profileUrl.value;
if (infoDrawerEmployeeEdit.value && infoEmployeePersonCard.value)
infoEmployeePersonCard.value[0].img = profileUrl.value as string;
});
element.addEventListener('change', () => {
@ -1855,7 +1865,6 @@ watch([inputSearch, currentStatus], async () => {
"
dense
outlined
bordered
separator
/>
</template>
@ -1998,7 +2007,6 @@ watch([inputSearch, currentStatus], async () => {
v-if="formDataEmployeeTab === 'personalInfo'"
dense
outlined
employee
separator
v-model:passport-type="formDataEmployee.passportType"
v-model:passport-number="formDataEmployee.passportNumber"
@ -2020,7 +2028,6 @@ watch([inputSearch, currentStatus], async () => {
v-if="formDataEmployeeTab === 'personalInfo'"
dense
outlined
employee
v-model:visa-type="formDataEmployee.visaType"
v-model:visa-number="formDataEmployee.visaNumber"
v-model:visa-issue-date="formDataEmployee.visaIssueDate"
@ -2131,7 +2138,6 @@ watch([inputSearch, currentStatus], async () => {
"
dense
outlined
bordered
separator
/>
</template>
@ -2263,7 +2269,6 @@ watch([inputSearch, currentStatus], async () => {
"
dense
outlined
bordered
separator
/>
</template>
@ -2465,7 +2470,6 @@ watch([inputSearch, currentStatus], async () => {
"
dense
outlined
bordered
separator
:readonly="!infoDrawerEdit"
/>
@ -2677,7 +2681,6 @@ watch([inputSearch, currentStatus], async () => {
"
dense
outlined
bordered
separator
:readonly="!infoDrawerEdit"
/>
@ -2771,7 +2774,7 @@ watch([inputSearch, currentStatus], async () => {
no-action
no-detail
no-bg
:list="infoEmployeePersonCard"
:list="infoEmployeePersonCard ? infoEmployeePersonCard : []"
:gridColumns="1"
@edit-profile="
() => {
@ -2860,7 +2863,6 @@ watch([inputSearch, currentStatus], async () => {
v-if="formDataEmployeeTab === 'personalInfo'"
dense
outlined
employee
separator
:readonly="!infoDrawerEmployeeEdit"
v-model:passport-type="formDataEmployee.passportType"
@ -2883,7 +2885,6 @@ watch([inputSearch, currentStatus], async () => {
v-if="formDataEmployeeTab === 'personalInfo'"
dense
outlined
employee
:readonly="!infoDrawerEmployeeEdit"
v-model:visa-type="formDataEmployee.visaType"
v-model:visa-number="formDataEmployee.visaNumber"