|
|
|
@ -2672,6 +2672,9 @@ function childRoleRightChanged(){ |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
let selectedArr: any[] = [] |
|
|
|
selectedArr.push(...masterSelectedArr) |
|
|
|
selectedArr.push(...childSelectedArr) |
|
|
|
//主表控制 start |
|
|
|
if(associatedFormsCurrentFormFieldTree1.value){ |
|
|
|
associatedFormsCurrentFormFieldTree1.value[0].children?.forEach(function(item: any){ |
|
|
|
@ -2689,14 +2692,14 @@ function childRoleRightChanged(){ |
|
|
|
associatedFormsCurrentFormFieldTree1.value[0].children?.forEach(function(item: any){ |
|
|
|
if(item.type=="table"){ |
|
|
|
item.children.forEach((element: any) => { |
|
|
|
masterSelectedArr.forEach((j:any) => { |
|
|
|
selectedArr.forEach((j:any) => { |
|
|
|
if(j.rightValue==element.id){ |
|
|
|
element.disabled = true |
|
|
|
} |
|
|
|
}) |
|
|
|
}); |
|
|
|
}else{ |
|
|
|
masterSelectedArr.forEach((element:any) => { |
|
|
|
selectedArr.forEach((element:any) => { |
|
|
|
if(element.rightValue==item.id){ |
|
|
|
item.disabled = true |
|
|
|
} |
|
|
|
@ -2710,7 +2713,7 @@ function childRoleRightChanged(){ |
|
|
|
if(currentFormChildTableFieldsForFillRole.value){ |
|
|
|
currentFormChildTableFieldsForFillRole.value[0]?.children?.forEach((element: any) => { |
|
|
|
element.children.forEach((item: any) => { |
|
|
|
childSelectedArr.forEach((j:any) => { |
|
|
|
selectedArr.forEach((j:any) => { |
|
|
|
item.disabled = false |
|
|
|
}) |
|
|
|
}); |
|
|
|
@ -2719,7 +2722,7 @@ function childRoleRightChanged(){ |
|
|
|
if(currentFormChildTableFieldsForFillRole.value){ |
|
|
|
currentFormChildTableFieldsForFillRole.value[0]?.children?.forEach((element: any) => { |
|
|
|
element.children.forEach((item: any) => { |
|
|
|
childSelectedArr.forEach((j:any) => { |
|
|
|
selectedArr.forEach((j:any) => { |
|
|
|
if(j.rightValue==item.id){ |
|
|
|
item.disabled = true |
|
|
|
} |
|
|
|
|