Browse Source

Merge branch 'qin_v1'

yjf_v1
超级管理员 1 year ago
parent
commit
d860c7c78e
  1. 2
      src/components/DesignForm/app/formPage.vue
  2. 7
      src/components/DesignForm/public/form/form.vue

2
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)

7
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
})
})
}

Loading…
Cancel
Save