From f28f1910e0e48d3a15b311e5906ee573170d17e3 Mon Sep 17 00:00:00 2001 From: herenshan112 Date: Sat, 20 Jul 2024 13:52:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=95=B0=E5=80=BC=E8=AE=A1?= =?UTF-8?q?=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DesignForm/app/formPage.vue | 2 +- src/components/DesignForm/public/form/form.vue | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/DesignForm/app/formPage.vue b/src/components/DesignForm/app/formPage.vue index a1d8786..5fb2d28 100644 --- a/src/components/DesignForm/app/formPage.vue +++ b/src/components/DesignForm/app/formPage.vue @@ -596,7 +596,7 @@ provide(constControlChange, ({ key, value, data, tProp, type, attribute }: any) "mathsFornula":props.formData.config, "keyVal":fieldVal } - console.log("sendInfoe-->",sendInfo) + console.log("sendInfoe-1->",sendInfo) currencyFormApiSubmit("/systemapi/maths/mathematicalCalculations",sendInfo) .then((data:any)=>{ // console.log("结果-->",data) diff --git a/src/components/DesignForm/public/form/form.vue b/src/components/DesignForm/public/form/form.vue index f3fc4b8..2061558 100644 --- a/src/components/DesignForm/public/form/form.vue +++ b/src/components/DesignForm/public/form/form.vue @@ -443,12 +443,16 @@ provide(constControlChange, ({ key, value, data, tProp, type, attribute }: any) // } // //判断是否进行计算 if(type == "digitpage"){ + + let oldFormConfig = props.formData.config + let newFormConfig = props.formData.config.groupKey + delete props.formData.config.groupKey let sendInfo = { "fieldKey":key, "mathsFornula":props.formData.config, "keyVal":fieldVal } - console.log("sendInfoe-->",sendInfo) + console.log("sendInfoe-2->",newFormConfig,props.formData) currencyFormApiSubmit("/systemapi/maths/mathematicalCalculations",sendInfo) .then((data:any)=>{ // console.log("结果-->",data) @@ -477,6 +481,7 @@ provide(constControlChange, ({ key, value, data, tProp, type, attribute }: any) if (formatRes.dict && Object.keys(formatRes.dict).length) { resultDict.value = formatRes.dict } + props.formData.config.groupKey = newFormConfig }) }) }