forked from verdnatura/salix-front
refs #6911 feat: reaneme method and remove keyup
This commit is contained in:
parent
6bc8cdc0c3
commit
ef979f05a3
|
@ -78,7 +78,7 @@ const tableColumns = computed(() => [
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const fetchResults = async () => {
|
const onSubmit = async () => {
|
||||||
try {
|
try {
|
||||||
let filter = itemFilter;
|
let filter = itemFilter;
|
||||||
const params = itemFilterParams;
|
const params = itemFilterParams;
|
||||||
|
@ -140,11 +140,7 @@ const selectItem = ({ id }) => {
|
||||||
@on-fetch="(data) => (InksOptions = data)"
|
@on-fetch="(data) => (InksOptions = data)"
|
||||||
auto-load
|
auto-load
|
||||||
/>
|
/>
|
||||||
<QForm
|
<QForm @submit="onSubmit()" class="all-pointer-events">
|
||||||
@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" />
|
||||||
|
|
|
@ -85,7 +85,7 @@ const tableColumns = computed(() => [
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const fetchResults = async () => {
|
const onSubmit = async () => {
|
||||||
try {
|
try {
|
||||||
let filter = travelFilter;
|
let filter = travelFilter;
|
||||||
const params = travelFilterParams;
|
const params = travelFilterParams;
|
||||||
|
@ -138,11 +138,7 @@ const selectTravel = ({ id }) => {
|
||||||
@on-fetch="(data) => (warehousesOptions = data)"
|
@on-fetch="(data) => (warehousesOptions = data)"
|
||||||
auto-load
|
auto-load
|
||||||
/>
|
/>
|
||||||
<QForm
|
<QForm @submit="onSubmit()" class="all-pointer-events">
|
||||||
@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" />
|
||||||
|
|
Loading…
Reference in New Issue