From 28c292bff88fc2c7c0167331056616250eb05a49 Mon Sep 17 00:00:00 2001 From: liwenxuan <1298531568@qq.com> Date: Tue, 10 Feb 2026 08:51:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=90=E8=A1=A8=E7=BB=93=E5=90=88=E5=85=B3?= =?UTF-8?q?=E8=81=94=E8=A1=A8=E5=8D=95=E9=A2=84=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/api/DesignForm/type.ts | 4 ++-- src/components/DesignForm/app/index.vue | 1 + .../sysworkflow/lowcodepage/pageFlow/newTableFlow.vue | 8 ++++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/api/DesignForm/type.ts b/src/api/DesignForm/type.ts index d1d3527..d4f0aa7 100644 --- a/src/api/DesignForm/type.ts +++ b/src/api/DesignForm/type.ts @@ -158,9 +158,9 @@ export interface nodeFlow extends enableVersionId{ export interface conditionInfo{ factorid:string; type:number; - isCheckbox?:boolean; + isCheckbox?:boolean|string; answers?:string[]; - oneanswer?:string; + oneanswer?:any; customFields?:customFieldsInfo[]; nodeUserList?:nodeUserInfo[]; diff --git a/src/components/DesignForm/app/index.vue b/src/components/DesignForm/app/index.vue index df24ee5..7afa6a1 100644 --- a/src/components/DesignForm/app/index.vue +++ b/src/components/DesignForm/app/index.vue @@ -50,6 +50,7 @@ import FormPageCont from "@/components/DesignForm/tableListPage/formPageCont.vue import NewFormPageCont from "@/components/DesignForm/tableListPage/newFormPageCont.vue"; import NewTableFlow from "@/views/sysworkflow/lowcodepage/pageFlow/newTableFlow.vue"; +import TableFlow from "@/views/sysworkflow/lowcodepage/pageFlow/tableFlow.vue"; diff --git a/src/views/sysworkflow/lowcodepage/pageFlow/newTableFlow.vue b/src/views/sysworkflow/lowcodepage/pageFlow/newTableFlow.vue index 8f31e5b..1b7ae04 100644 --- a/src/views/sysworkflow/lowcodepage/pageFlow/newTableFlow.vue +++ b/src/views/sysworkflow/lowcodepage/pageFlow/newTableFlow.vue @@ -467,10 +467,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; @@ -483,14 +483,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;