mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 11:56:46 +08:00
回车键调整
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user