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
188ff0f1
Commit
188ff0f1
authored
Mar 07, 2023
by
涂伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '表单设计按钮优化'
parent
cb260aac
Pipeline
#68626
passed with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
4 deletions
+27
-4
filedConfig.jsx
...s/bsmanager/base/tablemanager/filedConfig/filedConfig.jsx
+27
-4
No files found.
src/pages/bsmanager/base/tablemanager/filedConfig/filedConfig.jsx
View file @
188ff0f1
/* eslint-disable no-shadow */
/* eslint-disable react/jsx-boolean-value */
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
React
,
{
useState
,
useEffect
,
useRef
}
from
'react'
;
import
{
Form
,
Modal
,
...
...
@@ -74,6 +74,8 @@ const AddModal = props => {
const
[
perviewPrase
,
setPerViewPrase
]
=
useState
(
false
);
const
[
tablesSchema
,
setTablesSchema
]
=
useState
(
null
);
// 存储parseForm组件需要的数据格式
const
formRef
=
useRef
(
null
);
const
getField
=
()
=>
{
loadUnattachedTables
().
then
(
res
=>
{
if
(
res
.
data
.
root
&&
res
.
data
.
root
.
length
)
{
...
...
@@ -480,9 +482,30 @@ const AddModal = props => {
</TreeSelect>
</div> */
}
<
div
className=
{
styles
.
btn
}
>
<
Button
type=
"primary"
icon=
{
<
PlusSquareOutlined
/>
}
onClick=
{
add
}
>
附加
{
/* <Button
type="primary"
icon={<PlusSquareOutlined />}
onClick={() => formRef.current.clear()}
>
清除
</Button> */
}
<
Button
type=
"primary"
// icon={<PlusSquareOutlined />}
onClick=
{
()
=>
formRef
.
current
.
submit
()
}
>
提交
</
Button
>
<
Button
type=
"primary"
// icon={<PlusSquareOutlined />}
onClick=
{
()
=>
formRef
.
current
.
preview
()
}
>
预览
</
Button
>
{
/* <Button type="primary" icon={<PlusSquareOutlined />} onClick={add}>
附加
</Button> */
}
<
Button
type=
"primary"
icon=
{
<
RollbackOutlined
/>
}
...
...
@@ -495,7 +518,7 @@ const AddModal = props => {
</
div
>
</
div
>
<
div
style=
{
{
width
:
'100%'
,
height
:
'calc(100% - 63px)'
,
padding
:
'10px'
}
}
>
{
formObj
&&
<
FormDesigner
tableName=
{
formObj
}
/>
}
{
formObj
&&
<
FormDesigner
ref=
{
formRef
}
tableName=
{
formObj
}
/>
}
</
div
>
</
div
>
</
Spin
>
...
...
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