bugfix: 创建清洗任务时修改数据集状态;无法删除已在模板/运行任务的算子

* bugfix: 创建清洗任务时修改数据集状态;无法删除已在模板/运行任务的算子
This commit is contained in:
hhhhsc701
2025-11-27 17:34:53 +08:00
committed by GitHub
parent 91390cace0
commit f1bffdcd61
15 changed files with 46 additions and 15 deletions

View File

@@ -58,7 +58,10 @@ const OperatorList: React.FC<OperatorListProps> = ({
</div>
<span
className="cursor-pointer"
onClick={() => handleStar(operator, toggleFavorite)}
onClick={(event) => {
event.stopPropagation();
handleStar(operator, toggleFavorite);
}}
>
{favorites.has(operator.id) ? (
<StarFilled style={{ color: "#FFD700" }} />

View File

@@ -1,4 +1,4 @@
import {Button, Modal, Table, Badge, Input} from "antd";
import {Button, Modal, Table, Badge, Input, Popover} from "antd";
import { Download } from "lucide-react";
import {useEffect, useState} from "react";
import {useParams} from "react-router";
@@ -259,9 +259,9 @@ export default function FileTable({result, fetchTaskResult}) {
</Button>
)}
<Button type="link" size="small">
</Button>
<Popover content="暂未开放">
<Button type="link" size="small" disabled></Button>
</Popover>
</div>
),
},

View File

@@ -186,7 +186,7 @@ export default function TaskList() {
title: "已处理文件数",
dataIndex: "finishedFileNum",
key: "finishedFileNum",
width: 150,
width: 120,
align: "right",
ellipsis: true,
},
@@ -194,7 +194,7 @@ export default function TaskList() {
title: "总文件数",
dataIndex: "totalFileNum",
key: "totalFileNum",
width: 150,
width: 100,
align: "right",
ellipsis: true,
},
@@ -202,7 +202,7 @@ export default function TaskList() {
title: "执行耗时",
dataIndex: "duration",
key: "duration",
width: 180,
width: 100,
ellipsis: true,
},
{