|
|
@@ -67,7 +67,7 @@
|
|
|
};
|
|
|
|
|
|
const getCameraUrl = (val: CameraInfo) => {
|
|
|
- if (val.pushStreamDTO && val.pushStreamDTO.videoUrls) {
|
|
|
+ if (val.pushStreamDTO && val.pushStreamDTO.videoUrls.pushstreamIp) {
|
|
|
const videoUrl = val.pushStreamDTO.videoUrls.pushstreamIp;
|
|
|
const protocol = isHttps() ? 'wss' : 'ws';
|
|
|
// 如果是绝对地址
|
|
|
@@ -97,15 +97,19 @@
|
|
|
getSecurityPositionList({
|
|
|
groupName: '',
|
|
|
cameraName: '',
|
|
|
- }).then((res) => {
|
|
|
- securityPositionCameraInfo.value = res.flatMap((item) => {
|
|
|
- return item.children.map((child) => ({
|
|
|
- ...child,
|
|
|
- positionName: item.groupName,
|
|
|
- }));
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ securityPositionCameraInfo.value = res.flatMap((item) => {
|
|
|
+ return item.children.map((child) => ({
|
|
|
+ ...child,
|
|
|
+ positionName: item.groupName,
|
|
|
+ }));
|
|
|
+ });
|
|
|
+ positionCameraCount.value = securityPositionCameraInfo.value.length;
|
|
|
+ })
|
|
|
+ .catch((err) => {
|
|
|
+ console.log(err);
|
|
|
});
|
|
|
- positionCameraCount.value = securityPositionCameraInfo.value.length;
|
|
|
- });
|
|
|
});
|
|
|
|
|
|
window.onresize = () => {
|