|
|
|
@ -3,7 +3,7 @@ import { PERM_ROLE_NEW } from '@/config'
|
|
|
|
|
import useAccountStore, { fetchPermissionList, fetchPermissionListByRoleId, fetchRoleList } from '@/stores/Account'
|
|
|
|
|
import { isEmpty } from '@/utils/commons'
|
|
|
|
|
import {
|
|
|
|
|
SyncOutlined,
|
|
|
|
|
PushpinTwoTone,
|
|
|
|
|
} from '@ant-design/icons'
|
|
|
|
|
import { App, Button, Col, Form, Input, Modal, Row, Space, Table, Tag, TreeSelect, Typography } from 'antd'
|
|
|
|
|
import dayjs from 'dayjs'
|
|
|
|
@ -34,7 +34,7 @@ function RoleList() {
|
|
|
|
|
|
|
|
|
|
function actionRender(_, role) {
|
|
|
|
|
if (role.role_id == 1) {
|
|
|
|
|
return (<Tag icon={<SyncOutlined spin />} color='warning'>不能修改</Tag>)
|
|
|
|
|
return (<Button type='text'><PushpinTwoTone twoToneColor="#c0192a" /></Button>)
|
|
|
|
|
} else {
|
|
|
|
|
return (
|
|
|
|
|
<Button type='link' key='edit' onClick={() => onRoleSeleted(role)}>{t('account:action.edit')}</Button>
|
|
|
|
|