无人机航线
This commit is contained in:
@@ -257,28 +257,31 @@ export default function DeviceStatusPage({
|
||||
onChange={(val) => onDeviceChange?.(val)}
|
||||
showSearch
|
||||
optionFilterProp="label"
|
||||
options={devicesAll?.map((item) => ({
|
||||
value: item.device_sn || item.serialNumber,
|
||||
label:
|
||||
item.deviceAlias ||
|
||||
item.drone_callsign ||
|
||||
item.callsign ||
|
||||
item.deviceName ||
|
||||
'未知',
|
||||
}))}
|
||||
options={[
|
||||
{
|
||||
label: <span>机器人</span>,
|
||||
title: 'manager',
|
||||
options: devicesAll.filter(item => item.serialNumber).map(item => ({
|
||||
value: item.device_sn || item.serialNumber,
|
||||
label: item.deviceAlias || item.deviceName || '未知设备'
|
||||
})),
|
||||
},
|
||||
{
|
||||
label: <span>无人机</span>,
|
||||
title: 'engineer',
|
||||
options: devicesAll.filter(item => item.device_sn).map(item => ({
|
||||
value: item.device_sn,
|
||||
label: item.drone_callsign || item.callsign || '未知设备'
|
||||
})),
|
||||
},
|
||||
]}
|
||||
/>
|
||||
|
||||
<Tag color="blue">
|
||||
{isUAV ? '无人机' : '机器人'}
|
||||
</Tag>
|
||||
|
||||
{wsStatus === 'connected' && (
|
||||
<Badge
|
||||
status="processing"
|
||||
color="#52c41a"
|
||||
text="实时连接中"
|
||||
/>
|
||||
)}
|
||||
|
||||
</div>
|
||||
|
||||
<Row gutter={[16, 16]}>
|
||||
|
||||
Reference in New Issue
Block a user