refactor: handle edit
This commit is contained in:
parent
d21506f4d6
commit
6b7e943f68
2 changed files with 24 additions and 2 deletions
|
|
@ -2469,7 +2469,11 @@ watch(
|
|||
!currentFromDataEmployee.image || !employeeFormState.profileUrl
|
||||
"
|
||||
clear-button
|
||||
@save="() => {}"
|
||||
@save="
|
||||
async () => {
|
||||
await employeeFormStore.submitPersonal();
|
||||
}
|
||||
"
|
||||
>
|
||||
<template #error>
|
||||
<div class="full-height full-width" style="background: white">
|
||||
|
|
@ -2548,6 +2552,18 @@ watch(
|
|||
<div class="full-height full-width column">
|
||||
<div class="q-mx-lg q-mt-lg">
|
||||
<ProfileBanner
|
||||
@view="employeeFormState.imageDialog = true"
|
||||
@edit="
|
||||
dialogEmployeeImageUpload && dialogEmployeeImageUpload.browse()
|
||||
"
|
||||
@update:toggle-status="
|
||||
() => {
|
||||
currentFromDataEmployee.status =
|
||||
currentFromDataEmployee.status === 'CREATED'
|
||||
? 'INACTIVE'
|
||||
: 'CREATED';
|
||||
}
|
||||
"
|
||||
active
|
||||
useToggle
|
||||
color="white"
|
||||
|
|
@ -2556,7 +2572,7 @@ watch(
|
|||
v-model:current-tab="employeeFormState.currentTab"
|
||||
v-model:cover-url="employeeFormState.profileUrl"
|
||||
fallbackCover="images/employee-banner.png"
|
||||
:img="`/images/employee-avatar.png`"
|
||||
:img="employeeFormState.profileUrl"
|
||||
:tabs-list="[
|
||||
{ name: 'personalInfo', label: 'personalInfo' },
|
||||
{ name: 'healthCheck', label: 'healthCheck' },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue