From d947d9305bc2cf09b493380f301e14fea339edd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E9=91=AB?= Date: Wed, 27 Jan 2021 17:02:25 +0800 Subject: [PATCH] =?UTF-8?q?=E7=90=83=E6=9C=BA=E7=AE=A1=E7=90=86>>=E9=85=8D?= =?UTF-8?q?=E7=BD=AE>>=E6=8C=87=E4=BB=A4=E5=86=99=E5=85=A5=E8=A6=86?= =?UTF-8?q?=E7=9B=96=E5=85=A5=E5=8F=82=E5=A2=9E=E5=8A=A0code=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/PageHeader.vue | 2 +- src/views/cameraManage/model.vue | 18 ++++++++++-------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/layouts/PageHeader.vue b/src/layouts/PageHeader.vue index 214fa6d..8e3d049 100644 --- a/src/layouts/PageHeader.vue +++ b/src/layouts/PageHeader.vue @@ -86,7 +86,7 @@ export default { url: "/plc/plcStatus", method: "GET" }).then(res => { - console.log(res.data) + // console.log(res.data) if (res.code == 200) { this.count = res.data } diff --git a/src/views/cameraManage/model.vue b/src/views/cameraManage/model.vue index b6f8abc..c943566 100644 --- a/src/views/cameraManage/model.vue +++ b/src/views/cameraManage/model.vue @@ -410,10 +410,11 @@ export default { console.log(type) this.$api.httpApi.writeInCameraIoptz({ data: { - cameraId:this.id, - cameraIOId:data.id, - name:data.name, - type:type + cameraId: this.id, + cameraIOId: data.id, + name: data.name, + code: data.code, + type: type } }).then(res => { console.log(res) @@ -428,10 +429,11 @@ export default { console.log(type) this.$api.httpApi.writeInCameraIoptz({ data: { - cameraId:this.id, - cameraIOId:data.id, - name:data.name, - type:type + cameraId: this.id, + cameraIOId: data.id, + name: data.name, + code: data.code, + type: type } }).then(res => { console.log(res)