文案(任务):业务类型去掉待处理 / 候选 / Feed,时间括号改全角
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Cxwgnn2pbzQ7rXv3rq7fei
This commit is contained in:
1 parent
4fe4679efc
commit
b89fb8f828
2 files changed
+8
-8
No files matched your search
@@ -12,7 +12,7 @@ export const BUSINESS_KIND_LABEL: Record<EngineBusinessKind, string> = {
|
||||
schedule: "定时任务",
|
||||
feed: "RSS",
|
||||
site: "站点",
|
||||
decision: "待处理事项",
|
||||
decision: "需要处理的事项",
|
||||
media: "作品",
|
||||
};
|
||||
|
||||
@@ -32,9 +32,9 @@ export function sourceOf(t: EngineTriggeredBy | null | undefined): TaskSource |
|
||||
|
||||
/** 引擎工作流名 → 做什么 */
|
||||
export const WORKFLOW_LABEL: Record<string, string> = {
|
||||
ingestFeed: "抓取 Feed",
|
||||
ingestFeed: "抓取 RSS",
|
||||
resolveObservation: "识别资源",
|
||||
evaluateAcquisition: "评估候选",
|
||||
evaluateAcquisition: "评估资源",
|
||||
submitDownload: "提交下载",
|
||||
verifyAndImport: "核验整理",
|
||||
scrapeMedia: "刮削",
|
||||
@@ -42,7 +42,7 @@ export const WORKFLOW_LABEL: Record<string, string> = {
|
||||
prewarmMetadata: "预热元数据缓存",
|
||||
reconcileLibrary: "文件核对",
|
||||
cleanupDownloadCache: "清理缓存",
|
||||
resolveDecision: "处理待处理事项",
|
||||
resolveDecision: "处理事项",
|
||||
runAgent: "智能体会话",
|
||||
snapshotSite: "站点抓取",
|
||||
refreshSiteAccount: "刷新站点账号",
|
||||
|
||||
@@ -183,7 +183,7 @@ export function RunActions({
|
||||
try {
|
||||
const res = await cancel.mutateAsync({ id: r.id, reason: "控制台手动取消" });
|
||||
if (res.canceled) toast.success("已取消");
|
||||
else toast.warning("任务已结束");
|
||||
else toast.warning("任务已结束,不用取消");
|
||||
} catch (err) {
|
||||
toast.error(errorMessage(err, "取消失败"));
|
||||
throw err;
|
||||
@@ -243,7 +243,7 @@ export function TaskDetailBody({ r, onOpenRun }: { r: EngineRunDetail; onOpenRun
|
||||
const hasError = r.error !== null && r.error !== undefined;
|
||||
// 相关日志(日志页按对象筛选):本任务的操作留痕;关联对象的全部日志(任务、定时任务运行、审计)
|
||||
const audits = [
|
||||
{ to: objectLogsPath("engine_run", r.id), label: "本任务的操作记录" },
|
||||
{ to: objectLogsPath("engine_run", r.id), label: "这个任务的操作记录" },
|
||||
...(b && BUSINESS_OBJECT_TYPE[b.kind]
|
||||
? [
|
||||
{
|
||||
@@ -275,11 +275,11 @@ export function TaskDetailBody({ r, onOpenRun }: { r: EngineRunDetail; onOpenRun
|
||||
),
|
||||
wide: true,
|
||||
},
|
||||
{ label: "做什么", value: workflowLabel(r.workflowName) },
|
||||
{ label: "类型", value: workflowLabel(r.workflowName) },
|
||||
{ label: "来源", value: src ? SOURCE_LABEL[src] : "未知" },
|
||||
{
|
||||
label: "开始",
|
||||
value: r.startedAt ? `${formatDateTime(r.startedAt)}(${formatRelative(r.startedAt)})` : "未开始",
|
||||
value: r.startedAt ? `${formatDateTime(r.startedAt)}(${formatRelative(r.startedAt)})` : "未开始",
|
||||
},
|
||||
]}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user