Commit 2698d54e authored by 田翔's avatar 田翔

fix: 多分组自动隐藏BUG修复

parent 6e147c06
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "6.0.46", "version": "6.0.47",
"description": "6.0.45 台账预览文件显示标题优化", "description": "6.0.47 多分组自动隐藏BUG修复",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
...@@ -188,8 +188,11 @@ const formFieldHide = async (params) => { ...@@ -188,8 +188,11 @@ const formFieldHide = async (params) => {
if (path) { if (path) {
const schema = params?.form?.getSchemaByPath(path) const schema = params?.form?.getSchemaByPath(path)
params?.form?.setSchemaByPath(path, { ...schema, hidden: v.isHide, presetValue: v.fieldValue || schema.presetValue || '' }) params?.form?.setSchemaByPath(path, { ...schema, hidden: v.isHide, presetValue: v.fieldValue || schema.presetValue || '' })
let hidden = getGroupHidden(params?.form, params.schema, params.gorupName) let gorupPath = path.split('.')[0]
params?.form?.setSchemaByPath(params.gorupName, { ...params?.form?.getSchemaByPath(params.gorupName), hidden: hidden }) if (gorupPath) {
let hidden = getGroupHidden(params?.form, params.schema, gorupPath)
params?.form?.setSchemaByPath(gorupPath, { ...params?.form?.getSchemaByPath(gorupPath), hidden: hidden })
}
} }
} }
}) })
......
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