|
|
@@ -7,10 +7,6 @@ import BaseCrud from '@/components/BaseCrud';
|
|
|
import BaseService from '@/utils/BaseService';
|
|
|
import { useIntl } from '@@/plugin-locale/localeExports';
|
|
|
import { observer } from '@formily/react';
|
|
|
-// import autzModel from '@/components/Authorization/autz';
|
|
|
-// import Authorization from '@/components/Authorization';
|
|
|
-// import { BindModel } from '@/components/BindUser/model';
|
|
|
-// import BindUser from '@/components/BindUser';
|
|
|
import { Link, useLocation } from 'umi';
|
|
|
import { Store } from 'jetlinks-store';
|
|
|
import SystemConst from '@/utils/const';
|
|
|
@@ -23,11 +19,11 @@ const Role: React.FC = observer(() => {
|
|
|
const actionRef = useRef<ActionType>();
|
|
|
|
|
|
const columns: ProColumns<RoleItem>[] = [
|
|
|
- {
|
|
|
- dataIndex: 'index',
|
|
|
- valueType: 'indexBorder',
|
|
|
- width: 48,
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // dataIndex: 'index',
|
|
|
+ // valueType: 'indexBorder',
|
|
|
+ // width: 48,
|
|
|
+ // },
|
|
|
{
|
|
|
title: intl.formatMessage({
|
|
|
id: 'pages.system.role.id',
|
|
|
@@ -186,40 +182,10 @@ const Role: React.FC = observer(() => {
|
|
|
search={false}
|
|
|
title={intl.formatMessage({
|
|
|
id: 'pages.system.role',
|
|
|
- defaultMessage: '角色管理',
|
|
|
+ defaultMessage: '角色列表',
|
|
|
})}
|
|
|
schema={schema}
|
|
|
- // defaultParams={{ typeId: 'role' }}
|
|
|
/>
|
|
|
- {/* <Modal
|
|
|
- visible={BindModel.visible}
|
|
|
- closable={false}
|
|
|
- onCancel={() => {
|
|
|
- BindModel.visible = false;
|
|
|
- BindModel.bind = false;
|
|
|
- }}
|
|
|
- width={BindModel.bind ? '90vw' : '60vw'}
|
|
|
- >
|
|
|
- <BindUser />
|
|
|
- </Modal> */}
|
|
|
- {/* <Drawer
|
|
|
- title={intl.formatMessage({
|
|
|
- id: 'pages.data.option.authorize',
|
|
|
- defaultMessage: '授权',
|
|
|
- })}
|
|
|
- width="70vw"
|
|
|
- visible={autzModel.visible}
|
|
|
- onClose={() => {
|
|
|
- autzModel.visible = false;
|
|
|
- }}
|
|
|
- >
|
|
|
- <Authorization
|
|
|
- close={() => {
|
|
|
- autzModel.visible = false;
|
|
|
- }}
|
|
|
- target={autzModel.autzTarget}
|
|
|
- />
|
|
|
- </Drawer> */}
|
|
|
</PageContainer>
|
|
|
);
|
|
|
});
|