From 64dcf37824ff354eb73e9890c45af3da8368c68f Mon Sep 17 00:00:00 2001 From: liwenxuan <1298531568@qq.com> Date: Wed, 25 Feb 2026 15:42:31 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E5=A4=8D=E7=A7=BB=E5=8A=A8=E7=AB=AF?= =?UTF-8?q?=E8=A7=86=E9=A2=91=E6=98=BE=E7=A4=BA=E5=BC=82=E5=B8=B8=202.?= =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E7=A7=BB=E5=8A=A8=E7=AB=AF=E5=AD=90=E8=A1=A8?= =?UTF-8?q?=E5=85=B3=E8=81=94=E5=A1=AB=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/formTable/formItemGroup.vue | 4 +- .../lowCode/assistant/associatedForms.vue | 12 +- src/components/lowCode/newFormItem.vue | 2 +- src/components/lowCode/tablePage.vue | 122 ++++++++++++++++-- src/views/formTable/pageInfo.vue | 8 +- 5 files changed, 127 insertions(+), 21 deletions(-) diff --git a/src/components/formTable/formItemGroup.vue b/src/components/formTable/formItemGroup.vue index 146ff1e..9d49ab3 100644 --- a/src/components/formTable/formItemGroup.vue +++ b/src/components/formTable/formItemGroup.vue @@ -245,7 +245,7 @@ function asfValueChanged(val: any) { let masterFillRoleFieldsArray = fillFieldsMaster.split(";"); //console.log(masterFillRoleFieldsArray) masterFillRoleFieldsArray.forEach((item: any) => { - let itemArray = item.split("_"); + let itemArray = item.split(/(? item1.split(":").pop()); @@ -274,7 +274,7 @@ function asfValueChanged(val: any) { getAsfTableFill(val.asfFormId, val.glbbddbd, val.currentVal, fillFieldsChild).then( ({ data }) => { //console.log(data) - if (data && data.length > 0) { + if (data && data.length > 0 && data!="成功,没有相关数据") { data.forEach((dataElement: any) => { tables.forEach((tableItem: any) => { if (dataElement.tableName == tableItem.name) { diff --git a/src/components/lowCode/assistant/associatedForms.vue b/src/components/lowCode/assistant/associatedForms.vue index c451c16..c4c3ec8 100644 --- a/src/components/lowCode/assistant/associatedForms.vue +++ b/src/components/lowCode/assistant/associatedForms.vue @@ -18,7 +18,7 @@ diff --git a/src/views/formTable/pageInfo.vue b/src/views/formTable/pageInfo.vue index da5856b..d991723 100644 --- a/src/views/formTable/pageInfo.vue +++ b/src/views/formTable/pageInfo.vue @@ -252,10 +252,10 @@ const changeKeyVal = (key: any, val: any, type: any, attribute: any) => { item.type = 3; if (type == "checkbox") { item.isCheckbox = true; - item.answers = val.map(String); + item.answers = val?val.map(String):[]; } else { item.isCheckbox = false; - item.oneanswer = val.toString(); + item.oneanswer = val?val.toString():""; } if (notAsA_BasisForJudgment.indexOf(type) === -1) { isUpdateFlowChart = true; @@ -268,14 +268,14 @@ const changeKeyVal = (key: any, val: any, type: any, attribute: any) => { factorid: key, type: 3, isCheckbox: true, - answers: val.map(String), + answers: val?val.map(String):[], }); } else { flowFactor.push({ factorid: key, type: 3, isCheckbox: false, - oneanswer: val.toString(), + oneanswer: val?val.toString():"", }); } isUpdateFlowChart = true;