wangzhibo
2021-12-04 dbd6b0242bc8d652c8db9040d4a7a2dc092c403d
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;