|
@@ -159,6 +159,7 @@ export default {
|
|
|
console.log("权限结果", this.mainData.disabled)
|
|
|
},
|
|
|
changeDataStructure() {
|
|
|
+ console.log("输出执行")
|
|
|
let that = this
|
|
|
this.mainAreaData = [
|
|
|
{
|
|
@@ -280,6 +281,7 @@ export default {
|
|
|
console.log("执行")
|
|
|
this.pathData.forEach(item=>{
|
|
|
if (item.remarks == this.mainData.ownertable){
|
|
|
+ console.log("执行12345")
|
|
|
if (this.mainData.ownertable == 'sat_orderclue'){
|
|
|
this.customerPath(this.mainData.ownerid)
|
|
|
}else if (this.mainData.ownertable == 'sa_salesforecastbill'){
|
|
@@ -287,10 +289,14 @@ export default {
|
|
|
}else if (this.mainData.ownertable == 'sa_customers'){
|
|
|
this.customerPath(this.mainData.ownerid)
|
|
|
} else {
|
|
|
+ console.log("执行12】、")
|
|
|
this.mainData.tableName = item.subvalues[0]
|
|
|
this.mainData.path = item.value
|
|
|
this.changeDataStructure()
|
|
|
}
|
|
|
+ }else {
|
|
|
+ console.log("111执行45")
|
|
|
+ this.changeDataStructure()
|
|
|
}
|
|
|
})
|
|
|
|
|
@@ -336,8 +342,8 @@ export default {
|
|
|
},
|
|
|
})
|
|
|
if (res.data){
|
|
|
- this.mainData.tableName = res.data.sa_customerpoolid == '0' ? '公海客户':'我的客户'
|
|
|
- this.mainData.path = res.data.sa_customerpoolid == '0' ? '/PublicCustomerDetail':'/customerDetail'
|
|
|
+ this.mainData.tableName = res.data.sa_customerpoolid == '0' ? '我的客户':'公海客户'
|
|
|
+ this.mainData.path = res.data.sa_customerpoolid == '0' ? '/customerDetail':'/PublicCustomerDetail'
|
|
|
this.changeDataStructure()
|
|
|
}
|
|
|
}
|