From 23c67cd52cbddcb7b5eaf9662f2d0da07fb30cd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?LAPTOP-S9HJSOEB=5C=E6=98=8A=E5=A4=A9?= Date: Tue, 19 Dec 2023 09:37:06 +0800 Subject: [PATCH] =?UTF-8?q?=E7=90=83=E6=9C=BA=E5=A2=99=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=20=E7=90=83=E6=9C=BA=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E6=97=A7=E6=95=B0=E6=8D=AE=E5=8F=AF=E8=A7=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/http/http-api.js | 6 +++--- src/views/cameraManage/model.vue | 10 ++++++---- src/views/deviceManage/configuration.vue | 4 ++-- src/views/deviceManage/model.vue | 4 ++-- 4 files changed, 13 insertions(+), 11 deletions(-) diff --git a/src/api/http/http-api.js b/src/api/http/http-api.js index c9da053..7e9b573 100644 --- a/src/api/http/http-api.js +++ b/src/api/http/http-api.js @@ -68,17 +68,17 @@ export default { }, getAllCameras1:{ method: "GET", - url: "/realTime/allCameras1", + url: "/realTime/allCameras/1", name: "获取全部球机" }, getAllCameras2:{ method: "GET", - url: "/realTime/allCameras2", + url: "/realTime/allCameras/2", name: "获取全部球机" }, getAllCameras3:{ method: "GET", - url: "/realTime/allCameras3", + url: "/realTime/allCameras/3", name: "获取全部球机" }, getWallStyle:{ diff --git a/src/views/cameraManage/model.vue b/src/views/cameraManage/model.vue index 566c6f2..8106a70 100644 --- a/src/views/cameraManage/model.vue +++ b/src/views/cameraManage/model.vue @@ -20,9 +20,9 @@ v-decorator="['name', { rules: [{ required: true, message: '请输入球机名称!' }] }]" /> - + @@ -228,8 +228,9 @@ export default { modelData: function(newVal){ // console.log(newVal) this.mdata=newVal - console.log(this.type) + console.log(this.mdata) if(newVal.id && this.type=='edit'){ + console.log("1111") this.id = newVal.id // console.log('触发了watch,重新赋值') this.$nextTick(()=>{ //this.$nextTick解决不能在表单渲染之前赋值的报错问题 @@ -238,7 +239,8 @@ export default { ip:newVal.ip, rtsp:newVal.rtsp, rtcServer:newVal.rtcServer, - rtcServerPort:newVal.rtcServerPort + rtspPort:newVal.rtspPort, + port:newVal.port }) }) }else if (newVal.id && this.type=='config'){ diff --git a/src/views/deviceManage/configuration.vue b/src/views/deviceManage/configuration.vue index da4d9f9..326182e 100644 --- a/src/views/deviceManage/configuration.vue +++ b/src/views/deviceManage/configuration.vue @@ -20,9 +20,9 @@ v-decorator="['name', { rules: [{ required: true, message: '请输入球机名称!' }] }]" /> - + diff --git a/src/views/deviceManage/model.vue b/src/views/deviceManage/model.vue index e4c8d82..ddc20cf 100644 --- a/src/views/deviceManage/model.vue +++ b/src/views/deviceManage/model.vue @@ -23,10 +23,10 @@ - +