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