[update] 权限细节修改

This commit is contained in:
zhaomeijing
2022-06-01 16:03:25 +08:00
parent 5644dd4d15
commit 9f766a2cc2
5 changed files with 38 additions and 14 deletions
+12
View File
@@ -900,4 +900,16 @@ module.exports = {
systemPrompt:'System Prompt',
loginExpired:'Login Expired',
reportNotUploaded:'Report not uploaded',
// 认证权限状态
CollectionInitiated: 'Collection to be initiated',
handledInterface: 'To be handled by the project interface',
ReturnedPerson: 'Returned by project contact person',
completed: 'To be completed',
Filledreturn: 'Filled by return',
Submitted: 'Submitted',
ReturnedEngineer: 'Returned by Certification Engineer',
SynchronizedLibrary: 'Synchronized to the upper reporting Library',
Statusis: 'Statusis',
toHavePermission: 'To Have Permission',
and: 'and'
}
+12
View File
@@ -905,4 +905,16 @@ module.exports = {
systemPrompt:'系统提示',
loginExpired:'登录已过期',
reportNotUploaded:'报告未上传',
// 认证权限状态
CollectionInitiated: '待发起收集',
handledInterface: '待工程接口人处理',
ReturnedPerson: '工程接口人退回',
completed: '待填写',
Filledreturn: '填写人退回',
Submitted: '已提交',
ReturnedEngineer: '认证工程师退回',
SynchronizedLibrary: '已同步至上报库',
Statusis: '状态为',
toHavePermission: '才有权限',
and: '并且'
}
@@ -18,20 +18,17 @@
<span style='padding-right: 20px'>{{ text.sortOrder }} </span><a-button @click='onClickSee(text)'>查看</a-button>
</span>
<span slot="operationbtn" slot-scope="record">
<!-- 待发起收集 1-->
<!-- 待工程接口人处理 2-->
<!-- 工程接口人退回 3-->
<!-- 待填写 4-->
<!-- 填写人退回 5-->
<!-- 已提交 6-->
<!-- 认证工程师退回 7-->
<!-- 已同步至上报库 8-->
<!-- 变更 9-->
<span v-if='home === 1'>
<span v-if='homo === 1'>
<!-- 认证工程师 -->
<span v-if='record.state == "待发起收集" || record.state == "工程接口人退回" || record.state == "变更"'>
<span @click='ondataValueTobeinitiated(record)'>{{ record.dataValue == null? '--': record.dataValue}}</span>
</span>
<span v-else>
<span @click='dataValueTobeinitiated'>{{ record.dataValue }}</span>
</span>
</span>
<span v-else>
<span @click='dataValueTobeinitiated'>{{ record.dataValue }}</span>
</span>
</span>
<span slot="detailClick" slot-scope="text,record">
@@ -308,6 +305,9 @@ export default {
this.areaVisible = true
this.getquerySdtList(record)
},
dataValueTobeinitiated() {
this.$message.warning(this.$t('certifiedEngineer')+this.$t('and')+this.$t('Statusis')+this.$t('CollectionInitiated')+this.$t('ReturnedPerson')+this.$t('alteration')+this.$t('toHavePermission'))
},
// 点击工程接口人的详情人员 无权限
ondataValueNot() {
this.$message.warning(this.$t('operatethisbutton'))
@@ -396,7 +396,7 @@ export default {
if(flag === 1) {
flag = 1
} else {
this.$message.warning(this.$t('operatethisbutton'))
this.$message.warning(this.$t('Statusis')+this.$t('CollectionInitiated')+this.$t('ReturnedPerson')+this.$t('alteration')+this.$t('toHavePermission'))
}
}
// 工程接口人没有权限
@@ -690,12 +690,12 @@ export default {
.then( (res) =>{
console.log(res)
if (res.data.success) {
_this.$message.success(res.data.result)
_this.$message.success(res.data.message)
_this.areaVisible = false
_this.getTableList()
_this.selectedRowKeysValue=[]
}else{
_this.$message.warning(res.data.result)
_this.$message.warning(res.data.message)
}
})
.catch( (error) =>{
@@ -249,7 +249,7 @@ export default {
let postDate = {
title: this.formData.title,
paramsTemplateId: this.paramsTemplateId || this.selectedRowKeys[0],
paramsTemplatePublishVersion: this.version,
paramsTemplatePublishVersion: this.selectedRowKeysDate[0].version,
projectId: this.projectId
}
if (this.formData.id) {