feat: only validate field on submit only
This commit is contained in:
parent
10e0d638f5
commit
c3ac90429e
26 changed files with 164 additions and 14 deletions
|
|
@ -40,6 +40,7 @@ onMounted(async () => {
|
|||
</div>
|
||||
<div class="col-md-9 col-12 row q-col-gutter-md">
|
||||
<q-select
|
||||
lazy-rules="ondemand"
|
||||
id="select-hq-id"
|
||||
:dense="dense"
|
||||
outlined
|
||||
|
|
@ -59,6 +60,7 @@ onMounted(async () => {
|
|||
@update:model-value="(val: string) => selectHq(val)"
|
||||
/>
|
||||
<q-select
|
||||
lazy-rules="ondemand"
|
||||
id="select-br-id"
|
||||
:dense="dense"
|
||||
outlined
|
||||
|
|
@ -77,6 +79,7 @@ onMounted(async () => {
|
|||
:options="userStore.userOption.brOpts"
|
||||
/>
|
||||
<q-input
|
||||
lazy-rules="ondemand"
|
||||
for="input-username"
|
||||
:dense="dense"
|
||||
outlined
|
||||
|
|
@ -94,6 +97,7 @@ onMounted(async () => {
|
|||
]"
|
||||
/>
|
||||
<q-select
|
||||
lazy-rules="ondemand"
|
||||
id="select-user-type"
|
||||
:dense="dense"
|
||||
outlined
|
||||
|
|
@ -123,6 +127,7 @@ onMounted(async () => {
|
|||
</template>
|
||||
</q-select>
|
||||
<q-select
|
||||
lazy-rules="ondemand"
|
||||
id="select-user-role"
|
||||
:dense="dense"
|
||||
outlined
|
||||
|
|
@ -140,7 +145,7 @@ onMounted(async () => {
|
|||
:options="userStore.userOption.roleOpts"
|
||||
:rules="[(val: string) => !!val || $t('formDialogInputUserRoleValidate')]"
|
||||
/>
|
||||
<!-- <q-input
|
||||
<!-- <q-input lazy-rules="ondemand"
|
||||
id="input-user-code"
|
||||
:dense="dense"
|
||||
:outlined="readonly ? false : outlined"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue