重置方法;负责人、联系人组件select查询
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
||||||
<span class="table-page-search-submitButtons">
|
<span class="table-page-search-submitButtons">
|
||||||
<a-button type="primary" icon="search" @click="searchQuery">查询</a-button>
|
<a-button type="primary" icon="search" @click="searchQuery">查询</a-button>
|
||||||
<a-button icon="reload">重置</a-button>
|
<a-button icon="reload" @click="searchReset">重置</a-button>
|
||||||
</span>
|
</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
|||||||
@@ -6,7 +6,9 @@
|
|||||||
<a-select :value="value"
|
<a-select :value="value"
|
||||||
v-bind="$attrs"
|
v-bind="$attrs"
|
||||||
v-on="$listeners"
|
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-option v-for="item in contactsList" :key="item.id" :value="item.id">{{ item.name }}</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -67,7 +69,7 @@ export default {
|
|||||||
getContactsList() {
|
getContactsList() {
|
||||||
if (this.selectedCompany) {
|
if (this.selectedCompany) {
|
||||||
const params = {
|
const params = {
|
||||||
companyName: this.selectedCompany.companyName
|
companyId: this.selectedCompany.id
|
||||||
}
|
}
|
||||||
getContactsByCompany(params).then(res => {
|
getContactsByCompany(params).then(res => {
|
||||||
this.contactsList = res.result
|
this.contactsList = res.result
|
||||||
@@ -85,6 +87,12 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.$message.warn('请先选择来款企业再为该企业新建联系人')
|
this.$message.warn('请先选择来款企业再为该企业新建联系人')
|
||||||
|
},
|
||||||
|
// 下拉框的搜索
|
||||||
|
filterOption(input, option) {
|
||||||
|
return (
|
||||||
|
option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
||||||
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
model: {
|
model: {
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-select :value="value" v-bind="$attrs" v-on="$listeners">
|
<a-select :value="value"
|
||||||
|
v-bind="$attrs"
|
||||||
|
v-on="$listeners"
|
||||||
|
show-search
|
||||||
|
option-filter-prop="children"
|
||||||
|
:filter-option="filterOption">
|
||||||
<a-select-option v-for="item in userList" :key="item.id" :value="item.id">{{ `${item.username}(${item.orgCodeTxt})` }}</a-select-option>
|
<a-select-option v-for="item in userList" :key="item.id" :value="item.id">{{ `${item.username}(${item.orgCodeTxt})` }}</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
</template>
|
</template>
|
||||||
@@ -34,6 +39,12 @@ export default {
|
|||||||
this.userList = res.result
|
this.userList = res.result
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
// 下拉框的搜索
|
||||||
|
filterOption(input, option) {
|
||||||
|
return (
|
||||||
|
option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
||||||
|
);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
model: {
|
model: {
|
||||||
prop: 'value',
|
prop: 'value',
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
||||||
<span class="table-page-search-submitButtons">
|
<span class="table-page-search-submitButtons">
|
||||||
<a-button type="primary" icon="search" @click="searchQuery">查询</a-button>
|
<a-button type="primary" icon="search" @click="searchQuery">查询</a-button>
|
||||||
<a-button icon="reload">重置</a-button>
|
<a-button icon="reload" @click="searchReset">重置</a-button>
|
||||||
</span>
|
</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
||||||
<span class="table-page-search-submitButtons">
|
<span class="table-page-search-submitButtons">
|
||||||
<a-button type="primary" icon="search" @click="searchQuery">查询</a-button>
|
<a-button type="primary" icon="search" @click="searchQuery">查询</a-button>
|
||||||
<a-button icon="reload">重置</a-button>
|
<a-button icon="reload" @click="searchReset">重置</a-button>
|
||||||
</span>
|
</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
<template>
|
||||||
|
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'CommitteeMaintenance'
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
|
||||||
|
</style>
|
||||||
@@ -54,7 +54,7 @@
|
|||||||
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
||||||
<span class="table-page-search-submitButtons">
|
<span class="table-page-search-submitButtons">
|
||||||
<a-button type="primary" icon="search" @click="searchQuery">查询</a-button>
|
<a-button type="primary" icon="search" @click="searchQuery">查询</a-button>
|
||||||
<a-button icon="reload">重置</a-button>
|
<a-button icon="reload" @click="searchReset">重置</a-button>
|
||||||
</span>
|
</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
||||||
<span class="table-page-search-submitButtons">
|
<span class="table-page-search-submitButtons">
|
||||||
<a-button type="primary" icon="search" @click="searchQuery">查询</a-button>
|
<a-button type="primary" icon="search" @click="searchQuery">查询</a-button>
|
||||||
<a-button icon="reload">重置</a-button>
|
<a-button icon="reload" @click="searchReset">重置</a-button>
|
||||||
</span>
|
</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
||||||
<span class="table-page-search-submitButtons">
|
<span class="table-page-search-submitButtons">
|
||||||
<a-button type="primary" icon="search" @click="searchQuery">查询</a-button>
|
<a-button type="primary" icon="search" @click="searchQuery">查询</a-button>
|
||||||
<a-button icon="reload">重置</a-button>
|
<a-button icon="reload" @click="searchReset">重置</a-button>
|
||||||
</span>
|
</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
||||||
<span class="table-page-search-submitButtons">
|
<span class="table-page-search-submitButtons">
|
||||||
<a-button type="primary" icon="search" @click="searchQuery">查询</a-button>
|
<a-button type="primary" icon="search" @click="searchQuery">查询</a-button>
|
||||||
<a-button icon="reload">重置</a-button>
|
<a-button icon="reload" @click="searchReset">重置</a-button>
|
||||||
</span>
|
</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
@@ -39,6 +39,9 @@
|
|||||||
|
|
||||||
<!-- table表格区域-->
|
<!-- table表格区域-->
|
||||||
<div>
|
<div>
|
||||||
|
<div class="">
|
||||||
|
|
||||||
|
</div>
|
||||||
<a-table
|
<a-table
|
||||||
ref="table"
|
ref="table"
|
||||||
size="middle"
|
size="middle"
|
||||||
|
|||||||
Reference in New Issue
Block a user