|
@@ -3,7 +3,7 @@
|
|
|
<div class="customList_container" id="customList_container" ref="cusContainer">
|
|
|
<div class="customList_bot">
|
|
|
<div class="customList_bot_search">
|
|
|
- <div style="margin-bottom: 8px;" v-if="Role=='thisAdmin'">
|
|
|
+ <div style="margin-bottom: 8px;" v-if="!IsShareGroup">
|
|
|
<el-select v-model="status" placeholder="请选择状态" @change="getTableData" style="width: 214px; margin-right: 20px;">
|
|
|
<el-option :label="item.label" :value="item.value" v-for="(item,index) in statusList" :key="index" ></el-option>
|
|
|
</el-select>
|
|
@@ -499,7 +499,7 @@ export default {
|
|
|
salesArr:[],//销售
|
|
|
tableData:[],
|
|
|
isShowloadding:false,
|
|
|
- status:2,
|
|
|
+ status:'',
|
|
|
search_txt:'',
|
|
|
total:0,
|
|
|
page_no:1,
|
|
@@ -556,6 +556,8 @@ export default {
|
|
|
children:'ChildrenList',
|
|
|
value:'AdminId'
|
|
|
},//销售级联配置
|
|
|
+
|
|
|
+ IsShareGroup:false,//是否为咨询组销售
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -564,8 +566,8 @@ export default {
|
|
|
this.isShowloadding = true;
|
|
|
// 处理销售筛选
|
|
|
let salesArr=[]
|
|
|
- if(this.sales.length){
|
|
|
- salesArr=this.sales.map(item=>{
|
|
|
+ if(this.originalSales.length){
|
|
|
+ salesArr=this.originalSales.map(item=>{
|
|
|
return item[item.length-1]
|
|
|
})
|
|
|
}
|
|
@@ -576,7 +578,7 @@ export default {
|
|
|
PageSize:this.pageSize,
|
|
|
CurrentIndex:this.page_no,
|
|
|
Keyword:this.search_txt,
|
|
|
- ListParam:this.Role=='thisSeller'?1:this.status, // 销售只能看分配给自己的共享客户,即状态需要是已分配
|
|
|
+ ListParam:this.status,
|
|
|
SellerId:this.sales.join(','),
|
|
|
OriginalSellerId:salesArr.join(','),
|
|
|
}
|
|
@@ -585,6 +587,8 @@ export default {
|
|
|
this.total = res.Data.Paging.Totals || 0;
|
|
|
this.tableData = res.Data.List || [];
|
|
|
this.isShowloadding = false;
|
|
|
+ this.IsShareGroup=res.Data.IsShareGroup||false
|
|
|
+ this.status=res.Data.Status||2
|
|
|
}
|
|
|
})
|
|
|
},
|