Commit 4cc9d74a authored by 彭俊龙's avatar 彭俊龙

xform升级

parent ff19f60d
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "6.10.66", "version": "6.10.67",
"description": "6.10.66 电子手签画布范围调整,关联选择新增表数据联动", "description": "6.10.67 电子手签画布范围调整,关联选择新增表数据联动",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
...@@ -27,6 +27,11 @@ const RelevanceSelect = (props) => { ...@@ -27,6 +27,11 @@ const RelevanceSelect = (props) => {
}, [addons]) }, [addons])
useEffect(() => { useEffect(() => {
if(sourceType === '表数据' && presetValue){
setTimeout(() => {
getTableData()
}, 100);
}
if (addons) { if (addons) {
addons.setValue(addons.dataPath, presetValue || '') addons.setValue(addons.dataPath, presetValue || '')
if(!fieldTableKey && getChildrenSchemaByKey(title)){//表数据类型的父级控件联动子级加载数据 if(!fieldTableKey && getChildrenSchemaByKey(title)){//表数据类型的父级控件联动子级加载数据
...@@ -35,9 +40,7 @@ const RelevanceSelect = (props) => { ...@@ -35,9 +40,7 @@ const RelevanceSelect = (props) => {
} else { } else {
onChange(presetValue) onChange(presetValue)
} }
if(sourceType === '表数据'){
getTableData()
}
}, [presetValue, sourceType]) }, [presetValue, sourceType])
const selectChange = (value) => { const selectChange = (value) => {
......
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