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

fix: bug修复

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