feat:修复下载数据集问题、删除数据确认框、修改标题、添加列表轮询刷新 (#16)

* refactor: clean up tag management and dataset handling, update API endpoints

* feat: add showTime prop to DevelopmentInProgress component across multiple pages

* refactor: update component styles and improve layout with new utility classes

* feat: enhance useFetchData hook with polling functionality and improve task progress tracking

* feat: enhance dataset management features with improved tag handling, download functionality, and UI updates

* feat: Enhance DatasetDetail component with delete functionality and improved download handling

feat: Add automatic data refresh and improved user feedback in DatasetManagementPage

fix: Update dataset API to streamline download functionality and improve error handling

* feat: Clear new tag input after successful addition in TagManager
This commit is contained in:
chenghh-9609
2025-10-23 16:48:42 +08:00
committed by GitHub
parent c998de2e9d
commit c52702b073
28 changed files with 715 additions and 1216 deletions

View File

@@ -4,7 +4,7 @@ import { ArrowLeft } from "lucide-react";
import { Button, Form, App } from "antd";
import { Link, useNavigate } from "react-router";
import { createDatasetUsingPost } from "../dataset.api";
import { DatasetType, DataSource } from "../dataset.model";
import { DatasetType } from "../dataset.model";
import BasicInformation from "./components/BasicInformation";
export default function DatasetCreate() {
@@ -27,9 +27,9 @@ export default function DatasetCreate() {
files: undefined,
};
try {
await createDatasetUsingPost(params);
const { data } = await createDatasetUsingPost(params);
message.success(`数据集创建成功`);
navigate("/data/management");
navigate("/data/management/detail/" + data.id);
} catch (error) {
console.error(error);
message.error("数据集创建失败,请重试");
@@ -69,7 +69,11 @@ export default function DatasetCreate() {
</div>
<div className="flex gap-2 justify-end p-6 border-top">
<Button onClick={() => navigate("/data/management")}></Button>
<Button type="primary" onClick={handleSubmit}>
<Button
type="primary"
disabled={!newDataset.name || !newDataset.datasetType}
onClick={handleSubmit}
>
</Button>
</div>