|
|
@ -2,7 +2,7 @@ |
|
|
|
* @Author: Fuyuu 1805498209@qq.com |
|
|
|
* @Date: 2024-01-05 14:18:33 |
|
|
|
* @LastEditors: Fuyuu 1805498209@qq.com |
|
|
|
* @LastEditTime: 2024-01-05 16:45:48 |
|
|
|
* @LastEditTime: 2024-01-08 17:41:07 |
|
|
|
* @FilePath: \dt-admin-pc-v2\src\components\earthMap\AISInfoWindow.vue |
|
|
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE |
|
|
|
--> |
|
|
@ -13,8 +13,8 @@ |
|
|
|
:width="600" |
|
|
|
:minWidth="600" |
|
|
|
:height="380" |
|
|
|
:left="650" |
|
|
|
:top="240" |
|
|
|
:left="80" |
|
|
|
:top="70" |
|
|
|
@cancel="cancel" |
|
|
|
:floatright="false" |
|
|
|
:showCancelButton="true" |
|
|
@ -25,71 +25,71 @@ |
|
|
|
<div class="ais_content"> |
|
|
|
<div class="content_item"> |
|
|
|
<div class="item_title">船名:</div> |
|
|
|
<div class="item_content">赛尔号101</div> |
|
|
|
<div class="item_content">顺宏海1026</div> |
|
|
|
</div> |
|
|
|
<div class="content_item"> |
|
|
|
<div class="item_title">MMSI:</div> |
|
|
|
<div class="item_content">413247920</div> |
|
|
|
<div class="item_content">413495860</div> |
|
|
|
</div> |
|
|
|
<div class="content_item"> |
|
|
|
<div class="item_title">船首向:</div> |
|
|
|
<div class="item_content">123456</div> |
|
|
|
<div class="item_content">未知</div> |
|
|
|
</div> |
|
|
|
<div class="content_item"> |
|
|
|
<div class="item_title">呼号:</div> |
|
|
|
<div class="item_content">123456</div> |
|
|
|
<div class="item_content">未知</div> |
|
|
|
</div> |
|
|
|
<div class="content_item"> |
|
|
|
<div class="item_title">航迹向:</div> |
|
|
|
<div class="item_content">123456</div> |
|
|
|
<div class="item_content">未知</div> |
|
|
|
</div> |
|
|
|
<div class="content_item"> |
|
|
|
<div class="item_title">IMO:</div> |
|
|
|
<div class="item_content">123456</div> |
|
|
|
<div class="item_content">458876</div> |
|
|
|
</div> |
|
|
|
<div class="content_item"> |
|
|
|
<div class="item_title">航速:</div> |
|
|
|
<div class="item_content">123456</div> |
|
|
|
<div class="item_content">0.2节</div> |
|
|
|
</div> |
|
|
|
<div class="content_item"> |
|
|
|
<div class="item_title">经度:</div> |
|
|
|
<div class="item_content">123456</div> |
|
|
|
<div class="item_content">113-26.578E</div> |
|
|
|
</div> |
|
|
|
<div class="content_item"> |
|
|
|
<div class="item_title">纬度:</div> |
|
|
|
<div class="item_content">123456</div> |
|
|
|
<div class="item_content">22-08.082N</div> |
|
|
|
</div> |
|
|
|
<div class="content_item"> |
|
|
|
<div class="item_title">状态:</div> |
|
|
|
<div class="item_content">123456</div> |
|
|
|
<div class="item_content">锚泊</div> |
|
|
|
</div> |
|
|
|
<div class="content_item"> |
|
|
|
<div class="item_title">类型:</div> |
|
|
|
<div class="item_content">123456</div> |
|
|
|
<div class="item_content">货船</div> |
|
|
|
</div> |
|
|
|
<div class="content_item"> |
|
|
|
<div class="item_title">船长/宽:</div> |
|
|
|
<div class="item_content">123456</div> |
|
|
|
<div class="item_content">89米/20米</div> |
|
|
|
</div> |
|
|
|
<div class="content_item"> |
|
|
|
<div class="item_title">目的地:</div> |
|
|
|
<div class="item_content">123456</div> |
|
|
|
<div class="item_content">JIANGMEN,CN</div> |
|
|
|
</div> |
|
|
|
<div class="content_item"> |
|
|
|
<div class="item_title">吃水:</div> |
|
|
|
<div class="item_content">123456</div> |
|
|
|
<div class="item_content">3.8米</div> |
|
|
|
</div> |
|
|
|
<div class="content_item"> |
|
|
|
<div class="item_title">国籍:</div> |
|
|
|
<div class="item_content">123456</div> |
|
|
|
<div class="item_content">CN</div> |
|
|
|
</div> |
|
|
|
<div class="content_item"> |
|
|
|
<div class="item_title">预到时间:</div> |
|
|
|
<div class="item_content">123456</div> |
|
|
|
<div class="item_content">2024-01-08 17:00:00</div> |
|
|
|
</div> |
|
|
|
<div class="content_item"> |
|
|
|
<div class="item_title">更新时间:</div> |
|
|
|
<div class="item_content">123456</div> |
|
|
|
<div class="item_content"> 2024-01-08 14:40:11</div> |
|
|
|
</div> |
|
|
|
<!-- 轨迹显示 --> |
|
|
|
<div class="content_item"> |
|
|
@ -102,8 +102,11 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script lang="ts"> |
|
|
|
import { defineComponent, getCurrentInstance, ref } from 'vue'; |
|
|
|
import { defineComponent, getCurrentInstance, ref, onMounted, nextTick } from 'vue'; |
|
|
|
import Window from '@/components/earthMap/components/Window.vue'; |
|
|
|
import { useEarthMapStore } from '/@/store/modules/earthMap'; |
|
|
|
// 暂存store |
|
|
|
const store = useEarthMapStore(); |
|
|
|
export default defineComponent({ |
|
|
|
name: 'AISInfoWindow', |
|
|
|
props: { |
|
|
@ -111,6 +114,10 @@ |
|
|
|
type: String, |
|
|
|
default: 'AIS信息', |
|
|
|
}, |
|
|
|
ship_guid: { |
|
|
|
type: String, |
|
|
|
default: '', |
|
|
|
}, |
|
|
|
}, |
|
|
|
components: { |
|
|
|
Window, |
|
|
@ -118,6 +125,10 @@ |
|
|
|
setup(props, context) { |
|
|
|
const { proxy }: any = getCurrentInstance(); |
|
|
|
const checked = ref(false); |
|
|
|
// 船只数据列表 |
|
|
|
let shipDataList: any = []; |
|
|
|
// 获取store中的船只数据列表 |
|
|
|
shipDataList = store.shipDataList; |
|
|
|
// 关闭弹窗 |
|
|
|
function cancel() { |
|
|
|
proxy.$parent.AISInfoWindowShow = false; |
|
|
@ -125,7 +136,19 @@ |
|
|
|
// 打开或关闭轨迹 |
|
|
|
function changeTrack(e) { |
|
|
|
checked.value = e; |
|
|
|
// 当前选中船只 |
|
|
|
let shipData = window.$earth.getObject(proxy.ship_guid); |
|
|
|
// 打开轨迹 |
|
|
|
if (e) { |
|
|
|
console.log(shipData); |
|
|
|
} else { |
|
|
|
console.log(shipData); |
|
|
|
} |
|
|
|
} |
|
|
|
onMounted(() => { |
|
|
|
console.log(proxy.ship_guid); |
|
|
|
}); |
|
|
|
|
|
|
|
return { |
|
|
|
checked, |
|
|
|
cancel, |
|
|
|