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); });