feat(workbench): AI脚本诊断列表操作列表头居中(th-act)+已诊断行按钮改「更新」(按review_ai/compare done判定)(09-02)

This commit is contained in:
maogeigei committed 2026-09-02 14:19:09 +08:00
1 parent bceed5ba10
commit d8ad2ccf0a
2 files changed
+6 -2

No files matched your search

+4
View File
@@ -155,3 +155,7 @@
## 账号详情页抖音号可点击跳主页(14:15)
- renderAccountDetail info tab:抖音号值改为可点击链接 → 优先 `https://www.douyin.com/user/{sec_uid}`(account-videos 接口 account 已含 sec_uid,实测存在);无 sec_uid 兜底 `douyin.com/search/{抖音号}?type=user`;复用 app.js 全局 `a[data-ext]` 委托(window.open+拦截兜底复制),无需新增绑定
## AI脚本诊断列表操作列优化(14:18)
- 操作列表头 `<th>` → `<th class="th-act">`(居中,与数据列 .cell-act 对齐)
- 已诊断行(reviewOf 非空:review_ai 或 review_compare done)按钮文案「复盘」→「更新」,未诊断仍「复盘」;运行中仍「复盘运行中」disabled
@@ -905,7 +905,7 @@ async function renderReviews(view) {
<td class="cell-content">${row.title ? `<a class="link" data-open="${row.id}">${esc(row.title)}</a>` : '-'}</td>
<td>${fmtTime(row.created_time)}</td>
${dimsTd}
<td class="cell-act"><button class="btn btn-sm" data-review-row="${row.id}" ${row.review_running ? 'disabled' : ''}>${row.review_running ? '复盘运行中' : '复盘'}</button></td>
<td class="cell-act"><button class="btn btn-sm" data-review-row="${row.id}" ${row.review_running ? 'disabled' : ''}>${row.review_running ? '复盘运行中' : (rv ? '更新' : '复盘')}</button></td>
</tr>`;
}).join('');
@@ -914,7 +914,7 @@ async function renderReviews(view) {
<div class="page">
<div class="page-toolbar">${toolbarBack()}<span class="page-title">AI脚本诊断</span><span class="pager-info">按生成时间倒序 · 共 ${items.length} 条</span></div>
<div class="table-wrap"><table class="table">
<thead><tr><th>ID</th><th>账号</th><th>生成方式</th><th>脚本标题</th><th>生成时间</th>${DIMS.map((h) => `<th style="text-align:center">${h}</th>`).join('')}<th>操作</th></tr></thead>
<thead><tr><th>ID</th><th>账号</th><th>生成方式</th><th>脚本标题</th><th>生成时间</th>${DIMS.map((h) => `<th style="text-align:center">${h}</th>`).join('')}<th class="th-act">操作</th></tr></thead>
<tbody>${buildRows() || `<tr><td colspan="${5 + DIMS.length + 1}" class="empty">暂无 AI 写脚本(AI 创作的脚本会出现在这里)</td></tr>`}</tbody>
</table></div>
<div class="list-footer">${pagerHtml(items.length, page, PAGE_SIZE)}</div>