重置方法;负责人、联系人组件select查询
This commit is contained in:
@@ -6,7 +6,9 @@
|
||||
<a-select :value="value"
|
||||
v-bind="$attrs"
|
||||
v-on="$listeners"
|
||||
show-search>
|
||||
show-search
|
||||
option-filter-prop="children"
|
||||
:filter-option="filterOption">
|
||||
<a-select-option v-for="item in contactsList" :key="item.id" :value="item.id">{{ item.name }}</a-select-option>
|
||||
</a-select>
|
||||
</a-col>
|
||||
@@ -67,7 +69,7 @@ export default {
|
||||
getContactsList() {
|
||||
if (this.selectedCompany) {
|
||||
const params = {
|
||||
companyName: this.selectedCompany.companyName
|
||||
companyId: this.selectedCompany.id
|
||||
}
|
||||
getContactsByCompany(params).then(res => {
|
||||
this.contactsList = res.result
|
||||
@@ -85,6 +87,12 @@ export default {
|
||||
return
|
||||
}
|
||||
this.$message.warn('请先选择来款企业再为该企业新建联系人')
|
||||
},
|
||||
// 下拉框的搜索
|
||||
filterOption(input, option) {
|
||||
return (
|
||||
option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
||||
);
|
||||
}
|
||||
},
|
||||
model: {
|
||||
|
||||
Reference in New Issue
Block a user