|
@@ -195,9 +195,9 @@ export default {
|
|
|
"ownerid":this.$route.query.id
|
|
|
}
|
|
|
})
|
|
|
- if (this.mainData.leader.length !== 0){
|
|
|
+ console.log(this.mainData.leader,'leader')
|
|
|
+ if (this.mainData.leader && this.mainData.leader.length > 0){
|
|
|
if (JSON.parse(window.sessionStorage.getItem('active_account')).userid === this.mainData.leader[0].userid){
|
|
|
- /*是负责人*/
|
|
|
this.isLeader = true
|
|
|
}else {
|
|
|
let flag = 0
|
|
@@ -213,15 +213,9 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- /*不是负责人*/
|
|
|
flag === 0?this.isLeader = false:this.isLeader = true
|
|
|
}
|
|
|
}
|
|
|
- /*if (Object.keys(JSON.parse(window.sessionStorage.getItem('userInfo'))).length > 0) {
|
|
|
- this.isLeader = val.leader ? JSON.parse(window.sessionStorage.getItem('active_account')).userid == val.leader[0].userid : false
|
|
|
- } else {
|
|
|
- this.isLeader = true
|
|
|
- }*/
|
|
|
|
|
|
},
|
|
|
deep:true,
|
|
@@ -241,7 +235,8 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
this.mainData = res.data
|
|
|
- this.$refs.details.param.content.type = this.$route.query.tabIndex
|
|
|
+ console.log(this.$refs.details.param.content,'param')
|
|
|
+ // this.$refs.details.param.content.type = this.$route.query.tabIndex
|
|
|
// this.$refs.details.param.content.where.type = this.$route.query.type
|
|
|
this.mainData.type == '项目'
|
|
|
? this.mainData.typemx == '直销'
|