Commit 551246e4 authored by 田翔's avatar 田翔

fix: bug修复

parent 25dd0a7c
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "4.9.6", "version": "4.9.8",
"description": "4.9.6 增加图片水印配置", "description": "4.9.8 bug修复",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
...@@ -44,7 +44,7 @@ const RichTextDefault = (props, ref) => { ...@@ -44,7 +44,7 @@ const RichTextDefault = (props, ref) => {
return ( return (
<div className={styles.richTextDefault}> <div className={styles.richTextDefault}>
<Input value={value} onFocus={iconClick} /> <Input style={{ color: 'blue' }} value={value ? '点击查看详情' : ''} onFocus={iconClick} />
<Drag <Drag
width='60%' width='60%'
title={`${title}默认值`} title={`${title}默认值`}
......
...@@ -23,6 +23,7 @@ const debounce = (fn) => { ...@@ -23,6 +23,7 @@ const debounce = (fn) => {
const TextInput = (props) => { const TextInput = (props) => {
console.log('props', props)
const preview = sessionStorage.getItem('FormRender') const preview = sessionStorage.getItem('FormRender')
const userInfo = preview === 'preview' ? { fullName: '【本人姓名】', depart: { name: '【本人部门】' } } : window?.globalConfig?.userInfo || { fullName: '【本人姓名】', depart: { name: '【本人部门】' } } const userInfo = preview === 'preview' ? { fullName: '【本人姓名】', depart: { name: '【本人部门】' } } : window?.globalConfig?.userInfo || { fullName: '【本人姓名】', depart: { name: '【本人部门】' } }
const { value, onChange, schema, addons } = props const { value, onChange, schema, addons } = props
...@@ -49,18 +50,20 @@ const TextInput = (props) => { ...@@ -49,18 +50,20 @@ const TextInput = (props) => {
useEffect(() => { useEffect(() => {
let paths = ['【本人姓名】', '【本人部门】'] let paths = ['【本人姓名】', '【本人部门】']
let value = presetValue let value = presetValue
if (paths.includes(value)) { if (preview !== 'preview') {
if (value === '【本人姓名】') { if (paths.includes(value)) {
if (isStoreID) { if (value === '【本人姓名】') {
value = userInfo.OID + '' if (isStoreID) {
} else { value = userInfo.OID + ''
value = userInfo.fullName } else {
} value = userInfo.fullName
} else if (value === '【本人部门】') { }
if (isStoreID) { } else if (value === '【本人部门】') {
value = userInfo.depart.OID + '' if (isStoreID) {
} else { value = userInfo.depart.OID + ''
value = userInfo.depart.name } else {
value = userInfo.depart.name
}
} }
} }
} }
......
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