wangzhibo
2021-11-03 ae6236bb37d2bedcae24994123e252167e158007
添加 道路指标查询
3个文件已修改
24 ■■■■■ 已修改文件
js/changable_params.js 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
widgetsTS/widget_summary/view.html 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
widgetsTS/widget_summary/view.js 12 ●●●●● 补丁 | 查看 | 原始文档 | 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 :50};
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};
function bindPopupFunction(event) {
widgetsTS/widget_summary/view.html
@@ -63,10 +63,18 @@
                <a id="href6" class="color_white" href="#">
                    <img src="img/count6.png" class="layui-nav-img">
                    <span class="layui-badge" id="count6">0</span>
                    <span class="padding_right_2_p" id="countName6">道路</span>
                    <span class="padding_right_2_p" id="countName6">道路路段</span>
                </a>
                <input class="codeInput" type="hidden" id="countCode6">
            </div>
            <div class="cnt_right_div cnt_btn">
                <a id="href7" class="color_white" href="#" _code="100500" _name="道路">
                    <img src="img/count6.png" class="layui-nav-img">
                    <span class="layui-badge" id="count7">8610</span>
                    <span class="padding_right_2_p" id="countName7">道路</span>
                </a>
                <input class="codeInput" type="hidden" id="countCode7">
            </div>
        </div>
    </div>
widgetsTS/widget_summary/view.js
@@ -46,7 +46,7 @@
            }
        },
        error: function (request, textStatus) {
            haoutil.msg("系统后台错误,请联系管理员处理!");
        }
    });
@@ -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,7 @@
    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 });
    }
}