diff --git a/src/views/alarmVideos/alarmLog.vue b/src/views/alarmVideos/alarmLog.vue
index 3bf74ae..b88205a 100644
--- a/src/views/alarmVideos/alarmLog.vue
+++ b/src/views/alarmVideos/alarmLog.vue
@@ -65,26 +65,18 @@
{{ text.status == null ? ' ' : text.status == 0 ? '正常' : '告警' }}
-
-
+
+
查看视频
-
- --
-
-
-
-
- 查看视频
-
-
- --
-
+
+
@@ -148,22 +140,18 @@ export default {
},
// TODO 日志合并
{
- title: "视频时长",
+ title: "告警时长",
dataIndex: "timeLength",
},
{
- title: "球机1",
+ title: "录像视频",
// dataIndex: "videoPath1",
scopedSlots: {customRender: 'videoPath1'}
- },
- {
- title: "球机2",
- // dataIndex: "videoPath2",
- scopedSlots: {customRender: 'videoPath2'}
}
],
visible: false,
- vid: '',
+ vid1: '',
+ vid2: '',
streetList:[]
}
},
@@ -249,23 +237,16 @@ export default {
this.time = []
this.handleGetalarmLog()
},
- showModel(path, cmd) {
- // 使用第三方软件打开海康视频
- if(cmd) {
- let params = {
- openCmd: cmd
- };
- this.$api.httpNodeApi.viewVideoAPI({params}).then(res=> {
- console.log(res);
- })
- }else {
- this.visible = true
- this.vid = videoUrl + path;
- }
+ showModel(text) {
+
+ this.visible = true
+ this.vid1 = videoUrl + text.videoPath1;
+ this.vid2 = videoUrl + text.videoPath2;
+ console.log(this.vid1)
},
closeModel(visible, data) {
this.visible = visible
- this.vid = data
+ this.vid1 = data
},
},
components: {
diff --git a/src/views/alarmVideos/index.vue b/src/views/alarmVideos/index.vue
index a0975b5..d8af5a3 100644
--- a/src/views/alarmVideos/index.vue
+++ b/src/views/alarmVideos/index.vue
@@ -31,25 +31,16 @@
@change="handleGetalarmList"
>
-
+
查看视频
-
- --
-
-
-
-
- 查看视频
-
-
- --
-
-
+
+
@@ -96,22 +87,18 @@ export default {
dataIndex: "streetName",
},
{
- title: "视频时长",
+ title: "告警时长",
dataIndex: "timeLength",
},
{
- title: "球机1",
+ title: "视频录像",
// dataIndex: "videoPath1",
scopedSlots: {customRender: 'videoPath1'}
- },
- {
- title: "球机2",
- // dataIndex: "videoPath2",
- scopedSlots: {customRender: 'videoPath2'}
- },
+ }
],
visible: false,
- vid: ''
+ vid1: '',
+ vid2:'',
};
},
mounted() {
@@ -167,13 +154,14 @@ export default {
this.queryParam.startTime = ""
this.queryParam.endTime = ""
},
- showModel(data) {
+ showModel(text) {
this.visible = true
- this.vid = videoUrl + data
+ this.vid1 = videoUrl + text.videoPath1
+ this.vid2 = videoUrl + text.videoPath2
},
closeModel(visible, data) {
this.visible = visible
- this.vid = data
+ this.vid1 = data
},
reset() {
this.queryParam.startTime = moment().subtract(1, "days").format('YYYY-MM-DD HH:mm:ss')
diff --git a/src/views/alarmVideos/model.vue b/src/views/alarmVideos/model.vue
index 0521fbf..8a8591c 100644
--- a/src/views/alarmVideos/model.vue
+++ b/src/views/alarmVideos/model.vue
@@ -16,13 +16,23 @@
+
@@ -64,17 +74,26 @@