|
|
|
@ -31,25 +31,16 @@
|
|
|
|
@change="handleGetalarmList"
|
|
|
|
@change="handleGetalarmList"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<span slot="videoPath1" slot-scope="text">
|
|
|
|
<span slot="videoPath1" slot-scope="text">
|
|
|
|
<a-button type="link" v-if="text.videoPath1" @click="showModel(text.videoPath1)">
|
|
|
|
<a-button type="link" @click="showModel(text)">
|
|
|
|
查看视频
|
|
|
|
查看视频
|
|
|
|
</a-button>
|
|
|
|
</a-button>
|
|
|
|
<span v-else>
|
|
|
|
|
|
|
|
--
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span slot="videoPath2" slot-scope="text">
|
|
|
|
|
|
|
|
<a-button type="link" v-if="text.videoPath2" @click="showModel(text.videoPath2)">
|
|
|
|
|
|
|
|
查看视频
|
|
|
|
|
|
|
|
</a-button>
|
|
|
|
|
|
|
|
<span v-else>
|
|
|
|
|
|
|
|
--
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</a-table>
|
|
|
|
</a-table>
|
|
|
|
<Model
|
|
|
|
<Model
|
|
|
|
:visible.sync="visible"
|
|
|
|
:visible.sync="visible"
|
|
|
|
:vid.sync="vid"
|
|
|
|
:vid1.sync="vid1"
|
|
|
|
|
|
|
|
:vid2.sync="vid2"
|
|
|
|
@close="closeModel"
|
|
|
|
@close="closeModel"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@ -96,22 +87,18 @@ export default {
|
|
|
|
dataIndex: "streetName",
|
|
|
|
dataIndex: "streetName",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: "视频时长",
|
|
|
|
title: "告警时长",
|
|
|
|
dataIndex: "timeLength",
|
|
|
|
dataIndex: "timeLength",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: "球机1",
|
|
|
|
title: "视频录像",
|
|
|
|
// dataIndex: "videoPath1",
|
|
|
|
// dataIndex: "videoPath1",
|
|
|
|
scopedSlots: {customRender: 'videoPath1'}
|
|
|
|
scopedSlots: {customRender: 'videoPath1'}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
{
|
|
|
|
|
|
|
|
title: "球机2",
|
|
|
|
|
|
|
|
// dataIndex: "videoPath2",
|
|
|
|
|
|
|
|
scopedSlots: {customRender: 'videoPath2'}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
visible: false,
|
|
|
|
visible: false,
|
|
|
|
vid: ''
|
|
|
|
vid1: '',
|
|
|
|
|
|
|
|
vid2:'',
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
mounted() {
|
|
|
|
@ -167,13 +154,14 @@ export default {
|
|
|
|
this.queryParam.startTime = ""
|
|
|
|
this.queryParam.startTime = ""
|
|
|
|
this.queryParam.endTime = ""
|
|
|
|
this.queryParam.endTime = ""
|
|
|
|
},
|
|
|
|
},
|
|
|
|
showModel(data) {
|
|
|
|
showModel(text) {
|
|
|
|
this.visible = true
|
|
|
|
this.visible = true
|
|
|
|
this.vid = videoUrl + data
|
|
|
|
this.vid1 = videoUrl + text.videoPath1
|
|
|
|
|
|
|
|
this.vid2 = videoUrl + text.videoPath2
|
|
|
|
},
|
|
|
|
},
|
|
|
|
closeModel(visible, data) {
|
|
|
|
closeModel(visible, data) {
|
|
|
|
this.visible = visible
|
|
|
|
this.visible = visible
|
|
|
|
this.vid = data
|
|
|
|
this.vid1 = data
|
|
|
|
},
|
|
|
|
},
|
|
|
|
reset() {
|
|
|
|
reset() {
|
|
|
|
this.queryParam.startTime = moment().subtract(1, "days").format('YYYY-MM-DD HH:mm:ss')
|
|
|
|
this.queryParam.startTime = moment().subtract(1, "days").format('YYYY-MM-DD HH:mm:ss')
|
|
|
|
|