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