From e7dbde012511d8dd503248d665c5ebaac52b2dcf Mon Sep 17 00:00:00 2001 From: Trae AI Date: Fri, 27 Feb 2026 15:36:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=8F=98=E6=9B=B4=E5=90=8E?= =?UTF-8?q?=E6=95=B0=E4=B8=8D=E4=BC=9A=E7=AB=8B=E5=88=BB=E6=B8=B2=E6=9F=93?= =?UTF-8?q?=E5=BE=97=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/main/resources/static/index.html | 39 +++++++++++++++++------- 1 file changed, 28 insertions(+), 11 deletions(-) diff --git a/web/src/main/resources/static/index.html b/web/src/main/resources/static/index.html index f225aa4..7aab26d 100644 --- a/web/src/main/resources/static/index.html +++ b/web/src/main/resources/static/index.html @@ -6081,6 +6081,9 @@ if (data.success) { showAlert('跟进成功'); closeFollowupModal(); + // 清除缓存 + dataCache.personal = { all: null, filtered: {}, pages: {}, timestamp: 0 }; + dataCache.public = { pages: {}, timestamp: 0 }; // 重新加载数据 if (document.getElementById('personal').classList.contains('active')) { loadPersonalData(); @@ -6392,6 +6395,9 @@ if (data.success) { showAlert('操作成功'); closeJianDaoYunModal(); + // 清除缓存 + dataCache.personal = { all: null, filtered: {}, pages: {}, timestamp: 0 }; + dataCache.public = { pages: {}, timestamp: 0 }; // 重新加载数据 loadPersonalData(); } else { @@ -6429,6 +6435,9 @@ if (data.success) { showAlert('归还成功'); closeReturnModal(); + // 清除缓存 + dataCache.personal = { all: null, filtered: {}, pages: {}, timestamp: 0 }; + dataCache.public = { pages: {}, timestamp: 0 }; // 重新加载数据 loadPersonalData(); loadPublicData(); @@ -7027,6 +7036,9 @@ if (data.success) { showAlert('分配成功'); closeAssignModal(); + // 清除缓存 + dataCache.personal = { all: null, filtered: {}, pages: {}, timestamp: 0 }; + dataCache.public = { pages: {}, timestamp: 0 }; // 重新加载数据 loadPersonalData(); loadPublicData(); @@ -7556,18 +7568,23 @@ xhr.open('POST', url, true); xhr.setRequestHeader('Content-Type', 'application/json'); xhr.onreadystatechange = function() { - if (xhr.readyState == 4 && xhr.status == 200) { - var data = JSON.parse(xhr.responseText); - if (data.success) { - showAlert(`${action}成功`); - loadApplyList(); - // 更新申请状态角标 - checkApplyStatus(); - } else { - showAlert(`${action}失败: ` + data.message); - } + if (xhr.readyState == 4 && xhr.status == 200) { + var data = JSON.parse(xhr.responseText); + if (data.success) { + showAlert(`${action}成功`); + loadApplyList(); + // 清除缓存并重新加载数据 + dataCache.personal = { all: null, filtered: {}, pages: {}, timestamp: 0 }; + dataCache.public = { pages: {}, timestamp: 0 }; + loadPersonalData(); + loadPublicData(); + // 更新申请状态角标 + checkApplyStatus(); + } else { + showAlert(`${action}失败: ` + data.message); } - }; + } + }; xhr.send(JSON.stringify(params)); } }