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