diff --git a/src/views/map/dialog/index.vue b/src/views/map/dialog/index.vue index 9f12c9e..1de66e4 100644 --- a/src/views/map/dialog/index.vue +++ b/src/views/map/dialog/index.vue @@ -17,7 +17,10 @@ :type="type" :gangkou="gangkou" :corp-id="corpInfoId" - :gate-video-id="GATE_VIDEO_ID"/> + :gate-video-id="GATE_VIDEO_ID" + :code = "code" + :video-type="videoType" + :name = "name"/> @@ -223,6 +226,14 @@ export default { GATE_VIDEO_ID: { type: String, default: '' + }, + videoType: { + type: String, + default: '' + }, + code: { + type: String, + default: '' } }, methods: { diff --git a/src/views/map/dialog/mkGateMachine.vue b/src/views/map/dialog/mkGateMachine.vue index 5e76958..4ba9383 100644 --- a/src/views/map/dialog/mkGateMachine.vue +++ b/src/views/map/dialog/mkGateMachine.vue @@ -1,5 +1,5 @@ @@ -166,6 +154,24 @@ export default { default() { return '' } + }, + code: { + type: String, + default() { + return '' + } + }, + videoType: { + type: String, + default() { + return '' + } + }, + name: { + type: String, + default() { + return '' + } } }, data() { @@ -173,14 +179,18 @@ export default { config: config, info: {}, recordAllList: [], - varList:[], - carRecordAllList:[] + varList: [], + carRecordAllList: [] } }, created() { - this.getData() - this.getListData() + if (this.type !== 'CAMERA') { + this.getData() + this.getListData() + } else { + + } }, methods: { formatDate(date, format) { diff --git a/src/views/map/dialog/video_play_gate.vue b/src/views/map/dialog/video_play_gate.vue index 8a2efd1..10f3408 100644 --- a/src/views/map/dialog/video_play_gate.vue +++ b/src/views/map/dialog/video_play_gate.vue @@ -46,11 +46,11 @@ export default { methods: { showVideo() { requestFN( - this.requestUrl, + '/platform/door/video/getHlsPath', { - GATE_VIDEO_ID: this.id + INDEXCODE: this.id } - ).then((data) => { + ).then((res) => { // for (let i = 0; i < data.videoList.length; i++) { // if (data.videoList[0].HLSVIDEOURL) { // this.url = data.videoList[0].GBSVIDEOURL @@ -61,7 +61,7 @@ export default { // eslint-disable-next-line no-undef this.player = new Aliplayer({ 'id': 'aLiVideoPlayer', - 'source': data.video.HLSVIDEOURL.data.url, + 'source': res.data.url, 'width': '100%', 'height': '500px', 'autoplay': true, diff --git a/src/views/map/index.vue b/src/views/map/index.vue index 4ccbe11..9c6ebdb 100644 --- a/src/views/map/index.vue +++ b/src/views/map/index.vue @@ -262,6 +262,8 @@ :ry-post-name="dialog.RyPostName" :ry-real-name="dialog.RyRealName" :person-type-name="dialog.personTypeName" + :code="dialog.code" + :video-type="dialog.video_type" /> @@ -1520,12 +1522,15 @@ export default { return } if (point_type.indexOf('标记点') !== -1) { - const { label, point_type, data_id, corpInfoId, dialog_width, infoname } = pick.id._monitoItems.data + const { label, point_type, data_id, corpInfoId, dialog_width, infoname, code, video_type, name } = pick.id._monitoItems.data this.dialog.visible = true this.dialog.title = label + this.dialog.name = name this.dialog.type = point_type.substring(3) this.dialog.id = data_id this.dialog.corpInfoId = corpInfoId + this.dialog.code = code + this.dialog.video_type = video_type this.dialog.infoname = infoname this.dialog.width = dialog_width || '50%' } @@ -2223,7 +2228,6 @@ export default { const points = [] const varList = this.filterNull(data.varList) for (let i = 0; i < varList.length; i++) { - console.log(pindex + '_' + index) const point = {} point.id = pindex + '_' + index + '_' + i point.data_id = varList[i].id @@ -2245,6 +2249,7 @@ export default { point.gate_machine_name = varList[i].GATE_MACHINE_NAME // 摄像头编号 point.code = varList[i].INDEXCODE || '' // 摄像头编号 + point.video_type = varList[i].VIDEO_TYPE || '' // 摄像头编号 // 人员定位 if (urlType === 'peoplePosition') { point.data_id = varList[i].empNo || ''