Merge branch 'master' into 重构/1078

This commit is contained in:
lin
2025-04-09 12:17:22 +08:00
10 changed files with 55 additions and 8 deletions

View File

@@ -167,7 +167,7 @@ export default {
},
mounted() {
this.initData();
this.updateLooper = setInterval(this.initData, 10000);
this.updateLooper = setInterval(this.getDeviceList, 10000);
},
destroyed() {
this.$destroy('videojs');

View File

@@ -355,9 +355,11 @@ export default {
startRecord: function (itemData) {
this.$axios({
method: 'get',
url: `/api/device/control/record/${this.deviceId}/Record`,
url: `/api/device/control/record`,
params: {
channelId: itemData.deviceId
deviceId: this.deviceId,
channelId: itemData.deviceId,
recordCmdStr: "Record"
}
}).then( (res)=> {
if (res.data.code === 0) {
@@ -381,9 +383,11 @@ export default {
stopRecord: function (itemData) {
this.$axios({
method: 'get',
url: `/api/device/control/record/${this.deviceId}/StopRecord`,
url: `/api/device/control/record`,
params: {
channelId: itemData.deviceId
deviceId: this.deviceId,
channelId: itemData.deviceId,
recordCmdStr: "StopRecord"
}
}).then( (res)=> {
if (res.data.code === 0) {