| | |
| | | current_selected_monitor_type = $(this).attr("_code"); |
| | | current_selected_monitor_name = $(this).attr("_name"); |
| | | changeQindexSelection(); |
| | | reloadData(); |
| | | throttling() |
| | | }); |
| | | |
| | | $("#selectedALL").click(function() { |
| | |
| | | |
| | | } |
| | | |
| | | // 节流,防止用户点击多次请求多次 |
| | | 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; |