From 38ef9c9d58415d8607f9b8f3d6bcb355660a3968 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Thu, 13 Aug 2026 10:45:54 +0800 Subject: [PATCH] 1 --- .../trials-panel/attachments/site-research/index.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/views/trials/trials-panel/attachments/site-research/index.vue b/src/views/trials/trials-panel/attachments/site-research/index.vue index 79b69a14..eec6635c 100644 --- a/src/views/trials/trials-panel/attachments/site-research/index.vue +++ b/src/views/trials/trials-panel/attachments/site-research/index.vue @@ -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) }