回车键调整

This commit is contained in:
wangxuemei
2024-11-08 17:21:00 +08:00
parent 6fb020dbd5
commit a48d873951
9 changed files with 147 additions and 33 deletions

View File

@@ -7,12 +7,14 @@
<a-form-item class="select">
<!-- v-model:value="searchParam.name" -->
<a-input v-model:value="searchParam.name" style="width: 276px; height: 40px; border-radius: 8px"
placeholder="请输入讲师姓名/手机号进行检索" allowClear showSearch>
placeholder="请输入讲师姓名/手机号进行检索" allowClear showSearch
v-on:keydown.enter="enterPressHadlerSearch">
</a-input>
</a-form-item >
<a-form-item class="select">
<a-select style="width: 276px" v-model:value="searchParam.status" placeholder="账号状态"
:options="AccountStatusList">
:options="AccountStatusList"
v-on:keydown.enter="enterPressHadlerSearch">
</a-select>
</a-form-item >
<div style="display: flex; margin-bottom: 20px">
@@ -676,9 +678,18 @@ export default {
          return roleCode.some(t => t == admin)
        }
      }
//回车
const enterPressHadlerSearch = e => {
  console.log("e",e);
    if (e.keyCode === 13) {
      searchSubmit()
    }
};
return {
...toRefs(state),
lecturerAdmin,
enterPressHadlerSearch,
validateField,
rules,
rule,