Commit c0cbdeba authored by 田翔's avatar 田翔

fix: 代码修复

parent 907ab05b
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "5.4.6", "version": "5.4.7",
"description": "5.4.6 关联表单配置统一", "description": "5.4.7 本人信息bug修复",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
...@@ -75,7 +75,7 @@ const XRender = (props, ref) => { ...@@ -75,7 +75,7 @@ const XRender = (props, ref) => {
} }
childObj[s] = { childObj[s] = {
...child[s], ...child[s],
presetValue: disabledField ? (value || '') : (value || child[s].presetValue), presetValue: value || child[s].presetValue,
textDefalut: child[s].presetValue, textDefalut: child[s].presetValue,
disabled: disabledField, disabled: disabledField,
required, required,
......
...@@ -64,7 +64,10 @@ const TextInput = (props) => { ...@@ -64,7 +64,10 @@ const TextInput = (props) => {
useEffect(() => { useEffect(() => {
let valueNext = presetValue let valueNext = presetValue
if (preview !== 'preview') { if (preview !== 'preview') {
if (!presetValue || loaclPaths.includes(presetValue)) { if (loaclPaths.includes(presetValue)) {
if (disabled) {
valueNext = ''
} else {
if (textDefalut === '【本人姓名】') { if (textDefalut === '【本人姓名】') {
if (isStoreID) { if (isStoreID) {
valueNext = userInfo.OID + '' valueNext = userInfo.OID + ''
...@@ -82,6 +85,7 @@ const TextInput = (props) => { ...@@ -82,6 +85,7 @@ const TextInput = (props) => {
} }
} }
} }
}
if (addons) { if (addons) {
addons.setValue(addons.dataPath, valueNext || '') addons.setValue(addons.dataPath, valueNext || '')
} else { } else {
......
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