refactor: 移除冗余注释和描述,优化管理员模块的代码结构
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
export const reconcileModuleMeta = {
|
||||
segment: "reconcile",
|
||||
title: "对账",
|
||||
description: "钱包对账任务列表、创建与明细(PRD §8 钱包对账)。",
|
||||
description: "",
|
||||
} as const;
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
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 { Input } from "@/components/ui/input";
|
||||
import { Label } from "@/components/ui/label";
|
||||
import {
|
||||
@@ -143,10 +143,6 @@ export function ReconcileConsole(): React.ReactElement {
|
||||
<Card>
|
||||
<CardHeader>
|
||||
<CardTitle>新建对账任务</CardTitle>
|
||||
<CardDescription>
|
||||
需要权限 <code className="rounded bg-muted px-1">prd.wallet_reconcile.manage</code>
|
||||
。周期与明细结构与接口校验一致。
|
||||
</CardDescription>
|
||||
</CardHeader>
|
||||
<CardContent className="grid max-w-3xl gap-4">
|
||||
<div className="grid gap-1.5">
|
||||
@@ -193,16 +189,13 @@ export function ReconcileConsole(): React.ReactElement {
|
||||
</CardContent>
|
||||
</Card>
|
||||
) : (
|
||||
<p className="text-muted-foreground text-sm">
|
||||
当前账号无「钱包对账·可管理」权限,仅可查看任务与明细。
|
||||
</p>
|
||||
<p className="text-muted-foreground text-sm">当前账号无新建对账任务权限。</p>
|
||||
)}
|
||||
|
||||
<Card>
|
||||
<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 loadJobs()}>
|
||||
刷新
|
||||
@@ -290,13 +283,16 @@ export function ReconcileConsole(): React.ReactElement {
|
||||
<Card>
|
||||
<CardHeader>
|
||||
<CardTitle>任务 #{selectedId} 明细</CardTitle>
|
||||
<CardDescription>
|
||||
{itemsLoading ? "加载中…" : items?.job_no ?? ""}
|
||||
</CardDescription>
|
||||
</CardHeader>
|
||||
<CardContent className="space-y-4">
|
||||
{itemsLoading && !items ? (
|
||||
<p className="text-sm text-muted-foreground">加载中…</p>
|
||||
) : null}
|
||||
{items ? (
|
||||
<>
|
||||
{items.job_no ? (
|
||||
<p className="font-mono text-sm text-muted-foreground">{items.job_no}</p>
|
||||
) : null}
|
||||
<div className="rounded-md border">
|
||||
<Table>
|
||||
<TableHeader>
|
||||
|
||||
Reference in New Issue
Block a user