Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
szse
Overview
Overview
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
zhaochengxiang
szse
Commits
f256b872
Commit
f256b872
authored
Jul 15, 2022
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
主数据
parent
1cd2b826
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
14 deletions
+20
-14
UpdateBasicInfo.jsx
src/view/Manage/DataMaster/Component/UpdateBasicInfo.jsx
+19
-13
UpdateTemplateModal.jsx
src/view/Manage/DataMaster/Component/UpdateTemplateModal.jsx
+1
-1
No files found.
src/view/Manage/DataMaster/Component/UpdateBasicInfo.jsx
View file @
f256b872
import
{
Form
,
Input
}
from
"antd"
;
import
{
Form
,
Input
,
Divider
}
from
"antd"
;
const
UpdateBasicInfo
=
(
props
)
=>
{
const
UpdateBasicInfo
=
(
props
)
=>
{
const
[
form
]
=
Form
.
useForm
()
;
const
{
form
}
=
props
;
const
formItemLayout
=
{
const
formItemLayout
=
{
labelCol
:
{
labelCol
:
{
...
@@ -15,17 +15,23 @@ const UpdateBasicInfo = (props) => {
...
@@ -15,17 +15,23 @@ const UpdateBasicInfo = (props) => {
};
};
return
(
return
(
<
Form
<
div
>
form=
{
form
}
<
Divider
>
基本信息
</
Divider
>
{
...
formItemLayout
}
<
Form
>
form=
{
form
}
<
Form
.
Item
label=
'模版名称'
name=
'name'
rules=
{
[{
required
:
true
,
message
:
'请填写模版名称'
}]
}
>
{
...
formItemLayout
}
<
Input
style=
{
{
width
:
'87%'
}
}
/>
>
</
Form
.
Item
>
<
Form
.
Item
label=
'模版名称'
name=
'name'
rules=
{
[{
required
:
true
,
message
:
'请填写模版名称'
}]
}
>
<
Form
.
Item
label=
'模版中文名称'
name=
'cnName'
rules=
{
[{
required
:
true
,
message
:
'请填写模版中文名称'
}]
}
>
<
Input
/>
<
Input
style=
{
{
width
:
'87%'
}
}
/>
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
label=
'模版中文名称'
name=
'cnName'
rules=
{
[{
required
:
true
,
message
:
'请填写模版中文名称'
}]
}
>
</
Form
>
<
Input
/>
</
Form
.
Item
>
<
Form
.
Item
label=
'模版描述'
name=
'desc'
>
<
Input
/>
</
Form
.
Item
>
</
Form
>
</
div
>
);
);
}
}
...
...
src/view/Manage/DataMaster/Component/UpdateTemplateModal.jsx
View file @
f256b872
...
@@ -50,7 +50,7 @@ const UpdateTemplateModal = (props) => {
...
@@ -50,7 +50,7 @@ const UpdateTemplateModal = (props) => {
onCancel=
{
onCancel
}
onCancel=
{
onCancel
}
onOk=
{
onFormFinish
}
onOk=
{
onFormFinish
}
>
>
<
UpdateBasicInfo
/>
<
UpdateBasicInfo
form=
{
form
}
/>
</
Modal
>
</
Modal
>
);
);
}
}
...
...
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