[update] 修改bug88228
This commit is contained in:
@@ -69,12 +69,15 @@
|
||||
<!--项目名称-->
|
||||
<div class="form-flex-item custom-flex-form-item">
|
||||
<a-form-item :label="$t('projectLibrary.projectName')">
|
||||
<a-select :placeholder="$t('pleaseSelect') + $t('project')"
|
||||
<a-input v-if="isLook" :disabled="isLook" v-model="businessInfo.projectId_dictText"></a-input>
|
||||
<a-select v-else
|
||||
:placeholder="$t('pleaseSelect') + $t('project')"
|
||||
v-decorator="['projectId']"
|
||||
show-search
|
||||
allowClear
|
||||
:disabled="isLook"
|
||||
:filter-option="filterOption">
|
||||
:filter-option="filterOption"
|
||||
@change="projectIdChange">
|
||||
<a-select-option v-for="item in projectSelectOptions" :key="item.id">{{ item.projectName }}</a-select-option>
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
@@ -525,6 +528,11 @@ export default {
|
||||
path, query
|
||||
})
|
||||
},
|
||||
// 项目名称改变
|
||||
projectIdChange (value) {
|
||||
const project = this.projectSelectOptions.find(item => item.id === value)
|
||||
this.businessInfo.projectId_dictText = project.projectName
|
||||
},
|
||||
filterOption (input, option) {
|
||||
return (
|
||||
option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
||||
|
||||
Reference in New Issue
Block a user