refactor: 移除冗余注释和描述,优化管理员模块的代码结构
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
export const reportsModuleMeta = {
|
||||
segment: "reports",
|
||||
title: "报表导出",
|
||||
description: "创建异步导出任务并查看历史记录(PRD §8 报表权限)。",
|
||||
title: "报表",
|
||||
description: "",
|
||||
} as const;
|
||||
|
||||
@@ -7,7 +7,7 @@ import { getAdminReportJobs, postAdminReportJob } from "@/api/admin-reports";
|
||||
import { AdminListPaginationFooter } from "@/components/admin/admin-list-pagination-footer";
|
||||
import { Badge } from "@/components/ui/badge";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
|
||||
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
|
||||
import { Label } from "@/components/ui/label";
|
||||
import {
|
||||
Select,
|
||||
@@ -105,11 +105,6 @@ export function ReportsConsole(): React.ReactElement {
|
||||
<Card>
|
||||
<CardHeader>
|
||||
<CardTitle>新建导出</CardTitle>
|
||||
<CardDescription>
|
||||
对应接口 <code className="rounded bg-muted px-1">POST /api/v1/admin/report-jobs</code>
|
||||
;任务异步执行,完成后可凭 <code className="rounded bg-muted px-1">output_path</code>{" "}
|
||||
取文件(由后端存储策略决定)。
|
||||
</CardDescription>
|
||||
</CardHeader>
|
||||
<CardContent className="grid gap-4 sm:grid-cols-2 lg:grid-cols-3">
|
||||
<div className="grid gap-1.5">
|
||||
@@ -177,7 +172,6 @@ export function ReportsConsole(): React.ReactElement {
|
||||
<CardHeader className="flex flex-row flex-wrap items-end justify-between gap-4">
|
||||
<div>
|
||||
<CardTitle>任务列表</CardTitle>
|
||||
<CardDescription>按创建时间倒序</CardDescription>
|
||||
</div>
|
||||
<Button type="button" variant="secondary" size="sm" onClick={() => void load()}>
|
||||
刷新
|
||||
|
||||
Reference in New Issue
Block a user