refactor: edit btn add
This commit is contained in:
parent
cc93b951e3
commit
06ffac28be
2 changed files with 13 additions and 23 deletions
|
|
@ -730,18 +730,11 @@ watch(
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<ButtonAddComponent style="z-index: 999">
|
<ButtonAddComponent
|
||||||
<q-fab-action
|
style="z-index: 999"
|
||||||
id="btn-add-personne"
|
hide-icon
|
||||||
:label="$t('personnel.addTitle')"
|
@click="openDialog('FORM')"
|
||||||
external-label
|
></ButtonAddComponent>
|
||||||
label-position="left"
|
|
||||||
@click="openDialog('FORM')"
|
|
||||||
color="primary"
|
|
||||||
padding="xs"
|
|
||||||
icon="mdi-account-plus-outline"
|
|
||||||
></q-fab-action>
|
|
||||||
</ButtonAddComponent>
|
|
||||||
|
|
||||||
<!-- stat -->
|
<!-- stat -->
|
||||||
<div class="column full-height no-wrap">
|
<div class="column full-height no-wrap">
|
||||||
|
|
|
||||||
|
|
@ -725,7 +725,15 @@ const emptyCreateDialog = ref(false);
|
||||||
<template>
|
<template>
|
||||||
<ButtonAddComponent
|
<ButtonAddComponent
|
||||||
style="z-index: 999"
|
style="z-index: 999"
|
||||||
|
:hide-icon="currentTab === 'employee'"
|
||||||
v-if="$route.name === 'CustomerManagement'"
|
v-if="$route.name === 'CustomerManagement'"
|
||||||
|
@click="
|
||||||
|
() => {
|
||||||
|
if (currentTab === 'employee') {
|
||||||
|
createEmployeeForm();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
"
|
||||||
>
|
>
|
||||||
<q-fab-action
|
<q-fab-action
|
||||||
v-if="currentTab === 'employer'"
|
v-if="currentTab === 'employer'"
|
||||||
|
|
@ -749,17 +757,6 @@ const emptyCreateDialog = ref(false);
|
||||||
padding="xs"
|
padding="xs"
|
||||||
icon="mdi-account-plus-outline"
|
icon="mdi-account-plus-outline"
|
||||||
/>
|
/>
|
||||||
<q-fab-action
|
|
||||||
v-if="currentTab === 'employee'"
|
|
||||||
:label="$t('general.add') + ' ' + $t('customer.employee')"
|
|
||||||
external-label
|
|
||||||
id="add-employee"
|
|
||||||
label-position="left"
|
|
||||||
@click="createEmployeeForm()"
|
|
||||||
color="primary"
|
|
||||||
padding="xs"
|
|
||||||
icon="mdi-account-plus-outline"
|
|
||||||
/>
|
|
||||||
</ButtonAddComponent>
|
</ButtonAddComponent>
|
||||||
|
|
||||||
<div class="column full-height no-wrap">
|
<div class="column full-height no-wrap">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue