wangzhibo
2021-09-30 ddbb4fa5b271d4eac49ee94f7455240176c36dc8
add color for top10 list
2个文件已修改
4 ■■■■■ 已修改文件
widgetsTS/widget_summary/view.js 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
widgetsTS/widget_summary/widget.js 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
widgetsTS/widget_summary/view.js
@@ -92,7 +92,7 @@
                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>" + topObj[current_selected_monitor_qindex] + "</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);
                }
widgetsTS/widget_summary/widget.js
@@ -33,7 +33,7 @@
        }
        locateAndHighlight(lon,lat){
            this.map.setCameraView({ y: lat, x: lon, z: 10000, heading: 5.5, pitch: -51.9, roll: 0 },{ duration: 5 });
            this.map.setCameraView({ y: lat, x: lon, z: 30000, heading: 3, pitch: -68, roll: 0 },{ duration: 3 });
        }