feat: dashboard

This commit is contained in:
jialin
2024-05-22 09:29:30 +08:00
parent a416bc7eab
commit 46a9e6a931
21 changed files with 1522 additions and 53 deletions
+8
View File
@@ -10,6 +10,7 @@ import {
WechatWorkOutlined
} from '@ant-design/icons';
import { PageContainer } from '@ant-design/pro-components';
import { useNavigate } from '@umijs/max';
import {
Button,
Input,
@@ -43,6 +44,7 @@ const dataSource = [
];
const Models: React.FC = () => {
const navigate = useNavigate();
const rowSelection = useTableRowSelection();
const { sortOrder, setSortOrder } = useTableSort({
defaultSortOrder: 'descend'
@@ -117,6 +119,11 @@ const Models: React.FC = () => {
}
});
};
const handleOpenPlayGround = (row: any) => {
console.log('handleOpenPlayGround', row);
navigate('/playground');
};
return (
<>
<PageContainer
@@ -214,6 +221,7 @@ const Models: React.FC = () => {
<Button
size="small"
type="primary"
onClick={() => handleOpenPlayGround(record)}
icon={<WechatWorkOutlined />}
></Button>
</Tooltip>