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

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

parent 090ad4f5
Pipeline #21893 skipped with stages
...@@ -32,7 +32,7 @@ const OmsLog = () => { ...@@ -32,7 +32,7 @@ const OmsLog = () => {
dataIndex: 'logTime', dataIndex: 'logTime',
key: 'logTime', key: 'logTime',
width: 200, width: 200,
// defaultSortOrder: 'descend', defaultSortOrder: 'descend',
sortDirections: ['descend', 'ascend'], sortDirections: ['descend', 'ascend'],
sorter: (a, b) => sorter: (a, b) =>
new Date(a.logTime).getTime() - new Date(b.logTime).getTime(), new Date(a.logTime).getTime() - new Date(b.logTime).getTime(),
...@@ -41,7 +41,7 @@ const OmsLog = () => { ...@@ -41,7 +41,7 @@ const OmsLog = () => {
title: '接口名称', title: '接口名称',
dataIndex: 'functionName', dataIndex: 'functionName',
key: 'functionName', key: 'functionName',
width: 300, width: 200,
// filters: functionNameFilters, // filters: functionNameFilters,
// onFilter: (value, record) => record.functionName === value, // onFilter: (value, record) => record.functionName === value,
}, },
...@@ -49,7 +49,7 @@ const OmsLog = () => { ...@@ -49,7 +49,7 @@ const OmsLog = () => {
title: '标签', title: '标签',
dataIndex: 'label', dataIndex: 'label',
key: 'label', key: 'label',
width: 300, width: 360,
}, },
{ {
title: '优先级', title: '优先级',
...@@ -58,6 +58,18 @@ const OmsLog = () => { ...@@ -58,6 +58,18 @@ const OmsLog = () => {
width: 100, width: 100,
filters: levelFilters, filters: levelFilters,
onFilter: (value, record) => record.level === value, 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: '详情', title: '详情',
......
...@@ -21,7 +21,7 @@ import { ...@@ -21,7 +21,7 @@ import {
EditOutlined, EditOutlined,
EditTwoTone, EditTwoTone,
DeleteOutlined, DeleteOutlined,
ShareAltOutlined, IdcardOutlined,
UnlockOutlined, UnlockOutlined,
ApartmentOutlined, ApartmentOutlined,
StopOutlined, StopOutlined,
...@@ -207,9 +207,9 @@ const UserManage = () => { ...@@ -207,9 +207,9 @@ const UserManage = () => {
render: record => ( render: record => (
<Space size="middle"> <Space size="middle">
<Tooltip title="关联角色"> <Tooltip title="关联角色">
<ShareAltOutlined <IdcardOutlined
onClick={() => relateRole(record)} onClick={() => relateRole(record)}
style={{ fontSize: '16px', color: '#1890FF' }} style={{ fontSize: '20px', color: '#1890FF' }}
/> />
</Tooltip> </Tooltip>
<Tooltip title="更改机构"> <Tooltip title="更改机构">
...@@ -706,7 +706,7 @@ const UserManage = () => { ...@@ -706,7 +706,7 @@ const UserManage = () => {
// 用户批量操作 // 用户批量操作
const userButtonMenu = ( const userButtonMenu = (
<Menu> <Menu>
<Menu.Item key="1" onClick={relateRoles} icon={<ShareAltOutlined />}> <Menu.Item key="1" onClick={relateRoles} icon={<IdcardOutlined />}>
批量关联角色 批量关联角色
</Menu.Item> </Menu.Item>
<Menu.Item key="2" onClick={changeOrgs} icon={<ApartmentOutlined />}> <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