[update] 权限
This commit is contained in:
@@ -304,19 +304,20 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {},
|
mounted() {},
|
||||||
methods:{
|
methods:{
|
||||||
// 工程接口人 退回 权限
|
// 认证工程师的权限
|
||||||
|
// 认证工程师 退回 权限
|
||||||
// 仅仅状态为 已提交 可以退回
|
// 仅仅状态为 已提交 可以退回
|
||||||
homoJurisdictionReturn() {
|
homoJurisdictionReturn() {
|
||||||
// 定义开关 0为没有权限 1为有权限
|
// 定义开关 0为没有权限 1为有权限
|
||||||
let flag = 1
|
let flag = 0
|
||||||
if(this.homo) {
|
if(this.homo) {
|
||||||
if(this.selectedRowKeysValue.length == 0) {
|
if(this.selectedRowKeysValue.length == 0) {
|
||||||
flag = 0
|
flag = 0
|
||||||
this.$message.success(this.$t('selectLeastOne'))
|
this.$message.success(this.$t('selectLeastOne'))
|
||||||
} else {
|
} else {
|
||||||
this.selectedRowKeysValue.forEach((item, index) => {
|
this.selectedRowKeysValue.forEach((item, index) => {
|
||||||
if(item.state !== '已提交') {
|
if(item.state === '已提交') {
|
||||||
flag = 0
|
flag = 1
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
if(flag === 1) {
|
if(flag === 1) {
|
||||||
@@ -330,19 +331,19 @@ export default {
|
|||||||
}
|
}
|
||||||
return flag
|
return flag
|
||||||
},
|
},
|
||||||
// 工程接口人 批量删除 权限
|
// 认证工程师 批量删除 权限
|
||||||
// 仅仅状态为 待发起收集 工程接口人退回 变更 可以批量删除
|
// 仅仅状态为 待发起收集 工程接口人退回 变更 可以批量删除
|
||||||
homoJurisdictionBatchdelete() {
|
homoJurisdictionBatchdelete() {
|
||||||
// 定义开关 0为没有权限 1为有权限
|
// 定义开关 0为没有权限 1为有权限
|
||||||
let flag = 1
|
let flag = 0
|
||||||
if(this.homo) {
|
if(this.homo) {
|
||||||
if(this.selectedRowKeysValue.length == 0) {
|
if(this.selectedRowKeysValue.length == 0) {
|
||||||
flag = 0
|
flag = 0
|
||||||
this.$message.success(this.$t('selectLeastOne'))
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
} else {
|
} else {
|
||||||
this.selectedRowKeysValue.forEach((item, index) => {
|
this.selectedRowKeysValue.forEach((item, index) => {
|
||||||
if(item.state !== '待发起收集' && item.state !== '工程接口人退回' && item.state !== '变更') {
|
if(item.state === '待发起收集' || item.state === '工程接口人退回' || item.state === '变更') {
|
||||||
flag = 0
|
flag = 1
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
if(flag === 1) {
|
if(flag === 1) {
|
||||||
@@ -352,23 +353,23 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}else {
|
}else {
|
||||||
this.$message.success(this.$t('operatethisbutton'))
|
this.$message.warning(this.$t('operatethisbutton'))
|
||||||
}
|
}
|
||||||
return flag
|
return flag
|
||||||
},
|
},
|
||||||
// 工程接口人 同步上报库 权限
|
// 认证工程师 同步上报库 权限
|
||||||
// 仅仅状态为 已提交 变更 可以同步上报库
|
// 仅仅状态为 已提交 变更 可以同步上报库
|
||||||
homoJurisdictionSynchronousLibrary() {
|
homoJurisdictionSynchronousLibrary() {
|
||||||
// 定义开关 0为没有权限 1为有权限
|
// 定义开关 0为没有权限 1为有权限
|
||||||
let flag = 1
|
let flag = 0
|
||||||
if(this.homo) {
|
if(this.homo) {
|
||||||
if(this.selectedRowKeysValue.length == 0) {
|
if(this.selectedRowKeysValue.length == 0) {
|
||||||
flag = 0
|
flag = 0
|
||||||
this.$message.success(this.$t('selectLeastOne'))
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
} else {
|
} else {
|
||||||
this.selectedRowKeysValue.forEach((item, index) => {
|
this.selectedRowKeysValue.forEach((item, index) => {
|
||||||
if(item.state !== '已提交' && item.state !== '变更') {
|
if(item.state === '已提交' || item.state === '变更') {
|
||||||
flag = 0
|
flag = 1
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
if(flag === 1) {
|
if(flag === 1) {
|
||||||
@@ -378,23 +379,23 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}else {
|
}else {
|
||||||
this.$message.success(this.$t('operatethisbutton'))
|
this.$message.warning(this.$t('operatethisbutton'))
|
||||||
}
|
}
|
||||||
return flag
|
return flag
|
||||||
},
|
},
|
||||||
// 工程接口人 强制撤回 权限
|
// 认证工程师 强制撤回 权限
|
||||||
// 仅仅状态为 待工程接口人处理 填写人退回 可以强制撤回
|
// 仅仅状态为 待工程接口人处理 填写人退回 可以强制撤回
|
||||||
homoJurisdictionCompulsoryWithdrawal() {
|
homoJurisdictionCompulsoryWithdrawal() {
|
||||||
// 定义开关 0为没有权限 1为有权限
|
// 定义开关 0为没有权限 1为有权限
|
||||||
let flag = 1
|
let flag = 0
|
||||||
if(this.homo) {
|
if(this.homo) {
|
||||||
if(this.selectedRowKeysValue.length == 0) {
|
if(this.selectedRowKeysValue.length == 0) {
|
||||||
flag = 0
|
flag = 0
|
||||||
this.$message.success(this.$t('selectLeastOne'))
|
this.$message.success(this.$t('selectLeastOne'))
|
||||||
} else {
|
} else {
|
||||||
this.selectedRowKeysValue.forEach((item, index) => {
|
this.selectedRowKeysValue.forEach((item, index) => {
|
||||||
if(item.state !== '待工程接口人处理' && item.state !== '填写人退回') {
|
if(item.state === '待工程接口人处理' || item.state === '填写人退回') {
|
||||||
flag = 0
|
flag = 1
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
if(flag === 1) {
|
if(flag === 1) {
|
||||||
@@ -408,6 +409,9 @@ export default {
|
|||||||
}
|
}
|
||||||
return flag
|
return flag
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 工程接口人
|
||||||
|
|
||||||
// 工程接口人 下发收集 权限
|
// 工程接口人 下发收集 权限
|
||||||
// 仅仅状态为 待发起收集 工程接口人退回 变更 可以下发收集
|
// 仅仅状态为 待发起收集 工程接口人退回 变更 可以下发收集
|
||||||
// homoJurisdictionDistributionCollection() {
|
// homoJurisdictionDistributionCollection() {
|
||||||
@@ -461,6 +465,8 @@ export default {
|
|||||||
this.areaVisibleFreeze = true
|
this.areaVisibleFreeze = true
|
||||||
// 获取冻结配置数据
|
// 获取冻结配置数据
|
||||||
this.getFreeze()
|
this.getFreeze()
|
||||||
|
} else {
|
||||||
|
this.$message.warning(this.$t('operatethisbutton'))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 冻结配置提交
|
// 冻结配置提交
|
||||||
@@ -536,6 +542,7 @@ export default {
|
|||||||
distributionAndCollectionJurisdiction() {
|
distributionAndCollectionJurisdiction() {
|
||||||
let homoJurisdictionBatchdelete = this.homoJurisdictionBatchdelete()
|
let homoJurisdictionBatchdelete = this.homoJurisdictionBatchdelete()
|
||||||
if(homoJurisdictionBatchdelete) {
|
if(homoJurisdictionBatchdelete) {
|
||||||
|
console.log(';;;;')
|
||||||
this.distributionAndCollection()
|
this.distributionAndCollection()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -593,13 +600,15 @@ export default {
|
|||||||
if(this.homo) {
|
if(this.homo) {
|
||||||
// 认证工程师 任意状态 都有此权限
|
// 认证工程师 任意状态 都有此权限
|
||||||
this.areaVisible = true
|
this.areaVisible = true
|
||||||
|
} else {
|
||||||
|
this.$message.warning(this.$t('operatethisbutton'))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 提交
|
// 提交
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
// 先判断提交权限
|
// 先判断提交权限
|
||||||
if(this.homo) {
|
if(this.homo || this.sdt) {
|
||||||
// 认证工程师 任意状态 都无此权限
|
// 认证工程师 工程接口人 任意状态 都无此权限
|
||||||
this.$message.warning(this.$t('operatethisbutton'))
|
this.$message.warning(this.$t('operatethisbutton'))
|
||||||
} else {
|
} else {
|
||||||
// 提交数据
|
// 提交数据
|
||||||
@@ -734,7 +743,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 截止时间
|
// 截止时间
|
||||||
TaskCutOffTime() {
|
TaskCutOffTime() {
|
||||||
if(this.homo) {
|
if(this.homo || this.sdt) {
|
||||||
// 认证工程师 任意状态 都无此权限
|
// 认证工程师 任意状态 都无此权限
|
||||||
this.$message.warning(this.$t('operatethisbutton'))
|
this.$message.warning(this.$t('operatethisbutton'))
|
||||||
} else {
|
} else {
|
||||||
@@ -748,8 +757,8 @@ export default {
|
|||||||
},
|
},
|
||||||
//引用参数
|
//引用参数
|
||||||
referenceparameter() {
|
referenceparameter() {
|
||||||
if(this.homo) {
|
if(this.homo || this.sdt) {
|
||||||
// 认证工程师 任意状态 都无此权限
|
// 认证工程师 工程接口人 任意状态 都无此权限
|
||||||
this.$message.warning(this.$t('operatethisbutton'))
|
this.$message.warning(this.$t('operatethisbutton'))
|
||||||
} else {
|
} else {
|
||||||
this.areaVisiblereferenceparameter = true
|
this.areaVisiblereferenceparameter = true
|
||||||
|
|||||||
Reference in New Issue
Block a user