|  | @@ -17,7 +17,14 @@
 | 
	
		
			
				|  |  |              <h2>{{ selShipData.shipNanme }}-实时位置</h2>
 | 
	
		
			
				|  |  |            </div>
 | 
	
		
			
				|  |  |            <a-divider />
 | 
	
		
			
				|  |  | -          <iframe width="100%" style="border: none; height: calc(100% - 65px)" :src="gpsLocalUrl"></iframe>
 | 
	
		
			
				|  |  | +          <iframe
 | 
	
		
			
				|  |  | +            frameborder="0"
 | 
	
		
			
				|  |  | +            id="locationIframe"
 | 
	
		
			
				|  |  | +            onload="load()"
 | 
	
		
			
				|  |  | +            width="100%"
 | 
	
		
			
				|  |  | +            style="border: none; height: calc(100% - 65px)"
 | 
	
		
			
				|  |  | +            name="ha-main-window"
 | 
	
		
			
				|  |  | +            src="http://localhost//user/tracking.html?lang=cn&loginUrl=&requestSource=web&custname=BBZ-01476417&school_id=e63b1e42-172d-42d6-872c-3bc66bbc6e2f&mapType=QQ&custid=e63b1e42-172d-42d6-872c-3bc66bbc6e2f&mds=f685207ebaab46448689c92503043a3d&objectid=f9e21a32-dd6b-4c3d-89a8-227677c91104&r=-1710497635" ></iframe>
 | 
	
		
			
				|  |  |          </template>
 | 
	
		
			
				|  |  |        </split>
 | 
	
		
			
				|  |  |      </a-card>
 | 
	
	
		
			
				|  | @@ -29,6 +36,13 @@ import { listAllSysShip } from '@/api/system/sysShip'
 | 
	
		
			
				|  |  |  import { location } from '@/api/gps/gps'
 | 
	
		
			
				|  |  |  import ShipTree from './modules/ShipTree'
 | 
	
		
			
				|  |  |  import Split from '@/components/pt/split/Index'
 | 
	
		
			
				|  |  | +// document.domain = 'www.18gps.net'
 | 
	
		
			
				|  |  | +function load() {
 | 
	
		
			
				|  |  | +    iframe.contentWindow.postMessage('定位', 'http://localhost')
 | 
	
		
			
				|  |  | +    window.onmessage = e => {
 | 
	
		
			
				|  |  | +      console.log(e.data)
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +  }
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  |    name: 'User',
 | 
	
		
			
				|  |  |    components: {
 | 
	
	
		
			
				|  | @@ -60,6 +74,14 @@ export default {
 | 
	
		
			
				|  |  |      getLocation() {
 | 
	
		
			
				|  |  |        location({ shipId: this.selShipData.id }).then(res => {
 | 
	
		
			
				|  |  |          this.gpsLocalUrl = res.data
 | 
	
		
			
				|  |  | +        // const data = {
 | 
	
		
			
				|  |  | +        //   method: 'Follow',
 | 
	
		
			
				|  |  | +        //   macid: '19171476417',
 | 
	
		
			
				|  |  | +        //   mapType: 'QQ',
 | 
	
		
			
				|  |  | +        //   mds: 'f685207ebaab46448689c92503043a3d',
 | 
	
		
			
				|  |  | +        //   url: 'http://www.18gps.net/'
 | 
	
		
			
				|  |  | +        // }
 | 
	
		
			
				|  |  | +        // document.getElementById('locationIframe').contentWindow.postMessage(data, '*')
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      clickNode(node) {
 |