fix: 🐛 修改部分页面点击回车刷新页面bug

master
Yer 2024-02-27 11:56:43 +08:00
parent 1d133af38d
commit a12f317aa8
4 changed files with 15 additions and 16 deletions

View File

@ -1,7 +1,7 @@
<template>
<div>
<Card>
<Row @keydown.enter.native="handleSearch">
<Row @keydown.enter.native.prevent="handleSearch">
<Form
ref="searchForm"
:model="searchForm"
@ -68,10 +68,9 @@
<script>
import {
getDistributionListData,
retreatDistribution,
resumeDistribution,
auditDistribution,
getDistributionListData,
resumeDistribution,
retreatDistribution
} from "@/api/distribution";
import { distributionStatusList } from "./dataJson.js";
export default {

View File

@ -1,7 +1,7 @@
<template>
<div>
<Card>
<Row @keydown.enter.native="handleSearch">
<Row @keydown.enter.native.prevent="handleSearch">
<Form
ref="searchForm"
:model="searchForm"
@ -53,7 +53,7 @@
</template>
<script>
import { getDistributionListData, auditDistribution } from "@/api/distribution";
import { auditDistribution, getDistributionListData } from "@/api/distribution";
export default {
name: "distributionApply",

View File

@ -1,15 +1,15 @@
<template>
<div>
<Card>
<Form ref="searchForm" :model="searchForm" class="search-form">
<Form ref="searchForm" @keydown.enter.native.prevent="handleSearch" :model="searchForm" class="search-form">
<Form-item label="会员名称" class="flex" prop="memberName">
<Input
type="text" v-model="searchForm.memberName" clearable
type="text" placeholder="请输入会员名称" v-model="searchForm.memberName" clearable
style="width: 200px"></Input>
</Form-item>
<Form-item label="编号" class="flex">
<Input
type="text" v-model="searchForm.sn" clearable
type="text" placeholder="请输入编号" v-model="searchForm.sn" clearable
style="width: 200px"></Input>
</Form-item>
<Form-item label="状态"
@ -55,10 +55,10 @@
<script>
import {
getDistributionCash,
auditDistributionCash
} from "@/api/distribution";
import {cashStatusList} from './dataJson'
auditDistributionCash,
getDistributionCash
} from "@/api/distribution";
import { cashStatusList } from './dataJson';
export default {
name: "distributionCash",
data() {

View File

@ -1,7 +1,7 @@
<template>
<div>
<Card>
<Form @keydown.enter.native="handleSearch" ref="searchForm" :model="searchForm" inline :label-width="70"
<Form @keydown.enter.native.prevent="handleSearch" ref="searchForm" :model="searchForm" inline :label-width="70"
class="search-form">
<Form-item label="商品名称" prop="goodsName">
<Input type="text" v-model="searchForm.goodsName" placeholder="请输入商品名称" clearable style="width: 200px" />
@ -38,7 +38,7 @@
</template>
<script>
import { getDistributionGoods, delDistributionGoods } from "@/api/distribution";
import { delDistributionGoods, getDistributionGoods } from "@/api/distribution";
import vueQr from "vue-qr";
export default {
components: {