[update] 权限处理
This commit is contained in:
@@ -338,7 +338,8 @@ export default {
|
||||
homoJurisdictionReturn() {
|
||||
// 定义开关 0为没有权限 1为有权限
|
||||
let flag = 1
|
||||
if(this.dre) {
|
||||
if(this.homo) {
|
||||
console.log('认证工程师')
|
||||
if(this.selectedRowKeysValue.length == 0) {
|
||||
flag = 0
|
||||
this.$message.warning(this.$t('selectLeastOne'))
|
||||
@@ -356,7 +357,8 @@ export default {
|
||||
}
|
||||
// 工程接口人 退回 权限
|
||||
// 待工程接口人处理 填写人退回
|
||||
}else if(this.sdt){
|
||||
}else if(this.sdt && this.dre==0){
|
||||
console.log('仅仅工程接口人')
|
||||
if(this.selectedRowKeysValue.length == 0) {
|
||||
flag = 0
|
||||
this.$message.warning(this.$t('selectLeastOne'))
|
||||
@@ -372,7 +374,8 @@ export default {
|
||||
this.$message.warning(this.$t('engineeringInterfacePerson')+this.$t('and')+this.$t('Statusis')+this.$t('handledInterface')+this.$t('Filledreturn')+this.$t('toHavePermission'))
|
||||
}
|
||||
}
|
||||
} else if(this.dre){
|
||||
} else if(this.dre && this.sdt==0){
|
||||
console.log('仅仅填写人')
|
||||
// 填写人
|
||||
// 待填写 认证工程师退回 状态
|
||||
if(this.selectedRowKeysValue.length == 0) {
|
||||
@@ -390,7 +393,24 @@ export default {
|
||||
this.$message.warning(this.$t('operatethisbutton'))
|
||||
}
|
||||
}
|
||||
} else {
|
||||
} else if(this.dre && this.sdt) {
|
||||
console.log('工程接口人+填写人')
|
||||
// 工程接口人+填写人
|
||||
if(this.selectedRowKeysValue.length == 0) {
|
||||
flag = 0
|
||||
this.$message.warning(this.$t('selectLeastOne'))
|
||||
} else {
|
||||
this.selectedRowKeysValue.forEach((item, index) => {
|
||||
if(item.state !== '待工程接口人处理' && item.state !== '填写人退回' && item.state !== '待填写' && item.state !== '认证工程师退回') {
|
||||
flag = 0
|
||||
}
|
||||
})
|
||||
if(flag === 1) {
|
||||
flag = 1
|
||||
} else {
|
||||
this.$message.warning(this.$t('Statusis')+this.$t('handledInterface')+this.$t('Filledreturn')+this.$t('completed')+this.$t('ReturnedEngineer')+this.$t('toHavePermission'))
|
||||
}
|
||||
}
|
||||
this.$message.success(this.$t('operatethisbutton'))
|
||||
}
|
||||
return flag
|
||||
@@ -866,7 +886,7 @@ export default {
|
||||
console.log(res)
|
||||
if (res.data.success) {
|
||||
_this.$message.success(res.data.result)
|
||||
_this.getTableList()
|
||||
_this.GetgetTableList()
|
||||
_this.selectedRowKeysValue=[]
|
||||
}else{
|
||||
_this.$message.warning(_this.$t('operationFailed'))
|
||||
|
||||
Reference in New Issue
Block a user