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: `