wangzhibo
2021-11-03 93bcde625013139211a0a0aa1ae6f806354b9a55
修改 top N
4个文件已修改
17 ■■■■■ 已修改文件
js/changable_params.js 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
widgetsTS/widget_summary/view.html 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
widgetsTS/widget_summary/view.js 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
widgetsTS/widget_summary/widget.js 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
js/changable_params.js
@@ -40,7 +40,7 @@
  , 100611: ['#00EE00', '#FF9F7F', '#FFD700', '#ff6600', '#ff0066', '#ff6666']
}
var default_system_params = { geoserver_url_predix: 'http://58.246.27.194:7011/', nodejs_url_predix: 'http://58.246.27.194:7012/', userid: 2, queryDataType: 'hour', weathercitycode: '101020100', wind360: 0, windSpeed: 10, is_single_taxi_replaying: false,summary_topN_count :30};
var default_system_params = { geoserver_url_predix: 'http://58.246.27.194:7011/', nodejs_url_predix: 'http://58.246.27.194:7012/', userid: 2, queryDataType: 'hour', weathercitycode: '101020100', wind360: 0, windSpeed: 10, is_single_taxi_replaying: false,summary_topN_count :50};
function bindPopupFunction(event) {
widgetsTS/widget_summary/view.html
@@ -82,7 +82,7 @@
    <div class="layui-row">
        <span class="layui-breadcrumb" lay-separator="|">
            <a href="#"></a>
            <a href="#" style="color: white!important;">监测Top30</a>
            <a href="#" style="color: white!important;"><span id="topN_name">监测Top50</span></a>
            <a href="#"></a>
        </span>
    </div>
widgetsTS/widget_summary/view.js
@@ -138,4 +138,9 @@
    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);
}
widgetsTS/widget_summary/widget.js
@@ -8,11 +8,11 @@
                type: 'window',
                url: 'view.html',
                windowOptions: {
                    width: 380,
                    width: 434,
                    position: {
                        top: 180,
                        top: 170,
                        left: 5,
                        bottom: 110
                        bottom: 100
                    },
                },
            }
@@ -51,6 +51,8 @@
        //每个窗口创建完成后调用
        winCreateOK(opt, result) {
            this.winPage = result;
            this.winPage.setTopNname(mars3d.global_variables.summary_topN_count);
        }
        //打开激活