无人机、监控列表

This commit is contained in:
2025-12-25 21:30:27 +08:00
parent 6a6ddba71a
commit e76b5075b2
6 changed files with 197 additions and 249 deletions

View File

@@ -24,6 +24,7 @@ import { ElMessage } from 'element-plus'
import { monitors, uavs, stations, environmentals, fences, detailFences } from './js/mock.js'
import InfoWindowComponent from '@/components/Map/window/index.vue'
import TrawlerInfoWindowComponent from '@/components/Map/window/trawler.vue'
import { videoCameraFindPage, findUavPage, findEnvPage, dsVideoList } from '@/api/device.js'
const mapStore = useMapStore()
const UAV = computed(() => mapStore.legend.UAV)
@@ -313,12 +314,30 @@ const addEnvironmentalToMap = () => {
}
const initUAV = () => {
geography.UAV = uavs
addUAVToMap()
const params = {
pageNo: 1,
pageSize: 9999
}
findUavPage(params).then(res => {
if (res.success) {
geography.UAV = res.result.records
addUAVToMap()
}
})
}
const initMonitor = () => {
geography.monitor = monitors
const params = {
pageNo: 1,
pageSize: 9999
}
videoCameraFindPage(params).then(res => {
if (res.success) {
geography.monitor = res.result.records
addMonitorToMap()
}
})
}
const initAisStation = () => {
geography.ais_station = stations