| | |
| | | } |
| | | |
| | | function mapLoad(map) { |
| | | if(locationObj) { |
| | | map.centerAndZoom(new esri.geometry.Point(locationObj.x,locationObj.y, new esri.SpatialReference({ wkid: 4326 })), 14); |
| | | } |
| | | // if(locationObj) { |
| | | // map.centerAndZoom(new esri.geometry.Point(locationObj.x,locationObj.y, new esri.SpatialReference({ wkid: 4326 })), 14); |
| | | // } |
| | | } |
| | | |
| | | </script> |
| | |
| | | open: function () { |
| | | var that = this; |
| | | $.ajax({ |
| | | url: 'http://192.168.0.107:1888/api/blade-jfpts/alarm/alarm/page?current=1&size=10', |
| | | url: '/api/blade-jfpts/alarm/alarm/page?current=1&size=9999', |
| | | type: 'get', |
| | | dataType: 'JSON', |
| | | success: function (data) { |
| | |
| | | that.clusterLayer.addData(datas); |
| | | |
| | | |
| | | if(window.locationObj) { |
| | | that._map.centerAndZoom(new esri.geometry.Point(window.locationObj.x,window.locationObj.y, new esri.SpatialReference({ wkid: 4326 })), 14); |
| | | } |
| | | |
| | | } |
| | | , clearLayer: function () { |
| | | var that = this; |
| | |
| | | <iframe |
| | | id="mapDiv" |
| | | ref="mapDiv" |
| | | src=" http://192.168.0.107:1888/map/index.html?openid=ClientManagement" |
| | | src="/map/index.html?openid=ClientManagement" |
| | | frameborder="0" |
| | | width="100%" |
| | | height="100%" |
| | |
| | | } |
| | | }, |
| | | handleStart(row) { |
| | | var arr = []; |
| | | this.$store.state.tags.tagList.forEach(item => { |
| | | if (item.label != "视频") { |
| | | arr.push(item); |
| | | } |
| | | }); |
| | | this.$store.state.tags.tagList = arr; |
| | | this.$router.push({ |
| | | path: `/real/video/${row.channelNumber}/${row.serialNumber}` |
| | | }); |
| | | }, |
| | | handleHistory(row) { |
| | | var arr = []; |
| | | this.$store.state.tags.tagList.forEach(item => { |
| | | if (item.label != "设备历史") { |
| | | arr.push(item); |
| | | } |
| | | }); |
| | | this.$store.state.tags.tagList = arr; |
| | | this.$router.push({path: `/real/history/${row.deviceNumber}`}); |
| | | }, |
| | | handleMap(row) { |
| | | this.showMap = true; |
| | | debugger |
| | | this.$nextTick(() => { |
| | | this.$refs.mapDiv.onload = () => { |
| | | window.frames[0].locationObj = {x: row.jd, y: row.wd}; |