uat_us^2
parent
b7696cdf38
commit
38ef9c9d58
|
|
@ -62,8 +62,6 @@ export default {
|
|||
},
|
||||
mounted() {
|
||||
this.getTrialIsSPMJoin()
|
||||
if (this.hasPermi(['role:pm'])) this.activeStatus = 2
|
||||
if (this.hasPermi(['role:spm', 'role:cpm', 'role:apm'])) this.activeStatus = 1
|
||||
},
|
||||
methods: {
|
||||
async getTrialIsSPMJoin() {
|
||||
|
|
@ -72,7 +70,13 @@ export default {
|
|||
if (!trialId) return
|
||||
let res = await getTrialIsSPMJoin(trialId)
|
||||
this.isSPMJoin = res.Result
|
||||
if (!this.isSPMJoin && this.activeStatus === 1) this.activeStatus = 0
|
||||
if (this.isSPMJoin) {
|
||||
if (this.hasPermi(['role:pm'])) this.activeStatus = 2
|
||||
if (this.hasPermi(['role:spm', 'role:cpm', 'role:apm'])) this.activeStatus = 1
|
||||
} else {
|
||||
if (this.hasPermi(['role:pm'])) this.activeStatus = 1
|
||||
if (this.hasPermi(['role:spm', 'role:cpm', 'role:apm'])) this.activeStatus = 0
|
||||
}
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue