浏览代码

首页权限白名单

wangzhe 9 月之前
父节点
当前提交
7568a7a13b
共有 3 个文件被更改,包括 38 次插入8 次删除
  1. 1 1
      src/permission.js
  2. 5 0
      src/router/index.js
  3. 32 7
      src/views/zdsz/bigscreen/index.vue

+ 1 - 1
src/permission.js

@@ -8,7 +8,7 @@ import { isRelogin } from '@/utils/request'
 
 NProgress.configure({ showSpinner: false })
 
-const whiteList = ['/login', '/register']
+const whiteList = ['/login', '/register', '/bigscreen']
 
 router.beforeEach((to, from, next) => {
   NProgress.start()

+ 5 - 0
src/router/index.js

@@ -31,6 +31,11 @@ import Layout from '@/layout'
 // 公共路由
 export const constantRoutes = [
   {
+    path: '/bigscreen',
+    component: () => import('@/views/zdsz/bigscreen/index'),
+    hidden: true
+  },
+  {
     path: '/redirect',
     component: Layout,
     hidden: true,

+ 32 - 7
src/views/zdsz/bigscreen/index.vue

@@ -152,7 +152,7 @@
     formatTimestampToDateString,
   } from '@/api/zdsz/bigscreen'
   export default {
-    name: "bigScreen",
+    name: "bigscreen",
     dicts: ['project_head', 'design_unit', 'supervision_unit', 'district'],
     components: {},
     data() {
@@ -411,7 +411,12 @@
             left: 'center'
           },
           tooltip: {
-            trigger: 'item'
+            trigger: 'item',
+            textStyle: {
+              // color: '#fff'
+            },
+            borderColor: '#caecfd',
+            backgroundColor: '#a8d5f2'
           },
           legend: {
             orient: 'vertical',
@@ -496,7 +501,13 @@
         let xLabel = ['1','2','3','4','5'];
         xLabel = names;
         let option = {
-          tooltip:{},
+          tooltip:{
+            textStyle: {
+              // color: '#fff'
+            },
+            borderColor: '#caecfd',
+            backgroundColor: '#a8d5f2'
+          },
           // backgroundColor: "#0F375F",
           backgroundColor: "",
           animation: false,
@@ -712,10 +723,14 @@
           },
           tooltip: {
             trigger: 'axis',
+            textStyle: {
+              // color: '#fff'
+            },
+            borderColor: '#caecfd',
+            backgroundColor: '#a8d5f2',
             axisPointer: {
               // type: 'shadow',
               type: 'none',
-
               textStyle: {
                 // color: '#05294D',
                 color: '#fff',
@@ -923,7 +938,12 @@
             bottom: "15%"
           },
           tooltip: {
-            show: true
+            show: true,
+            textStyle: {
+              // color: '#fff'
+            },
+            borderColor: '#caecfd',
+            backgroundColor: '#a8d5f2',
           },
           xAxis: {
             type: 'category',
@@ -978,7 +998,12 @@
             bottom: "15%"
           },
           tooltip: {
-            show: true
+            show: true,
+            textStyle: {
+              // color: '#fff'
+            },
+            borderColor: '#caecfd',
+            backgroundColor: '#a8d5f2',
           },
           xAxis: {
             type: 'category',
@@ -1195,7 +1220,7 @@
 
         let myOption = { // 进行相关配置
           tooltip: {// 鼠标移到图里面的浮动提示框
-            show: true
+            show: false
           },
           visualMap: {
             show: false,