diff --git a/src/components/DesignForm/formControlAttr.vue b/src/components/DesignForm/formControlAttr.vue index 348555d31..839490c07 100644 --- a/src/components/DesignForm/formControlAttr.vue +++ b/src/components/DesignForm/formControlAttr.vue @@ -1640,13 +1640,16 @@ } } //console.log(resDataForGlxxszExceptself1) - associatedFormsCurrentFormFieldTreeForGlxxszExceptSelf.value = [{ - id: 'rootid_'+getAssociatedFormsCurrentFieldTreeData.label, - //label: '当前表单', - label: '当前表单-'+getAssociatedFormsCurrentFieldTreeData.treeAttrs.show, - children: resDataForGlxxszExceptself1, - treeAttrs: getAssociatedFormsCurrentFieldTreeData.treeAttrs,// - }] + if(getAssociatedFormsCurrentFieldTreeData.treeAttrs!=undefined){ + associatedFormsCurrentFormFieldTreeForGlxxszExceptSelf.value = [{ + id: 'rootid_'+getAssociatedFormsCurrentFieldTreeData.label, + //label: '当前表单', + label: '当前表单-'+getAssociatedFormsCurrentFieldTreeData.treeAttrs.show, + children: resDataForGlxxszExceptself1, + treeAttrs: getAssociatedFormsCurrentFieldTreeData.treeAttrs,// + }] + } + //associatedFormsCurrentFormFieldTreeForGlxxszExceptSelf.value.children = [...resDataForGlxxszExceptself1] //实现关联表单设置可选字段中没有当前字段效果 end