fix: แก้ปุ่มในการสร้าง
This commit is contained in:
parent
07db38948e
commit
4b2940e2d4
2 changed files with 28 additions and 14 deletions
|
|
@ -13,7 +13,7 @@ import {
|
||||||
} from 'src/stores/user/types';
|
} from 'src/stores/user/types';
|
||||||
import { BranchUserStats } from 'src/stores/branch/types';
|
import { BranchUserStats } from 'src/stores/branch/types';
|
||||||
import useAddressStore from 'src/stores/address';
|
import useAddressStore from 'src/stores/address';
|
||||||
|
import ButtonAddComponent from 'src/components/ButtonAddCompoent.vue';
|
||||||
import PersonCard from 'components/home/PersonCard.vue';
|
import PersonCard from 'components/home/PersonCard.vue';
|
||||||
import AppBox from 'components/app/AppBox.vue';
|
import AppBox from 'components/app/AppBox.vue';
|
||||||
import StatCardComponent from 'components/StatCardComponent.vue';
|
import StatCardComponent from 'components/StatCardComponent.vue';
|
||||||
|
|
@ -539,6 +539,18 @@ watch(
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
<ButtonAddComponent style="z-index: 999">
|
||||||
|
<q-fab-action
|
||||||
|
:label="$t('personnelAdd')"
|
||||||
|
external-label
|
||||||
|
label-position="left"
|
||||||
|
@click="openDialog('FORM')"
|
||||||
|
color="primary"
|
||||||
|
padding="xs"
|
||||||
|
icon="mdi-account-plus"
|
||||||
|
></q-fab-action>
|
||||||
|
</ButtonAddComponent>
|
||||||
|
|
||||||
<div class="column q-pb-lg">
|
<div class="column q-pb-lg">
|
||||||
<div class="text-h6 text-weight-bold q-mb-md">
|
<div class="text-h6 text-weight-bold q-mb-md">
|
||||||
{{ $t('personnelManagement') }}
|
{{ $t('personnelManagement') }}
|
||||||
|
|
@ -559,16 +571,6 @@ watch(
|
||||||
{{ $t('personnelStatTitle') }}
|
{{ $t('personnelStatTitle') }}
|
||||||
{{ selectorLabel === '' ? '' : $t(selectorLabel) }}
|
{{ selectorLabel === '' ? '' : $t(selectorLabel) }}
|
||||||
</div>
|
</div>
|
||||||
<q-btn
|
|
||||||
id="btn-add-personnel"
|
|
||||||
dense
|
|
||||||
unelevated
|
|
||||||
icon="mdi-plus"
|
|
||||||
:label="$t('personnelAdd')"
|
|
||||||
padding="4px 16px"
|
|
||||||
@click="openDialog('FORM')"
|
|
||||||
style="background-color: var(--cyan-6); color: white"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="row full-width" style="overflow-x: auto">
|
<div class="row full-width" style="overflow-x: auto">
|
||||||
<StatCardComponent
|
<StatCardComponent
|
||||||
|
|
|
||||||
|
|
@ -1124,7 +1124,7 @@ watch(
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<ButtonAddComponent style="z-index: 999">
|
<ButtonAddComponent style="z-index: 999" v-if="selectorLabel !== 'EMPLOYER'">
|
||||||
<q-fab-action
|
<q-fab-action
|
||||||
style="color: white; background-color: hsla(var(--purple-11-hsl))"
|
style="color: white; background-color: hsla(var(--purple-11-hsl))"
|
||||||
@click="triggerCreate('CORP')"
|
@click="triggerCreate('CORP')"
|
||||||
|
|
@ -1134,8 +1134,8 @@ watch(
|
||||||
external-label
|
external-label
|
||||||
label-position="left"
|
label-position="left"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<q-fab-action
|
<q-fab-action
|
||||||
|
v-if="selectorLabel === 'EMPLOYER'"
|
||||||
:label="$t('add') + ' ' + $t('customerNaturalPerson')"
|
:label="$t('add') + ' ' + $t('customerNaturalPerson')"
|
||||||
external-label
|
external-label
|
||||||
label-position="left"
|
label-position="left"
|
||||||
|
|
@ -1146,6 +1146,18 @@ watch(
|
||||||
></q-fab-action>
|
></q-fab-action>
|
||||||
</ButtonAddComponent>
|
</ButtonAddComponent>
|
||||||
|
|
||||||
|
<ButtonAddComponent style="z-index: 999" v-if="selectorLabel === 'EMPLOYER'">
|
||||||
|
<q-fab-action
|
||||||
|
:label="$t('add') + ' ' + $t('EMPLOYEE')"
|
||||||
|
external-label
|
||||||
|
label-position="left"
|
||||||
|
@click="openDialogCustomerType()"
|
||||||
|
color="primary"
|
||||||
|
padding="xs"
|
||||||
|
icon="mdi-account-plus"
|
||||||
|
></q-fab-action>
|
||||||
|
</ButtonAddComponent>
|
||||||
|
|
||||||
<div class="column q-pb-lg">
|
<div class="column q-pb-lg">
|
||||||
<div class="text-h6 text-weight-bold q-mb-md">
|
<div class="text-h6 text-weight-bold q-mb-md">
|
||||||
{{ $t('customerManagement') }}
|
{{ $t('customerManagement') }}
|
||||||
|
|
@ -1317,7 +1329,7 @@ watch(
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="row full-width customer-row"
|
class="row full-width customer-row"
|
||||||
:style="`grid-template-columns: repeat(${$q.screen.lt.sm ? '2' : $q.screen.lt.md ? '3' : $q.screen.lt.lg ? '6' : '7'}, 180px)`"
|
:style="`grid-template-columns: repeat(${$q.screen.lt.sm ? '2' : $q.screen.lt.md ? '3' : $q.screen.lt.lg ? '5' : '6'}, 1fr)`"
|
||||||
style="min-height: 250px"
|
style="min-height: 250px"
|
||||||
>
|
>
|
||||||
<UsersDetailCardComponent
|
<UsersDetailCardComponent
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue