From 304813656a055fab1148a5532ac2cb0ba94e340f Mon Sep 17 00:00:00 2001 From: Default User Date: Tue, 3 Feb 2026 10:04:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E9=98=B2=E5=BF=AB=E9=80=9F?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E7=9A=84=E4=BB=A3=E7=A0=81=EF=BC=8C=E5=85=81?= =?UTF-8?q?=E8=AE=B8=E7=94=A8=E6=88=B7=E5=BF=AB=E9=80=9F=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E7=AD=9B=E9=80=89=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Management.html | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/Management.html b/Management.html index 6da6f46..2bd2e19 100644 --- a/Management.html +++ b/Management.html @@ -747,7 +747,6 @@ let suppliesData = []; let usersData = []; let chartData = []; - let isLoading = false; // 防重复点击标志 // 缓存相关变量 let suppliesCache = {}; // 货源数据缓存 @@ -1271,12 +1270,6 @@ // 设置筛选条件 function setFilter(filter) { - // 防重复点击检查 - if (isLoading) { - console.log('数据正在加载中,请勿重复点击'); - return; - } - currentFilter = filter; // 重置当前卖家ID,确保切换时间筛选时显示所有货源 @@ -1296,12 +1289,6 @@ // 应用自定义时间筛选 function applyCustomFilter() { - // 防重复点击检查 - if (isLoading) { - console.log('数据正在加载中,请勿重复点击'); - return; - } - const startDate = startDateInput.value; const endDate = endDateInput.value; @@ -1414,15 +1401,7 @@ // 加载统计数据 async function loadStats(filter, startDate = '', endDate = '') { - // 防重复点击检查 - if (isLoading) { - console.log('数据正在加载中,请勿重复点击'); - return; - } - try { - isLoading = true; - // 构建API请求URL,包含自定义日期参数 let url = `/api/admin/stats/supplies?filter=${filter}`; if (filter === 'custom') { @@ -1490,8 +1469,6 @@ showAllSupplies(); } } - } finally { - isLoading = false; } }