From e59da14ea40faee4810ab020f3d88da923b9bd0f Mon Sep 17 00:00:00 2001 From: yiming Date: Fri, 9 Dec 2022 14:24:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=B1=E4=B8=9C=E7=BA=A2=E6=B6=A6=E7=9F=B3?= =?UTF-8?q?=E5=8C=96=2044=E7=90=83=E6=9C=BA=EF=BC=8C=E5=88=86=E4=B8=A4?= =?UTF-8?q?=E7=BB=84=EF=BC=8C=E4=B8=80=E4=B8=AA1=EF=BC=8C=E4=B8=80?= =?UTF-8?q?=E4=B8=AA0=EF=BC=8C=E4=BF=AE=E6=94=B9videoWall\index.vue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/http/http-api.js | 1 + src/router/index.js | 18 +++++++++--------- src/views/videoWall/index.vue | 5 ++++- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/src/api/http/http-api.js b/src/api/http/http-api.js index 2216346..1399af5 100644 --- a/src/api/http/http-api.js +++ b/src/api/http/http-api.js @@ -65,6 +65,7 @@ export default { method: "GET", url: "/realTime/allCameras", name: "获取全部球机" + }, getWallStyle:{ method: "GET", diff --git a/src/router/index.js b/src/router/index.js index 51c73c7..de3e7e9 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -29,15 +29,15 @@ const routes = [{ }, component: () => import('@/views/index'), children: [ - // { - // path: 'videoWall', - // name: 'videoWall', - // meta: { - // icon: 'desktop', - // name: '视频墙' - // }, - // component: () => import('@/views/videoWall/index'), - // }, + { + path: 'videoWall', + name: 'videoWall', + meta: { + icon: 'desktop', + name: '视频墙' + }, + component: () => import('@/views/videoWall/index'), + }, { path: 'realTimeMonitoring', name: 'realTimeMonitoring', diff --git a/src/views/videoWall/index.vue b/src/views/videoWall/index.vue index 34e2846..271222c 100644 --- a/src/views/videoWall/index.vue +++ b/src/views/videoWall/index.vue @@ -99,7 +99,10 @@ export default { }, getAllCameras(){ this.$api.httpApi.getAllCameras({ - data: {} + params: { + //todo index是分组,一个填0 ,另一个填1 + index: 1 + } }).then(res => { if(res.code == 200) { let cameras = res.data;