Commit 77bee8c9 by zhaochengxiang

修改授权图标

parent d2bbf3d1
...@@ -5,6 +5,7 @@ import { paginate } from '@/utils/pagination'; ...@@ -5,6 +5,7 @@ import { paginate } from '@/utils/pagination';
import { TableModel } from './AssetList'; import { TableModel } from './AssetList';
import { CurrentUser } from '@/models/user'; import { CurrentUser } from '@/models/user';
import classNames from 'classnames'; import classNames from 'classnames';
import { CheckOutlined } from '@ant-design/icons';
import styles from '../style.less'; import styles from '../style.less';
// import { GetColumns } from '@/utils/ScrollableTable'; // import { GetColumns } from '@/utils/ScrollableTable';
...@@ -16,7 +17,7 @@ const despColumns = [ ...@@ -16,7 +17,7 @@ const despColumns = [
{ {
key: 'privileged', key: 'privileged',
title: '已授权', title: '已授权',
render: (val: any) => (val.privileged === true ? <Icon type="key" /> : <span></span>), render: (val: any) => (val.privileged === true ? <CheckOutlined className='text-primary' /> : <span></span>),
}, },
{ key: 'ordinalPosition', dataIndex: 'ordinalPosition', title: '序号' }, { key: 'ordinalPosition', dataIndex: 'ordinalPosition', title: '序号' },
{ key: 'name', dataIndex: 'name', title: '名称' }, { key: 'name', dataIndex: 'name', title: '名称' },
......
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