Showing
1 changed file
with
12 additions
and
2 deletions
| ... | @@ -968,7 +968,12 @@ export default { | ... | @@ -968,7 +968,12 @@ export default { |
| 968 | * @param index | 968 | * @param index |
| 969 | */ | 969 | */ |
| 970 | const onAuthVisibleChange = (val: any, index: number) => { | 970 | const onAuthVisibleChange = (val: any, index: number) => { |
| 971 | - checkAuthAll('visible') | 971 | + // 可见不选中时,可编辑也取消选中 |
| 972 | + if (!val.visible.checked) { | ||
| 973 | + val.editable.checked = false | ||
| 974 | + } | ||
| 975 | + checkAuthAll('visible'); | ||
| 976 | + checkAuthAll('editable'); | ||
| 972 | } | 977 | } |
| 973 | 978 | ||
| 974 | /** | 979 | /** |
| ... | @@ -977,7 +982,12 @@ export default { | ... | @@ -977,7 +982,12 @@ export default { |
| 977 | * @param index | 982 | * @param index |
| 978 | */ | 983 | */ |
| 979 | const onAuthEditableChange = (val: any, index: number) => { | 984 | const onAuthEditableChange = (val: any, index: number) => { |
| 980 | - checkAuthAll('editable') | 985 | + // 可编辑选中时,勾选可见 |
| 986 | + if (val.editable.checked) { | ||
| 987 | + val.visible.checked = true | ||
| 988 | + } | ||
| 989 | + checkAuthAll('editable'); | ||
| 990 | + checkAuthAll('visible') | ||
| 981 | } | 991 | } |
| 982 | 992 | ||
| 983 | /** | 993 | /** | ... | ... |
-
Please register or login to post a comment