second commit

This commit is contained in:
2025-12-25 18:33:15 +08:00
parent 78407f1cbd
commit 6a6ddba71a
34 changed files with 527 additions and 1226 deletions

View File

@@ -1,5 +1,5 @@
<template>
<DialogComponent @mousedown="drag" :style="{ resize: 'both', overflow: 'auto' }" v-if="visible && option[type]" :title="option[type].title" :width="type==='_UAV' ? 1800:395" :draggable="true" :modal="false" @close="close">
<DialogComponent @mousedown="drag" @resize="handleResize" :style="{ resize: 'both', overflow: 'auto' }" v-if="visible && option[type]" :title="option[type].title" :width="type==='_UAV' ? 1800:395" :draggable="true" :modal="false" @close="close">
<component :is="option[type].component" ref="component"/>
</DialogComponent>
</template>
@@ -11,7 +11,7 @@ import MonitorComponent from './monitor.vue'
import UAVComponent from './uav.vue'
import MeteorologyComponent from './meteorology.vue'
import useMapStore from '@/store/modules/map'
import { dragEvent } from '@/utils/common'
import { dragEvent, resizeEvent } from '@/utils/common'
const mapStore = useMapStore()
@@ -43,12 +43,22 @@ const close = () => {
*
*/
const drag = (e) => {
dragEvent(e, 'el-dialog-title', () => {
if(component.value.HikCCTV) {
component.value.HikCCTV.initResize(false)
}
})
if(e.target.className.includes('el-dialog-title')) {
dragEvent(e, 'el-dialog-title', () => {
if(component.value.HikCCTV) {
component.value.HikCCTV.initResize(false)
}
})
}else{
resizeEvent(e, 'el-dialog', () => {
if(component.value?.HikCCTV) {
component.value.HikCCTV.initResize()
}
})
}
}
</script>
<style lang="scss" scoped>

View File

@@ -169,7 +169,8 @@ defineExpose({
}
}
.monitor-cctv{
height: 289px;
min-height: 289px;
width: 100%;
height: -webkit-fill-available;
}
</style>=>

View File

@@ -205,10 +205,8 @@ const handleExitServo = () => {
const handleTrack = () => {
globalMap = GlobalMap.instance
findAISPointPositionByMmsi({ mmsi: data.value.terminalCode }).then(res => {
if (res.success) {
const arr = res.result[data.value.terminalCode]
const arr = res.data[data.value.terminalCode]
new ShipPathInMap(globalMap.map, globalMap.map.getLayer('track'), formatTrackData(arr))
}
}).finally(() => {
mapStore.updateWindowInfo(false)
})