qinbo
2021-11-29 a6a644e94b86e724407724f6b7bc49c1fd22a947
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;