| | |
| | | <script type="text/javascript" src="../../lib/jquery/jquery-2.1.4.min.js"></script> |
| | | <script type="text/javascript" src="../../lib/layui/layui.js"></script> |
| | | <link href="./view.css" rel="stylesheet" type="text/css" /> |
| | | <script type="text/javascript" src="../../js/changable_params.js"></script> |
| | | <script type="text/javascript" src="../../js/function_1001.js"></script> |
| | | |
| | | </head> |
| | |
| | | } |
| | | |
| | | 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; |
| | |
| | | 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 }); |
| | | } |
| | |
| | | (function (window, mars3d) { |
| | | //创建widget类,需要继承BaseWidget |
| | | class MyWidget extends mars3d.widget.BaseWidget { |
| | | //弹窗配置,2个弹窗的情形 |
| | | get view() { |
| | | return { |
| | | type: 'window', |
| | |
| | | } else { |
| | | mars3d.widget.activate({ |
| | | uri: "widgetsTS/widget_detail/widget.js", |
| | | disableOther: false, |
| | | params: params |
| | | }); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | //每个窗口创建完成后调用 |
| | | winCreateOK(opt, result) { |