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