mirror of
https://github.com/Ed1s0nZ/CyberStrikeAI.git
synced 2026-09-30 13:09:40 +02:00
Add files via upload
This commit is contained in:
1 file changed
+9
@@ -893,6 +893,11 @@ function renderBatchQueues() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 确保分页控件可见(重置之前可能设置的 display: none)
|
||||||
|
if (pagination) {
|
||||||
|
pagination.style.display = '';
|
||||||
|
}
|
||||||
|
|
||||||
list.innerHTML = queues.map(queue => {
|
list.innerHTML = queues.map(queue => {
|
||||||
const statusMap = {
|
const statusMap = {
|
||||||
'pending': { text: '待执行', class: 'batch-queue-status-pending' },
|
'pending': { text: '待执行', class: 'batch-queue-status-pending' },
|
||||||
@@ -973,9 +978,13 @@ function renderBatchQueuesPagination() {
|
|||||||
// 如果没有数据,不显示分页控件
|
// 如果没有数据,不显示分页控件
|
||||||
if (total === 0) {
|
if (total === 0) {
|
||||||
paginationContainer.innerHTML = '';
|
paginationContainer.innerHTML = '';
|
||||||
|
paginationContainer.style.display = 'none';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 确保分页控件可见
|
||||||
|
paginationContainer.style.display = '';
|
||||||
|
|
||||||
// 即使只有一页,也显示分页信息(总数和每页条数选择器)
|
// 即使只有一页,也显示分页信息(总数和每页条数选择器)
|
||||||
|
|
||||||
// 计算显示的页码范围
|
// 计算显示的页码范围
|
||||||
|
|||||||
Reference in new issue
Block a user