|
|
@@ -26,10 +26,10 @@
|
|
|
<v-col cols="6">
|
|
|
<MCard title="候选元数据">
|
|
|
<template #title>
|
|
|
- <div style="width: 200px; font-weight: normal;">
|
|
|
+ <div style="width: 300px; font-weight: normal;">
|
|
|
<v-text-field
|
|
|
v-model="candidate.search"
|
|
|
- placeholder="请输入名称"
|
|
|
+ placeholder="输入中文名称回车查找"
|
|
|
outlined
|
|
|
hide-details
|
|
|
dense
|
|
|
@@ -37,7 +37,7 @@
|
|
|
append-icon="mdi-magnify"
|
|
|
@click:append="handleCandidateSearch"
|
|
|
@keyup.enter="handleCandidateSearch"
|
|
|
- @click:clear="handleCandidateSearch"
|
|
|
+ @click:clear="handleCandidateSearch(true)"
|
|
|
></v-text-field>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -50,6 +50,7 @@
|
|
|
:height="candidate.items.length > 0 ? '400px' : '490px'"
|
|
|
:select-item="true"
|
|
|
fixed-header
|
|
|
+ :totalVisible="5"
|
|
|
:page-info="candidate.pageInfo"
|
|
|
:is-tools="false"
|
|
|
:show-select="true"
|
|
|
@@ -68,7 +69,7 @@
|
|
|
:items="candidate.selected"
|
|
|
:is-tools="false"
|
|
|
:disable-sort="true"
|
|
|
- height="490px"
|
|
|
+ height="500px"
|
|
|
fixed-header
|
|
|
:show-page="false"
|
|
|
:show-select="false"
|
|
|
@@ -222,7 +223,10 @@ export default {
|
|
|
this.candidate.pageInfo.current = index
|
|
|
this.getCandidate()
|
|
|
},
|
|
|
- handleCandidateSearch () {
|
|
|
+ handleCandidateSearch (clear) {
|
|
|
+ if (clear === true) {
|
|
|
+ this.candidate.search = null
|
|
|
+ }
|
|
|
this.candidate.pageInfo.current = 1
|
|
|
this.getCandidate()
|
|
|
},
|