Commit b88c4a58 authored by 田翔's avatar 田翔

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

parent 16a4f1b2
{
"name": "panda-xform",
"version": "5.1.7",
"description": "5.1.7 关联表单自动计算偶发性参数缺失问题",
"version": "5.1.8",
"description": "5.1.8 自动计算参数属性修改",
"keywords": [
"panda-xform"
],
......
......@@ -390,10 +390,10 @@ const FormDesigner = (props, ref) => {
<FormRender
ref={formRenderRef}
schemaValues={{ formJson: schema }}
// codes={{
// 工单编号: '12421413431',
// 事件编号: 'PO230000013',
// }}
// codes={{
// 工单编号: '12421413431',
// 事件编号: 'PO230000013',
// }}
/>
</Drag>
</div>
......
......@@ -171,7 +171,11 @@ const RelationForm = (props) => {
})
}
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
}
......
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