| | |
| | | <a-collapse :bordered="false" expandIconPosition="right" accordion style="background: #232323;"> |
| | | <a-collapse-panel :key="EDeviceTypeName.Dock" header="机场" style="border-bottom: 1px solid #4f4f4f;"> |
| | | <div v-if="onlineDocks.data.length === 0" style="height: 150px; color: white;"> |
| | | <a-empty style="color: #fff;" :image="simpleImage" description="暂无数据" |
| | | :image-style="{ height: '60px' }"/> |
| | | <a-empty style="color: #fff;" :image="simpleImage" description="暂无数据" :image-style="{ height: '60px' }" /> |
| | | </div> |
| | | <div v-else class="fz12" style="color: white;"> |
| | | <div v-for="dock in onlineDocks.data" :key="dock.sn" |
| | | style="background: #3c3c3c; height: 90px; margin-bottom: 10px;"> |
| | | <div style="border-radius: 2px; height: 100%; width: 100%;" |
| | | style="background: #3c3c3c; margin-bottom: 10px;"> |
| | | <div class="task_wrapper" v-if="dock.latest_wayline_job"> |
| | | <div class="task_content"> |
| | | <div class="task_status"> |
| | | <ContainerOutlined /> |
| | | <span>待执行</span> |
| | | </div> |
| | | <div class="task_info">{{convertTimestampToDate(dock.latest_wayline_job.begin_time)}}</div> |
| | | </div> |
| | | <div class="task_title">{{dock.latest_wayline_job.name}}</div> |
| | | </div> |
| | | <div style="border-radius: 2px; height: 90px; width: 100%;" |
| | | class="flex-row flex-justify-between flex-align-center"> |
| | | <div style="float: left; padding: 0px 5px 8px 8px; width: 88%"> |
| | | <!-- // 机场设备标题 --> |
| | |
| | | :style="deviceInfo[dock.sn] && deviceInfo[dock.sn].mode_code !== EModeCode.Disconnected || dockInfo[dock.gateway.sn].basic_osd?.drone_in_dock === 1 ? 'color: #00ee8b' : 'color: red;'"> |
| | | {{ |
| | | deviceInfo[dock.sn] ? EModeText[deviceInfo[dock.sn].mode_code] : |
| | | dockInfo[dock.gateway.sn].basic_osd?.drone_in_dock === 1 ? '舱内关机' : EModeText[EModeCode.Disconnected] |
| | | dockInfo[dock.gateway.sn].basic_osd?.drone_in_dock === 1 ? '舱内关机' : |
| | | EModeText[EModeCode.Disconnected] |
| | | }} |
| | | </div> |
| | | </div> |
| | |
| | | }}</span> |
| | | <span class="fz10">{{ hmsInfo[dock.sn].length > 99 ? '+' : '' }}</span> |
| | | </div> |
| | | <a-popover trigger="click" placement="bottom" color="black" |
| | | v-model:visible="hmsVisible[dock.sn]" |
| | | <a-popover trigger="click" placement="bottom" color="black" v-model:visible="hmsVisible[dock.sn]" |
| | | @visibleChange="readHms(hmsVisible[dock.sn], dock.sn)" |
| | | :overlayStyle="{ width: '200px', height: '300px' }"> |
| | | <div :class="hmsInfo[dock.sn][0].level === EHmsLevel.CAUTION ? 'caution' : |
| | |
| | | <a-collapse :bordered="false" expandIconPosition="right" accordion style="background: #232323;"> |
| | | <a-collapse-panel :key="EDeviceTypeName.Aircraft" header="在线设备" style="border-bottom: 1px solid #4f4f4f;"> |
| | | <div v-if="onlineDevices.data.length === 0" style="height: 150px; color: white;"> |
| | | <a-empty :image="simpleImage" style="color: #fff;" description="暂无数据" |
| | | :image-style="{ height: '60px' }"/> |
| | | <a-empty :image="simpleImage" style="color: #fff;" description="暂无数据" :image-style="{ height: '60px' }" /> |
| | | </div> |
| | | <div v-else class="fz12" style="color: white;"> |
| | | <div v-for="device in onlineDevices.data" :key="device.sn" |
| | |
| | | <div style="background: #535759; width: 100%;"></div> |
| | | <div class="capacity-percent" :style="{ width: deviceInfo[device.sn].battery.capacity_percent + '%' }"> |
| | | </div> |
| | | <div class="return-home" |
| | | :style="{ width: deviceInfo[device.sn].battery.return_home_power + '%' }"></div> |
| | | <div class="return-home" :style="{ width: deviceInfo[device.sn].battery.return_home_power + '%' }"></div> |
| | | <div class="landing" :style="{ width: deviceInfo[device.sn].battery.landing_power + '%' }"></div> |
| | | <div class="battery" :style="{ left: deviceInfo[device.sn].battery.capacity_percent + '%' }"></div> |
| | | </div> |
| | |
| | | </div> |
| | | </a-collapse-panel> |
| | | </a-collapse> |
| | | |
| | | <!-- 测试视频播放组件 --> |
| | | <!-- <JessibucaVideo videoUrl="https://www.ainfo.top:700/rtp/34020000001110000101_34020000001310000001.flv" /> --> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | EyeInvisibleOutlined, |
| | | EyeOutlined, |
| | | RobotOutlined, |
| | | DoubleRightOutlined |
| | | DoubleRightOutlined, |
| | | ContainerOutlined, |
| | | } from '@ant-design/icons-vue' |
| | | import { EHmsLevel } from '/@/types/enums' |
| | | import { cesiumOperation } from '/@/hooks/use-cesium-tsa' |
| | | let droneEntity |
| | | import { convertTimestampToDate } from '/@/utils/time' |
| | | let droneEntity: any |
| | | |
| | | const { appContext } = getCurrentInstance() |
| | | const global = appContext.config.globalProperties |
| | |
| | | callsign: child?.nickname, |
| | | sn: child?.device_sn, |
| | | mode: EModeCode.Disconnected, |
| | | latest_wayline_job: gateway.latest_wayline_job, |
| | | gateway: { |
| | | model: gateway?.device_name, |
| | | callsign: gateway?.nickname, |
| | |
| | | } |
| | | |
| | | function switchVisible (e: any, device: OnlineDevice, isDock: boolean, isClick: boolean, sn?: any) { |
| | | console.log(device, 'device') |
| | | // showDrawer.value = !showDrawer.value |
| | | if (!isClick) { |
| | | e.target.style.cursor = 'not-allowed' |
| | |
| | | osdVisible.value.device_domain = device.gateway.device_domain |
| | | osdVisible.value.device_sub_type = device.gateway.device_sub_type |
| | | osdVisible.value.device_type = device.gateway.device_type |
| | | osdVisible.value.latest_wayline_job = device.latest_wayline_job |
| | | } |
| | | store.commit('SET_OSD_VISIBLE_INFO', osdVisible.value) |
| | | store.commit('SET_HMSInfo_DetailSn', sn) |
| | |
| | | } |
| | | } |
| | | </style> |
| | | |
| | | <style lang="scss" scoped> |
| | | .task_wrapper { |
| | | display: flex; |
| | | align-items: center; |
| | | .task_content { |
| | | background-color: #19be6b; |
| | | padding: 2px 4px; |
| | | } |
| | | .task_title { |
| | | margin-left: 5px; |
| | | font-size: 14px; |
| | | } |
| | | } |
| | | </style> |