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