回车键调整

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

@@ -6,7 +6,8 @@
<a-form layout="inline" style="min-width: 1380px;">
<a-form-item class="select">
<a-select style="width: 276px" v-model:value="searchParam.trainorgId" placeholder="培训发生组织" allowClear
:options="trainOrglist">
:options="trainOrglist"
v-on:keydown.enter="enterPressHadlerSearch">
</a-select>
</a-form-item>
<a-form-item class="select ">
@@ -19,12 +20,14 @@
valueFormat="YYYY-MM-DD"
separator="至"
:placeholder="[' 开始时间', ' 结束时间']"
v-on:keydown.enter="enterPressHadlerSearch"
/>
</div>
</a-form-item>
<a-form-item class="select">
<a-select style="width: 230px ;margin-bottom:20px" v-model:value="searchParam.status" placeholder="请选择状态" allowClear
:options="AuthenticationStatusList">
:options="AuthenticationStatusList"
v-on:keydown.enter="enterPressHadlerSearch">
</a-select>
</a-form-item>
<div style="display: flex; margin-bottom: 20px">
@@ -431,7 +434,7 @@
width: 200,
},
{
title: '提交时间(未命名)',
title: '提交时间',
dataIndex: 'summaryTime',
key: 'summaryTime',
elipsis: true, align: "center",
@@ -890,8 +893,17 @@
// ...state.searchParam
// }, `project_${new Date().getTime()}.xlsx` )
}
//回车
const enterPressHadlerSearch = e => {
  console.log("e",e);
    if (e.keyCode === 13) {
      searchSubmit()
    }
}
return {
...toRefs(state),
enterPressHadlerSearch,
// searchTimeChange,
gettableDataExamine,
courseTypeList,