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