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
24791fbc
Commit
24791fbc
authored
Jan 13, 2021
by
Maofei94
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: 产配配置模块修改
parent
f0be5103
Pipeline
#22315
skipped with stages
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
45 additions
and
7 deletions
+45
-7
editForm.jsx
src/pages/webConfig/components/editForm.jsx
+14
-1
productForm.jsx
src/pages/webConfig/components/productForm.jsx
+12
-0
index.js
src/pages/webConfig/index.js
+3
-3
productConfig.jsx
src/pages/webConfig/productConfig.jsx
+9
-2
productConfig.less
src/pages/webConfig/productConfig.less
+1
-1
config.js
src/routes/config.js
+6
-0
No files found.
src/pages/webConfig/components/editForm.jsx
View file @
24791fbc
...
...
@@ -41,7 +41,8 @@ const EditForm = props => {
};
return
(
<
Spin
spinning=
{
loading
}
tip=
"loading..."
>
<
div
style=
{
{
minHeight
:
'calc(100vh - 252px)'
,
marginTop
:
'20px'
}
}
>
{
/* <div style={{ marginLeft: '5%', marginTop: '-5px' }}>配置详情</div> */
}
<
div
style=
{
{
minHeight
:
'calc(100vh - 252px)'
,
marginTop
:
'35px'
}
}
>
<
Form
form=
{
form
}
name=
"formEdit"
{
...
layout
}
onFinish=
{
finished
}
>
<
Item
label=
"产品名称:"
...
...
@@ -55,6 +56,18 @@ const EditForm = props => {
>
<
Input
placeholder=
"请输入产品名称"
allowClear
/>
</
Item
>
<
Item
label=
"产品别名:"
name=
"ProductAlias"
// rules={[
// {
// required: true,
// message: '请输入产品别名',
// },
// ]}
>
<
Input
placeholder=
"请输入产品别名"
allowClear
/>
</
Item
>
<
Item
label=
"产品环境:"
...
...
src/pages/webConfig/components/productForm.jsx
View file @
24791fbc
...
...
@@ -70,6 +70,18 @@ const AddForm = props => {
>
<
Input
placeholder=
"请输入产品名称"
allowClear
/>
</
Item
>
<
Item
label=
"产品别名:"
name=
"ProductAlias"
// rules={[
// {
// required: true,
// message: '请输入产品别名',
// },
// ]}
>
<
Input
placeholder=
"请输入产品别名"
allowClear
/>
</
Item
>
<
Item
label=
"产品环境:"
name=
"Environment"
...
...
src/pages/webConfig/index.js
View file @
24791fbc
...
...
@@ -25,7 +25,7 @@ const WebConfigPage = props => {
const
[
configVisible
,
setConfigVisible
]
=
useState
(
false
);
const
[
loading
,
setLoading
]
=
useState
(
false
);
const
[
webs
,
setWebs
]
=
useState
([]);
const
[
curWeb
,
setCurWeb
]
=
useState
(
'
99
'
);
// 当前展示的web
const
[
curWeb
,
setCurWeb
]
=
useState
(
''
);
// 当前展示的web
const
[
configObj
,
setConfigObj
]
=
useState
({});
// 获取当前的web的配置
const
[
toEdit
,
setToEdit
]
=
useState
(
null
);
// 编辑展示用的配置
const
[
isEdit
,
setIsEdit
]
=
useState
(
true
);
...
...
@@ -266,9 +266,9 @@ const WebConfigPage = props => {
<
div
className
=
{
styles
.
webConfigContainer
}
>
<
Spin
spinning
=
{
loading
||
submitting
}
>
<
Tabs
type
=
"editable-card"
onEdit
=
{
onEdit
}
onChange
=
{
handleTabChange
}
>
<
TabPane
key
=
{
99
}
tab
=
"产品配置"
closable
=
{
false
}
>
{
/*
<TabPane key={99} tab="产品配置" closable={false}>
<ProductConfig />
<
/TabPane
>
</TabPane>
*/
}
{
/* {webs.map(renderTabPane)} */
}
{
webs
.
map
(
item
=>
renderTabPane
(
item
))}
<
/Tabs
>
...
...
src/pages/webConfig/productConfig.jsx
View file @
24791fbc
...
...
@@ -121,8 +121,14 @@ const ProductConfig = props => {
删除
</Button> */
}
</
div
>
{}
<
List
>
{
renderListItem
(
productList
)
}
</
List
>
{
productList
&&
productList
.
length
>
0
?
(
<
List
>
{
renderListItem
(
productList
)
}
</
List
>
)
:
(
<
Empty
image=
{
Empty
.
PRESENTED_IMAGE_SIMPLE
}
description=
"暂无数据"
/>
)
}
</
Card
>
<
Card
className=
{
styles
.
rightForm
}
>
{
productList
&&
productList
.
length
>
0
&&
productObj
?
(
...
...
@@ -133,6 +139,7 @@ const ProductConfig = props => {
/>
)
:
(
<
Empty
style=
{
{
marginTop
:
'60px'
}
}
image=
{
Empty
.
PRESENTED_IMAGE_SIMPLE
}
description=
"当前未选中产品类型"
/>
...
...
src/pages/webConfig/productConfig.less
View file @
24791fbc
...
...
@@ -2,7 +2,7 @@
.box{
width: 100%;
display: flex;
height: calc(100vh -
13
2px);
height: calc(100vh -
7
2px);
}
.leftList{
width: 330px;
...
...
src/routes/config.js
View file @
24791fbc
...
...
@@ -31,6 +31,7 @@ import TestTable from '../pages/orgnazation/TestTable';
import
WebConfigPage
from
'@/pages/webConfig'
;
// import AppConfigPage from '@/pages/appConfig';
import
MobileConfigPage
from
'@/pages/mobileConfig'
;
import
ProductConfig
from
'@/pages/webConfig/productConfig'
;
import
{
USER_MODE
}
from
'@/utils/constants'
;
import
BaseFrameContainer
from
'@/components/BaseFrameContainer'
;
import
JumpContainer
from
'@/components/JumpContainer'
;
...
...
@@ -214,6 +215,11 @@ export default {
name
:
'应用中心'
,
icon
:
<
HomeOutlined
style
=
{
iconStyle
}
/>
,
routes
:
[
{
path
:
'/productCenter/product'
,
name
:
'产品配置'
,
component
:
ProductConfig
,
},
{
path
:
'/productCenter/web'
,
name
:
'Web配置'
,
...
...
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