From 84e60da2b07146323ebb87ae3f5596eae36b95ea Mon Sep 17 00:00:00 2001 From: liwenxuan <1298531568@qq.com> Date: Tue, 12 Nov 2024 08:58:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AD=90=E8=A1=A8=E5=AF=B9?= =?UTF-8?q?=E5=8D=95=E9=80=89,=E5=A4=9A=E9=80=89,=E4=B8=8B=E6=8B=89?= =?UTF-8?q?=E9=80=89=E9=A1=B9=E6=95=B0=E6=8D=AE=E6=BA=90=E4=B8=BA=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E8=A1=A8=E5=8D=95=E5=AD=97=E6=AE=B5=E6=97=B6=E7=9A=84?= =?UTF-8?q?=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DesignForm/public/form/childTable.vue | 15 +- .../DesignForm/public/form/form.vue | 1 + .../DesignForm/public/form/formGroup.vue | 16 ++- .../DesignForm/public/form/formItem.vue | 5 +- .../DesignForm/tableListPage/formPageCont.vue | 136 ++++++++++++++++-- .../DesignForm/tableListPage/index.vue | 14 +- .../appPage/appPageForm/openAppFormPage.vue | 116 +++++++++++++-- .../appPage/appPageForm/pageForm.vue | 5 +- .../sysworkflow/lowcodepage/pageDesignes.vue | 5 +- .../lowcodepage/pageFlow/appTableFlow.vue | 102 ++++++++++++- .../lowcodepage/pageFlow/tableFlow.vue | 31 +++- .../lowcodepage/runApp/runAppForm.vue | 1 + .../associatedforms/associatedForms.vue | 46 +++--- 13 files changed, 433 insertions(+), 60 deletions(-) diff --git a/src/components/DesignForm/public/form/childTable.vue b/src/components/DesignForm/public/form/childTable.vue index ccae241..522549e 100644 --- a/src/components/DesignForm/public/form/childTable.vue +++ b/src/components/DesignForm/public/form/childTable.vue @@ -183,14 +183,24 @@ const timeToString = (timeVal:any,types:int) => { return timeStr } let associatedFormsIndexTablekey = 0 -const emits = defineEmits<{ +/* const emits = defineEmits<{ (e: 'asfValueChanged', val: any): void -}>() + +}>() */ +let emits = defineEmits(['optionsValue3GetTable','asfValueChanged']); function asfValueChanged(val:any){ //console.log("childTable-asfValueChanged",val) emits("asfValueChanged",val) } + +function optionsValue3Get1(data: any,fieldName: string){ + fieldName = "childTable---"+props.data.name+"---"+fieldName + /* console.log("childTable---optionsValue3Get1") + console.log(props.data.name) */ + emits('optionsValue3GetTable',data,fieldName) +} + diff --git a/src/components/DesignForm/public/form/form.vue b/src/components/DesignForm/public/form/form.vue index ca74799..56dc831 100644 --- a/src/components/DesignForm/public/form/form.vue +++ b/src/components/DesignForm/public/form/form.vue @@ -1947,6 +1947,7 @@ const submitEdit = (type: string, res: any) => { } function optionsValue3Get2(data: any,fieldName: string){ + //console.log("form.vue","optionsValue3Get2") emits('optionsValue3Get3',data,fieldName) } diff --git a/src/components/DesignForm/public/form/formGroup.vue b/src/components/DesignForm/public/form/formGroup.vue index fa44caa..fe6e216 100644 --- a/src/components/DesignForm/public/form/formGroup.vue +++ b/src/components/DesignForm/public/form/formGroup.vue @@ -493,7 +493,7 @@ function asfValueChanged(val:any){ } - if(val.fillFieldsChild.length>0){ + if(val.fillFieldsChild&&val.fillFieldsChild.length>0){ /* console.log(val.asfFormId) console.log(val.masterOnField) */ let fillFieldsChild = JSON.parse(val.fillFieldsChild); @@ -745,10 +745,20 @@ const getFormItemLableStyle = (ele: any) => { } function optionsValue3Get1(data: any,fieldName: string){ + //console.log("formGroup---optionsValue3Get1") emits('optionsValue3Get2',data,fieldName) } -/* + + +function optionsValue3GetTable(data: any,fieldName: string){ + /* console.log("formGroup---optionsValue3GetTable") + console.log(data) + console.log(fieldName) */ + emits('optionsValue3Get2',data,fieldName) +} +/* + */