回车键调整

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

@@ -5,7 +5,8 @@
<a-form layout="inline">
<a-form-item class="select">
<div>
<a-input style="width: 276px; height: 40px; border-radius: 8px" v-model:value="searchParam.name" placeholder="请输入工号/讲师姓名进行检索" />
<a-input style="width: 276px; height: 40px; border-radius: 8px" v-model:value="searchParam.name" placeholder="请输入工号/讲师姓名进行检索"
v-on:keydown.enter="enterPressHadlerSearch" />
</div>
</a-form-item>
<div style="display: flex; margin-bottom: 20px">
@@ -587,8 +588,17 @@ const getTableDate = (obj) => {
}
//回车
const enterPressHadlerSearch = e => {
  console.log("e",e);
    if (e.keyCode === 13) {
      searchSubmit()
    }
};
return{
...toRefs(state),
enterPressHadlerSearch,
rules,
formRef,
columns,