|
|
|
@ -410,10 +410,11 @@ export default {
|
|
|
|
console.log(type)
|
|
|
|
console.log(type)
|
|
|
|
this.$api.httpApi.writeInCameraIoptz({
|
|
|
|
this.$api.httpApi.writeInCameraIoptz({
|
|
|
|
data: {
|
|
|
|
data: {
|
|
|
|
cameraId:this.id,
|
|
|
|
cameraId: this.id,
|
|
|
|
cameraIOId:data.id,
|
|
|
|
cameraIOId: data.id,
|
|
|
|
name:data.name,
|
|
|
|
name: data.name,
|
|
|
|
type:type
|
|
|
|
code: data.code,
|
|
|
|
|
|
|
|
type: type
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).then(res => {
|
|
|
|
}).then(res => {
|
|
|
|
console.log(res)
|
|
|
|
console.log(res)
|
|
|
|
@ -428,10 +429,11 @@ export default {
|
|
|
|
console.log(type)
|
|
|
|
console.log(type)
|
|
|
|
this.$api.httpApi.writeInCameraIoptz({
|
|
|
|
this.$api.httpApi.writeInCameraIoptz({
|
|
|
|
data: {
|
|
|
|
data: {
|
|
|
|
cameraId:this.id,
|
|
|
|
cameraId: this.id,
|
|
|
|
cameraIOId:data.id,
|
|
|
|
cameraIOId: data.id,
|
|
|
|
name:data.name,
|
|
|
|
name: data.name,
|
|
|
|
type:type
|
|
|
|
code: data.code,
|
|
|
|
|
|
|
|
type: type
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).then(res => {
|
|
|
|
}).then(res => {
|
|
|
|
console.log(res)
|
|
|
|
console.log(res)
|
|
|
|
|