refactor: add btn save
This commit is contained in:
parent
2ec032910a
commit
5e525e43da
1 changed files with 7 additions and 12 deletions
|
|
@ -4,6 +4,8 @@ import { CustomerBranch } from 'src/stores/customer/types';
|
||||||
import { selectFilterOptionRefMod } from 'src/stores/utils';
|
import { selectFilterOptionRefMod } from 'src/stores/utils';
|
||||||
import { onMounted, ref, watch } from 'vue';
|
import { onMounted, ref, watch } from 'vue';
|
||||||
|
|
||||||
|
import SaveButton from 'src/components/button/SaveButton.vue';
|
||||||
|
|
||||||
const optionsBranch = defineModel<{ id: string; name: string }[]>(
|
const optionsBranch = defineModel<{ id: string; name: string }[]>(
|
||||||
'optionsBranch',
|
'optionsBranch',
|
||||||
{ default: [] },
|
{ default: [] },
|
||||||
|
|
@ -69,7 +71,9 @@ onMounted(() => {
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="row col-12">
|
<div class="row col-12">
|
||||||
<div class="col-12 row justify-between q-pb-sm text-weight-bold text-body1">
|
<div
|
||||||
|
class="col-12 items-center row justify-between q-pb-sm text-weight-bold text-body1"
|
||||||
|
>
|
||||||
<q-icon
|
<q-icon
|
||||||
flat
|
flat
|
||||||
size="xs"
|
size="xs"
|
||||||
|
|
@ -79,19 +83,10 @@ onMounted(() => {
|
||||||
style="background-color: var(--surface-3)"
|
style="background-color: var(--surface-3)"
|
||||||
/>
|
/>
|
||||||
{{ $t(`${title}`) }}
|
{{ $t(`${title}`) }}
|
||||||
<q-btn
|
<SaveButton class="q-ml-auto" v-if="!readonly" @click="$emit('save')" />
|
||||||
v-if="!readonly"
|
|
||||||
type="submit"
|
|
||||||
dense
|
|
||||||
unelevated
|
|
||||||
color="primary"
|
|
||||||
:label="$t('save')"
|
|
||||||
@click="$emit('save')"
|
|
||||||
class="q-px-md q-ml-auto rounded"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-12 row q-col-gutter-md">
|
<div class="col-12 row" style="gap: var(--size-2)">
|
||||||
<q-select
|
<q-select
|
||||||
lazy-rules="ondemand"
|
lazy-rules="ondemand"
|
||||||
:id="`${prefixId}-select-employer-branch`"
|
:id="`${prefixId}-select-employer-branch`"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue