From 3931c704761e5f51b9aed161560a3214058881c8 Mon Sep 17 00:00:00 2001
From: sgj <1442489573@qq.com>
Date: 星期六, 28 二月 2026 17:35:43 +0800
Subject: [PATCH] 抓拍页面,分页展示错误修复
---
fzzy-igdss-web/src/main/resources/templates/security/snapRecord.html | 2 +-
fzzy-igdss-web/src/main/resources/static/security/snap/snapRecord.js | 9 +++++++--
fzzy-igdss-web/src/main/resources/static/security/weighbridgeSnap/weighbridgeSnap.js | 9 +++++++--
fzzy-igdss-web/src/main/resources/templates/security/eventInfo.html | 2 +-
fzzy-igdss-web/src/main/resources/static/security/eventInfo/eventInfo.js | 9 +++++++--
fzzy-igdss-web/src/main/resources/templates/security/weighbridgeSnap.html | 2 +-
6 files changed, 24 insertions(+), 9 deletions(-)
diff --git a/fzzy-igdss-web/src/main/resources/static/security/eventInfo/eventInfo.js b/fzzy-igdss-web/src/main/resources/static/security/eventInfo/eventInfo.js
index c96f037..db9e275 100644
--- a/fzzy-igdss-web/src/main/resources/static/security/eventInfo/eventInfo.js
+++ b/fzzy-igdss-web/src/main/resources/static/security/eventInfo/eventInfo.js
@@ -134,6 +134,11 @@
}
}
});
+ var total = typeof totalItems !== 'undefined' ? totalItems : 0;
+ if(total == 0){
+ // 闅愯棌鍒嗛〉
+ $('#paginationContainer').hide();
+ }
}
/**
@@ -232,12 +237,12 @@
</div>
`;
// 闅愯棌鍒嗛〉
- $('.pagination-container').hide();
+ $('#paginationContainer').hide();
return;
}
// 鏄剧ず鍒嗛〉
- $('.pagination-container').show();
+ $('#paginationContainer').show();
// 鐢熸垚浜嬩欢鍗$墖
var html = '';
diff --git a/fzzy-igdss-web/src/main/resources/static/security/snap/snapRecord.js b/fzzy-igdss-web/src/main/resources/static/security/snap/snapRecord.js
index 3fd097b..1e7ba19 100644
--- a/fzzy-igdss-web/src/main/resources/static/security/snap/snapRecord.js
+++ b/fzzy-igdss-web/src/main/resources/static/security/snap/snapRecord.js
@@ -128,6 +128,11 @@
}
}
});
+ var total = typeof totalItems !== 'undefined' ? totalItems : 0;
+ if(total == 0){
+ // 闅愯棌鍒嗛〉
+ $('#paginationContainer').hide();
+ }
}
/**
@@ -226,12 +231,12 @@
</div>
`;
// 闅愯棌鍒嗛〉
- $('.pagination-container').hide();
+ $('#paginationContainer').hide();
return;
}
// 鏄剧ず鍒嗛〉
- $('.pagination-container').show();
+ $('#paginationContainer').show();
// 鐢熸垚鍥剧墖鍗$墖
var html = '';
diff --git a/fzzy-igdss-web/src/main/resources/static/security/weighbridgeSnap/weighbridgeSnap.js b/fzzy-igdss-web/src/main/resources/static/security/weighbridgeSnap/weighbridgeSnap.js
index 75a8956..6f0dddd 100644
--- a/fzzy-igdss-web/src/main/resources/static/security/weighbridgeSnap/weighbridgeSnap.js
+++ b/fzzy-igdss-web/src/main/resources/static/security/weighbridgeSnap/weighbridgeSnap.js
@@ -134,6 +134,11 @@
}
}
});
+ var total = typeof totalItems !== 'undefined' ? totalItems : 0;
+ if(total == 0){
+ // 闅愯棌鍒嗛〉
+ $('#paginationContainer').hide();
+ }
}
/**
@@ -232,12 +237,12 @@
</div>
`;
// 闅愯棌鍒嗛〉
- $('.pagination-container').hide();
+ $('#paginationContainer').hide();
return;
}
// 鏄剧ず鍒嗛〉
- $('.pagination-container').show();
+ $('#paginationContainer').show();
// 鐢熸垚浜嬩欢鍗$墖
var html = '';
diff --git a/fzzy-igdss-web/src/main/resources/templates/security/eventInfo.html b/fzzy-igdss-web/src/main/resources/templates/security/eventInfo.html
index 85ddda1..0ec3a25 100644
--- a/fzzy-igdss-web/src/main/resources/templates/security/eventInfo.html
+++ b/fzzy-igdss-web/src/main/resources/templates/security/eventInfo.html
@@ -115,7 +115,7 @@
</div>
<!-- 鍒嗛〉鎺т欢 -->
- <div class="pagination-container" th:if="${not #lists.isEmpty(eventInfoList)}">
+ <div class="pagination-container" id="paginationContainer">
<div id="pagination"></div>
</div>
</div>
diff --git a/fzzy-igdss-web/src/main/resources/templates/security/snapRecord.html b/fzzy-igdss-web/src/main/resources/templates/security/snapRecord.html
index f4cadf9..136c437 100644
--- a/fzzy-igdss-web/src/main/resources/templates/security/snapRecord.html
+++ b/fzzy-igdss-web/src/main/resources/templates/security/snapRecord.html
@@ -124,7 +124,7 @@
</div>
<!-- 鍒嗛〉鎺т欢 -->
- <div class="pagination-container" th:if="${not #lists.isEmpty(snapRecordList)}">
+ <div class="pagination-container" id="paginationContainer">
<div id="pagination"></div>
</div>
diff --git a/fzzy-igdss-web/src/main/resources/templates/security/weighbridgeSnap.html b/fzzy-igdss-web/src/main/resources/templates/security/weighbridgeSnap.html
index 9e03fd1..5482c6a 100644
--- a/fzzy-igdss-web/src/main/resources/templates/security/weighbridgeSnap.html
+++ b/fzzy-igdss-web/src/main/resources/templates/security/weighbridgeSnap.html
@@ -104,7 +104,7 @@
</div>
<!-- 鍒嗛〉鎺т欢 -->
- <div class="pagination-container" th:if="${not #lists.isEmpty(weighbridgeSnapList)}">
+ <div class="pagination-container" id="paginationContainer">
<div id="pagination"></div>
</div>
</div>
--
Gitblit v1.9.3