Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivManage
Commits
3bae5d7f
Commit
3bae5d7f
authored
Nov 24, 2022
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '优化parseForm弹窗显示'
parent
2d9e78d4
Pipeline
#64413
passed with stages
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
29 deletions
+33
-29
PerviewPrase.jsx
.../bsmanager/base/tablemanager/filedConfig/PerviewPrase.jsx
+4
-24
filedConfig.jsx
...s/bsmanager/base/tablemanager/filedConfig/filedConfig.jsx
+29
-5
No files found.
src/pages/bsmanager/base/tablemanager/filedConfig/PerviewPrase.jsx
View file @
3bae5d7f
...
...
@@ -3,24 +3,7 @@ import { Modal, Space, Button } from 'antd';
import
ParseForm
from
'parseForm'
;
import
styles
from
'./index.less'
;
const
PerviewPrase
=
props
=>
{
const
{
visible
,
onCancel
,
accountData
}
=
props
;
const
[
loading
,
setLoading
]
=
useState
(
false
);
const
[
data
,
setData
]
=
useState
({});
useEffect
(()
=>
{
console
.
log
(
accountData
);
if
(
visible
)
{
let
tablesSchema
=
{
child
:
{},
groups
:
accountData
.
flowNodeMeta
.
groups
,
values
:
[],
modules
:
[],
relationForm
:
{},
};
setData
(
tablesSchema
);
}
},
[
visible
]);
const
{
visible
,
onCancel
,
tablesSchema
}
=
props
;
return
(
<
div
className=
{
styles
.
PerviewParse
}
>
...
...
@@ -29,9 +12,8 @@ const PerviewPrase = props => {
bodyStyle=
{
{
width
:
'100%'
,
minHeight
:
'200px'
,
maxHeight
:
'780px'
,
overflow
:
'scroll'
,
overflowX
:
'hidden'
,
height
:
'780px'
,
overflow
:
'hidden'
,
}
}
width=
"1800px"
style=
{
{
marginTop
:
'-80px'
}
}
...
...
@@ -45,12 +27,10 @@ const PerviewPrase = props => {
</
Space
>
}
{
...
props
}
confirmLoading=
{
loading
}
forceRender
getContainer=
{
false
}
>
{
console
.
log
(
window
.
globalConfig
.
mapsettings
)
}
{
visible
&&
<
ParseForm
tablesSchema=
{
data
}
noButtons
/>
}
{
visible
&&
<
ParseForm
tablesSchema=
{
tablesSchema
}
noButtons
/>
}
</
Modal
>
</
div
>
);
...
...
src/pages/bsmanager/base/tablemanager/filedConfig/filedConfig.jsx
View file @
3bae5d7f
...
...
@@ -70,7 +70,7 @@ const AddModal = props => {
const
[
keepTreeData
,
setKeepTreeData
]
=
useState
([]);
const
[
keepTree
,
setKeepTree
]
=
useState
([]);
// 保存树字段名称
const
[
perviewPrase
,
setPerViewPrase
]
=
useState
(
false
);
const
[
accountData
,
setAccountData
]
=
useState
({});
const
[
tablesSchema
,
setTablesSchema
]
=
useState
(
null
);
// 存储parseForm组件需要的数据格式
const
editor
=
record
=>
{
console
.
log
(
record
);
...
...
@@ -395,7 +395,15 @@ const AddModal = props => {
list
.
flowNodeMeta
=
flowNodeMeta
;
list
.
showCss
=
props
.
location
.
state
.
template
.
tableStyle
;
console
.
log
(
list
);
setAccountData
(
list
);
let
tablesSchema
=
{
child
:
{},
groups
:
list
.
flowNodeMeta
.
groups
,
values
:
[],
modules
:
[],
relationForm
:
{},
};
setTablesSchema
(
tablesSchema
);
console
.
log
(
arr
);
console
.
log
(
newArr
);
...
...
@@ -462,7 +470,15 @@ const AddModal = props => {
list
.
flowNodeMeta
=
flowNodeMeta
;
list
.
showCss
=
props
.
location
.
state
.
template
.
tableStyle
;
console
.
log
(
list
);
setAccountData
(
list
);
let
tablesSchema
=
{
child
:
{},
groups
:
list
.
flowNodeMeta
.
groups
,
values
:
[],
modules
:
[],
relationForm
:
{},
};
setTablesSchema
(
tablesSchema
);
console
.
log
(
aa
,
'aaaaaaaaaaaaa'
);
console
.
log
(
arr
);
console
.
log
(
newArr
);
...
...
@@ -705,7 +721,15 @@ const AddModal = props => {
list
.
flowNodeMeta
=
flowNodeMeta
;
list
.
showCss
=
props
.
location
.
state
.
template
.
tableStyle
;
console
.
log
(
list
);
setAccountData
(
list
);
let
tablesSchema
=
{
child
:
{},
groups
:
list
.
flowNodeMeta
.
groups
,
values
:
[],
modules
:
[],
relationForm
:
{},
};
setTablesSchema
(
tablesSchema
);
setKeepTreeFirst
(
bb
);
setTreeData
(
aa
);
setSelect
(
newArr
);
...
...
@@ -898,7 +922,7 @@ const AddModal = props => {
)
}
<
PerviewPrase
visible=
{
perviewPrase
}
accountData=
{
accountDat
a
}
tablesSchema=
{
tablesSchem
a
}
onCancel=
{
()
=>
setPerViewPrase
(
false
)
}
/>
</>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment