fix: 修复分页和缓存相关bug

- 前端: 移除无限滚动,改为一次性加载全部数据
- 前端: monthly-records接口添加limit=1000参数
- 前端: 修复edit-modal.js中loadListData调用参数
- 后端: 修复stats.js中getCached函数Promise处理
- 后端: 修复records.js各接口正确传递limit参数
- 后端: 修复partner-records SQL参数数量问题
- 统一版本号强制浏览器刷新缓存

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
lizhilun
2026-03-25 22:12:11 +08:00
co-authored by Claude Opus 4.6
parent df3a9daa65
commit 9126348d1b
8 changed files with 181 additions and 129 deletions
+6 -9
View File
@@ -74,17 +74,14 @@ function closeEditModal() {
function refreshCurrentList() {
const cat = document.getElementById('editCategory').value;
if (cat === '派单') {
dispatchPage = 1; dispatchHasMore = true;
document.getElementById('dispatchList').innerHTML = '';
loadDispatches();
initList('dispatchList');
loadListData('dispatchList');
} else if (cat === '接单') {
orderPage = 1; orderHasMore = true;
document.getElementById('orderList').innerHTML = '';
loadOrders();
initList('orderList');
loadListData('orderList');
} else {
otherIncomePage = 1; otherIncomeHasMore = true;
document.getElementById('otherIncomeList').innerHTML = '';
loadOtherIncome();
initList('otherIncomeList');
loadListData('otherIncomeList');
}
// 如果在日详情页也刷新
if (document.getElementById('dailyDetailPage').classList.contains('active') && currentDailyDate) {