From 01db1b1606fbeecf34ee27b3db9d479d220eef19 Mon Sep 17 00:00:00 2001 From: liwenxuan <1298531568@qq.com> Date: Mon, 2 Sep 2024 15:43:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E8=81=94=E8=A1=A8=E5=8D=95=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=A1=AB=E5=85=85=E4=B8=BB=E8=A1=A8=E5=A1=AB=E5=85=85?= =?UTF-8?q?=E6=95=88=E6=9E=9C=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DesignForm/assembly/index.ts | 3 +- .../DesignForm/formControlPropertiNew.vue | 18 +-- .../DesignForm/public/form/form.vue | 4 +- .../DesignForm/public/form/formGroup.vue | 130 +++++++++++++++++- .../DesignForm/public/form/formItem.vue | 10 +- .../lowcodepage/runApp/runAppForm.vue | 2 +- .../asfTmFillRoleFilterCondi.vue | 1 + .../associatedforms/associatedForms.vue | 28 +++- .../associatedFormsChildFillRole.vue | 5 +- src/widget/associatedforms/index.vue | 6 +- 10 files changed, 179 insertions(+), 28 deletions(-) diff --git a/src/components/DesignForm/assembly/index.ts b/src/components/DesignForm/assembly/index.ts index 2408450..2ca1514 100644 --- a/src/components/DesignForm/assembly/index.ts +++ b/src/components/DesignForm/assembly/index.ts @@ -897,6 +897,7 @@ export default [ mathsString:'', }, formid: '', + glbbddbd:'',//关联本表单的表单 dataRangeConditionHtml: '', dataRangeConditionHtmlCopy: '', dataRangeGongShi:{ @@ -917,7 +918,7 @@ export default [ child: [ { id: '', - tableKey: '', + asfChildTableKey: '', filterCondition:{ conditionHtml: '', conditionHtmlCopy: '', diff --git a/src/components/DesignForm/formControlPropertiNew.vue b/src/components/DesignForm/formControlPropertiNew.vue index bebf5e7..864a33d 100644 --- a/src/components/DesignForm/formControlPropertiNew.vue +++ b/src/components/DesignForm/formControlPropertiNew.vue @@ -1795,7 +1795,7 @@ const showImagePreview = ref(false) controlData.value.control.fillRoles.child = [ { id: '', - tableKey: '', + asfChildTableKey: '', filterCondition:{ conditionHtml: '', conditionHtmlCopy: '', @@ -2115,7 +2115,9 @@ function removeFirstNumElements(arr: string | any[],num:number) { } function formidChanged(){ - + + //需设置关联关联表单的表单 + controlData.value.control.glbbddbd=formData.value.name if(controlData.value.control.formid===''){ }else{ @@ -2635,7 +2637,7 @@ function selectedOrDelChildRole(){ //console.log(controlData.value.control?.fillRoles?.child) let selectedArr: any[] = [] controlData.value.control?.fillRoles?.child.forEach(function(item: any) { - if(item.tableKey!=""){ + if(item.asfChildTableKey!=""){ selectedArr.push(item) } }); @@ -2648,7 +2650,7 @@ function selectedOrDelChildRole(){ if(asfasfChildTableList.value){ asfasfChildTableList.value[0].children?.forEach(function(item: any){ selectedArr.forEach(function(i: any){ - if(i.tableKey==item.id){ + if(i.asfChildTableKey==item.id){ item.disabled=true } }) @@ -2804,7 +2806,7 @@ if(controlData.value.control.fillRoles.child.length { - +