回车键调整

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

@@ -16,12 +16,14 @@
<a-form layout="inline" >
<a-form-item class="select">
<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: 230px" v-model:value="searchParam.payrollPlaceId" placeholder="发薪地"
:options="PlaceOfPayList" allowClear showSearch/>
:options="PlaceOfPayList" allowClear showSearch
v-on:keydown.enter="enterPressHadlerSearch"/>
</a-form-item>
<a-form-item class="select " >
<a-tree-select style="width: 230px"
@@ -37,7 +39,8 @@
:dropdown-style="{ maxHeight: '400px', overflow: 'auto' }"
placeholder="请选择内容分类"
tree-default-expand-all
:tree-data="sysTypeOptions">
:tree-data="sysTypeOptions"
v-on:keydown.enter="enterPressHadlerSearch">
</a-tree-select>
</a-form-item>
<div style="display: flex; margin-bottom: 20px">
@@ -533,10 +536,19 @@ export default {
startTime: '',
}
};
//回车
const enterPressHadlerSearch = e => {
  console.log("e",e);
    if (e.keyCode === 13) {
      searchSubmit()
    }
};
return {
...toRefs(state),
tableDatas,
column,
enterPressHadlerSearch,
cancelTeachingDialog,
searchReset,
handleFeeMonthly,