From 90ef924ccd5397798ae1f171891445d81df86194 Mon Sep 17 00:00:00 2001 From: qq787203167 <787203167@qq.com> Date: Wed, 15 Jun 2022 11:46:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A6=85=E9=81=93=E5=B7=B2?= =?UTF-8?q?=E7=9F=A5bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ProjectDetails/index.vue | 26 +++++++++++++------ 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/jero-web/src/views/projectManagement/ProjectDetails/index.vue b/jero-web/src/views/projectManagement/ProjectDetails/index.vue index 8bb0a5ba3..152e4189d 100644 --- a/jero-web/src/views/projectManagement/ProjectDetails/index.vue +++ b/jero-web/src/views/projectManagement/ProjectDetails/index.vue @@ -29,6 +29,7 @@
{{$t('projectDetails')}} @@ -101,7 +102,7 @@ title: this.$t('projectDetails'), isDisplayNum: '', textTitle: '', - isTrue: false, + isTrue: true, url: { logList: '/project/projectLawsInventoryLogEO/page', historicalVersionUrl: '', @@ -134,7 +135,15 @@ this.textTitle = this.$t('TaskParameterCollection') } } else { - this.getList() + if (this.userInfo().userRoleList && this.userInfo().userRoleList.length > 0) { + if (this.userInfo().userRoleList.length == 1 && this.userInfo().userRoleList[0].roleCode == 'sdt') { + this.getList() + } else { + this.textColor(0) + } + } else { + this.textColor(0) + } } }, methods: { @@ -145,6 +154,7 @@ textColor[0].classList.remove('Virtual-detail-left-text-color') } let text = document.getElementsByClassName('Virtual-detail-left-text') + console.log(text) if (name == 0) { text[name].classList.add('Virtual-detail-left-text-color') this.textTitle = text[name].title @@ -217,14 +227,14 @@ dataSource.forEach(res => { this.engineeringInterfacePerson += res.engineeringInterfacePerson + ',' }) + if (this.engineeringInterfacePerson.includes(this.userInfo().id)) { + this.isTrue = true + } else { + this.isTrue = false + } this.$nextTick(() => { - if (this.engineeringInterfacePerson.includes(this.userInfo().id)) { - this.isTrue = true - } else { - this.isTrue = false - } + this.textColor(0) }) - this.textColor(0) } else { this.textColor(0) }