diff --git a/src/components/DesignForm/app/formPage.vue b/src/components/DesignForm/app/formPage.vue index 71b6849fc..c5225be31 100644 --- a/src/components/DesignForm/app/formPage.vue +++ b/src/components/DesignForm/app/formPage.vue @@ -690,6 +690,7 @@ const appFormSubmit = (params = {}) => { } return } + console.log(params) validate((valid: boolean, fields: any) => { if (valid) { const formatParams = Object.assign({}, fields, params) diff --git a/src/components/DesignForm/formControlAttr.vue b/src/components/DesignForm/formControlAttr.vue index 38941689c..a6f7f5b03 100644 --- a/src/components/DesignForm/formControlAttr.vue +++ b/src/components/DesignForm/formControlAttr.vue @@ -2034,6 +2034,7 @@ function formidChangedOptionsValue3(){ } const associatedFormsCurrentFormFieldTree = ref() +const associatedFormsCurrentFormFieldTreeNoTable = ref() const associatedFormsCurrentFormFieldTreeForGlxxsz = ref() let associatedFormsCurrentFormFieldTreeForGlxxszExceptSelf = ref() let resDataForGlxxszExceptself: any[] = [] @@ -2047,6 +2048,7 @@ getAssociatedFormsCurrentFieldTree().then(({ data }) => { //alert("cfid为空") }else{ let resData = ref(data.children) + let resDataNoTable = JSON.parse(JSON.stringify(data.children)) //let rootid_ = data.value.label associatedFormsCurrentFormFieldTree.value = [{ id: 'rootid_'+data.label, @@ -2056,6 +2058,15 @@ getAssociatedFormsCurrentFieldTree().then(({ data }) => { treeAttrs: data.treeAttrs, }] + resDataNoTable = resDataNoTable.filter((item: { type: string | null }) => item.type!="table") + + associatedFormsCurrentFormFieldTreeNoTable.value = [{ + id: 'rootid_'+data.label, + label: '当前表单-'+data.treeAttrs.show, + children: [...resDataNoTable], + treeAttrs: data.treeAttrs, + }] + let resDataForGlxxsz = ref(data.children.slice(8)) resDataForGlxxszExceptself = JSON.parse(JSON.stringify(resDataForGlxxsz.value)); @@ -3477,7 +3488,7 @@ const disabledIstrue = (val:string) => { multiple clearable collapse-tags - :data="associatedFormsCurrentFormFieldTree" + :data="associatedFormsCurrentFormFieldTreeNoTable" :render-after-expand="false" style="width: 240px" /> diff --git a/src/components/DesignForm/formControlPropertiNew.vue b/src/components/DesignForm/formControlPropertiNew.vue index 8f0552262..8299cf1b5 100644 --- a/src/components/DesignForm/formControlPropertiNew.vue +++ b/src/components/DesignForm/formControlPropertiNew.vue @@ -2076,6 +2076,7 @@ function formidChangedOptionsValue3(){ } const associatedFormsCurrentFormFieldTree = ref() +const associatedFormsCurrentFormFieldTreeNoTable = ref() const associatedFormsCurrentFormFieldTreeForGlxxsz = ref() let associatedFormsCurrentFormFieldTreeForGlxxszExceptSelf = ref() let resDataForGlxxszExceptself: any[] = [] @@ -2089,20 +2090,30 @@ getAssociatedFormsCurrentFieldTree().then(({ data }) => { //alert("cfid为空") }else{ let resData = ref(data.children) + let resDataNoTable = JSON.parse(JSON.stringify(data.children)) + //let rootid_ = data.value.label associatedFormsCurrentFormFieldTree.value = [{ id: 'rootid_'+data.label, - //label: '当前表单', label: '当前表单-'+data.treeAttrs.show, children: [...resData.value], treeAttrs: data.treeAttrs, }] + + resDataNoTable = resDataNoTable.filter((item: { type: string | null }) => item.type!="table") + + associatedFormsCurrentFormFieldTreeNoTable.value = [{ + id: 'rootid_'+data.label, + label: '当前表单-'+data.treeAttrs.show, + children: [...resDataNoTable], + treeAttrs: data.treeAttrs, + }] let resDataForGlxxsz = ref(data.children.slice(8)) resDataForGlxxszExceptself = JSON.parse(JSON.stringify(resDataForGlxxsz.value)); - // console.log(resDataForGlxxszExceptself) + @@ -3526,7 +3537,7 @@ const disabledIstrue = (val:string) => { multiple clearable collapse-tags - :data="associatedFormsCurrentFormFieldTree" + :data="associatedFormsCurrentFormFieldTreeNoTable" :render-after-expand="false" style="width: 240px" /> diff --git a/src/components/DesignForm/public/form/formGroup.vue b/src/components/DesignForm/public/form/formGroup.vue index 4830e0d58..982290b29 100644 --- a/src/components/DesignForm/public/form/formGroup.vue +++ b/src/components/DesignForm/public/form/formGroup.vue @@ -353,6 +353,7 @@ const linksIf = (obj: FormList) => { //按钮点击事件 const injectBtnEvent:any = inject(constFormBtnEvent) const clickBtn = (control: any) => { + console.log(control) // 0: '提交表单', // 1: '重置表单', // 2: '取消返回', @@ -576,7 +577,7 @@ function optionsValue3Get1(data: any,fieldName: string){ - + diff --git a/src/widget/associatedforms/associatedForms.vue b/src/widget/associatedforms/associatedForms.vue index a993a2de6..9e9a6a213 100644 --- a/src/widget/associatedforms/associatedForms.vue +++ b/src/widget/associatedforms/associatedForms.vue @@ -2,51 +2,81 @@ - + - \ No newline at end of file diff --git a/src/widget/associatedforms/index.vue b/src/widget/associatedforms/index.vue index 162b8041a..ef2aa4cbe 100644 --- a/src/widget/associatedforms/index.vue +++ b/src/widget/associatedforms/index.vue @@ -14,7 +14,7 @@ - +