From b22a189665d507ad93532cd3be746281eec7f5e2 Mon Sep 17 00:00:00 2001 From: liwenxuan <1298531568@qq.com> Date: Fri, 31 May 2024 16:22:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E5=85=B3=E8=81=94=E8=A1=A8?= =?UTF-8?q?=E5=8D=95=E8=AE=BE=E7=BD=AE=E5=8F=AF=E9=80=89=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E4=B8=AD=E6=B2=A1=E6=9C=89=E5=BD=93=E5=89=8D=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E6=95=88=E6=9E=9C2.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DesignForm/formControlAttr.vue | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) 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