viewer角色只有查看功能,查看技术评估结果页面不需要有“发起补充流程”按钮

This commit is contained in:
zyx.net
2022-12-30 11:59:24 +08:00
parent 76f958ae74
commit a9118dc7b7
5 changed files with 35 additions and 5 deletions
@@ -8,7 +8,7 @@
<!-- </span>-->
{{$route.query.serialNumber +' '+$t('evaluationResults')}}
</div>
<div class="doc-detail-right">
<div class="doc-detail-right" v-if='!this.flag'>
<div @click="endProcessClick"
v-if="(formInline.createBy == this.userInfoQuery.username || administrators) && formInline.gatherResult == 'Underway'"
class="operator-text-text" :title="$t('endProcess')">
@@ -92,6 +92,7 @@
total: 0,
pageSize: 10,
pageNo: 1,
flag:'',
dataSource: [],
formInline: {},
administrators:false,
@@ -161,6 +162,12 @@
}
})
}
getAction('/project/projectUserPermission/hasProcessControlButton', {type: 'LawsOpinionGather',id : this.$route.query.id}).then((res) => {
if (res.success) {
this.flag = res
} else {
}
})
},
methods: {
...mapGetters(['userInfo']),
@@ -8,7 +8,7 @@
<!-- </span>-->
{{$route.query.serialNumber +' '+$t('regulatoryTechnicalEvaluationResults')}}
</div>
<div class="doc-detail-right">
<div class="doc-detail-right" v-if='!this.flag'>
<div @click="CurrentStandard" class="operator-text-text" :title="$t('initiateSupplementaryProcess')">
<a-icon type="profile"/>
{{$t('initiateSupplementaryProcess')}}
@@ -96,6 +96,7 @@
return {
queryParam: {},
dataSource: [],
flag:'',
userInfoQuery: {},
administrators: false,
url: {
@@ -180,6 +181,12 @@
}
})
}
getAction('/project/projectUserPermission/hasProcessControlButton', {type: 'LawsTechnologyEvaluation',id : this.$route.query.id}).then((res) => {
if (res.success) {
this.flag = res
} else {
}
})
},
methods: {
...mapGetters(['userInfo']),
@@ -189,6 +189,7 @@
data() {
return {
queryForm: {},
cut:'',
administrators:false,
activeKey: this.$t('CurrentStatusOfTheProject'),
url: {
@@ -220,7 +221,13 @@
getForm() {
getAction(this.url.queryById, { id: this.$route.query.id }).then((res) => {
if (res.success) {
this.cut = res.cut
this.queryForm = res.result[0] || {}
if(this.cut == 'en'){
this.queryForm.brandText = this.queryForm.brandTextEn
}else{
this.queryForm.brandText = this.queryForm.brandText
}
} else {
this.queryForm = {}
}
@@ -290,6 +290,7 @@
queryParam: {},
orderBy: '1',
orderByField: '',
cut: '',
administrators: false
}
},
@@ -442,8 +443,17 @@
this.getList()
return
}
this.dataSource = res.result.records || []
this.total = res.result.total
this.cut = res.cut
this.dataSource = res.result.records || []
this.dataSource.forEach((item) => {
if(this.cut == 'en'){
item.brandText = item.brandTextEn
}else{
item.brandText = item.brandText
}
})
this.loading = false
} else {
this.loading = false
@@ -419,7 +419,6 @@
})
},
selectChange(value){
console.log(value,"value",this.roleList)
value.map((item,index) => {
this.roleList.map((val,index) => {
if(val.roleCode == 'Viewer' && item == val.id){
@@ -429,8 +428,8 @@
})
return
} else if(val.roleCode == 'BrandAdministrator' && item == val.id) {
this.brands = []
this.$nextTick(() => {
this.brands = []
this.viewshowbrand = true
})
return