|
@@ -345,7 +345,9 @@ export default {
|
|
|
/* 处理权限列表 */
|
|
|
let checkArr = [];
|
|
|
let checkArrName = [];
|
|
|
+ let hasMinusSignVal = 0
|
|
|
if(this.companyInfo.CompanyType==='权益' || this.isRoleType== '权益'){
|
|
|
+ hasMinusSignVal = this.$refs.raiPermissionboxRef[0].minus_sign_val;
|
|
|
this.authList.forEach(item => {
|
|
|
if(item.CheckList.length) {
|
|
|
checkArr.push(item.CheckList)
|
|
@@ -362,14 +364,15 @@ export default {
|
|
|
checkArr.push(item.CheckList)
|
|
|
}
|
|
|
})
|
|
|
- }
|
|
|
+ }
|
|
|
+ const hasFiftyTwo = checkArr.flat(2).includes(52);
|
|
|
+ if(hasFiftyTwo && !hasMinusSignVal) return this.$message.error('请输入研选扣点数')
|
|
|
+
|
|
|
if(!checkArr.length && this.companyInfo.CompanyType === '权益') {
|
|
|
this.$message.warning('请选择权限!');
|
|
|
return
|
|
|
}else {
|
|
|
- const hasFiftyTwo = checkArr.flat(2).includes(52);
|
|
|
- const hasMinusSignVal = this.$refs.raiPermissionboxRef[0].minus_sign_val;
|
|
|
- if(hasFiftyTwo && !hasMinusSignVal) return this.$message.error('请输入研选扣点数')
|
|
|
+
|
|
|
let PermissionIds = [... new Set(checkArr.flat(2))].join(',');
|
|
|
let params = {
|
|
|
CompanyId:Number(this.companyInfo.CompanyId),
|