为错误报告详情增加处理备注

在管理员详情弹窗提供备注编辑器

支持独立保存备注并保留状态更新流程
This commit is contained in:
2026-09-02 19:10:57 +08:00
parent 907bba9bf0
commit 3477248776
@@ -238,6 +238,21 @@ export function AdminErrorReportsPage({ token, onUnauthorized }: Props) {
{selected.userDescription ? (
<p>{selected.userDescription}</p>
) : null}
<label className="admin-detail-modal__note">
<textarea
value={selected.note ?? ''}
onChange={(event) =>
setSelected((current) =>
current ? { ...current, note: event.target.value } : current,
)
}
maxLength={2000}
rows={4}
placeholder="记录处理结论或后续跟进事项"
disabled={busy}
/>
</label>
<div className="admin-detail-modal__actions">
<select
value={selected.status}
@@ -250,6 +265,13 @@ export function AdminErrorReportsPage({ token, onUnauthorized }: Props) {
</option>
))}
</select>
<button
type="button"
onClick={() => void saveStatus(selected.status)}
disabled={busy}
>
</button>
<button
type="button"
onClick={() => void download(selected.batchId)}