From dbd6b0242bc8d652c8db9040d4a7a2dc092c403d Mon Sep 17 00:00:00 2001
From: wangzhibo <wangzhibo@shsening.com>
Date: 星期六, 04 十二月 2021 14:59:46 +0800
Subject: [PATCH] Merge branch 'master' of http://www.shsening.com:10000/r/template/shanghai

---
 widgetsTS/widget_summary/view.js |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/widgetsTS/widget_summary/view.js b/widgetsTS/widget_summary/view.js
index c2d262f..f3d03c2 100644
--- a/widgetsTS/widget_summary/view.js
+++ b/widgetsTS/widget_summary/view.js
@@ -19,7 +19,7 @@
         current_selected_monitor_type = $(this).attr("_code");
         current_selected_monitor_name = $(this).attr("_name");
         changeQindexSelection();
-        reloadData();
+        throttling()
     });
 
     $("#selectedALL").click(function() { 
@@ -37,6 +37,16 @@
 
 }
 
+// 鑺傛祦锛岄槻姝㈢敤鎴风偣鍑诲娆¤姹傚娆�
+let timeout;
+//闇�瑕佸畾涔夊湪鏂规硶澶�
+function throttling(){
+	//鍏堟竻鐞�
+	clearTimeout(timeout)	
+	timeout = setTimeout(() => {
+		reloadData()
+	}, 500)
+}
 //鍔犺浇count
 function loadCountByUserid() {
     var backend_url = thisWidget.nodejs_url_predix + "dataapi/Bdata?bid=get_all_count_by_id&userid=" + thisWidget.userid;

--
Gitblit v1.9.1