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
b27be4ff
Commit
b27be4ff
authored
Dec 07, 2020
by
张烨
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://g.civnet.cn:8443/test/maintenance
parents
2d0dbd41
8996ec65
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
49 additions
and
39 deletions
+49
-39
AppDic.js
src/pages/dataCenter/dictionary/AppDic.js
+26
-24
AppDic.less
src/pages/dataCenter/dictionary/AppDic.less
+0
-0
WebDic.js
src/pages/dataCenter/dictionary/WebDic.js
+1
-1
WebDic.less
src/pages/dataCenter/dictionary/WebDic.less
+0
-0
index.js
src/pages/dataCenter/dictionary/index.js
+0
-0
UserManage.js
src/pages/userCenter/UserManage.js
+14
-8
config.js
src/routes/config.js
+8
-6
No files found.
src/pages/
platform
Center/dictionary/AppDic.js
→
src/pages/
data
Center/dictionary/AppDic.js
View file @
b27be4ff
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
{
Table
,
Tooltip
,
Spin
,
Modal
,
Form
,
...
...
@@ -11,7 +12,8 @@ import {
notification
,
message
,
}
from
'antd'
;
import
{
get
}
from
'@/services/index'
;
import
{
get
}
from
'@/services'
;
import
{
EditTwoTone
,
DeleteOutlined
}
from
'@ant-design/icons'
;
import
styles
from
'./AppDic.less'
;
const
AppDic
=
()
=>
{
...
...
@@ -53,40 +55,40 @@ const AppDic = () => {
{
title
:
'操作'
,
key
:
'action'
,
width
:
2
00
,
width
:
1
00
,
render
:
record
=>
(
<
Space
>
<
Button
type
=
"primary"
size
=
"small"
onClick
=
{()
=>
{
setSelect
(
record
);
setEditVisible
(
true
);
editForm
.
setFieldsValue
({
label
:
record
.
Label
,
key
:
record
.
Key
,
value
:
record
.
Value
,
description
:
record
.
Description
,
});
}}
>
修改
<
/Button
>
<
Tooltip
title
=
"编辑"
>
<
EditTwoTone
onClick
=
{()
=>
{
setSelect
(
record
);
setEditVisible
(
true
);
editForm
.
setFieldsValue
({
label
:
record
.
Label
,
key
:
record
.
Key
,
value
:
record
.
Value
,
description
:
record
.
Description
,
});
}}
style
=
{{
fontSize
:
'16px'
}}
/
>
<
/Tooltip
>
<
Popconfirm
title
=
"是否删除该数据?"
okText
=
"确认"
cancelText
=
"取消"
onConfirm
=
{
submitDelete
}
>
<
Button
size
=
"small"
danger
<
DeleteOutlined
onClick
=
{()
=>
{
setSelect
(
record
);
}}
>
删除
<
/Button
>
style
=
{{
fontSize
:
'16px'
,
margin
:
'0px 10px'
,
color
:
'#e86060'
,
}}
/
>
<
/Popconfirm
>
<
/Space
>
),
...
...
src/pages/
platform
Center/dictionary/AppDic.less
→
src/pages/
data
Center/dictionary/AppDic.less
View file @
b27be4ff
File moved
src/pages/
platform
Center/dictionary/WebDic.js
→
src/pages/
data
Center/dictionary/WebDic.js
View file @
b27be4ff
...
...
@@ -15,7 +15,7 @@ import {
Col
,
}
from
'antd'
;
import
{
EditTwoTone
,
DeleteOutlined
}
from
'@ant-design/icons'
;
import
{
get
}
from
'@/services
/index
'
;
import
{
get
}
from
'@/services'
;
import
styles
from
'./WebDic.less'
;
const
WebDic
=
()
=>
{
...
...
src/pages/
platform
Center/dictionary/WebDic.less
→
src/pages/
data
Center/dictionary/WebDic.less
View file @
b27be4ff
File moved
src/pages/
platform
Center/dictionary/index.js
→
src/pages/
data
Center/dictionary/index.js
View file @
b27be4ff
File moved
src/pages/userCenter/UserManage.js
View file @
b27be4ff
...
...
@@ -257,7 +257,7 @@ const UserManage = () => {
<
Tooltip
title
=
"冻结用户"
>
<
StopOutlined
onClick
=
{()
=>
freezeUser
(
record
)}
style
=
{{
fontSize
:
'16px'
,
color
:
'#
1890FF
'
}}
style
=
{{
fontSize
:
'16px'
,
color
:
'#
e86060
'
}}
/
>
<
/Tooltip
>
<
/
>
...
...
@@ -267,15 +267,15 @@ const UserManage = () => {
<
Tooltip
title
=
"解冻用户"
>
<
StopOutlined
onClick
=
{()
=>
freezeUser
(
record
)}
style
=
{{
fontSize
:
'16px'
}}
style
=
{{
fontSize
:
'16px'
,
color
:
'#1890FF'
}}
/
>
<
/Tooltip
>
<
/
>
)}
<
Tooltip
title
=
"删除用户"
>
<
Delete
TwoTone
<
Delete
Outlined
onClick
=
{()
=>
deleteUser
(
record
)}
style
=
{{
fontSize
:
'16px'
}}
style
=
{{
fontSize
:
'16px'
,
color
:
'#e86060'
}}
/
>
<
/Tooltip
>
<
/Space
>
...
...
@@ -285,8 +285,6 @@ const UserManage = () => {
const
[
selectionType
]
=
useState
(
'checkbox'
);
const
rowSelection
=
{
onChange
:
(
selectedRowKeys
,
selectedRows
)
=>
{
console
.
log
(
selectedRowKeys
.
toString
());
console
.
log
(
selectedRows
.
map
(
item
=>
item
.
OUID
).
toString
());
setUserIDs
(
selectedRowKeys
.
toString
());
// 数组转字符串,逗号连接
setOrgIDs
(
selectedRows
.
map
(
item
=>
item
.
OUID
).
toString
());
// 选中行数大于0时设置批量操作可行
...
...
@@ -1414,14 +1412,22 @@ const UserManage = () => {
label
=
"新密码"
rules
=
{[{
required
:
true
,
message
:
'不能为空'
}]}
>
<
Input
placeholder
=
"请输入新密码"
/>
<
Input
placeholder
=
"请输入新密码"
type
=
"password"
autoComplete
=
"off"
/>
<
/Form.Item
>
<
Form
.
Item
name
=
"passwordConfirm"
label
=
"确认密码"
rules
=
{[{
required
:
true
,
message
:
'不能为空'
}]}
>
<
Input
placeholder
=
"再次确认新密码"
/>
<
Input
placeholder
=
"再次确认新密码"
type
=
"password"
autoComplete
=
"off"
/>
<
/Form.Item
>
<
/Form
>
<
/Modal
>
...
...
src/routes/config.js
View file @
b27be4ff
...
...
@@ -7,6 +7,7 @@ import {
SolutionOutlined
,
// AndroidOutlined,
// CommentOutlined,
TableOutlined
,
CopyOutlined
,
}
from
'@ant-design/icons'
;
import
UserLayout
from
'../layouts/UserLayout'
;
...
...
@@ -21,7 +22,7 @@ import CurrentSolution from '@/pages/database/CurrentSolution';
import
UserManage
from
'../pages/userCenter/UserManage'
;
import
RoleManage
from
'@/pages/userCenter/roleManage/RoleManage'
;
import
SiteManage
from
'../pages/userCenter/siteManage/SiteManage'
;
import
Dictionary
from
'../pages/
platform
Center/dictionary'
;
import
Dictionary
from
'../pages/
data
Center/dictionary'
;
import
ServiceLog
from
'../pages/log/serviceLog'
;
import
LoginLog
from
'../pages/log/loginLog'
;
import
OmsLog
from
'../pages/log/omsLog'
;
...
...
@@ -207,13 +208,14 @@ export default {
'/web4/?widget=product/oms/MqttConfig/MqttConfig.js|hideMap=true'
,
component
:
BaseFrameContainer
,
},
{
path
:
'/platformCenter/dictionary'
,
name
:
'数据中心'
,
component
:
Dictionary
,
},
],
},
{
path
:
'/dataCenter/dictionary'
,
name
:
'数据中心'
,
icon
:
<
TableOutlined
style
=
{
iconStyle
}
/>
,
component
:
Dictionary
,
},
{
path
:
'/productCenter'
,
component
:
BlankLayout
,
...
...
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