fix 79461

This commit is contained in:
danshihao
2023-12-19 13:33:13 +08:00
parent cd33f4fc3b
commit f41e1daa2b
2 changed files with 12 additions and 1 deletions
@@ -29,6 +29,7 @@
<template v-slot:inspectionContactPerson="{text, record}">
<div class="table-form" v-if="isInitiate">
<a-select v-model="record.liaisons" style="width: 100%" allowClear @change="changeRowData(record, 'liaisons')"
show-search :filter-option="filterOption"
:placeholder="$t('pleaseSelect')+$t('workCenter.incExtensionRequest.inspectionContactPerson')">
<a-select-option v-for="item in userList" :key="item.id" :value="item.id">{{ item.realname + '(' + item.username + ')' }}</a-select-option>
</a-select>
@@ -320,6 +321,11 @@ export default {
}).finally(() => {
this.loading = false
})
},
filterOption (input, option) {
return (
option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
)
}
}
}