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

fix: 批量编辑修改

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