From 81c9c76fb0d519585ad4f6ac7d3511ad3403369c Mon Sep 17 00:00:00 2001
From: sunFlower <787203167@qq.com>
Date: Tue, 1 Nov 2022 16:12:53 +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
---
.../components/ProjectDetails.vue | 14 ++++++++++++--
.../components/listOfRelevantPersonnel.vue | 18 ++++++++++++++----
2 files changed, 26 insertions(+), 6 deletions(-)
diff --git a/jero-web/src/views/projectManagement/components/ProjectDetails.vue b/jero-web/src/views/projectManagement/components/ProjectDetails.vue
index 18212626b..3dc752b3b 100644
--- a/jero-web/src/views/projectManagement/components/ProjectDetails.vue
+++ b/jero-web/src/views/projectManagement/components/ProjectDetails.vue
@@ -5,7 +5,7 @@
{{$t('basicInformationOfParameters')}}
+ v-if="this.$route.query.studioEngineer == this.userInfo().id || administrators">
+ v-if="this.$route.query.studioEngineer == this.userInfo().id || administrators">
{{$t('batSetting')}}
@@ -388,13 +388,15 @@
queryCertificationEngineer: '/project/projectRelatedPersonnel/queryCertificationEngineer'
},
selectedRowKeys: [],
- dictOptionsValue: []
+ dictOptionsValue: [],
+ administrators: false
}
},
computed: {
columns() {
let columnResult = JSON.parse(JSON.stringify(this.columnsAll))
- if (this.$route.query.studioEngineer != this.userInfo().id) {
+ if (this.$route.query.studioEngineer == this.userInfo().id || this.administrators) {
+ } else {
for (var i = 0; i < columnResult.length; i++) {
if (columnResult[i].title === this.$t('operation')) {
columnResult.splice(i, 1)
@@ -441,6 +443,14 @@
getData() {
this.visible = true
this.queryParam = {}
+ this.administrators = false
+ if (this.userInfo().userRoleList && this.userInfo().userRoleList.length > 0) {
+ this.userInfo().userRoleList.forEach(res => {
+ if (res.roleCode == 'admin') {
+ this.administrators = true
+ }
+ })
+ }
this.getList()
this.queryCertificationEngineer()
},