|
@@ -19,11 +19,12 @@
|
|
|
width="900"
|
|
|
v-model="enterpriseContact.show"
|
|
|
trigger="click">
|
|
|
- <el-tabs type="border-card" @tab-click="changeTab">
|
|
|
- <el-tab-pane label="企业联系人">
|
|
|
+ <el-tabs type="border-card" @tab-click="changeTab" v-model="activeName">
|
|
|
+ <el-tab-pane label="企业联系人" name="first">
|
|
|
<el-table
|
|
|
border
|
|
|
:data="enterpriseContact.listData"
|
|
|
+ height="500px"
|
|
|
@row-click="enterpriseContactSelect"
|
|
|
:header-cell-style="{background:'#EEEEEE',color:'#333'}"
|
|
|
size="mini">
|
|
@@ -81,6 +82,7 @@
|
|
|
@current-change="handleCurrentChangeEnterprise"
|
|
|
:current-page="enterpriseContact.currentPage"
|
|
|
:page-sizes="[20, 50, 100, 200]"
|
|
|
+ :page-size="20"
|
|
|
layout="total,sizes, prev, pager, next, jumper"
|
|
|
:total="enterpriseContact.total">
|
|
|
</el-pagination>
|
|
@@ -88,11 +90,12 @@
|
|
|
<slot name="footerLeft"></slot>
|
|
|
</div>
|
|
|
</el-tab-pane>
|
|
|
- <el-tab-pane label="我的联系人" >
|
|
|
+ <el-tab-pane label="我的联系人" name="second">
|
|
|
<el-table
|
|
|
border
|
|
|
:data="myContacts.listData"
|
|
|
@row-click="myContactSelect"
|
|
|
+ height="500px"
|
|
|
:header-cell-style="{background:'#EEEEEE',color:'#333'}"
|
|
|
size="mini">
|
|
|
<el-table-column width="80" label="姓名">
|
|
@@ -146,6 +149,7 @@
|
|
|
@current-change="handleCurrentChangeMy"
|
|
|
:current-page="myContacts.currentPage"
|
|
|
:page-sizes="[20, 50, 100, 200]"
|
|
|
+ :page-size="20"
|
|
|
layout="total,sizes, prev, pager, next, jumper"
|
|
|
:total="myContacts.total">
|
|
|
</el-pagination>
|
|
@@ -221,6 +225,7 @@
|
|
|
<el-table
|
|
|
border
|
|
|
:data="associatedCustomers.listData"
|
|
|
+ height="500px"
|
|
|
style="margin-top: 10px"
|
|
|
@row-click="associatedCustomersSelect"
|
|
|
:header-cell-style="{background:'#EEEEEE',color:'#333'}"
|
|
@@ -249,6 +254,7 @@
|
|
|
@current-change="handleCurrentAssociatedCustomers"
|
|
|
:current-page="associatedCustomers.currentPage"
|
|
|
:page-sizes="[20, 50, 100, 200]"
|
|
|
+ :page-size="20"
|
|
|
layout="total,sizes, prev, pager, next, jumper"
|
|
|
:total="associatedCustomers.total">
|
|
|
</el-pagination>
|
|
@@ -355,6 +361,7 @@ export default {
|
|
|
return {
|
|
|
dialogFormVisible:false,
|
|
|
visible:false,
|
|
|
+ activeName:'first',
|
|
|
groupname:'项目联系人',
|
|
|
tabList:[],
|
|
|
tagList:[],
|
|
@@ -403,7 +410,7 @@ export default {
|
|
|
"content": {
|
|
|
"sa_projectid": '',
|
|
|
"pageNumber": 1,
|
|
|
- "pageSize": 10,
|
|
|
+ "pageSize": 20,
|
|
|
"where": {
|
|
|
"condition": ""
|
|
|
}
|
|
@@ -486,6 +493,10 @@ export default {
|
|
|
methods:{
|
|
|
onshow(){
|
|
|
this.dialogFormVisible = true
|
|
|
+ this.activeName = 'first'
|
|
|
+ this.enterpriseContact.param.content.pageNumber = 1
|
|
|
+ this.myContacts.param.content.pageNumber = 1
|
|
|
+ this.associatedCustomers.param.content.pageNumber = 1
|
|
|
this.associatedCustomersList()
|
|
|
this.myCustomersList()
|
|
|
this.enterpriseContactList()
|
|
@@ -603,26 +614,24 @@ export default {
|
|
|
},
|
|
|
handleSizeChangeMy(val) {
|
|
|
// console.log(`每页 ${val} 条`);
|
|
|
- this.enterpriseContact.param.content.pageSize = val
|
|
|
- this.enterpriseContactList()
|
|
|
+ this.myContacts.param.content.pageSize = val
|
|
|
+ this.myContactList()
|
|
|
},
|
|
|
handleCurrentChangeMy(val) {
|
|
|
// console.log(`当前页: ${val}`);
|
|
|
- this.enterpriseContact.param.content.pageNumber = val
|
|
|
- this.enterpriseContactList()
|
|
|
+ this.myContacts.param.content.pageNumber = val
|
|
|
+ this.myContactList()
|
|
|
},
|
|
|
/*关联客户*/
|
|
|
async associatedCustomersList(){
|
|
|
// this.associatedCustomers.param.content.where.condition = this.form.enterprisename
|
|
|
this.associatedCustomers.param.content.where.sa_projectid = this.data.sa_projectid
|
|
|
const res = await this.$api.requested(this.associatedCustomers.param)
|
|
|
- console.log(res,"关联客户")
|
|
|
this.associatedCustomers.listData = res.data
|
|
|
this.associatedCustomers.total = res.total
|
|
|
this.associatedCustomers.currentPage = res.pageNumber
|
|
|
},
|
|
|
associatedCustomersSelect(val){
|
|
|
- console.log(val,"选择关联客户")
|
|
|
this.form.sys_enterpriseid = val.sys_enterpriseid
|
|
|
this.form.enterprisename = val.enterprisename
|
|
|
this.associatedCustomers.show = false
|
|
@@ -641,13 +650,12 @@ export default {
|
|
|
async myCustomersList(){
|
|
|
this.myCustomers.param.content.where.condition = this.form.enterprisename
|
|
|
const res = await this.$api.requested(this.myCustomers.param)
|
|
|
- console.log(res,"我的客户")
|
|
|
this.myCustomers.listData = res.data
|
|
|
this.myCustomers.total = res.total
|
|
|
this.myCustomers.currentPage = res.pageNumber
|
|
|
},
|
|
|
myCustomersSelect(val){
|
|
|
- console.log(val,"选择我的客户")
|
|
|
+
|
|
|
this.form.sys_enterpriseid = val.sys_enterpriseid
|
|
|
this.form.enterprisename = val.enterprisename
|
|
|
this.associatedCustomers.show = false
|