Compare commits

...

3 Commits

Author SHA1 Message Date
WangXuewen
cb96eaa598
Pre Merge pull request !34 from WangXuewen/master 2025-03-25 08:44:44 +00:00
lin
8048693616 修复前端调用录像开始结束 2025-03-25 16:44:27 +08:00
wangxw
b05f770a57 解决sql错误,启动是PGSQL查询报错integer=boolean 2024-12-12 17:37:36 +08:00

View File

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