新增文件上传页面,新增文件上传的公共组件(进度条,步骤条,上传区域)

This commit is contained in:
2025-03-31 19:53:26 +08:00
parent 65da73071d
commit 8fe88c1d15
19 changed files with 1492 additions and 32 deletions
+4 -7
View File
@@ -33,10 +33,6 @@ export const meta: MetaFunction = () => {
];
};
// 面包屑导航
export const handle = {
breadcrumb: "提示词模板管理"
};
// 模拟数据
const MOCK_TEMPLATES: PromptTemplate[] = [
@@ -251,7 +247,7 @@ export default function PromptsIndex() {
render: (_: unknown, record: PromptTemplate) => (
<div className="flex items-center">
<i className="ri-file-list-line text-primary mr-2"></i>
<span>{record.template_name}</span>
<span className="truncate">{record.template_name}</span>
</div>
)
},
@@ -336,6 +332,7 @@ export default function PromptsIndex() {
title: "操作",
key: "operation",
width: "150px",
// align: "center",
render: (_: unknown, record: PromptTemplate) => (
<div>
{record.status === 'system' ? (
@@ -427,7 +424,7 @@ export default function PromptsIndex() {
name="type"
value={searchParams.get('type') || ''}
options={[
{ value: "", label: "全部" },
// { value: "", label: "全部" },
{ value: "Extraction", label: "抽取(Extraction)" },
{ value: "Evaluation", label: "评估(Evaluation)" },
{ value: "Summary", label: "摘要(Summary)" },
@@ -442,7 +439,7 @@ export default function PromptsIndex() {
name="status"
value={searchParams.get('status') || ''}
options={[
{ value: "", label: "全部" },
// { value: "", label: "全部" },
{ value: "active", label: "启用" },
{ value: "inactive", label: "停用" },
{ value: "system", label: "系统预设" }