refactor: header img
This commit is contained in:
parent
9445187838
commit
2e392a44d1
1 changed files with 3 additions and 2 deletions
|
|
@ -1038,7 +1038,7 @@ const emptyCreateDialog = ref(false);
|
||||||
>
|
>
|
||||||
<template #error>
|
<template #error>
|
||||||
<q-img
|
<q-img
|
||||||
src="/images/customer-CORP-avartar.png"
|
:src="`${props.row.customerType === 'CORP' ? '/images/customer-CORP-avartar.png' : '/images/customer-PERS-avartar.png'}`"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</q-img>
|
</q-img>
|
||||||
|
|
@ -1962,7 +1962,6 @@ const emptyCreateDialog = ref(false);
|
||||||
await fetchListEmployee();
|
await fetchListEmployee();
|
||||||
}
|
}
|
||||||
"
|
"
|
||||||
:close="() => {}"
|
|
||||||
:show="
|
:show="
|
||||||
() => {
|
() => {
|
||||||
employeeFormStore.resetFormDataEmployee(true);
|
employeeFormStore.resetFormDataEmployee(true);
|
||||||
|
|
@ -1973,6 +1972,8 @@ const emptyCreateDialog = ref(false);
|
||||||
if (employeeFormStore.isFormDataDifferent()) {
|
if (employeeFormStore.isFormDataDifferent()) {
|
||||||
employeeConfirmUnsave();
|
employeeConfirmUnsave();
|
||||||
return true;
|
return true;
|
||||||
|
} else {
|
||||||
|
fetchListEmployee();
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue