<el-form class="form-search" :inline="true" size="mini" :model="searchForm" ref="searchForm">
        <el-form-item label="用户名称">
          <el-input class="formItem"  type="text" @keyup.enter.native="searchEntInfo" v-model="searchForm.UserName"  placeholder="请输入用户名称"></el-input>
        </el-form-item>
        <el-form-item class="form-deal" >
          <el-button type="warning" size="mini" @click="searchEntInfo()">查&nbsp;&nbsp;询</el-button>
          <el-button type="danger" size="mini" @click="resetFormAndLoad('searchForm')">重置</el-button>
        </el-form-item>
      </el-form>

@keyup.enter.native="searchEntInfo" 绑定@click="searchEntInfo()查询方法

Logo

前往低代码交流专区

更多推荐