Commit 65a7a1bd authored by 田翔's avatar 田翔

fix: 台账参数配置调整

parent ca555162
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "5.6.9", "version": "5.7.0",
"description": "5.6.9 表单设计器中默认值不显示", "description": "5.7.0 台账参数配置调整",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
...@@ -40,7 +40,6 @@ const Account = (props, ref) => { ...@@ -40,7 +40,6 @@ const Account = (props, ref) => {
)) ))
const { accountName, parentConfig, notUse, superAccount } = props const { accountName, parentConfig, notUse, superAccount } = props
const isTreeAccount = Boolean(superAccount === 'true')
const userID = window?.globalConfig?.userInfo?.OID || 1 const userID = window?.globalConfig?.userInfo?.OID || 1
const initParams = { const initParams = {
user: userID, user: userID,
...@@ -318,7 +317,7 @@ const Account = (props, ref) => { ...@@ -318,7 +317,7 @@ const Account = (props, ref) => {
} }
const getTree = async () => { const getTree = async () => {
const { code, data, msg } = await GetAccountTree(accountName) const { code, data, msg } = await GetAccountTree(superAccount)
if (code === 0) { if (code === 0) {
setExpandedKeys([data.accountName]) setExpandedKeys([data.accountName])
setTreeData([data]) setTreeData([data])
...@@ -342,7 +341,7 @@ const Account = (props, ref) => { ...@@ -342,7 +341,7 @@ const Account = (props, ref) => {
<div className={styles.tableRender} style={{ display: !detailShow ? 'block' : 'none' }}> <div className={styles.tableRender} style={{ display: !detailShow ? 'block' : 'none' }}>
<div className={styles.content}> <div className={styles.content}>
{ {
isTreeAccount ? ( superAccount ? (
<div <div
style={{ style={{
width: treeShow ? '236px' : '0', width: treeShow ? '236px' : '0',
...@@ -368,7 +367,7 @@ const Account = (props, ref) => { ...@@ -368,7 +367,7 @@ const Account = (props, ref) => {
</div> </div>
) : null ) : null
} }
<div className={styles.right} style={{ width: isTreeAccount && treeShow ? 'calc(100% - 250px)' : '100%' }}> <div className={styles.right} style={{ width: superAccount && treeShow ? 'calc(100% - 250px)' : '100%' }}>
<div className={styles.top}> <div className={styles.top}>
<SearchGroup <SearchGroup
onChange={search} onChange={search}
......
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