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
55245eeb
Commit
55245eeb
authored
Jan 15, 2021
by
Maofei94
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: 优化产品配置
parent
5d3d35c5
Pipeline
#22483
passed with stages
in 18 minutes 49 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
editForm.jsx
src/pages/webConfig/components/editForm.jsx
+5
-1
productForm.jsx
src/pages/webConfig/components/productForm.jsx
+6
-1
No files found.
src/pages/webConfig/components/editForm.jsx
View file @
55245eeb
...
...
@@ -3,6 +3,7 @@ import { Form, Select, Input, Button, Popconfirm, Spin } from 'antd';
import
{
modifyProduct
}
from
'@/services/webConfig/api'
;
const
{
Item
}
=
Form
;
const
{
Option
}
=
Select
;
const
{
TextArea
}
=
Input
;
const
EditForm
=
props
=>
{
const
{
productObj
,
editCallback
,
handleDel
}
=
props
;
const
[
config
,
setConfig
]
=
useState
(
''
);
// 网站配置信息
...
...
@@ -111,7 +112,10 @@ const EditForm = props => {
},
]
}
>
<
Input
placeholder=
"请输入默认配置"
allowClear
/>
<
TextArea
placeholder=
"请输入默认配置"
autoSize=
{
{
minRows
:
3
,
maxRows
:
5
}
}
/>
</
Item
>
<
div
style=
{
{
display
:
'flex'
,
marginLeft
:
'35%'
}
}
>
<
Item
...
...
src/pages/webConfig/components/productForm.jsx
View file @
55245eeb
...
...
@@ -3,6 +3,7 @@ import { Form, Select, Input, Button, notification, Spin } from 'antd';
import
{
modifyProduct
}
from
'@/services/webConfig/api'
;
const
{
Item
}
=
Form
;
const
{
Option
}
=
Select
;
const
{
TextArea
}
=
Input
;
const
AddForm
=
props
=>
{
const
{
addCallback
}
=
props
;
const
[
config
,
setConfig
]
=
useState
(
''
);
// 网站配置信息
...
...
@@ -124,7 +125,11 @@ const AddForm = props => {
},
]
}
>
<
Input
placeholder=
"请输入默认配置"
allowClear
/>
<
TextArea
placeholder=
"请输入默认配置"
allowClear
autoSize=
{
{
minRows
:
3
,
maxRows
:
5
}
}
/>
</
Item
>
<
Item
wrapperCol=
{
{
span
:
7
,
offset
:
7
}
}
>
<
Button
type=
"primary"
htmlType=
"submit"
>
...
...
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