From 51a2a92c2b9e55e144b6dff76cba43d8b5805ec1 Mon Sep 17 00:00:00 2001 From: fanluyan <754122931@qq.com> Date: Tue, 31 Oct 2023 16:54:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=9C=E8=A7=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Sidebar.vue | 66 +++++++++---------- src/components/header.vue | 8 +-- src/main.js | 30 +++++---- src/views/homePage/index.vue | 6 +- src/views/photographicDevice/index.vue | 19 ++---- .../components/carouselChart.vue | 25 +++++-- .../components/parameterArea.vue | 4 +- 7 files changed, 83 insertions(+), 75 deletions(-) diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue index 8ea5b1c..3c0d646 100644 --- a/src/components/Sidebar.vue +++ b/src/components/Sidebar.vue @@ -64,16 +64,16 @@ export default { title: "实时监控", }, - { - icon: "el-icon-film", - index: "/pictureRotation", - title: "图片轮巡", - }, - { - icon: "el-icon-bell", - index: "/photoAlarm", - title: "告警处理", - }, + // { + // icon: "el-icon-film", + // index: "/pictureRotation", + // title: "图片轮巡", + // }, + // { + // icon: "el-icon-bell", + // index: "/photoAlarm", + // title: "告警处理", + // }, { icon: "el-icon-search", @@ -106,14 +106,14 @@ export default { index: "/devicePhotoSchedule", title: "拍照时间表设置", }, - { - index: "/deviceReport", - title: "装置报表", - }, - { - index: "/waterMark", - title: "水印下发", - }, + // { + // index: "/deviceReport", + // title: "装置报表", + // }, + // { + // index: "/waterMark", + // title: "水印下发", + // }, // { // index: "/deviceUpgrade", // title: "装置升级", @@ -125,21 +125,21 @@ export default { // }, ], }, - { - icon: "el-icon-monitor", - index: "/system", - title: "系统管理", - subs: [ - { - index: "/userManagement", - title: "用户管理", - }, - { - index: "/globalTools", - title: "全局设置", - }, - ], - }, + // { + // icon: "el-icon-monitor", + // index: "/system", + // title: "系统管理", + // subs: [ + // { + // index: "/userManagement", + // title: "用户管理", + // }, + // { + // index: "/globalTools", + // title: "全局设置", + // }, + // ], + // }, ], items1: [ { diff --git a/src/components/header.vue b/src/components/header.vue index 77b0c8e..3b73ebe 100644 --- a/src/components/header.vue +++ b/src/components/header.vue @@ -3,13 +3,13 @@
视频监控可视化平台
+ --> diff --git a/src/main.js b/src/main.js index 3af820b..0092435 100644 --- a/src/main.js +++ b/src/main.js @@ -53,22 +53,24 @@ Vue.directive("noMoreClick", { //使用钩子函数对路由进行权限跳转 router.beforeEach((to, from, next) => { - document.title = `${to.meta.title} | 视频监控可视化平台`; - const role = localStorage.getItem("role"); - const token = localStorage.getItem("token"); - console.log(role, token); - if (to.path == "/echarts") { - console.log("asdasdasdasd"); - // 在免登录白名单,直接进入 - next(); - } else if (!token && to.path !== "/login") { - //next("/login"); - next({ - path: "/login", - }); + if (to.meta.title == "") { + document.title = ` 视频监控可视化平台`; } else { - next(); + document.title = `${to.meta.title} | 视频监控可视化平台`; } + + // const role = localStorage.getItem("role"); + // const token = localStorage.getItem("token"); + // console.log(role, token); + // if (!token && to.path !== "/login") { + // //next("/login"); + // next({ + // path: "/login", + // }); + // } else { + // next(); + // } + next(); }); new Vue({ router, diff --git a/src/views/homePage/index.vue b/src/views/homePage/index.vue index 5372873..af961fb 100644 --- a/src/views/homePage/index.vue +++ b/src/views/homePage/index.vue @@ -46,7 +46,7 @@
-
+ - + - +
-
{{ radioPx }}
+
+ {{ radioPx }} +
- - + 历史图片