chore(manager/users): add Assign Page

This commit is contained in:
Tran Anh Tuan
2026-01-21 11:59:18 +07:00
parent a43aa5f4d7
commit 2f9e509ea8
2 changed files with 13 additions and 9 deletions

View 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)}
})} />
/> */}
</> </>
); );
}, },