Commit 33d9f3cb6e9c119bad098a28bc74de635e73e652

Authored by fengtao
1 parent 22208306

fix: 边端同步到云端的视频设备,不能进行点播

... ... @@ -212,6 +212,7 @@ export interface DeviceRecord {
212 212 customerName?: string;
213 213 customerId?: string;
214 214 gatewayId?: string;
  215 + isEdge?: number;
215 216 }
216 217
217 218 export interface DeviceModelOfMatterAttrs {
... ...
... ... @@ -27,14 +27,14 @@
27 27 auth: GBT28181_DEVICE_PERMISSION_ENUM.PLAY_SYNC,
28 28 icon: 'ant-design:play-circle-outlined',
29 29 onClick: handlePlay.bind(null, record),
30   - ifShow: record?.status === 'ONLINE', //在线则显示播放按钮
  30 + ifShow: deviceDetail.isEdge === 0 && record?.status === 'ONLINE', //在线则显示播放按钮,边端同步到云端的视频设备,不能进行点播。
31 31 },
32 32 {
33 33 label: t('business.stopText'),
34 34 auth: GBT28181_DEVICE_PERMISSION_ENUM.STOP,
35 35 icon: 'ant-design:pause-outlined',
36 36 onClick: handleStopPlay.bind(null, record),
37   - ifShow: !!record?.streamId, //通道号存在则显示停止点播按钮
  37 + ifShow: deviceDetail.isEdge === 0 && !!record?.streamId, //通道号存在则显示停止点播按钮
38 38 },
39 39 ]"
40 40 />
... ...