chore(manager/users): add Assign Page
This commit is contained in:
0
src/pages/Manager/User/Permission/Assign.tsx
Normal file
0
src/pages/Manager/User/Permission/Assign.tsx
Normal file
@@ -1,3 +1,4 @@
|
|||||||
|
import IconFont from '@/components/IconFont';
|
||||||
import TreeGroup from '@/components/shared/TreeGroup';
|
import TreeGroup from '@/components/shared/TreeGroup';
|
||||||
import { DEFAULT_PAGE_SIZE } from '@/constants';
|
import { DEFAULT_PAGE_SIZE } from '@/constants';
|
||||||
import {
|
import {
|
||||||
@@ -11,7 +12,7 @@ import {
|
|||||||
ProTable,
|
ProTable,
|
||||||
} from '@ant-design/pro-components';
|
} from '@ant-design/pro-components';
|
||||||
import { FormattedMessage, useIntl } from '@umijs/max';
|
import { FormattedMessage, useIntl } from '@umijs/max';
|
||||||
import { Grid } from 'antd';
|
import { Button, Grid } from 'antd';
|
||||||
import message from 'antd/es/message';
|
import message from 'antd/es/message';
|
||||||
import Paragraph from 'antd/lib/typography/Paragraph';
|
import Paragraph from 'antd/lib/typography/Paragraph';
|
||||||
import { useRef, useState } from 'react';
|
import { useRef, useState } from 'react';
|
||||||
@@ -31,6 +32,10 @@ const ManagerUserPage = () => {
|
|||||||
string | string[] | null
|
string | string[] | null
|
||||||
>(null);
|
>(null);
|
||||||
|
|
||||||
|
const handleClickAssign = (user: MasterModel.ProfileResponse) => {
|
||||||
|
console.log('User ', user);
|
||||||
|
};
|
||||||
|
|
||||||
const columns: ProColumns<MasterModel.ProfileResponse>[] = [
|
const columns: ProColumns<MasterModel.ProfileResponse>[] = [
|
||||||
{
|
{
|
||||||
key: 'email',
|
key: 'email',
|
||||||
@@ -104,16 +109,15 @@ const ManagerUserPage = () => {
|
|||||||
<FormattedMessage id="common.actions" defaultMessage="Operating" />
|
<FormattedMessage id="common.actions" defaultMessage="Operating" />
|
||||||
),
|
),
|
||||||
hideInSearch: true,
|
hideInSearch: true,
|
||||||
render: () => {
|
render: (_, user) => {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{/* <PermissionButton
|
<Button
|
||||||
user={record}
|
shape="default"
|
||||||
title={intl.formatMessage({
|
size="small"
|
||||||
id: 'master.users.assign',
|
icon={<IconFont type="icon-assign" />}
|
||||||
defaultMessage: 'Assgin',
|
onClick={() => handleClickAssign(user)}
|
||||||
})}
|
/>
|
||||||
/> */}
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user