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
+10 -15
View File
@@ -175,31 +175,26 @@ function showPage(pageId) {
}
if (pageId === 'orderListPage') {
document.getElementById('orderListTitle').textContent = `${currentYear}${currentMonth}月接单列表`;
orderPage = 1; orderHasMore = true;
document.getElementById('orderList').innerHTML = '';
loadOrders();
initList('orderList');
loadListData('orderList');
}
if (pageId === 'otherIncomeListPage') {
document.getElementById('otherIncomeListTitle').textContent = `${currentYear}${currentMonth}月红包及其他收入`;
otherIncomePage = 1; otherIncomeHasMore = true;
document.getElementById('otherIncomeList').innerHTML = '';
loadOtherIncome();
initList('otherIncomeList');
loadListData('otherIncomeList');
}
if (pageId === 'dispatchListPage') {
document.getElementById('dispatchListTitle').textContent = `${currentYear}${currentMonth}月派单列表`;
dispatchPage = 1; dispatchHasMore = true;
document.getElementById('dispatchList').innerHTML = '';
loadDispatches();
initList('dispatchList');
loadListData('dispatchList');
}
if (pageId === 'redEnvelopeListPage') {
redEnvelopePage = 1; redEnvelopeHasMore = true;
document.getElementById('redEnvelopeList').innerHTML = '';
loadRedEnvelope();
initList('redEnvelopeList');
loadListData('redEnvelopeList');
}
if (pageId === 'milkTeaListPage') {
milkTeaPage = 1; milkTeaHasMore = true;
document.getElementById('milkTeaList').innerHTML = '';
loadMilkTea();
initList('milkTeaList');
loadListData('milkTeaList');
}
}