fix(02): clear form employee
This commit is contained in:
parent
9558d95fcf
commit
818a03cf9f
1 changed files with 8 additions and 5 deletions
|
|
@ -94,6 +94,9 @@ const defaultFormData = {
|
||||||
status: 'CREATED',
|
status: 'CREATED',
|
||||||
checkpoint: null,
|
checkpoint: null,
|
||||||
checkpointEN: null,
|
checkpointEN: null,
|
||||||
|
namePrefix: null,
|
||||||
|
middleNameEN: '',
|
||||||
|
middleName: '',
|
||||||
};
|
};
|
||||||
|
|
||||||
const modeView = ref(false);
|
const modeView = ref(false);
|
||||||
|
|
@ -1896,22 +1899,22 @@ watch(
|
||||||
<div
|
<div
|
||||||
class="full-height full-width flex justify-center items-center"
|
class="full-height full-width flex justify-center items-center"
|
||||||
:style="`background: ${
|
:style="`background: ${
|
||||||
modal || !formData.gender
|
formData.gender
|
||||||
? 'linear-gradient(135deg,rgba(43, 137, 223, 1) 0%,rgba(230, 51, 81, 1) 100%)'
|
? formData.gender === 'male'
|
||||||
: formData.gender === 'male'
|
|
||||||
? '#78afb0'
|
? '#78afb0'
|
||||||
: '#c0bfe2'
|
: '#c0bfe2'
|
||||||
|
: 'linear-gradient(135deg,rgba(43, 137, 223, 1) 0%,rgba(230, 51, 81, 1) 100%)'
|
||||||
}`"
|
}`"
|
||||||
>
|
>
|
||||||
<q-img
|
<q-img
|
||||||
v-if="infoDrawer && formData.gender"
|
v-if="formData.gender"
|
||||||
fit="contain"
|
fit="contain"
|
||||||
:src="`/no-img-${formData.gender === 'male' ? 'man' : 'female'}.png`"
|
:src="`/no-img-${formData.gender === 'male' ? 'man' : 'female'}.png`"
|
||||||
style="height: 100%"
|
style="height: 100%"
|
||||||
/>
|
/>
|
||||||
<q-icon
|
<q-icon
|
||||||
v-else
|
v-else
|
||||||
size="15rem"
|
size="7vw"
|
||||||
:name="
|
:name="
|
||||||
infoDrawer ? 'mdi-account-outline' : 'mdi-account-plus-outline'
|
infoDrawer ? 'mdi-account-outline' : 'mdi-account-plus-outline'
|
||||||
"
|
"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue