视频T型 获取单个 路径 优化全部路线显示 修改别名接口增加
This commit is contained in:
@@ -373,6 +373,26 @@ export function releaseControl(data) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//修改设备别名
|
||||||
|
|
||||||
|
export function updateDeviceAliasApi(data) {
|
||||||
|
return request({
|
||||||
|
url: '/forward/device/updateDeviceAlias',
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
//获取单个路径规划信息
|
||||||
|
|
||||||
|
export function getSingleRouteList(params) {
|
||||||
|
return request({
|
||||||
|
url: '/iot/workRecord/selectById',
|
||||||
|
method: 'get',
|
||||||
|
params
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -656,61 +656,101 @@ export default function DeviceStatusPage({
|
|||||||
defaultSource="drone"
|
defaultSource="drone"
|
||||||
/>
|
/>
|
||||||
) : robotVideo ? (
|
) : robotVideo ? (
|
||||||
// 全景模式 = 4 分屏
|
// 全景模式 = T 型排布
|
||||||
mowerView === 'all' ? (
|
mowerView === 'all' ? (
|
||||||
<div style={{
|
<div style={{
|
||||||
display: 'grid',
|
display: 'flex',
|
||||||
gridTemplateColumns: '1fr 1fr',
|
flexDirection: 'column',
|
||||||
width: '100%',
|
width: '100%',
|
||||||
height: '100%'
|
height: '100%',
|
||||||
|
gap: 8, // 窗口之间间距
|
||||||
|
padding: 8,
|
||||||
|
boxSizing: 'border-box',
|
||||||
|
overflow: 'auto' // 固定宽高后超出滚动
|
||||||
}}>
|
}}>
|
||||||
{/* 前 */}
|
{/* 第一行:左视 + 前视 + 右视 三等分 */}
|
||||||
<div style={{ position: 'relative', border: '1px solid #222' }}>
|
<div style={{ display: 'flex', gap: 8, justifyContent: 'center' }}>
|
||||||
<VideoPlayer
|
{/* 左视 */}
|
||||||
deviceId={serialNumber}
|
<div style={{
|
||||||
idx={1}
|
width: 360, // 固定宽度
|
||||||
className="w-full h-full object-contain"
|
height: 240, // 固定高度
|
||||||
video={robotVideo}
|
position: 'relative',
|
||||||
error={error}
|
border: '1px solid #eae4e4',
|
||||||
ready={ready}
|
flexShrink: 0,// 禁止压缩
|
||||||
/>
|
borderRadius: 8,
|
||||||
<div style={{ position: 'absolute', top: 4, left: 8, color: '#fff', fontSize: 12, background: '#0006', padding: '2px 6px', borderRadius: 4 }}>前视</div>
|
}}>
|
||||||
|
<VideoPlayer
|
||||||
|
deviceId={serialNumber}
|
||||||
|
idx={3}
|
||||||
|
className="w-full h-full object-contain"
|
||||||
|
video={robotVideo}
|
||||||
|
error={error}
|
||||||
|
ready={ready}
|
||||||
|
/>
|
||||||
|
<div style={{ position: 'absolute', top: 4, left: 8, color: '#fff', fontSize: 12, background: '#0006', padding: '2px 6px', borderRadius: 4 }}>左视</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* 前视 */}
|
||||||
|
<div style={{
|
||||||
|
width: 360,
|
||||||
|
height: 240,
|
||||||
|
position: 'relative',
|
||||||
|
border: '1px solid #eae4e4',
|
||||||
|
flexShrink: 0,// 禁止压缩
|
||||||
|
borderRadius: 8,
|
||||||
|
}}>
|
||||||
|
<VideoPlayer
|
||||||
|
deviceId={serialNumber}
|
||||||
|
idx={1}
|
||||||
|
className="w-full h-full object-contain"
|
||||||
|
video={robotVideo}
|
||||||
|
error={error}
|
||||||
|
ready={ready}
|
||||||
|
/>
|
||||||
|
<div style={{ position: 'absolute', top: 4, left: 8, color: '#fff', fontSize: 12, background: '#0006', padding: '2px 6px', borderRadius: 4 }}>前视</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* 右视 */}
|
||||||
|
<div style={{
|
||||||
|
width: 360,
|
||||||
|
height: 240,
|
||||||
|
position: 'relative',
|
||||||
|
border: '1px solid #eae4e4',
|
||||||
|
flexShrink: 0,// 禁止压缩
|
||||||
|
borderRadius: 8,
|
||||||
|
}}>
|
||||||
|
<VideoPlayer
|
||||||
|
deviceId={serialNumber}
|
||||||
|
idx={4}
|
||||||
|
className="w-full h-full object-contain"
|
||||||
|
video={robotVideo}
|
||||||
|
error={error}
|
||||||
|
ready={ready}
|
||||||
|
/>
|
||||||
|
<div style={{ position: 'absolute', top: 4, left: 8, color: '#fff', fontSize: 12, background: '#0006', padding: '2px 6px', borderRadius: 4 }}>右视</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/* 后 */}
|
|
||||||
<div style={{ position: 'relative', border: '1px solid #222' }}>
|
{/* 第二行:后视 单独一行居中 */}
|
||||||
<VideoPlayer
|
<div style={{ display: 'flex', justifyContent: 'center' }}>
|
||||||
deviceId={serialNumber}
|
<div style={{
|
||||||
idx={2}
|
width: 360,
|
||||||
className="w-full h-full object-contain"
|
height: 240,
|
||||||
video={robotVideo}
|
position: 'relative',
|
||||||
error={error}
|
border: '1px solid #eae4e4',
|
||||||
ready={ready}
|
flexShrink: 0,// 禁止压缩
|
||||||
/>
|
borderRadius: 8,
|
||||||
<div style={{ position: 'absolute', top: 4, left: 8, color: '#fff', fontSize: 12, background: '#0006', padding: '2px 6px', borderRadius: 4 }}>后视</div>
|
}}>
|
||||||
</div>
|
<VideoPlayer
|
||||||
{/* 左 */}
|
deviceId={serialNumber}
|
||||||
<div style={{ position: 'relative', border: '1px solid #222' }}>
|
idx={2}
|
||||||
<VideoPlayer
|
className="w-full h-full object-contain"
|
||||||
deviceId={serialNumber}
|
video={robotVideo}
|
||||||
idx={3}
|
error={error}
|
||||||
className="w-full h-full object-contain"
|
ready={ready}
|
||||||
video={robotVideo}
|
/>
|
||||||
error={error}
|
<div style={{ position: 'absolute', top: 4, left: 8, color: '#fff', fontSize: 12, background: '#0006', padding: '2px 6px', borderRadius: 4 }}>后视</div>
|
||||||
ready={ready}
|
</div>
|
||||||
/>
|
|
||||||
<div style={{ position: 'absolute', top: 4, left: 8, color: '#fff', fontSize: 12, background: '#0006', padding: '2px 6px', borderRadius: 4 }}>左视</div>
|
|
||||||
</div>
|
|
||||||
{/* 右 */}
|
|
||||||
<div style={{ position: 'relative', border: '1px solid #222' }}>
|
|
||||||
<VideoPlayer
|
|
||||||
deviceId={serialNumber}
|
|
||||||
idx={4}
|
|
||||||
className="w-full h-full object-contain"
|
|
||||||
video={robotVideo}
|
|
||||||
error={error}
|
|
||||||
ready={ready}
|
|
||||||
/>
|
|
||||||
<div style={{ position: 'absolute', top: 4, left: 8, color: '#fff', fontSize: 12, background: '#0006', padding: '2px 6px', borderRadius: 4 }}>右视</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
|
|||||||
Reference in New Issue
Block a user