123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- <!--<template>-->
- <!-- <div ref="content">-->
- <!-- <a-card :bordered="false">-->
- <!-- <a-page-header style="border-bottom: 1px solid rgb(235, 237, 240); padding: 8px 16px" title="" />-->
- <!-- <split splitHeight="100%" leftWidth="220">-->
- <!-- <template slot="paneL">-->
- <!-- <!– 部门树 –>-->
- <!-- <ship-tree-->
- <!-- ref="shipTree"-->
- <!-- :shipOptions="shipOptions"-->
- <!-- @select="clickNode"-->
- <!-- />-->
- <!-- </template>-->
- <!-- <template slot="paneR">-->
- <!-- <!– 条件搜索 –>-->
- <!-- <div class="table-page-search-wrapper">-->
- <!-- <h2>{{ selShipData.shipNanme }}-实时位置</h2>-->
- <!-- </div>-->
- <!-- <a-divider />-->
- <!-- <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>-->
- <!-- </div>-->
- <!--</template>-->
- <!--<script>-->
- <!--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: {-->
- <!-- Split,-->
- <!-- ShipTree-->
- <!-- },-->
- <!-- data() {-->
- <!-- return {-->
- <!-- selShipData: {},-->
- <!-- shipOptions: [],-->
- <!-- gpsLocalUrl: ''-->
- <!-- }-->
- <!-- },-->
- <!-- filters: {},-->
- <!-- created() {-->
- <!-- this.getTreeselect()-->
- <!-- },-->
- <!-- computed: {},-->
- <!-- watch: {},-->
- <!-- methods: {-->
- <!-- /** 查询部门下拉树结构 */-->
- <!-- getTreeselect() {-->
- <!-- listAllSysShip().then((response) => {-->
- <!-- this.shipOptions = response.data-->
- <!-- this.selShipData = this.shipOptions[0]-->
- <!-- this.getLocation()-->
- <!-- })-->
- <!-- },-->
- <!-- 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) {-->
- <!-- var selectItem = node.$options.propsData.dataRef-->
- <!-- if (this.selShipData.id !== selectItem.id) {-->
- <!-- this.selShipData = node.$options.propsData.dataRef-->
- <!-- this.getLocation()-->
- <!-- }-->
- <!-- }-->
- <!-- }-->
- <!--}-->
- <!--</script>-->
- <!--<style lang="less" scoped>-->
- <!--.ant-divider-horizontal {-->
- <!-- margin: 0;-->
- <!-- background: rgb(235, 237, 240);-->
- <!--}-->
- <!--.demo-split {-->
- <!-- height: 200px;-->
- <!--}-->
- <!--.demo-split-pane {-->
- <!-- padding: 10px;-->
- <!--}-->
- <!--.ant-avatar {-->
- <!-- font-size: 12px;-->
- <!-- border-radius: 4px;-->
- <!-- vertical-align: middle;-->
- <!-- margin-right: 8px;-->
- <!--}-->
- <!--</style>-->
|