forked from verdnatura/salix-front
fix: refs #6911 save onKeyup enter
This commit is contained in:
parent
c070969d7d
commit
ba1dea32a5
|
@ -66,7 +66,7 @@ const closeForm = () => {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<QForm @submit="submitData()" class="all-pointer-events">
|
<QForm @submit="submitData()" @keyup.enter="submitData()" class="all-pointer-events">
|
||||||
<QCard class="q-pa-lg">
|
<QCard class="q-pa-lg">
|
||||||
<span ref="closeButton" class="close-icon" v-close-popup>
|
<span ref="closeButton" class="close-icon" v-close-popup>
|
||||||
<QIcon name="close" size="sm" />
|
<QIcon name="close" size="sm" />
|
||||||
|
|
|
@ -140,7 +140,11 @@ const selectItem = ({ id }) => {
|
||||||
@on-fetch="(data) => (InksOptions = data)"
|
@on-fetch="(data) => (InksOptions = data)"
|
||||||
auto-load
|
auto-load
|
||||||
/>
|
/>
|
||||||
<QForm @submit="fetchResults()" class="all-pointer-events">
|
<QForm
|
||||||
|
@submit="fetchResults()"
|
||||||
|
@keyup.enter="fetchResults()"
|
||||||
|
class="all-pointer-events"
|
||||||
|
>
|
||||||
<QCard class="column" style="padding: 32px; z-index: 100">
|
<QCard class="column" style="padding: 32px; z-index: 100">
|
||||||
<span ref="closeButton" class="close-icon" v-close-popup>
|
<span ref="closeButton" class="close-icon" v-close-popup>
|
||||||
<QIcon name="close" size="sm" />
|
<QIcon name="close" size="sm" />
|
||||||
|
|
|
@ -138,7 +138,11 @@ const selectTravel = ({ id }) => {
|
||||||
@on-fetch="(data) => (warehousesOptions = data)"
|
@on-fetch="(data) => (warehousesOptions = data)"
|
||||||
auto-load
|
auto-load
|
||||||
/>
|
/>
|
||||||
<QForm @submit="fetchResults()" class="all-pointer-events">
|
<QForm
|
||||||
|
@submit="fetchResults()"
|
||||||
|
@keyup.enter="fetchResults()"
|
||||||
|
class="all-pointer-events"
|
||||||
|
>
|
||||||
<QCard class="column" style="padding: 32px; z-index: 100">
|
<QCard class="column" style="padding: 32px; z-index: 100">
|
||||||
<span ref="closeButton" class="close-icon" v-close-popup>
|
<span ref="closeButton" class="close-icon" v-close-popup>
|
||||||
<QIcon name="close" size="sm" />
|
<QIcon name="close" size="sm" />
|
||||||
|
|
|
@ -190,10 +190,10 @@ watch(formUrl, async () => {
|
||||||
<QForm
|
<QForm
|
||||||
v-if="formData"
|
v-if="formData"
|
||||||
@submit="save"
|
@submit="save"
|
||||||
|
@keyup.enter="save"
|
||||||
@reset="reset"
|
@reset="reset"
|
||||||
class="q-pa-md"
|
class="q-pa-md"
|
||||||
id="formModel"
|
id="formModel"
|
||||||
@keyup.enter="save"
|
|
||||||
>
|
>
|
||||||
<QCard>
|
<QCard>
|
||||||
<slot
|
<slot
|
||||||
|
|
|
@ -164,7 +164,7 @@ function formatValue(value) {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<QForm @submit="search">
|
<QForm @submit="search" @keyup.enter="search">
|
||||||
<QList dense>
|
<QList dense>
|
||||||
<QItem class="q-mt-xs">
|
<QItem class="q-mt-xs">
|
||||||
<QItemSection top>
|
<QItemSection top>
|
||||||
|
|
|
@ -67,7 +67,7 @@ async function remove({ id }) {
|
||||||
<QPage class="column items-center q-pa-md sticky">
|
<QPage class="column items-center q-pa-md sticky">
|
||||||
<QPageSticky expand position="top" :offset="[16, 16]">
|
<QPageSticky expand position="top" :offset="[16, 16]">
|
||||||
<QCard class="card q-pa-md">
|
<QCard class="card q-pa-md">
|
||||||
<QForm @submit="submit">
|
<QForm @submit="submit" @keyup.enter="submit">
|
||||||
<VnInput
|
<VnInput
|
||||||
ref="input"
|
ref="input"
|
||||||
v-model="newRma.code"
|
v-model="newRma.code"
|
||||||
|
|
|
@ -55,7 +55,7 @@ const onSubmit = async () => {
|
||||||
<QDialog ref="dialogRef">
|
<QDialog ref="dialogRef">
|
||||||
<QCard class="q-pa-md q-mb-md">
|
<QCard class="q-pa-md q-mb-md">
|
||||||
<QCardSection>
|
<QCardSection>
|
||||||
<QForm @submit="onSubmit()" class="q-pa-sm">
|
<QForm @submit="onSubmit()" @keyup.enter="onSubmit()" class="q-pa-sm">
|
||||||
<div>
|
<div>
|
||||||
{{
|
{{
|
||||||
t('Add observation to all selected clients', {
|
t('Add observation to all selected clients', {
|
||||||
|
|
|
@ -75,6 +75,7 @@ onMounted(async () => {
|
||||||
<QForm
|
<QForm
|
||||||
v-if="!initialDataLoading && optionsInitialData"
|
v-if="!initialDataLoading && optionsInitialData"
|
||||||
@submit="makeInvoice(formData, clientsToInvoice)"
|
@submit="makeInvoice(formData, clientsToInvoice)"
|
||||||
|
@keyup.enter="makeInvoice(formData, clientsToInvoice)"
|
||||||
class="form-container q-pa-md"
|
class="form-container q-pa-md"
|
||||||
style="max-width: 256px"
|
style="max-width: 256px"
|
||||||
>
|
>
|
||||||
|
|
|
@ -48,7 +48,11 @@ async function onSubmit() {
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<QForm @submit="onSubmit" class="q-gutter-y-md q-pa-lg formCard">
|
<QForm
|
||||||
|
@submit="onSubmit"
|
||||||
|
@keyup.enter="onSubmit"
|
||||||
|
class="q-gutter-y-md q-pa-lg formCard"
|
||||||
|
>
|
||||||
<div class="column items-center">
|
<div class="column items-center">
|
||||||
<QIcon name="phonelink_lock" size="xl" color="primary" />
|
<QIcon name="phonelink_lock" size="xl" color="primary" />
|
||||||
<h5 class="text-center q-my-md">{{ t('twoFactor.insert') }}</h5>
|
<h5 class="text-center q-my-md">{{ t('twoFactor.insert') }}</h5>
|
||||||
|
|
|
@ -33,7 +33,7 @@ const addToOrder = async () => {
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="container order-catalog-item q-pb-md">
|
<div class="container order-catalog-item q-pb-md">
|
||||||
<QForm @submit.prevent="addToOrder">
|
<QForm @submit.prevent="addToOrder" @keyup.enter="addToOrder">
|
||||||
<QMarkupTable class="shadow-0">
|
<QMarkupTable class="shadow-0">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr v-for="item in fields" :key="item.warehouse">
|
<tr v-for="item in fields" :key="item.warehouse">
|
||||||
|
|
|
@ -211,6 +211,7 @@ const onThermographCreated = async (data) => {
|
||||||
:observe-form-changes="viewAction === 'create'"
|
:observe-form-changes="viewAction === 'create'"
|
||||||
:default-actions="true"
|
:default-actions="true"
|
||||||
@submit="onSubmit()"
|
@submit="onSubmit()"
|
||||||
|
@keyup.enter="onSubmit()"
|
||||||
class="full-width"
|
class="full-width"
|
||||||
style="max-width: 800px"
|
style="max-width: 800px"
|
||||||
>
|
>
|
||||||
|
|
|
@ -242,7 +242,12 @@ function exceedMaxHeight(pos) {
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<QPage class="q-pa-sm q-mx-xl">
|
<QPage class="q-pa-sm q-mx-xl">
|
||||||
<QForm @submit="onSubmit()" @reset="onReset()" class="q-pa-sm">
|
<QForm
|
||||||
|
@submit="onSubmit()"
|
||||||
|
@keyup.enter="onSubmit()"
|
||||||
|
@reset="onReset()"
|
||||||
|
class="q-pa-sm"
|
||||||
|
>
|
||||||
<QCard class="q-pa-md">
|
<QCard class="q-pa-md">
|
||||||
<VnInput
|
<VnInput
|
||||||
filled
|
filled
|
||||||
|
|
|
@ -89,7 +89,12 @@ function filterType(val, update) {
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<QPage class="q-pa-sm q-mx-xl">
|
<QPage class="q-pa-sm q-mx-xl">
|
||||||
<QForm @submit="onSubmit()" @reset="onReset()" class="q-pa-sm">
|
<QForm
|
||||||
|
@submit="onSubmit()"
|
||||||
|
@keyup.enter="onSubmit()"
|
||||||
|
@reset="onReset()"
|
||||||
|
class="q-pa-sm"
|
||||||
|
>
|
||||||
<QCard class="q-pa-md">
|
<QCard class="q-pa-md">
|
||||||
<div class="row q-col-gutter-md">
|
<div class="row q-col-gutter-md">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
|
|
Loading…
Reference in New Issue