From 1984e53025488ff26b26dd891f9171321c1df4b1 Mon Sep 17 00:00:00 2001 From: herenshan112 Date: Tue, 2 Jan 2024 15:45:23 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E5=88=86=E7=BB=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DesignForm/assembly/index.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/components/DesignForm/assembly/index.ts b/src/components/DesignForm/assembly/index.ts index dc4031dd0..d2775cc1a 100644 --- a/src/components/DesignForm/assembly/index.ts +++ b/src/components/DesignForm/assembly/index.ts @@ -247,15 +247,6 @@ const selectOption: any = [ }, config: {} }, - { - type: 'orgCentent', - label: '行政组织', - icon: 'sliders', - iconFont: 'fa-sliders', - control: { - }, - config: {} - }, { type: 'colorPicker', label: '取色器', @@ -409,6 +400,15 @@ const selectOption: any = [ modelValue: '' }, config: {} // 其他配置信息 + }, + { + type: 'orgCentent', + label: '行政组织', + icon: 'sliders', + iconFont: 'fa-sliders', + control: { + }, + config: {} } ] } From 6f3cb27cf97d3b737f108a0d3fc8ea90e87697d1 Mon Sep 17 00:00:00 2001 From: herenshan112 Date: Fri, 12 Jan 2024 08:55:36 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=AE=A1=E7=AE=97=E5=85=AC=E5=BC=8F?= =?UTF-8?q?=E4=B8=BB=E8=A1=A8=E8=AE=A1=E7=AE=97=E5=B7=B2=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DesignForm/formControlAttr.vue | 10 +- .../DesignForm/math/matchFunction.ts | 162 +++++++++++++++++- .../DesignForm/math/mathFormula.vue | 2 +- .../DesignForm/public/form/form.vue | 77 ++++++++- src/utils/workflow/const.ts | 1 + .../taskmanagement/taskcustomerformnew.vue | 10 +- 6 files changed, 242 insertions(+), 20 deletions(-) diff --git a/src/components/DesignForm/formControlAttr.vue b/src/components/DesignForm/formControlAttr.vue index 38a9ef354..0868c292b 100644 --- a/src/components/DesignForm/formControlAttr.vue +++ b/src/components/DesignForm/formControlAttr.vue @@ -1267,9 +1267,13 @@ const updataDigit = (key:sring,val:any) => { // console.log("默认值处理-1-->",props.formList) // console.log("默认值处理-2-->",props.formConfig) // console.log("默认值处理--3->",props.formOtherData) - // console.log("默认值处理--4->",formAttr) - formConfig.value[key] = val.mathsFormula - // console.log("返回值处理--->",key,val) + console.log("默认值处理--4->",val) + formConfig.value[key] = { + mathsFormula:val.mathsFormula, + takingMethod:val.takingMethod, + digit:val.digit + } + console.log("返回值处理--->",formConfig.value) attrList.value.forEach((item:any)=>{ // console.log("返回值处理--1->",item) if(item.type == "digitpage"){ diff --git a/src/components/DesignForm/math/matchFunction.ts b/src/components/DesignForm/math/matchFunction.ts index 7f542b70b..7a06a0559 100644 --- a/src/components/DesignForm/math/matchFunction.ts +++ b/src/components/DesignForm/math/matchFunction.ts @@ -4,7 +4,7 @@ export const funcList = [ name: "函数列表", children: [ { - id: "11", + id: "1", name: "SUM", type:'func', dataType: "number", @@ -22,16 +22,16 @@ export const funcList = [ `, }, { - id: "14", - name: "AVG", + id: "2", + name: "AVERAGE", type:'func', dataType: "number", dataTypeName: "数字", desc: `