uat_us^2
wangxiaoshuang 2026-08-13 10:45:54 +08:00
parent b7696cdf38
commit 38ef9c9d58
1 changed files with 7 additions and 3 deletions

View File

@ -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)
}