Merge branch 'master' into 重构/1078
# Conflicts: # src/main/java/com/genersoft/iot/vmp/common/enums/ChannelDataType.java # src/main/java/com/genersoft/iot/vmp/gb28181/service/IGbChannelPlayService.java # src/main/java/com/genersoft/iot/vmp/gb28181/service/impl/GbChannelPlayServiceImpl.java
This commit is contained in:
@@ -535,29 +535,29 @@ export default {
|
||||
ptzCamera: function(command) {
|
||||
console.log('云台控制:' + command)
|
||||
this.$store.dispatch('commonChanel/ptz',
|
||||
[
|
||||
this.channelId,
|
||||
command,
|
||||
parseInt(this.controSpeed * 255 / 100),
|
||||
parseInt(this.controSpeed * 255 / 100),
|
||||
parseInt(this.controSpeed * 16 / 100)
|
||||
])
|
||||
{
|
||||
channelId: this.channelId,
|
||||
command: command,
|
||||
panSpeed: this.controSpeed,
|
||||
tiltSpeed: this.controSpeed,
|
||||
zoomSpeed: this.controSpeed
|
||||
})
|
||||
},
|
||||
irisCamera: function(command) {
|
||||
this.$store.dispatch('commonChanel/iris',
|
||||
[
|
||||
this.channelId,
|
||||
command,
|
||||
parseInt(this.controSpeed * 255 / 100)
|
||||
])
|
||||
{
|
||||
channelId: this.channelId,
|
||||
command: command,
|
||||
speed: this.controSpeed
|
||||
})
|
||||
},
|
||||
focusCamera: function(command) {
|
||||
this.$store.dispatch('commonChanel/focus',
|
||||
[
|
||||
this.channelId,
|
||||
command,
|
||||
parseInt(this.controSpeed * 255 / 100)
|
||||
])
|
||||
{
|
||||
channelId: this.channelId,
|
||||
command: command,
|
||||
speed: this.controSpeed
|
||||
})
|
||||
},
|
||||
// ////////////////////播放器事件处理//////////////////////////
|
||||
videoError: function(e) {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<div style="display: grid; grid-template-columns: 80px auto; line-height: 28px">
|
||||
<span>巡航组号: </span>
|
||||
<el-input
|
||||
v-model="cruiseId"
|
||||
v-model="tourId"
|
||||
min="1"
|
||||
max="255"
|
||||
placeholder="巡航组号"
|
||||
@@ -93,7 +93,7 @@ export default {
|
||||
props: ['channelId'],
|
||||
data() {
|
||||
return {
|
||||
cruiseId: 1,
|
||||
tourId: 1,
|
||||
presetList: [],
|
||||
allPresetList: [],
|
||||
selectPreset: '',
|
||||
@@ -110,7 +110,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
getPresetList: function() {
|
||||
this.$store.dispatch('commonChanel/queryPreset', [this.channelId])
|
||||
this.$store.dispatch('commonChanel/queryPreset', this.channelId)
|
||||
.then((data) => {
|
||||
this.allPresetList = data
|
||||
})
|
||||
@@ -124,7 +124,11 @@ export default {
|
||||
background: 'rgba(0, 0, 0, 0.7)'
|
||||
})
|
||||
this.$store.dispatch('commonChanel/addPointForCruise',
|
||||
[this.channelId, this.cruiseId, this.selectPreset.presetId])
|
||||
{
|
||||
channelId: this.channelId,
|
||||
tourId: this.tourId,
|
||||
presetId: this.selectPreset.presetId
|
||||
})
|
||||
.then((data) => {
|
||||
this.presetList.push(this.selectPreset)
|
||||
}).catch((error) => {
|
||||
@@ -152,7 +156,11 @@ export default {
|
||||
background: 'rgba(0, 0, 0, 0.7)'
|
||||
})
|
||||
this.$store.dispatch('commonChanel/deletePointForCruise',
|
||||
[this.channelId, this.cruiseId, preset.presetId])
|
||||
{
|
||||
channelId: this.channelId,
|
||||
tourId: this.tourId,
|
||||
presetId: preset.presetId
|
||||
})
|
||||
.then((data) => {
|
||||
this.presetList.splice(index, 1)
|
||||
}).catch((error) => {
|
||||
@@ -180,7 +188,11 @@ export default {
|
||||
background: 'rgba(0, 0, 0, 0.7)'
|
||||
})
|
||||
this.$store.dispatch('commonChanel/deletePointForCruise',
|
||||
[this.channelId, this.cruiseId, 0])
|
||||
{
|
||||
channelId: this.channelId,
|
||||
tourId: this.tourId,
|
||||
presetId: 0
|
||||
})
|
||||
.then((data) => {
|
||||
this.presetList = []
|
||||
}).catch((error) => {
|
||||
@@ -195,6 +207,14 @@ export default {
|
||||
})
|
||||
},
|
||||
setCruiseSpeed: function() {
|
||||
if (this.presetList.length === 0) {
|
||||
this.$message({
|
||||
showClose: true,
|
||||
message: '请添加巡航点',
|
||||
type: 'warning'
|
||||
})
|
||||
return
|
||||
}
|
||||
const loading = this.$loading({
|
||||
lock: true,
|
||||
fullscreen: true,
|
||||
@@ -203,7 +223,12 @@ export default {
|
||||
background: 'rgba(0, 0, 0, 0.7)'
|
||||
})
|
||||
this.$store.dispatch('commonChanel/setCruiseSpeed',
|
||||
[this.channelId, this.cruiseId, this.cruiseSpeed])
|
||||
{
|
||||
channelId: this.channelId,
|
||||
tourId: this.tourId,
|
||||
presetId: this.presetList.at(-1).presetId,
|
||||
speed: this.cruiseSpeed
|
||||
})
|
||||
.then((data) => {
|
||||
this.$message({
|
||||
showClose: true,
|
||||
@@ -227,6 +252,14 @@ export default {
|
||||
this.setSpeedVisible = false
|
||||
},
|
||||
setCruiseTime: function() {
|
||||
if (this.presetList.length === 0) {
|
||||
this.$message({
|
||||
showClose: true,
|
||||
message: '请添加巡航点',
|
||||
type: 'warning'
|
||||
})
|
||||
return
|
||||
}
|
||||
const loading = this.$loading({
|
||||
lock: true,
|
||||
fullscreen: true,
|
||||
@@ -235,7 +268,12 @@ export default {
|
||||
background: 'rgba(0, 0, 0, 0.7)'
|
||||
})
|
||||
this.$store.dispatch('commonChanel/setCruiseTime',
|
||||
[this.channelId, this.cruiseId, this.cruiseTime])
|
||||
{
|
||||
channelId: this.channelId,
|
||||
tourId: this.tourId,
|
||||
time: this.cruiseTime,
|
||||
presetId: this.presetList.at(-1).presetId
|
||||
})
|
||||
.then((data) => {
|
||||
this.$message({
|
||||
showClose: true,
|
||||
@@ -267,7 +305,10 @@ export default {
|
||||
background: 'rgba(0, 0, 0, 0.7)'
|
||||
})
|
||||
this.$store.dispatch('commonChanel/startCruise',
|
||||
[this.channelId, this.cruiseId])
|
||||
{
|
||||
channelId: this.channelId,
|
||||
tourId: this.tourId
|
||||
})
|
||||
.then((data) => {
|
||||
this.$message({
|
||||
showClose: true,
|
||||
@@ -295,7 +336,10 @@ export default {
|
||||
background: 'rgba(0, 0, 0, 0.7)'
|
||||
})
|
||||
this.$store.dispatch('commonChanel/stopCruise',
|
||||
[this.channelId, this.cruiseId])
|
||||
{
|
||||
channelId: this.channelId,
|
||||
tourId: this.tourId
|
||||
})
|
||||
.then((data) => {
|
||||
this.$message({
|
||||
showClose: true,
|
||||
@@ -317,12 +361,3 @@ export default {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
.channel-form {
|
||||
display: grid;
|
||||
background-color: #FFFFFF;
|
||||
padding: 1rem 2rem 0 2rem;
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
gap: 1rem;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -50,7 +50,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
getPresetList: function() {
|
||||
this.$store.dispatch('commonChanel/queryPreset', [this.channelId])
|
||||
this.$store.dispatch('commonChanel/queryPreset', this.channelId)
|
||||
.then(data => {
|
||||
this.presetList = data
|
||||
// 防止出现表格错位
|
||||
@@ -73,7 +73,11 @@ export default {
|
||||
spinner: 'el-icon-loading',
|
||||
background: 'rgba(0, 0, 0, 0.7)'
|
||||
})
|
||||
this.$store.dispatch('commonChanel/addPreset', [this.channelId, this.ptzPresetId])
|
||||
this.$store.dispatch('commonChanel/addPreset', {
|
||||
channelId: this.channelId,
|
||||
presetId: this.ptzPresetId,
|
||||
presetName: this.ptzPresetId
|
||||
})
|
||||
.then(data => {
|
||||
setTimeout(() => {
|
||||
this.inputVisible = false
|
||||
@@ -99,7 +103,10 @@ export default {
|
||||
},
|
||||
gotoPreset: function(preset) {
|
||||
console.log(preset)
|
||||
this.$store.dispatch('commonChanel/callPreset', [this.channelId, preset.presetId])
|
||||
this.$store.dispatch('commonChanel/callPreset', {
|
||||
channelId: this.channelId,
|
||||
presetId: preset.presetId
|
||||
})
|
||||
.then(data => {
|
||||
this.$message({
|
||||
showClose: true,
|
||||
@@ -128,7 +135,10 @@ export default {
|
||||
spinner: 'el-icon-loading',
|
||||
background: 'rgba(0, 0, 0, 0.7)'
|
||||
})
|
||||
this.$store.dispatch('commonChanel/deletePreset', [this.channelId, preset.presetId])
|
||||
this.$store.dispatch('commonChanel/deletePreset', {
|
||||
channelId: this.channelId,
|
||||
presetId: preset.presetId
|
||||
})
|
||||
.then(data => {
|
||||
setTimeout(() => {
|
||||
this.getPresetList()
|
||||
|
||||
@@ -65,7 +65,12 @@ export default {
|
||||
spinner: 'el-icon-loading',
|
||||
background: 'rgba(0, 0, 0, 0.7)'
|
||||
})
|
||||
this.$store.dispatch('commonChanel/setSpeedForScan', [this.channelId, this.scanId, this.speed])
|
||||
this.$store.dispatch('commonChanel/setSpeedForScan',
|
||||
{
|
||||
channelId: this.channelId,
|
||||
scanId: this.scanId,
|
||||
speed: this.speed
|
||||
})
|
||||
.then(data => {
|
||||
this.$message({
|
||||
showClose: true,
|
||||
@@ -97,7 +102,11 @@ export default {
|
||||
spinner: 'el-icon-loading',
|
||||
background: 'rgba(0, 0, 0, 0.7)'
|
||||
})
|
||||
this.$store.dispatch('commonChanel/setLeftForScan', [this.channelId, this.scanId])
|
||||
this.$store.dispatch('commonChanel/setLeftForScan',
|
||||
{
|
||||
channelId: this.channelId,
|
||||
scanId: this.scanId
|
||||
})
|
||||
.then(data => {
|
||||
this.$message({
|
||||
showClose: true,
|
||||
@@ -125,7 +134,11 @@ export default {
|
||||
spinner: 'el-icon-loading',
|
||||
background: 'rgba(0, 0, 0, 0.7)'
|
||||
})
|
||||
this.$store.dispatch('commonChanel/setRightForScan', [this.channelId, this.scanId])
|
||||
this.$store.dispatch('commonChanel/setRightForScan',
|
||||
{
|
||||
channelId: this.channelId,
|
||||
scanId: this.scanId
|
||||
})
|
||||
.then(data => {
|
||||
this.$message({
|
||||
showClose: true,
|
||||
@@ -153,7 +166,11 @@ export default {
|
||||
spinner: 'el-icon-loading',
|
||||
background: 'rgba(0, 0, 0, 0.7)'
|
||||
})
|
||||
this.$store.dispatch('commonChanel/startScan', [this.channelId, this.scanId])
|
||||
this.$store.dispatch('commonChanel/startScan',
|
||||
{
|
||||
channelId: this.channelId,
|
||||
scanId: this.scanId
|
||||
})
|
||||
.then(data => {
|
||||
this.$message({
|
||||
showClose: true,
|
||||
@@ -179,7 +196,11 @@ export default {
|
||||
spinner: 'el-icon-loading',
|
||||
background: 'rgba(0, 0, 0, 0.7)'
|
||||
})
|
||||
this.$store.dispatch('commonChanel/stopScan', [this.channelId, this.scanId])
|
||||
this.$store.dispatch('commonChanel/stopScan',
|
||||
{
|
||||
channelId: this.channelId,
|
||||
scanId: this.scanId
|
||||
})
|
||||
.then(data => {
|
||||
this.$message({
|
||||
showClose: true,
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<el-form size="mini" :inline="true">
|
||||
<el-form-item>
|
||||
<el-input
|
||||
v-model="switchId"
|
||||
v-model="auxiliaryId"
|
||||
min="1"
|
||||
max="4095"
|
||||
placeholder="开关编号"
|
||||
@@ -29,7 +29,7 @@ export default {
|
||||
props: ['channelId'],
|
||||
data() {
|
||||
return {
|
||||
switchId: 1
|
||||
auxiliaryId: 1
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -43,7 +43,12 @@ export default {
|
||||
spinner: 'el-icon-loading',
|
||||
background: 'rgba(0, 0, 0, 0.7)'
|
||||
})
|
||||
this.$store.dispatch('commonChanel/auxiliary', [this.channelId, command, this.switchId])
|
||||
this.$store.dispatch('commonChanel/auxiliary',
|
||||
{
|
||||
channelId: this.channelId,
|
||||
command: command,
|
||||
auxiliaryId: this.auxiliaryId
|
||||
})
|
||||
.then(data => {
|
||||
this.$message({
|
||||
showClose: true,
|
||||
@@ -64,13 +69,4 @@ export default {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
.channel-form {
|
||||
display: grid;
|
||||
background-color: #FFFFFF;
|
||||
padding: 1rem 2rem 0 2rem;
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
@@ -25,7 +25,11 @@ export default {
|
||||
spinner: 'el-icon-loading',
|
||||
background: 'rgba(0, 0, 0, 0.7)'
|
||||
})
|
||||
this.$store.dispatch('commonChanel/wiper', [this.channelId, command])
|
||||
this.$store.dispatch('commonChanel/wiper',
|
||||
{
|
||||
channelId: this.channelId,
|
||||
command: command
|
||||
})
|
||||
.then(data => {
|
||||
this.$message({
|
||||
showClose: true,
|
||||
|
||||
Reference in New Issue
Block a user