diff --git a/web/src/api/frontEnd.js b/web/src/api/frontEnd.js index a5cb75212..47c51323a 100644 --- a/web/src/api/frontEnd.js +++ b/web/src/api/frontEnd.js @@ -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({ method: 'get', url: `/api/front-end/scan/set/speed/${deviceId}/${channelDeviceId}`, diff --git a/web/src/views/common/ptzPreset.vue b/web/src/views/common/ptzPreset.vue index c72ad7e3b..debd76b31 100644 --- a/web/src/views/common/ptzPreset.vue +++ b/web/src/views/common/ptzPreset.vue @@ -99,7 +99,7 @@ export default { }, gotoPreset: function(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 => { this.$message({ showClose: true, @@ -128,7 +128,7 @@ export default { spinner: 'el-icon-loading', 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 => { setTimeout(() => { this.getPresetList() diff --git a/web/src/views/dialog/devicePlayer.vue b/web/src/views/dialog/devicePlayer.vue index cf4950dd5..cd898bb47 100755 --- a/web/src/views/dialog/devicePlayer.vue +++ b/web/src/views/dialog/devicePlayer.vue @@ -1,8 +1,15 @@