opt
This commit is contained in:
parent
46ada21f38
commit
4f0abb304c
@ -102,9 +102,10 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th style="width: 5%;"><input type="checkbox" id="selectAll" /></th>
|
<th style="width: 5%;"><input type="checkbox" id="selectAll" /></th>
|
||||||
<th style="width: 55%;">文件名</th>
|
<th style="width: 40%;">文件名</th>
|
||||||
<th style="width: 20%;">上传时间</th>
|
<th style="width: 15%;">上传时间</th>
|
||||||
<th style="width: 20%;">有效期</th>
|
<th style="width: 15%;">有效期</th>
|
||||||
|
<th style="width: 15%;">检索状态</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="historyTableBody">
|
<tbody id="historyTableBody">
|
||||||
|
|||||||
@ -33,13 +33,16 @@ function renderTable(records) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
records.forEach((rec) => {
|
records.forEach((rec) => {
|
||||||
|
const statusText = rec.searchableStatus === 1 ? "可检索" : "不可检索";
|
||||||
const tr = document.createElement("tr");
|
const tr = document.createElement("tr");
|
||||||
tr.innerHTML = `
|
tr.innerHTML = `
|
||||||
<td><input type="checkbox" class="recordCheckbox" data-id="${rec.recordId}" /></td>
|
<td><input type="checkbox" class="recordCheckbox" data-id="${rec.recordId}" /></td>
|
||||||
<td><a href="${rec.url}" target="_blank">${rec.fileName}</a></td>
|
<td><a href="${rec.url}" target="_blank">${rec.fileName}</a></td>
|
||||||
<td>${rec.uploadTime}</td>
|
<td>${rec.uploadTime}</td>
|
||||||
<td>${rec.daysRemaining}</td>
|
<td>${rec.daysRemaining}</td>
|
||||||
|
<td>${statusText}</td>
|
||||||
`;
|
`;
|
||||||
tableBody.appendChild(tr);
|
tableBody.appendChild(tr);
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user