diff --git a/app/admin-app.tsx b/app/admin-app.tsx index 3e19eb3..d71233f 100644 --- a/app/admin-app.tsx +++ b/app/admin-app.tsx @@ -188,6 +188,8 @@ type Distribution = { task_platform: "小红书" | "抖音"; content_format: "image_text" | "video"; due_at: string; + task_collection_days: string | null; + task_collection_start_date: string | null; }; type RecoverySortKey = @@ -5033,6 +5035,25 @@ function DistributionTable({ onRelease?: (distribution: Distribution) => void; showRecovery?: boolean; }) { + // 已发布但还没采到数据的行:有计划时按首个采集日显示,没计划时 + // 明说待设置,而不是写死「等待D2」误导运营。 + const waitingCollectionLabel = (item: Distribution) => { + let days: number[] = []; + try { + const parsed = JSON.parse(item.task_collection_days || "[]") as unknown; + if (Array.isArray(parsed)) { + days = parsed + .map(Number) + .filter((day) => Number.isInteger(day) && day >= 1 && day <= 7); + } + } catch { + days = []; + } + if (!item.task_collection_start_date || days.length === 0) { + return "待设置采集计划"; + } + return `等待D${Math.min(...days)}`; + }; return (