Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
<img slot="prefix" src="https://cdn.cunwuyun.cn/slw2.0/images/fp.png">
|
<img slot="prefix" src="https://cdn.cunwuyun.cn/slw2.0/images/fp.png">
|
||||||
<el-option v-for="(op,i) in splitOps" :key="i" v-bind="op"/>
|
<el-option v-for="(op,i) in splitOps" :key="i" v-bind="op"/>
|
||||||
</el-select>
|
</el-select>
|
||||||
<div class="headerBar-item" @click="isShowBar = !isShowBar" :class="[isShowBar ? '' : 'cancel-xt']">
|
<div class="headerBar-item" v-if="monitors.length > 1" @click="isShowBar = !isShowBar" :class="[isShowBar ? '' : 'cancel-xt']">
|
||||||
<img src="https://cdn.cunwuyun.cn/slw2.0/images/xt.png">
|
<img src="https://cdn.cunwuyun.cn/slw2.0/images/xt.png">
|
||||||
<span>{{ isShowBar ? '视频协同' : '取消协同' }}</span>
|
<span>{{ isShowBar ? '视频协同' : '取消协同' }}</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -38,6 +38,7 @@
|
|||||||
:ids="ids"
|
:ids="ids"
|
||||||
:instance="instance"
|
:instance="instance"
|
||||||
@replay="onReplay"
|
@replay="onReplay"
|
||||||
|
:isLoading.sync="isLoading"
|
||||||
@backLiveing="playbackUrls = []"
|
@backLiveing="playbackUrls = []"
|
||||||
@checkChange="onCheckChange"
|
@checkChange="onCheckChange"
|
||||||
v-if="!isShowBar && monitors.length"
|
v-if="!isShowBar && monitors.length"
|
||||||
@@ -223,7 +224,6 @@
|
|||||||
let show = data.deviceStatus == 1 ? 'show' : ''
|
let show = data.deviceStatus == 1 ? 'show' : ''
|
||||||
const ids = this.ids.split(',')
|
const ids = this.ids.split(',')
|
||||||
const index = ids.indexOf(data.id) + 1
|
const index = ids.indexOf(data.id) + 1
|
||||||
console.log(index, ids, data.id)
|
|
||||||
if (node.isLeaf) {
|
if (node.isLeaf) {
|
||||||
return (
|
return (
|
||||||
<div class="flexRow">
|
<div class="flexRow">
|
||||||
|
|||||||
@@ -355,7 +355,7 @@
|
|||||||
z-index: 1;
|
z-index: 1;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
transition: all ease-in-out 0.5s;
|
transition: all ease-in-out 0.5s;
|
||||||
// transform: translateY(100%);
|
transform: translateY(100%);
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
|
|||||||
@@ -1,13 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="synergr" :id="videoId" v-if="isInit">
|
<div class="synergr" :id="videoId" v-if="isInit" @mousemove.stop="onMousemove" @mouseup="onMouseUp" @mouseleave="isHide = true">
|
||||||
<canvas
|
<canvas
|
||||||
id="synergr-canvas"
|
id="synergr-canvas"
|
||||||
:style="{height: '28px'}"
|
:style="{height: '28px'}"
|
||||||
v-if="canvasWidth"
|
v-if="canvasWidth"
|
||||||
@click="onClick"
|
@click="onClick"
|
||||||
@mousemove.stop="onMousemove"
|
|
||||||
@mouseup="onMouseUp"
|
|
||||||
@mouseleave="isHide = true"
|
|
||||||
:width="canvasWidth"
|
:width="canvasWidth"
|
||||||
height="28">
|
height="28">
|
||||||
</canvas>
|
</canvas>
|
||||||
@@ -54,7 +51,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="playback">
|
<div class="playback">
|
||||||
<div class="synergr-more" @click="isShowTimeline = !isShowTimeline" :class="[isShowTimeline ? 'active' : '']">
|
<div class="synergr-more" @click="isShowTimeline = !isShowTimeline" :class="[isShowTimeline ? 'active' : '']">
|
||||||
<img title="展开" src="https://cdn.cunwuyun.cn/slw2.0/images/arrow.png" />
|
<img :title="isShowTimeline ? '收起' : '展开'" src="https://cdn.cunwuyun.cn/slw2.0/images/arrow.png" />
|
||||||
</div>
|
</div>
|
||||||
<div class="playback-list" v-if="isShowTimeline">
|
<div class="playback-list" v-if="isShowTimeline">
|
||||||
<el-checkbox-group v-model="checked" @change="onCheckChange">
|
<el-checkbox-group v-model="checked" @change="onCheckChange">
|
||||||
@@ -90,7 +87,7 @@
|
|||||||
import PlaybackTime from './PlaybackTime'
|
import PlaybackTime from './PlaybackTime'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: ['ids', 'instance'],
|
props: ['ids', 'instance', 'isLoading'],
|
||||||
|
|
||||||
name: 'Synergy',
|
name: 'Synergy',
|
||||||
|
|
||||||
@@ -111,7 +108,7 @@
|
|||||||
date: ''
|
date: ''
|
||||||
},
|
},
|
||||||
times: [],
|
times: [],
|
||||||
isShowTimeline: false,
|
isShowTimeline: true,
|
||||||
checkList: [],
|
checkList: [],
|
||||||
isInit: false,
|
isInit: false,
|
||||||
left: 0,
|
left: 0,
|
||||||
@@ -318,7 +315,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
getSlwPlaybackTime () {
|
getSlwPlaybackTime () {
|
||||||
this.isLoading = true
|
this.$emit('update:isLoading', true)
|
||||||
this.instance.post(`/app/appzyvideoequipment/getSlwPlaybackTime`, null, {
|
this.instance.post(`/app/appzyvideoequipment/getSlwPlaybackTime`, null, {
|
||||||
params: {
|
params: {
|
||||||
ids: this.ids,
|
ids: this.ids,
|
||||||
@@ -346,10 +343,10 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
this.isLoading = false
|
this.$emit('update:isLoading', false)
|
||||||
}
|
}
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.isLoading = false
|
this.$emit('update:isLoading', false)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -80,7 +80,7 @@
|
|||||||
this.isHide = false
|
this.isHide = false
|
||||||
|
|
||||||
if (!this.isChoose) return
|
if (!this.isChoose) return
|
||||||
this.x = e.clientX - canvasInfo.left - 4
|
this.x = e.clientX - canvasInfo.left
|
||||||
this.ratioW = this.x / this.canvasWidth
|
this.ratioW = this.x / this.canvasWidth
|
||||||
} else {
|
} else {
|
||||||
this.isHide = true
|
this.isHide = true
|
||||||
@@ -91,10 +91,11 @@
|
|||||||
const canvasInfo = document.querySelector(`#${this.id}`).getBoundingClientRect()
|
const canvasInfo = document.querySelector(`#${this.id}`).getBoundingClientRect()
|
||||||
|
|
||||||
if (e.clientY - canvasInfo.top < 29) {
|
if (e.clientY - canvasInfo.top < 29) {
|
||||||
this.x = e.clientX - canvasInfo.left - 4
|
this.x = e.clientX - canvasInfo.left
|
||||||
clearInterval(this.timer)
|
clearInterval(this.timer)
|
||||||
this.timer = null
|
this.timer = null
|
||||||
const time = this.secTotime((24 * 60 * 60) / this.canvasWidth * this.x)
|
const time = this.secTotime((24 * 60 * 60) / this.canvasWidth * this.x)
|
||||||
|
|
||||||
this.$emit('replay', time)
|
this.$emit('replay', time)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -185,11 +186,12 @@
|
|||||||
|
|
||||||
drawLine(ctx, options) {
|
drawLine(ctx, options) {
|
||||||
const { beginX, beginY, endX, endY, lineColor, lineWidth } = options
|
const { beginX, beginY, endX, endY, lineColor, lineWidth } = options
|
||||||
ctx.beginPath()
|
|
||||||
ctx.lineWidth = lineWidth
|
ctx.lineWidth = lineWidth
|
||||||
|
ctx.strokeStyle = lineColor
|
||||||
|
ctx.beginPath()
|
||||||
ctx.moveTo(beginX, beginY)
|
ctx.moveTo(beginX, beginY)
|
||||||
ctx.lineTo(endX, endY)
|
ctx.lineTo(endX, endY)
|
||||||
ctx.strokeStyle = lineColor
|
ctx.closePath()
|
||||||
ctx.stroke()
|
ctx.stroke()
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -240,6 +242,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!this.times.length) {
|
||||||
|
ctx.stroke()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -259,6 +265,7 @@
|
|||||||
user-select: none;
|
user-select: none;
|
||||||
cursor: e-resize;
|
cursor: e-resize;
|
||||||
-webkit-user-drag: none;
|
-webkit-user-drag: none;
|
||||||
|
// transform: translateX(-50%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.time-scale {
|
.time-scale {
|
||||||
|
|||||||
Reference in New Issue
Block a user