mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-24 05:57:49 +08:00
修复前端调用录像开始结束
This commit is contained in:
parent
db7f79194a
commit
8048693616
@ -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) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user