fix: 修复两端走查发现的4个UI断点
- 门户回填表单:缺发布截图时提交按钮前置禁用并提示「先上传发布截图,
链接回填需以截图为凭证」,不再等提交后才 toast 报错(服务端守卫保留)
- 门户笔记详情:回填链接前收起回收区块的说明与示例图,只留一行锁定提示,
降低回填阶段信息密度
- 运营端分发表:数据状态按任务采集计划显示等待日(等待D{首个采集日}),
未设置计划时显示「待设置采集计划」,不再写死「等待D2」
- 截图包回收清单:序号列对无 source_row 的内容回退行号;种子内容补
source_row,演示数据导出不再出现空序号
This commit is contained in:
@@ -640,8 +640,8 @@ export async function seedIfEmpty() {
|
||||
batch.push(
|
||||
db
|
||||
.prepare(
|
||||
`INSERT INTO contents (id, task_id, title, body, status)
|
||||
VALUES (?, ?, ?, ?, ?)`,
|
||||
`INSERT INTO contents (id, task_id, title, body, status, source_row)
|
||||
VALUES (?, ?, ?, ?, ?, ?)`,
|
||||
)
|
||||
.bind(
|
||||
`content-s-${index + 1}`,
|
||||
@@ -649,6 +649,7 @@ export async function seedIfEmpty() {
|
||||
title,
|
||||
"来自飞书内容表的完整笔记正文与素材说明。",
|
||||
index < 9 ? "allocated" : "available",
|
||||
index + 1,
|
||||
),
|
||||
);
|
||||
});
|
||||
@@ -656,8 +657,8 @@ export async function seedIfEmpty() {
|
||||
batch.push(
|
||||
db
|
||||
.prepare(
|
||||
`INSERT INTO contents (id, task_id, title, body, status)
|
||||
VALUES (?, ?, ?, ?, ?)`,
|
||||
`INSERT INTO contents (id, task_id, title, body, status, source_row)
|
||||
VALUES (?, ?, ?, ?, ?, ?)`,
|
||||
)
|
||||
.bind(
|
||||
`content-l-${index + 1}`,
|
||||
@@ -665,6 +666,7 @@ export async function seedIfEmpty() {
|
||||
title,
|
||||
"来自飞书内容表的完整笔记正文与素材说明。",
|
||||
index < 6 ? "allocated" : "available",
|
||||
index + 1,
|
||||
),
|
||||
);
|
||||
});
|
||||
@@ -898,7 +900,9 @@ export async function getDashboardData(ownerUserid?: string) {
|
||||
t.task_type AS task_type,
|
||||
t.platform AS task_platform,
|
||||
t.content_format AS content_format,
|
||||
t.due_at AS due_at
|
||||
t.due_at AS due_at,
|
||||
t.collection_days AS task_collection_days,
|
||||
t.collection_start_date AS task_collection_start_date
|
||||
FROM distributions d
|
||||
JOIN contents c ON c.id = d.content_id
|
||||
JOIN partners p ON p.id = d.partner_id
|
||||
|
||||
Reference in New Issue
Block a user