| | |
| | | _framework.onSiderContainerShow(); |
| | | _framework.resize(); |
| | | _AppEvent = AppEvent; |
| | | //获取设备id |
| | | window.clientID = locationObj.clientID; |
| | | |
| | | _AppEvent.addAppEventListener("mapLoad", function(map){ |
| | | if (locationObj && locationObj != null) { |
| | |
| | | open: function () { |
| | | var that = this; |
| | | $.ajax({ |
| | | url: '/api/blade-jfpts/equipment/equipment/pages?current=1&size=1000', |
| | | url: '/api/blade-jfpts/equipment/equipment/pageDept?deviceName='+ window.clientID, |
| | | type: 'get', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | }, |
| | | |
| | | // 鼠标点击事件 |
| | | clickHand: function () { |
| | | }, |
| | | clickHand: function() {}, |
| | | |
| | | //聚合图层事件 |
| | | flareClusterLayer: function (datas) { |
| | |
| | | //var data = DataManager.getData(); |
| | | that.clusterLayer.addData(datas); |
| | | |
| | | } |
| | | , clearLayer: function () { |
| | | }, |
| | | clearLayer: function() { |
| | | var that = this; |
| | | that._map.removeLayer(that.clusterLayer); |
| | | that.clusterLayer = null; |
| | |
| | | }); |
| | | return Widget; |
| | | }); |
| | | |
| | |
| | | |
| | | for (var i = 0; i < data.records.length; i++) { |
| | | var date = new Date(data.records[i].heartbeat).getTime(); |
| | | if ((Dqdate - date) >= (60 * 60 * 24 * 1000)) { |
| | | if ((Dqdate - date) >= (150 * 1000)) { |
| | | data.records[i].dxzt = 0; |
| | | } else if (data.records[i].heartbeat == "") { |
| | | data.records[i].dxzt = 0; |
| | |
| | | this.showMap = true; |
| | | this.$nextTick(() => { |
| | | this.$refs.mapDiv.onload = () => { |
| | | window.frames[1].init("ClientManagement", { x: row.jd, y: row.wd }); |
| | | window.frames[1].init("ClientManagement", { x: row.jd, y: row.wd , clientID: row.deviceNumber}); |
| | | }; |
| | | }); |
| | | }, |