feat: 标签管理增加分组

This commit is contained in:
2026-03-02 13:39:34 +08:00
parent 4418a95822
commit 95338a3ddf
7 changed files with 28 additions and 29 deletions

View File

@@ -112,7 +112,7 @@ const ModelPage = () => {
columns={columns}
request={onFetch}
toolbarActions={toolbarActions}
headerTitle="租户列表"
headerTitle="模型管理"
showIndex={false}
showSelection={false}
search={false}

View File

@@ -72,7 +72,7 @@ export const baseTenantColumns: ProColumns<AiSampleRespVO>[] = [
},
}}
editable
placeholder="请选择技术栈"
placeholder="请选择标签"
/>
);
},

View File

@@ -128,18 +128,6 @@ const SampleTagDetail = <T extends Record<string, any>>(
const handleDownloadAll = async () => {
const ids = data?.map((sample) => sample.id) as number[];
downloadZipFile(ids);
// const res = await downloadSample(ids);
// console.log(res);
// const downloadUrl = window.URL.createObjectURL(res);
// const link = document.createElement("a");
// link.href = downloadUrl;
// link.download = downloadUrl; // 设置下载的文件名
// link.style.display = "none";
// document.body.appendChild(link);
// link.click();
// document.body.removeChild(link);
// // const blob = new Blob([response.data], { type: 'application/pdf' });
// // const url = window.URL.createObjectURL(blob);
};
const handleTagManager = () => {
@@ -221,7 +209,7 @@ const SampleTagDetail = <T extends Record<string, any>>(
}) || [];
await updateSamples(newData);
props?.onRefresh?.();
message.success('更新成功');
message.success('更新样本名称成功');
}
},
}}
@@ -242,6 +230,7 @@ const SampleTagDetail = <T extends Record<string, any>>(
}) || [];
await updateSamples(newData);
props?.onRefresh?.();
message.success('更新注释成功');
}
},
}}