From 4f0abb304cfa00770b08bb203dcc1c45d3c17fba Mon Sep 17 00:00:00 2001 From: luke Date: Fri, 20 Jun 2025 17:21:09 +0800 Subject: [PATCH] opt --- pages/upload-history.html | 7 ++++--- scripts/upload-history.js | 3 +++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/pages/upload-history.html b/pages/upload-history.html index 164de1e..5523462 100644 --- a/pages/upload-history.html +++ b/pages/upload-history.html @@ -102,9 +102,10 @@ - 文件名 - 上传时间 - 有效期 + 文件名 + 上传时间 + 有效期 + 检索状态 diff --git a/scripts/upload-history.js b/scripts/upload-history.js index 56ed647..e73c3fd 100644 --- a/scripts/upload-history.js +++ b/scripts/upload-history.js @@ -33,13 +33,16 @@ function renderTable(records) { return; } + records.forEach((rec) => { + const statusText = rec.searchableStatus === 1 ? "可检索" : "不可检索"; const tr = document.createElement("tr"); tr.innerHTML = ` ${rec.fileName} ${rec.uploadTime} ${rec.daysRemaining} + ${statusText} `; tableBody.appendChild(tr); });