Commit 482006e8 by 李乾广

修改bug

1 parent 4199d448
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
height: '',// 设置组件高度 height: '',// 设置组件高度
isShowJT: false,// 是否显示截图按钮,默认为false isShowJT: false,// 是否显示截图按钮,默认为false
isShowSplit: true,// 是否支持四分屏,默认为true isShowSplit: true,// 是否支持四分屏,默认为true
hideControls: true,// 是否显示视频操作区,默认为false hideControls: false,// 是否显示视频操作区,默认为false
showPtz: true,// 是否显示视频操作区中的云台控制,默认为true showPtz: true,// 是否显示视频操作区中的云台控制,默认为true
}); });
} }
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
</div> </div>
<!-- 云台控制模块 --> <!-- 云台控制模块 -->
<div class="ptz-control-box" v-if="ptzControlShow"> <div class="ptz-control-box" v-if="ptzControlShow">
<div class="ptz-control-left-box" :class="[ptzControlType=='left'?'ptz-left':ptzControlType=='top'?'ptz-top':ptzControlType=='right'?'ptz-right':ptzControlType=='bottom'?'ptz-bottom':'']"> <div class="ptz-control-left-box" :class="[ptzControlType=='left'?'ptz-left':ptzControlType=='up'?'ptz-top':ptzControlType=='right'?'ptz-right':ptzControlType=='down'?'ptz-bottom':'']">
<div class="ptz-control-left" @mousedown="ptzControlOneClick('left')" @mouseup="ptzControlStop" @mouseleave="ptzControlStop" @touchstart="ptzControlOneClick('left')" @touchend="ptzControlStop"></div> <div class="ptz-control-left" @mousedown="ptzControlOneClick('left')" @mouseup="ptzControlStop" @mouseleave="ptzControlStop" @touchstart="ptzControlOneClick('left')" @touchend="ptzControlStop"></div>
<div class="ptz-control-top" @mousedown="ptzControlOneClick('up')" @mouseup="ptzControlStop" @mouseleave="ptzControlStop" @touchstart="ptzControlOneClick('up')" @touchend="ptzControlStop"></div> <div class="ptz-control-top" @mousedown="ptzControlOneClick('up')" @mouseup="ptzControlStop" @mouseleave="ptzControlStop" @touchstart="ptzControlOneClick('up')" @touchend="ptzControlStop"></div>
<div class="ptz-control-right" @mousedown="ptzControlOneClick('right')" @mouseup="ptzControlStop" @mouseleave="ptzControlStop" @touchstart="ptzControlOneClick('right')" @touchend="ptzControlStop"></div> <div class="ptz-control-right" @mousedown="ptzControlOneClick('right')" @mouseup="ptzControlStop" @mouseleave="ptzControlStop" @touchstart="ptzControlOneClick('right')" @touchend="ptzControlStop"></div>
...@@ -229,7 +229,7 @@ export default { ...@@ -229,7 +229,7 @@ export default {
this.startTime = moment(date).format('HH:mm:ss') this.startTime = moment(date).format('HH:mm:ss')
this.isNoBack = moment(date).format('YYYY-MM-DD HH:mm:ss') == moment().format('YYYY-MM-DD HH:mm:ss') this.isNoBack = moment(date).format('YYYY-MM-DD HH:mm:ss') == moment().format('YYYY-MM-DD HH:mm:ss')
this.ptzControlShow = false this.ptzControlShow = false
this.$emit('videoTimeChange',date) this.$emit('videoTimeChange',moment(date).format('YYYY-MM-DD HH:mm:ss'))
this.isCanFast() this.isCanFast()
}, },
changeDate(date, status) { changeDate(date, status) {
......
...@@ -145,6 +145,7 @@ export default { ...@@ -145,6 +145,7 @@ export default {
window.initWebVideo = this.initWebVideo; window.initWebVideo = this.initWebVideo;
window.screenshot = this.screenshot; window.screenshot = this.screenshot;
window.stopPlay = this.stopPlay; window.stopPlay = this.stopPlay;
window.getSelectVideo = this.getSelectVideo;
}, },
methods: { methods: {
initWebVideo(obj) { initWebVideo(obj) {
...@@ -357,6 +358,10 @@ export default { ...@@ -357,6 +358,10 @@ export default {
// 暴露方法 // 暴露方法
// 获取当前选中播放窗口
getSelectVideo() {
return this.splitNum
},
/** /**
* 截图 * 截图
* num为分屏时的窗口序号,从0开始;不传则认为是单屏 * num为分屏时的窗口序号,从0开始;不传则认为是单屏
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!