<el-form :model="queryParamsQrcode" ref="queryFormQrcode" size="small" :inline="true" @submit.native.prevent> <el-row> <el-col :span="24"> <el-form-item label="扫码内容:" prop="text"> <el-input v-model="queryParamsQrcode.text" ref="input" placeholder="请扫描二维码" style="width: 1500px" @keyup.enter.native="serchOpen6"/> </el-form-item> <el-form-item label="" prop="text"> <el-button @click="serchOpen6">查询</el-button> </el-form-item> </el-col> </el-row> </el-form>
不加红字,自动会车调去的是提交表单,页面大刷新,加了以后是调取方法,绿色是方法