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
e1d252d3
Commit
e1d252d3
authored
Feb 02, 2021
by
Maofei94
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: 产品配置修改
parent
06d4ffdd
Pipeline
#23369
passed with stages
in 21 minutes 46 seconds
Changes
6
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
15 deletions
+13
-15
RoleManage.jsx
src/pages/userCenter/roleManage/RoleManage.jsx
+1
-2
editForm.jsx
src/pages/webConfig/components/editForm.jsx
+6
-7
AddForm.jsx
src/pages/webConfig/menuconfig/AddForm.jsx
+1
-1
editForm.jsx
src/pages/webConfig/menuconfig/editForm.jsx
+1
-1
productConfig.jsx
src/pages/webConfig/productConfig.jsx
+3
-3
api.js
src/services/webConfig/api.js
+1
-1
No files found.
src/pages/userCenter/roleManage/RoleManage.jsx
View file @
e1d252d3
...
...
@@ -186,6 +186,7 @@ const SiteManage = () => {
const
transTree
=
val
=>
{
let
arr
=
val
;
let
newArr
=
[];
// 提取child里面的数组
let
arr2
=
arr
.
filter
(
item
=>
{
if
(
item
.
child
&&
item
.
child
.
length
>
0
)
{
item
.
child
.
forEach
(
itemC
=>
{
...
...
@@ -230,7 +231,6 @@ const SiteManage = () => {
i
.
group
=
itemRole
.
visibleTitle
;
i
.
icon
=
<
UserOutlined
/>;
if
(
roleID
&&
roleID
===
i
.
roleID
)
{
console
.
log
(
roleID
,
typeof
roleID
,
'roleID'
);
setItemObj
(
i
);
// setCurrentSelectId(roleID);
}
...
...
@@ -243,7 +243,6 @@ const SiteManage = () => {
itemRole
.
subSystemValue
=
item
.
visibleValue
;
itemRole
.
icon
=
<
UserOutlined
/>;
if
(
roleID
&&
roleID
===
itemRole
.
roleID
)
{
console
.
log
(
roleID
,
typeof
roleID
,
'roleID'
);
setItemObj
(
itemRole
);
// setCurrentSelectId(roleID);
}
...
...
src/pages/webConfig/components/editForm.jsx
View file @
e1d252d3
...
...
@@ -21,8 +21,8 @@ const EditForm = props => {
key
:
'production'
,
},
{
value
:
'
研
发中'
,
label
:
'
研
发中'
,
value
:
'
开
发中'
,
label
:
'
开
发中'
,
key
:
'development'
,
},
];
...
...
@@ -38,7 +38,6 @@ const EditForm = props => {
ID
:
productObj
.
ID
,
};
editCallback
(
params
);
console
.
log
(
value
,
'value'
);
};
return
(
<
Spin
spinning=
{
loading
}
tip=
"loading..."
>
...
...
@@ -69,7 +68,7 @@ const EditForm = props => {
// },
// ]}
>
<
Input
placeholder=
"请输入产品名称"
allowClear
/>
<
Input
placeholder=
"请输入产品名称"
allowClear
disabled
/>
</
Item
>
<
Item
label=
"产品说明:"
...
...
@@ -82,7 +81,7 @@ const EditForm = props => {
// },
// ]}
>
<
Input
placeholder=
"请输入产品说明"
/>
<
Input
placeholder=
"请输入产品说明"
disabled
/>
</
Item
>
<
Item
label=
"发布状态:"
...
...
@@ -115,7 +114,7 @@ const EditForm = props => {
>
{
/* <Input addonBefore="//" placeholder="请输入访问路由" allowClear /> */
}
<
Input
placeholder=
"请输入访问路由,
示例//localhost:3001/civmanage
"
placeholder=
"请输入访问路由,
ip加端口号,示例//localhost:3001/
"
allowClear
/>
</
Item
>
...
...
@@ -130,7 +129,7 @@ const EditForm = props => {
]
}
>
<
TextArea
placeholder=
"请输入默认配置"
placeholder=
'请输入json对象,示例{"name":"张三","age":"18"}'
autoSize=
{
{
minRows
:
3
,
maxRows
:
5
}
}
/>
</
Item
>
...
...
src/pages/webConfig/menuconfig/AddForm.jsx
View file @
e1d252d3
...
...
@@ -67,7 +67,7 @@ const AddForm = props => {
productList
.
length
>
0
&&
productList
.
map
(
item
=>
(
<
Option
value=
{
item
.
PackageName
}
key=
{
item
.
PackageName
}
>
{
item
.
P
ackage
Name
}
{
item
.
P
roduct
Name
}
</
Option
>
))
}
</
Select
>
...
...
src/pages/webConfig/menuconfig/editForm.jsx
View file @
e1d252d3
...
...
@@ -79,7 +79,7 @@ const EditForm = props => {
productList
.
length
>
0
&&
productList
.
map
(
item
=>
(
<
Option
value=
{
item
.
PackageName
}
key=
{
item
.
PackageName
}
>
{
item
.
P
ackage
Name
||
''
}
{
item
.
P
roduct
Name
||
''
}
</
Option
>
))
}
</
Select
>
...
...
src/pages/webConfig/productConfig.jsx
View file @
e1d252d3
...
...
@@ -181,7 +181,7 @@ const ProductConfig = props => {
/>
</
div
>
<
span
className=
{
classnames
({
[
styles
.
itemspan
]:
true
})
}
>
{
item
.
P
ackage
Name
}
{
item
.
P
roduct
Name
}
</
span
>
</
List
.
Item
>
));
...
...
@@ -221,7 +221,7 @@ const ProductConfig = props => {
description=
"当前未选中产品类型"
/>
)
}
<
Drawer
{
/*
<Drawer
title="新增产品"
destroyOnClose
maskClosable={false}
...
...
@@ -232,7 +232,7 @@ const ProductConfig = props => {
visible={addVisible}
>
<AddForm addCallback={addCallback} />
</
Drawer
>
</Drawer>
*/
}
</
Card
>
</
div
>
</
Spin
>
...
...
src/services/webConfig/api.js
View file @
e1d252d3
...
...
@@ -125,4 +125,4 @@ export const modifyProduct = params =>
// 删除产品列表
export
const
delProductList
=
params
=>
pos
t
(
`
${
PUBLISH_SERVICE
}
/UserCenter/DelProduct`
,
params
);
ge
t
(
`
${
PUBLISH_SERVICE
}
/UserCenter/DelProduct`
,
params
);
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