index.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <!--<template>-->
  2. <!-- <div ref="content">-->
  3. <!-- <a-card :bordered="false">-->
  4. <!-- <a-page-header style="border-bottom: 1px solid rgb(235, 237, 240); padding: 8px 16px" title="" />-->
  5. <!-- <split splitHeight="100%" leftWidth="220">-->
  6. <!-- <template slot="paneL">-->
  7. <!-- &lt;!&ndash; 部门树 &ndash;&gt;-->
  8. <!-- <ship-tree-->
  9. <!-- ref="shipTree"-->
  10. <!-- :shipOptions="shipOptions"-->
  11. <!-- @select="clickNode"-->
  12. <!-- />-->
  13. <!-- </template>-->
  14. <!-- <template slot="paneR">-->
  15. <!-- &lt;!&ndash; 条件搜索 &ndash;&gt;-->
  16. <!-- <div class="table-page-search-wrapper">-->
  17. <!-- <h2>{{ selShipData.shipNanme }}-实时位置</h2>-->
  18. <!-- </div>-->
  19. <!-- <a-divider />-->
  20. <!-- <iframe-->
  21. <!-- frameborder="0"-->
  22. <!-- id="locationIframe"-->
  23. <!-- onload="load()"-->
  24. <!-- width="100%"-->
  25. <!-- style="border: none; height: calc(100% - 65px)"-->
  26. <!-- name="ha-main-window"-->
  27. <!-- 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>-->
  28. <!-- </template>-->
  29. <!-- </split>-->
  30. <!-- </a-card>-->
  31. <!-- </div>-->
  32. <!--</template>-->
  33. <!--<script>-->
  34. <!--import { listAllSysShip } from '@/api/system/sysShip'-->
  35. <!--import { location } from '@/api/gps/gps'-->
  36. <!--import ShipTree from './modules/ShipTree'-->
  37. <!--import Split from '@/components/pt/split/Index'-->
  38. <!--// document.domain = 'www.18gps.net'-->
  39. <!--function load() {-->
  40. <!-- iframe.contentWindow.postMessage('定位', 'http://localhost')-->
  41. <!-- window.onmessage = e => {-->
  42. <!-- console.log(e.data)-->
  43. <!-- }-->
  44. <!-- }-->
  45. <!--export default {-->
  46. <!-- name: 'User',-->
  47. <!-- components: {-->
  48. <!-- Split,-->
  49. <!-- ShipTree-->
  50. <!-- },-->
  51. <!-- data() {-->
  52. <!-- return {-->
  53. <!-- selShipData: {},-->
  54. <!-- shipOptions: [],-->
  55. <!-- gpsLocalUrl: ''-->
  56. <!-- }-->
  57. <!-- },-->
  58. <!-- filters: {},-->
  59. <!-- created() {-->
  60. <!-- this.getTreeselect()-->
  61. <!-- },-->
  62. <!-- computed: {},-->
  63. <!-- watch: {},-->
  64. <!-- methods: {-->
  65. <!-- /** 查询部门下拉树结构 */-->
  66. <!-- getTreeselect() {-->
  67. <!-- listAllSysShip().then((response) => {-->
  68. <!-- this.shipOptions = response.data-->
  69. <!-- this.selShipData = this.shipOptions[0]-->
  70. <!-- this.getLocation()-->
  71. <!-- })-->
  72. <!-- },-->
  73. <!-- getLocation() {-->
  74. <!-- location({ shipId: this.selShipData.id }).then(res => {-->
  75. <!-- this.gpsLocalUrl = res.data-->
  76. <!-- // const data = {-->
  77. <!-- // method: 'Follow',-->
  78. <!-- // macid: '19171476417',-->
  79. <!-- // mapType: 'QQ',-->
  80. <!-- // mds: 'f685207ebaab46448689c92503043a3d',-->
  81. <!-- // url: 'http://www.18gps.net/'-->
  82. <!-- // }-->
  83. <!-- // document.getElementById('locationIframe').contentWindow.postMessage(data, '*')-->
  84. <!-- })-->
  85. <!-- },-->
  86. <!-- clickNode(node) {-->
  87. <!-- var selectItem = node.$options.propsData.dataRef-->
  88. <!-- if (this.selShipData.id !== selectItem.id) {-->
  89. <!-- this.selShipData = node.$options.propsData.dataRef-->
  90. <!-- this.getLocation()-->
  91. <!-- }-->
  92. <!-- }-->
  93. <!-- }-->
  94. <!--}-->
  95. <!--</script>-->
  96. <!--<style lang="less" scoped>-->
  97. <!--.ant-divider-horizontal {-->
  98. <!-- margin: 0;-->
  99. <!-- background: rgb(235, 237, 240);-->
  100. <!--}-->
  101. <!--.demo-split {-->
  102. <!-- height: 200px;-->
  103. <!--}-->
  104. <!--.demo-split-pane {-->
  105. <!-- padding: 10px;-->
  106. <!--}-->
  107. <!--.ant-avatar {-->
  108. <!-- font-size: 12px;-->
  109. <!-- border-radius: 4px;-->
  110. <!-- vertical-align: middle;-->
  111. <!-- margin-right: 8px;-->
  112. <!--}-->
  113. <!--</style>-->