qinbo
2021-11-05 d86c1f8ded5a5609e5bd3f7fb81a5251d47c47e5
widgetsTS/widget_summary/view.js
@@ -46,7 +46,7 @@
            }
        },
        error: function (request, textStatus) {
            haoutil.msg("系统后台错误,请联系管理员处理!");
        }
    });
@@ -76,7 +76,7 @@
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',
@@ -88,7 +88,7 @@
        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];
@@ -103,11 +103,13 @@
                        $("#top10Tb").append(_tr);
                    }
                }      
         }else{
            haoutil.msg("查询无数据,请更换查询条件!");
         }
        },
        error: function (request, textStatus) {
            haoutil.msg("系统后台错误,请联系管理员处理!");
        }
    });
}
@@ -133,5 +135,12 @@
    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);
}