无人机、监控列表
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user