From 0138ffceb47ab3c1949b49c1b54b4d1c86b63453 Mon Sep 17 00:00:00 2001 From: BrunoGao Date: Tue, 9 Sep 2025 13:53:27 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=B0=86bigscreen=5Fmain.html=E4=B8=AD?= =?UTF-8?q?=E7=9A=84customerId=E8=AE=BE=E7=BD=AE=E4=B8=BA=E5=85=A8?= =?UTF-8?q?=E5=B1=80=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 主要改进: - 添加全局变量GLOBAL_CUSTOMER_ID,默认值为1939964806110937090 - 创建统一的apiCall函数自动为所有API调用添加customerId参数 - 替换所有fetch调用使用apiCall函数,避免重复传递customerId - 简化函数参数,移除需要手动传递customerId的情况 - 自动设置页面租户ID显示 涉及修改: - 新增apiCall()函数统一处理API调用 - 修改loadHealthScoreChart()等函数不再需要customerId参数 - 更新initializeMap函数使用全局customerId - 替换20+个fetch调用使用新的apiCall函数 - 优化代码结构,减少重复代码 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .../bigScreen/templates/bigscreen_main.html | 157 ++++++++---------- 1 file changed, 65 insertions(+), 92 deletions(-) diff --git a/ljwx-bigscreen/bigscreen/bigScreen/templates/bigscreen_main.html b/ljwx-bigscreen/bigscreen/bigScreen/templates/bigscreen_main.html index df3f9b6..ebad12b 100644 --- a/ljwx-bigscreen/bigscreen/bigScreen/templates/bigscreen_main.html +++ b/ljwx-bigscreen/bigscreen/bigScreen/templates/bigscreen_main.html @@ -2685,7 +2685,7 @@
{{ COMPANY_NAME }}
- ID: {{ customerId }} + ID: • 运行中
@@ -2898,9 +2898,39 @@