|
@@ -26,7 +26,14 @@
|
|
|
</a-col>
|
|
|
<a-col :md="5" :sm="24">
|
|
|
<a-form-model-item label="操作员">
|
|
|
- <a-select id="allocationOrderTotalList-creatorId" v-model="queryParam.creatorId" placeholder="请选择操作员" allowClear >
|
|
|
+ <a-select
|
|
|
+ id="allocationOrderTotalList-creatorId"
|
|
|
+ allowClear
|
|
|
+ v-model="queryParam.creatorId"
|
|
|
+ placeholder="请选择操作员"
|
|
|
+ :showSearch="true"
|
|
|
+ option-filter-prop="children"
|
|
|
+ :filter-option="filterOption">
|
|
|
<a-select-option v-for="item in operatorList" :key="item.sn" :value="item.sn">{{ item.name }}</a-select-option>
|
|
|
</a-select>
|
|
|
</a-form-model-item>
|
|
@@ -225,6 +232,11 @@ export default {
|
|
|
this.operatorList = []
|
|
|
}
|
|
|
})
|
|
|
+ },
|
|
|
+ filterOption (input, option) {
|
|
|
+ return (
|
|
|
+ option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
+ )
|
|
|
}
|
|
|
},
|
|
|
beforeRouteEnter (to, from, next) {
|