|
@@ -378,8 +378,17 @@ export default {
|
|
|
this.fieldFormSet = g.Copy(item)
|
|
|
this.isColorVisible = true
|
|
|
},
|
|
|
- visibleCheckChange(row) {
|
|
|
- row.mobileVisible = row.visible
|
|
|
+ visibleCheckChange(scope) {
|
|
|
+ const { row } = scope;
|
|
|
+ this.updateChildrenVisibility(row, row.visible);
|
|
|
+ },
|
|
|
+ updateChildrenVisibility(node, visibility) {
|
|
|
+ if (node.children && node.children.length > 0) {
|
|
|
+ node.children.forEach(child => {
|
|
|
+ child.visible = visibility;
|
|
|
+ this.updateChildrenVisibility(child, visibility);
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
addColor() {
|
|
|
this.fieldForm = this.fieldFormSet
|