| | |
| | | } |
| | | |
| | | 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=10"; |
| | | //加入cntId |
| | | $.ajax({ |
| | |
| | | success: function (data) { |
| | | var tableData = data.data.result; |
| | | //console.log(tableData); |
| | | $("#top10Tb").empty(); |
| | | if (tableData != null) { |
| | | for (var i = 0; i < tableData.length; i++) { |
| | | var j = i + 1; |
| | | var topObj = tableData[i]; |
| | | var _tr = "<tr _siteid='" + topObj.code + "' _lon='" + topObj.lon + "' _lat='" + topObj.lat + "' onclick='locateAndShowDetail(this)' onmouseover='over(this)' onmouseout='out(this)' ><td>" + j + "</td><td>" + topObj.code + "</td><td>" + topObj.name + "</td><td><font color='"+getLayerPointColorByQindexandValue(current_selected_monitor_type,current_selected_monitor_qindex,topObj[current_selected_monitor_qindex])+"'>" + topObj[current_selected_monitor_qindex] + "</font></td></tr>" |
| | | var _tr = "<tr _siteid='" + topObj.code + "' _lon='" + topObj.lon + "' _lat='" + topObj.lat + "' onclick='locateAndShowDetail(this)' onmouseover='over(this)' onmouseout='out(this)' ><td>" + j + "</td><td>" + topObj.code + "</td><td>" + topObj.name + "</td><td><font color='" + getLayerPointColorByQindexandValue(current_selected_monitor_type, current_selected_monitor_qindex, topObj[current_selected_monitor_qindex]) + "'>" + topObj[current_selected_monitor_qindex] + "</font></td></tr>" |
| | | $("#top10Tb").append(_tr); |
| | | |
| | | } |
| | |
| | | var lon = $(obj).attr("_lon"); |
| | | var lat = $(obj).attr("_lat"); |
| | | |
| | | if (lon && lon !='undefined'){ |
| | | thisWidget.locateAndHighlight(lon,lat); |
| | | if (lon && lon != 'undefined') { |
| | | thisWidget.locateAndHighlight(lon, lat); |
| | | } |
| | | thisWidget.showDetailedWindow({"layer":current_selected_monitor_type,"siteid":siteId}); |
| | | 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 }); |
| | | } |