| | |
| | | } |
| | | }, |
| | | error: function (request, textStatus) { |
| | | |
| | | haoutil.msg("系统后台错误,请联系管理员处理!"); |
| | | } |
| | | }); |
| | | |
| | |
| | | |
| | | function reloadData() { |
| | | $("#top10Tb").empty(); |
| | | var backend_url = thisWidget.nodejs_url_predix + "dataapi/Bdata?bid=get_" + current_selected_monitor_type + "_list&datatype=" + thisWidget.datatype + "&datatime=" + thisWidget.datatime + "&qindex=" + current_selected_monitor_qindex + "&pageno=1&pagesize=30"; |
| | | var backend_url = thisWidget.nodejs_url_predix + "dataapi/Bdata?bid=get_" + current_selected_monitor_type + "_list&datatype=" + thisWidget.datatype + "&datatime=" + thisWidget.datatime + "&qindex=" + current_selected_monitor_qindex + "&pageno=1&pagesize="+default_system_params.summary_topN_count; |
| | | //加入cntId |
| | | $.ajax({ |
| | | type: 'get', |
| | |
| | | success: function (data) { |
| | | var tableData = data.data.result; |
| | | //console.log(tableData); |
| | | if (tableData != null) { |
| | | if (tableData != null && tableData.length>0) { |
| | | for (var i = 0; length = tableData.length, i < length ; i++) { |
| | | var j = i + 1; |
| | | var topObj = tableData[i]; |
| | |
| | | $("#top10Tb").append(_tr); |
| | | } |
| | | } |
| | | }else{ |
| | | haoutil.msg("查询无数据,请更换查询条件!"); |
| | | } |
| | | |
| | | }, |
| | | error: function (request, textStatus) { |
| | | |
| | | haoutil.msg("系统后台错误,请联系管理员处理!"); |
| | | } |
| | | }); |
| | | } |
| | |
| | | if (lon && lon != 'undefined') { |
| | | thisWidget.locateAndHighlight(lon, lat); |
| | | } |
| | | thisWidget.showDetailedWindow({ "nodejs_url_predix": thisWidget.nodejs_url_predix, "datatype": thisWidget.datatype,"selected_qindex": current_selected_monitor_qindex,"datatime": thisWidget.datatime, "layerid": current_selected_monitor_type, "siteid": siteId }); |
| | | if (current_selected_monitor_type !=100500){ |
| | | thisWidget.showDetailedWindow({ "nodejs_url_predix": thisWidget.nodejs_url_predix, "datatype": thisWidget.datatype,"selected_qindex": current_selected_monitor_qindex,"datatime": thisWidget.datatime, "layerid": current_selected_monitor_type, "siteid": siteId }); |
| | | } |
| | | } |
| | | |
| | | function setTopNname(count){ |
| | | $("#topN_name").html("Top"+count); |
| | | |
| | | } |