forked from drone/command-center-dashboard

shuishen
2025-04-17 8c9619f54ea7ef5d64e377a3f0bad5859d6237c9
feat:事件详情标注图标更新
1 files modified
20 ■■■■■ changed files
src/hooks/useMapAggregation/useMapAggregation.js 20 ●●●●● patch | view | raw | blame | history
src/hooks/useMapAggregation/useMapAggregation.js
@@ -2,7 +2,15 @@
import aggregationImg from '@/assets/images/home/useUavHome/aggregation.png'
import eventAggregationImg from '@/assets/images/home/useUavHome/eventAggregationImg.png'
import uavImg from '@/assets/images/home/useUavHome/uavImg.png'
// 事件图标
import eventSingle from '@/assets/images/home/useEventOperate/eventSingle.png'
import eventPending from '@/assets/images/home/useEventOperate/eventPending.png' // 待处理 0
import eventWaitAudit from '@/assets/images/home/useEventOperate/eventWaitAudit.png' // 待审核 2
import eventProcessing from '@/assets/images/home/useEventOperate/eventProcessing.png' // 处理中 3
import eventCompleted from '@/assets/images/home/useEventOperate/eventCompleted.png' // 已完成 4
import eventClosed from '@/assets/images/home/useEventOperate/eventClosed.png' // 已完结 5
import DevicePopUpBox from '@/hooks/components/DevicePopUpBox.vue'
import EventPopUpBox from '@/hooks/components/EventPopUpBox.vue'
@@ -204,6 +212,7 @@
          latitude: Number(i.latitude),
          longitude: Number(i.longitude),
          type: 'event',
          status: i.status
        }))
    const hierarchy = convertToHierarchy(areaCode.slice(0, 6))
    const jsonPath = hierarchy.join('/')
@@ -292,9 +301,16 @@
  //散点机巢
  function splashed (row) {
    row.splashedList.forEach((item, index) => {
      const image = type === 'device' ? (item.status === "OFFLINE" ? endingHighImg : endingImg) : eventSingle
      const eventImage = {
        0: eventPending,
        2: eventWaitAudit,
        3: eventProcessing,
        4: eventCompleted,
        5: eventClosed
      }
      const image = type === 'device' ? (item.status === "OFFLINE" ? endingHighImg : endingImg) : eventImage[item.status] || eventSingle
      viewer.entities.add({
        id: `aggregation-splashed-${index}`,