| | |
| | | let viewPlane |
| | | const hasPatrolTaskList = computed(() => ['30', '40', '50', '60'].includes(String(formData.value.workOrderStatus))) |
| | | import droneIcon from '@/assets/images/orderView/orderManage/drone.png' |
| | | import droneActiveIcon from '@/assets/images/orderView/orderManage/droneActive.png' |
| | | |
| | | const gdStatusObj = { |
| | | '10': { reason: '拒绝原因', operationType: '2' }, |
| | |
| | | const selectedIds = (formData.value.recommendDeviceIds || '').split(',').filter(Boolean) |
| | | if (!viewer?.entities) return |
| | | viewer.entities.values.forEach(entity => { |
| | | if (entity.billboard?.image?._value === droneIcon && entity.label) { |
| | | const image = entity.billboard?.image?._value |
| | | if ((image === droneIcon || image === droneActiveIcon) && entity.label) { |
| | | const device = deviceList.value.find(d => d.nickname === entity.label.text._value) |
| | | if (device && selectedIds.includes(String(device.id))) { |
| | | entity.label.fillColor = Cesium.Color.YELLOW |
| | | } else { |
| | | entity.label.fillColor = Cesium.Color.WHITE |
| | | } |
| | | entity.billboard.image = device && selectedIds.includes(String(device.id)) |
| | | ? droneActiveIcon |
| | | : droneIcon |
| | | } |
| | | }) |
| | | } |