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
480d52bf
Commit
480d52bf
authored
Jan 07, 2021
by
陈前坚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: 用户管理图标修改,运维痕迹优先级标亮
parent
090ad4f5
Pipeline
#21893
skipped with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
7 deletions
+19
-7
index.js
src/pages/log/omsLog/index.js
+15
-3
UserManage.js
src/pages/userCenter/userManage/UserManage.js
+4
-4
No files found.
src/pages/log/omsLog/index.js
View file @
480d52bf
...
...
@@ -32,7 +32,7 @@ const OmsLog = () => {
dataIndex
:
'logTime'
,
key
:
'logTime'
,
width
:
200
,
//
defaultSortOrder: 'descend',
defaultSortOrder
:
'descend'
,
sortDirections
:
[
'descend'
,
'ascend'
],
sorter
:
(
a
,
b
)
=>
new
Date
(
a
.
logTime
).
getTime
()
-
new
Date
(
b
.
logTime
).
getTime
(),
...
...
@@ -41,7 +41,7 @@ const OmsLog = () => {
title
:
'接口名称'
,
dataIndex
:
'functionName'
,
key
:
'functionName'
,
width
:
3
00
,
width
:
2
00
,
// filters: functionNameFilters,
// onFilter: (value, record) => record.functionName === value,
},
...
...
@@ -49,7 +49,7 @@ const OmsLog = () => {
title
:
'标签'
,
dataIndex
:
'label'
,
key
:
'label'
,
width
:
3
0
0
,
width
:
3
6
0
,
},
{
title
:
'优先级'
,
...
...
@@ -58,6 +58,18 @@ const OmsLog = () => {
width
:
100
,
filters
:
levelFilters
,
onFilter
:
(
value
,
record
)
=>
record
.
level
===
value
,
render
:
record
=>
{
if
(
record
===
'高'
)
{
return
<
span
style
=
{{
color
:
'#ff7875'
}}
>
高
<
/span>
;
}
if
(
record
===
'中'
)
{
return
<
span
style
=
{{
color
:
'#faad14'
}}
>
中
<
/span>
;
}
if
(
record
===
'低'
)
{
return
<
span
style
=
{{
color
:
'#52c41a'
}}
>
低
<
/span>
;
}
return
record
;
},
},
{
title
:
'详情'
,
...
...
src/pages/userCenter/userManage/UserManage.js
View file @
480d52bf
...
...
@@ -21,7 +21,7 @@ import {
EditOutlined
,
EditTwoTone
,
DeleteOutlined
,
ShareAlt
Outlined
,
Idcard
Outlined
,
UnlockOutlined
,
ApartmentOutlined
,
StopOutlined
,
...
...
@@ -207,9 +207,9 @@ const UserManage = () => {
render
:
record
=>
(
<
Space
size
=
"middle"
>
<
Tooltip
title
=
"关联角色"
>
<
ShareAlt
Outlined
<
Idcard
Outlined
onClick
=
{()
=>
relateRole
(
record
)}
style
=
{{
fontSize
:
'
16
px'
,
color
:
'#1890FF'
}}
style
=
{{
fontSize
:
'
20
px'
,
color
:
'#1890FF'
}}
/
>
<
/Tooltip
>
<
Tooltip
title
=
"更改机构"
>
...
...
@@ -706,7 +706,7 @@ const UserManage = () => {
// 用户批量操作
const
userButtonMenu
=
(
<
Menu
>
<
Menu
.
Item
key
=
"1"
onClick
=
{
relateRoles
}
icon
=
{
<
ShareAlt
Outlined
/>
}
>
<
Menu
.
Item
key
=
"1"
onClick
=
{
relateRoles
}
icon
=
{
<
Idcard
Outlined
/>
}
>
批量关联角色
<
/Menu.Item
>
<
Menu
.
Item
key
=
"2"
onClick
=
{
changeOrgs
}
icon
=
{
<
ApartmentOutlined
/>
}
>
...
...
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