|  |  |  | 
|---|
|  |  |  | padding:0; | 
|---|
|  |  |  | list-style:none; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | a{ | 
|---|
|  |  |  | color: #1900c6; | 
|---|
|  |  |  | text-decoration: none; | 
|---|
|  |  |  | cursor: pointer; | 
|---|
|  |  |  | font-size: 14px; | 
|---|
|  |  |  | font-weight: 300; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | a:hover { | 
|---|
|  |  |  | text-decoration: underline; | 
|---|
|  |  |  | color: #e60012; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | #popup_box { | 
|---|
|  |  |  | top: 75px; | 
|---|
|  |  |  | left: 20px; | 
|---|
|  |  |  | 
|---|
|  |  |  | window["listView"] = listView; | 
|---|
|  |  |  | //展示设备列表,click事件触发 | 
|---|
|  |  |  | function showEqus(obj) { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | var params = moralMap['params']; | 
|---|
|  |  |  | var mpoint = obj.currentTarget.getOption(); | 
|---|
|  |  |  | $("#searchParam").val(mpoint['name']); | 
|---|
|  |  |  | var url = 'get-devices-by-mid-oid?mpId=' + mpoint['id'] + "&orgId=" + params['orgId']; | 
|---|
|  |  |  | listView.load(url); | 
|---|
|  |  |  | moralMap.showPopupbox("#popup_box"); | 
|---|
|  |  |  | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | var equ = { | 
|---|
|  |  |  | methodName : 'showDeviceMonitor', | 
|---|
|  |  |  | name: _obj['name'], | 
|---|
|  |  |  | mac: (_obj['mac']).toLowerCase(), | 
|---|
|  |  |  | longitude: _obj['longitude'], | 
|---|
|  |  |  | 
|---|
|  |  |  | if(window["console"]!=undefined){ | 
|---|
|  |  |  | console.log(equStr); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if(window['external']&&window['external']['showMonitorInfo']){ | 
|---|
|  |  |  | if(!!window['external']&&window['external']['callWin']){ | 
|---|
|  |  |  | window['external'].callWin(equStr); | 
|---|
|  |  |  | }else | 
|---|
|  |  |  | if(!!window['external']&&window['external']['showMonitorInfo']){ | 
|---|
|  |  |  | window['external'].showMonitorInfo(equStr); | 
|---|
|  |  |  | }else{ | 
|---|
|  |  |  | alert(equStr); | 
|---|
|  |  |  | 
|---|
|  |  |  | var url = 'get-devices-for-popup?name=' + param + "&orgId=" + params['orgId']; | 
|---|
|  |  |  | listView.load(url); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | ) | 
|---|
|  |  |  | ); | 
|---|
|  |  |  | $("#searchParam").keydown(function (event) { | 
|---|
|  |  |  | if(event.keyCode ==13) { | 
|---|
|  |  |  | $("#searchBtn").trigger("click"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | //跳转表单页面按钮事件 | 
|---|
|  |  |  | $(".charts_btn").click( | 
|---|
|  |  |  | function (e) { | 
|---|
|  |  |  | if(window['external']&&window['external']['showChartInfo']){ | 
|---|
|  |  |  | var obj = {}; | 
|---|
|  |  |  | obj['methodName'] = 'showChart'; | 
|---|
|  |  |  | var objStr = JSON.stringify(obj); | 
|---|
|  |  |  | if(!!window['external']&&window['external']['callWin']){ | 
|---|
|  |  |  | window['external'].callWin(objStr); | 
|---|
|  |  |  | }else | 
|---|
|  |  |  | if(!!window['external']&&window['external']['showChartInfo']){ | 
|---|
|  |  |  | window['external'].showChartInfo(""); | 
|---|
|  |  |  | }else{ | 
|---|
|  |  |  | alert(""); | 
|---|
|  |  |  | alert(objStr); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | ); | 
|---|