Commit 480d52bf authored by 陈前坚's avatar 陈前坚

perf: 用户管理图标修改,运维痕迹优先级标亮

parent 090ad4f5
Pipeline #21893 skipped with stages
......@@ -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: 300,
width: 200,
// filters: functionNameFilters,
// onFilter: (value, record) => record.functionName === value,
},
......@@ -49,7 +49,7 @@ const OmsLog = () => {
title: '标签',
dataIndex: 'label',
key: 'label',
width: 300,
width: 360,
},
{
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: '详情',
......
......@@ -21,7 +21,7 @@ import {
EditOutlined,
EditTwoTone,
DeleteOutlined,
ShareAltOutlined,
IdcardOutlined,
UnlockOutlined,
ApartmentOutlined,
StopOutlined,
......@@ -207,9 +207,9 @@ const UserManage = () => {
render: record => (
<Space size="middle">
<Tooltip title="关联角色">
<ShareAltOutlined
<IdcardOutlined
onClick={() => relateRole(record)}
style={{ fontSize: '16px', color: '#1890FF' }}
style={{ fontSize: '20px', color: '#1890FF' }}
/>
</Tooltip>
<Tooltip title="更改机构">
......@@ -706,7 +706,7 @@ const UserManage = () => {
// 用户批量操作
const userButtonMenu = (
<Menu>
<Menu.Item key="1" onClick={relateRoles} icon={<ShareAltOutlined />}>
<Menu.Item key="1" onClick={relateRoles} icon={<IdcardOutlined />}>
批量关联角色
</Menu.Item>
<Menu.Item key="2" onClick={changeOrgs} icon={<ApartmentOutlined />}>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment