Bladeren bron

5266

pull/223/head
lixin 10 maanden geleden
bovenliggende
commit
ed5fcf5a0f
3 gewijzigde bestanden met toevoegingen van 7 en 9 verwijderingen
  1. +3
    -3
      src/views/dashboard/components/OneMap.vue
  2. +2
    -3
      src/views/dashboard/components/Underlay.vue
  3. +2
    -3
      src/views/early-warning/fire/components/FlightDrawer.vue

+ 3
- 3
src/views/dashboard/components/OneMap.vue Bestand weergeven

airportList, getWarning airportList, getWarning
} from '@/api/dashboard/index.js' } from '@/api/dashboard/index.js'
import { getTaskDetail } from '@/api/task/index.js' import { getTaskDetail } from '@/api/task/index.js'
import { gcj02towgs84 } from '@/utils/coordinate-util.js'
import AirInfo from './AirInfo.vue' import AirInfo from './AirInfo.vue'
import ProblemInfo from './ProblemInfo.vue' import ProblemInfo from './ProblemInfo.vue'
import SuppliesInfo from './SuppliesInfo.vue' import SuppliesInfo from './SuppliesInfo.vue'
if (data.airportsAll.length > 0) { if (data.airportsAll.length > 0) {
for (let i = 0; i < data.airportsAll.length; i++) { for (let i = 0; i < data.airportsAll.length; i++) {
const airport = data.airportsAll[i] const airport = data.airportsAll[i]
const lngLat = gcj02towgs84(
const lngLat = [
parseFloat(airport.longitude), parseFloat(airport.longitude),
parseFloat(airport.latitude) parseFloat(airport.latitude)
)
]

const feature = new Feature({ const feature = new Feature({
geometry: new Point(fromLonLat(lngLat)) geometry: new Point(fromLonLat(lngLat))
}) })

+ 2
- 3
src/views/dashboard/components/Underlay.vue Bestand weergeven

import { getTrackList } from '@/api/task/index.js' import { getTrackList } from '@/api/task/index.js'
import { useInspectionStore } from '@/store/modules/inspection.js' import { useInspectionStore } from '@/store/modules/inspection.js'
import { airportList, getWarningInfo } from '@/api/dashboard/index.js' import { airportList, getWarningInfo } from '@/api/dashboard/index.js'
import { gcj02towgs84 } from '@/utils/coordinate-util.js'
import uav_icon from '@/assets/images/airport.png' import uav_icon from '@/assets/images/airport.png'
import warningIcon from '@/assets/gis/images/fire.png' import warningIcon from '@/assets/gis/images/fire.png'
import gcj02Mecator from '@/utils/map/gcj02Mecator.js' import gcj02Mecator from '@/utils/map/gcj02Mecator.js'
for (let i = 0; i < res.data.length; i++) { for (let i = 0; i < res.data.length; i++) {
if (id === res.data[i].id) { if (id === res.data[i].id) {
const airport = res.data[i] const airport = res.data[i]
const lngLat = gcj02towgs84(
const lngLat = [
parseFloat(airport.longitude), parseFloat(airport.longitude),
parseFloat(airport.latitude) parseFloat(airport.latitude)
)
]
const feature = new Feature({ const feature = new Feature({
geometry: new Point(fromLonLat(lngLat)) geometry: new Point(fromLonLat(lngLat))
}) })

+ 2
- 3
src/views/early-warning/fire/components/FlightDrawer.vue Bestand weergeven

// 视频组件 // 视频组件
import VideoPlayer from '@/components/VideoPlayer/index.vue' import VideoPlayer from '@/components/VideoPlayer/index.vue'
import gcj02Mecator from '@/utils/map/gcj02Mecator.js' import gcj02Mecator from '@/utils/map/gcj02Mecator.js'
import { gcj02towgs84 } from '@/utils/coordinate-util.js'
export default defineComponent({ export default defineComponent({
name: 'FlightDrawer', name: 'FlightDrawer',
components: { VideoPlayer }, components: { VideoPlayer },
for (let i = 0; i < res.data.length; i++) { for (let i = 0; i < res.data.length; i++) {
if (id === res.data[i].id) { if (id === res.data[i].id) {
const airport = res.data[i] const airport = res.data[i]
const lngLat = gcj02towgs84(
const lngLat = [
parseFloat(airport.longitude), parseFloat(airport.longitude),
parseFloat(airport.latitude) parseFloat(airport.latitude)
)
]
const feature = new Feature({ const feature = new Feature({
geometry: new Point(fromLonLat(lngLat)) geometry: new Point(fromLonLat(lngLat))
}) })

Laden…
Annuleren
Opslaan