0
0
Fork 0

fix: refs #6911 save onKeyup enter

This commit is contained in:
Jorge Penadés 2024-02-27 11:24:49 +01:00
parent c070969d7d
commit ba1dea32a5
13 changed files with 35 additions and 11 deletions

View File

@ -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" />

View File

@ -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" />

View File

@ -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" />

View File

@ -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

View File

@ -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>

View File

@ -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"

View File

@ -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', {

View File

@ -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"
> >

View File

@ -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>

View File

@ -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">

View File

@ -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"
> >

View File

@ -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

View File

@ -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">