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>
|
||||
|
||||
<template>
|
||||
<ButtonAddComponent style="z-index: 999">
|
||||
<q-fab-action
|
||||
id="btn-add-personne"
|
||||
:label="$t('personnel.addTitle')"
|
||||
external-label
|
||||
label-position="left"
|
||||
@click="openDialog('FORM')"
|
||||
color="primary"
|
||||
padding="xs"
|
||||
icon="mdi-account-plus-outline"
|
||||
></q-fab-action>
|
||||
</ButtonAddComponent>
|
||||
<ButtonAddComponent
|
||||
style="z-index: 999"
|
||||
hide-icon
|
||||
@click="openDialog('FORM')"
|
||||
></ButtonAddComponent>
|
||||
|
||||
<!-- stat -->
|
||||
<div class="column full-height no-wrap">
|
||||
|
|
|
|||
|
|
@ -725,7 +725,15 @@ const emptyCreateDialog = ref(false);
|
|||
<template>
|
||||
<ButtonAddComponent
|
||||
style="z-index: 999"
|
||||
:hide-icon="currentTab === 'employee'"
|
||||
v-if="$route.name === 'CustomerManagement'"
|
||||
@click="
|
||||
() => {
|
||||
if (currentTab === 'employee') {
|
||||
createEmployeeForm();
|
||||
}
|
||||
}
|
||||
"
|
||||
>
|
||||
<q-fab-action
|
||||
v-if="currentTab === 'employer'"
|
||||
|
|
@ -749,17 +757,6 @@ const emptyCreateDialog = ref(false);
|
|||
padding="xs"
|
||||
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>
|
||||
|
||||
<div class="column full-height no-wrap">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue