fix: layout no data
This commit is contained in:
parent
bee2d63d18
commit
8f3f499a7a
1 changed files with 178 additions and 166 deletions
|
|
@ -5063,6 +5063,16 @@ const emptyCreateDialog = ref(false);
|
|||
{{ $t('customerEmployee.form.group.passport') }}
|
||||
</div>
|
||||
|
||||
<div class="col self-center">
|
||||
<div
|
||||
class="full-width full-height flex flex-center col"
|
||||
v-if="
|
||||
currentFromDataEmployee.employeePassport?.length === 0
|
||||
"
|
||||
>
|
||||
<NoData />
|
||||
</div>
|
||||
|
||||
<template
|
||||
v-for="(
|
||||
value, index
|
||||
|
|
@ -5151,7 +5161,8 @@ const emptyCreateDialog = ref(false);
|
|||
icon-only
|
||||
@click="
|
||||
() => {
|
||||
employeeFormState.currentIndexPassport = index;
|
||||
employeeFormState.currentIndexPassport =
|
||||
index;
|
||||
}
|
||||
"
|
||||
type="submit"
|
||||
|
|
@ -5169,7 +5180,8 @@ const emptyCreateDialog = ref(false);
|
|||
icon-only
|
||||
@click="
|
||||
() => {
|
||||
employeeFormState.currentIndexPassport = index;
|
||||
employeeFormState.currentIndexPassport =
|
||||
index;
|
||||
employeeFormState.isEmployeeEdit = true;
|
||||
employeeFormState.dialogType = 'edit';
|
||||
}
|
||||
|
|
@ -5182,7 +5194,8 @@ const emptyCreateDialog = ref(false);
|
|||
(!employeeFormState.isEmployeeEdit &&
|
||||
value.id !== undefined &&
|
||||
!(
|
||||
employeeFormState.currentIndexPassport === -1
|
||||
employeeFormState.currentIndexPassport ===
|
||||
-1
|
||||
) &&
|
||||
employeeFormState.currentIndexPassport ===
|
||||
index)
|
||||
|
|
@ -5191,7 +5204,10 @@ const emptyCreateDialog = ref(false);
|
|||
icon-only
|
||||
@click.stop="
|
||||
() => {
|
||||
deleteEmployeeById({ type: 'passport', index });
|
||||
deleteEmployeeById({
|
||||
type: 'passport',
|
||||
index,
|
||||
});
|
||||
}
|
||||
"
|
||||
type="button"
|
||||
|
|
@ -5200,7 +5216,8 @@ const emptyCreateDialog = ref(false);
|
|||
employeeFormState.currentIndexPassport === -1
|
||||
) &&
|
||||
!(
|
||||
employeeFormState.currentIndexPassport === index
|
||||
employeeFormState.currentIndexPassport ===
|
||||
index
|
||||
)
|
||||
"
|
||||
/>
|
||||
|
|
@ -5209,12 +5226,6 @@ const emptyCreateDialog = ref(false);
|
|||
</FormEmployeePassport>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<div
|
||||
class="full-width flex flex-center col"
|
||||
v-if="currentFromDataEmployee.employeePassport?.length === 0"
|
||||
>
|
||||
<NoData />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
|
@ -5232,7 +5243,14 @@ const emptyCreateDialog = ref(false);
|
|||
/>
|
||||
{{ $t('customerEmployee.form.group.visa') }}
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="col self-center">
|
||||
<div
|
||||
v-if="currentFromDataEmployee.employeeVisa?.length === 0"
|
||||
class="full-width full-height col flex flex-center"
|
||||
>
|
||||
<NoData />
|
||||
</div>
|
||||
|
||||
<FormEmployeeVisa
|
||||
v-for="(
|
||||
value, index
|
||||
|
|
@ -5353,12 +5371,6 @@ const emptyCreateDialog = ref(false);
|
|||
</template>
|
||||
</FormEmployeeVisa>
|
||||
</div>
|
||||
<div
|
||||
v-if="currentFromDataEmployee.employeeVisa?.length === 0"
|
||||
class="full-width col flex flex-center"
|
||||
>
|
||||
<NoData />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
@ -5379,7 +5391,13 @@ const emptyCreateDialog = ref(false);
|
|||
{{ $t(`customerEmployee.formHealthCheck.title`) }}
|
||||
</div>
|
||||
|
||||
<div class="col">
|
||||
<div class="col self-center">
|
||||
<div
|
||||
v-if="currentFromDataEmployee.employeeCheckup?.length === 0"
|
||||
class="full-width full-height col flex flex-center"
|
||||
>
|
||||
<NoData />
|
||||
</div>
|
||||
<FormEmployeeHealthCheck
|
||||
v-if="employeeFormState.currentTab === 'healthCheck'"
|
||||
id="drawer-form-checkup"
|
||||
|
|
@ -5446,12 +5464,6 @@ const emptyCreateDialog = ref(false);
|
|||
"
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
class="full-width col flex flex-center"
|
||||
v-if="currentFromDataEmployee.employeeCheckup?.length === 0"
|
||||
>
|
||||
<NoData />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<template v-if="employeeFormState.currentTab === 'workHistory'">
|
||||
|
|
@ -5470,7 +5482,14 @@ const emptyCreateDialog = ref(false);
|
|||
{{ $t(`customerEmployee.form.group.workHistory`) }}
|
||||
</div>
|
||||
|
||||
<div class="col">
|
||||
<div class="col self-center">
|
||||
<div
|
||||
class="full-width full-height col flex flex-center"
|
||||
v-if="currentFromDataEmployee.employeeWork?.length === 0"
|
||||
>
|
||||
<NoData />
|
||||
</div>
|
||||
|
||||
<FormEmployeeWorkHistory
|
||||
v-if="employeeFormState.currentTab === 'workHistory'"
|
||||
id="drawer-work-history"
|
||||
|
|
@ -5529,13 +5548,6 @@ const emptyCreateDialog = ref(false);
|
|||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="full-width col flex flex-center"
|
||||
v-if="currentFromDataEmployee.employeeWork?.length === 0"
|
||||
>
|
||||
<NoData />
|
||||
</div>
|
||||
</template>
|
||||
<template v-if="employeeFormState.currentTab === 'other'">
|
||||
<FormEmployeeOther
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue