Commit b88c4a58 authored by 田翔's avatar 田翔

fix: 自动计算参数属性修改

parent 16a4f1b2
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "5.1.7", "version": "5.1.8",
"description": "5.1.7 关联表单自动计算偶发性参数缺失问题", "description": "5.1.8 自动计算参数属性修改",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
...@@ -171,7 +171,11 @@ const RelationForm = (props) => { ...@@ -171,7 +171,11 @@ const RelationForm = (props) => {
}) })
} }
let relationForm = addons.getValue('relationForm') || { configs: [], data: [] } let relationForm = addons.getValue('relationForm') || { configs: [], data: [] }
addons.setValueByPath('relationForm', { ...relationForm, configs: [...relationForm.configs, { ...schema, queryWheres }] }) addons.setValueByPath('relationForm',
{
...relationForm,
configs: [...relationForm.configs, { ...schema, queryWheres: queryWheres.map(v => ({ fieldName: v.field, fieldValue: v.value })) }]
})
return queryWheres return queryWheres
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment