[update] 修改bug80035

This commit is contained in:
lideqin
2024-01-05 10:02:34 +08:00
parent 47054a61f5
commit bef8bf0e2b
@@ -62,8 +62,10 @@
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="$t('project')">
<a-select :placeholder="$t('pleaseSelect') + $t('project')"
allowClear
v-decorator.trim="[ 'project', validatorRules.project]">
<a-select-option :value="null" :key="-1">请选择</a-select-option>
show-search
:filter-option="filterOption"
v-decorator="[ 'project', validatorRules.project]">
<a-select-option :value="undefined" :key="-1">请选择</a-select-option>
<a-select-option v-for="item in projectList" :value="item.id" :key="item.id">{{ item.projectName }}</a-select-option>
</a-select>
</a-form-item>
@@ -261,6 +263,9 @@ export default {
},
close () {
this.visible = false
},
filterOption (input, option) {
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
}
}