Commit 750ec09e authored by 田翔's avatar 田翔

fix: 批量编辑修改

parent dcb3c812
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "4.7.6", "version": "4.7.7",
"description": "4.7.6 关联表单,批量删除,关联选择BUG修复,新增表单内嵌地图", "description": "4.7.7 批量编辑修改",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
...@@ -68,10 +68,11 @@ const BatchEdit = (props, ref) => { ...@@ -68,10 +68,11 @@ const BatchEdit = (props, ref) => {
const onOk = async () => { const onOk = async () => {
setConfirmLoading(true) setConfirmLoading(true)
const { formValue, errors } = await formRenderRef.current.getValues() const { formValue, errors } = await formRenderRef.current.getValues()
let values = formValue.filter(v => v.fieldName === value) || []
if (errors.length) { if (errors.length) {
return message.error('请完善表单内容') return message.error('请完善表单内容')
} }
const { code, data, msg } = await BatchEditTableDataInfo({ ...params, values: formValue }) const { code, data, msg } = await BatchEditTableDataInfo({ ...params, values: values })
if (code === 0) { if (code === 0) {
message.success('批量修改成功!') message.success('批量修改成功!')
setVisible(false) setVisible(false)
......
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