|
|
@ -24,7 +24,7 @@ |
|
|
|
import { HttpLivePlayer, openLiveVideo } from "./videoStream.js" |
|
|
|
import { find } from "lodash" |
|
|
|
import { |
|
|
|
getNearCameraNew, |
|
|
|
getNearCameraNew,getNearCameraNewStation, |
|
|
|
} from "@screen/pages/Home/components/RoadAndEvents/utils/httpList.js"; |
|
|
|
import CameraControlDialog from "@screen/pages/Home/components/Dialogs/Camera/components/CameraControlDialog.vue"; |
|
|
|
|
|
|
@ -35,6 +35,11 @@ export default { |
|
|
|
|
|
|
|
}, |
|
|
|
props: { |
|
|
|
// |
|
|
|
facilityType:{ |
|
|
|
type: String, |
|
|
|
default:null |
|
|
|
}, |
|
|
|
// 桩号 |
|
|
|
pileNum: { |
|
|
|
type: String, |
|
|
@ -84,8 +89,13 @@ export default { |
|
|
|
}, |
|
|
|
async playVideo() { |
|
|
|
this.player?.destroy(); |
|
|
|
|
|
|
|
let { code, data } = await getNearCameraNew(this.pileNum).catch(() => ({})); |
|
|
|
let reqCamrea = null; |
|
|
|
if(facilityType && facilityType === 1){ //收费站单独处理 |
|
|
|
reqCamrea = await getNearCameraNewStation(this.pileNum).catch(() => ({})); |
|
|
|
} else { |
|
|
|
reqCamrea = await getNearCameraNew(this.pileNum).catch(() => ({})); |
|
|
|
} |
|
|
|
let { code, data } = reqCamrea; |
|
|
|
if ( |
|
|
|
code != 200 || |
|
|
|
(Array.isArray(data) ? !data?.length : !Object.keys(data || {}).length) |
|
|
|