[UI] 修复巡航
This commit is contained in:
@@ -2,7 +2,7 @@ import request from '@/utils/request'
|
|||||||
|
|
||||||
// 前端控制
|
// 前端控制
|
||||||
|
|
||||||
export function setSpeedForScan(deviceId, channelDeviceId, scanId, speed) {
|
export function setSpeedForScan([deviceId, channelDeviceId, scanId, speed]) {
|
||||||
return request({
|
return request({
|
||||||
method: 'get',
|
method: 'get',
|
||||||
url: `/api/front-end/scan/set/speed/${deviceId}/${channelDeviceId}`,
|
url: `/api/front-end/scan/set/speed/${deviceId}/${channelDeviceId}`,
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ export default {
|
|||||||
},
|
},
|
||||||
gotoPreset: function(preset) {
|
gotoPreset: function(preset) {
|
||||||
console.log(preset)
|
console.log(preset)
|
||||||
this.$store.dispatch('frontEnd/callPreset', [this.deviceId, this.channelDeviceId, this.ptzPresetId])
|
this.$store.dispatch('frontEnd/callPreset', [this.deviceId, this.channelDeviceId, preset.presetId])
|
||||||
.then(data => {
|
.then(data => {
|
||||||
this.$message({
|
this.$message({
|
||||||
showClose: true,
|
showClose: true,
|
||||||
@@ -128,7 +128,7 @@ export default {
|
|||||||
spinner: 'el-icon-loading',
|
spinner: 'el-icon-loading',
|
||||||
background: 'rgba(0, 0, 0, 0.7)'
|
background: 'rgba(0, 0, 0, 0.7)'
|
||||||
})
|
})
|
||||||
this.$store.dispatch('frontEnd/deletePreset', [this.deviceId, this.channelDeviceId, this.ptzPresetId])
|
this.$store.dispatch('frontEnd/deletePreset', [this.deviceId, this.channelDeviceId, preset.presetId])
|
||||||
.then(data => {
|
.then(data => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.getPresetList()
|
this.getPresetList()
|
||||||
|
|||||||
@@ -1,8 +1,15 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id="devicePlayer" v-loading="isLoging">
|
<div id="devicePlayer" v-loading="isLoging">
|
||||||
|
|
||||||
<el-dialog v-el-drag-dialog v-if="showVideoDialog" title="视频播放" top="0" :close-on-click-modal="false"
|
<el-dialog
|
||||||
:visible.sync="showVideoDialog" @close="close()">
|
v-if="showVideoDialog"
|
||||||
|
v-el-drag-dialog
|
||||||
|
title="视频播放"
|
||||||
|
top="0"
|
||||||
|
:close-on-click-modal="false"
|
||||||
|
:visible.sync="showVideoDialog"
|
||||||
|
@close="close()"
|
||||||
|
>
|
||||||
<div style="width: 100%; height: 100%">
|
<div style="width: 100%; height: 100%">
|
||||||
<el-tabs
|
<el-tabs
|
||||||
v-if="Object.keys(this.player).length > 1"
|
v-if="Object.keys(this.player).length > 1"
|
||||||
@@ -285,7 +292,7 @@
|
|||||||
<div title="光圈+" @mousedown="irisCamera('in')" @mouseup="irisCamera('stop')">
|
<div title="光圈+" @mousedown="irisCamera('in')" @mouseup="irisCamera('stop')">
|
||||||
<i class="iconfont icon-guangquan control-zoom-btn" style="font-size: 1.5rem;" />
|
<i class="iconfont icon-guangquan control-zoom-btn" style="font-size: 1.5rem;" />
|
||||||
</div>
|
</div>
|
||||||
<div title="光圈-" @mousedown="pirisCamera('out')" @mouseup="irisCamera('stop')">
|
<div title="光圈-" @mousedown="irisCamera('out')" @mouseup="irisCamera('stop')">
|
||||||
<i class="iconfont icon-guangquan- control-zoom-btn" style="font-size: 1.5rem;" />
|
<i class="iconfont icon-guangquan- control-zoom-btn" style="font-size: 1.5rem;" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -365,7 +372,6 @@ import ptzSwitch from '../common/ptzSwitch.vue'
|
|||||||
import mediaInfo from '../common/mediaInfo.vue'
|
import mediaInfo from '../common/mediaInfo.vue'
|
||||||
import H265web from '../common/h265web.vue'
|
import H265web from '../common/h265web.vue'
|
||||||
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'DevicePlayer',
|
name: 'DevicePlayer',
|
||||||
directives: { elDragDialog },
|
directives: { elDragDialog },
|
||||||
|
|||||||
Reference in New Issue
Block a user