From 12ef895481038a7bec06a2c6cb47748a6353e848 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期四, 11 五月 2023 17:35:04 +0800
Subject: [PATCH] 1.生产进度报表提交

---
 src/layout/components/Sidebar/index.vue |   32 ++++++++++++++++++++++++++++++++
 1 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue
index b66020e..965599b 100644
--- a/src/layout/components/Sidebar/index.vue
+++ b/src/layout/components/Sidebar/index.vue
@@ -59,6 +59,7 @@
     routes() {
       return this.$router.options.routes
     },
+
     activeMenu() {
       const route = this.$route
       const { meta, path } = route
@@ -68,8 +69,36 @@
       if (meta.activeMenu) {
         return meta.activeMenu
       }
+
+      if (path.indexOf('kanbanManager') !== -1) { // 褰撶偣鍑绘櫤鎱х湅鏉跨殑鏃跺��
+        const url = this.$router.resolve({
+          path
+          // query: { id: 123 }
+        })
+        const t = url.href.split('/')
+
+        if (t[2] === 'xljgcj') {
+          window.open('#/zhkbc?code=21', '_blank')
+        } else if (t[2] === 'zpcj') {
+          window.open('#/zhkbc?code=25', '_blank')
+        } else {
+          window.open('#/' + t[2], '_blank')
+        }
+      }
+
       return path
     },
+    // activeMenu() {
+    //   const route = this.$route
+    //   const { meta, path } = route
+    //   // if set path, the sidebar will highlight the path you set
+    //   removeCookie('ruleCode')
+    //   setCookie('ruleCode', meta.code)// 灏嗙紪鐮佽鍒檆ode瀛樺埌cookie閲岄潰
+    //   if (meta.activeMenu) {
+    //     return meta.activeMenu
+    //   }
+    //   return path
+    // },
     showLogo() {
       return this.$store.state.settings.sidebarLogo
     },
@@ -152,4 +181,7 @@
   color: #ffffff;
   cursor: default;
 }
+.el-menu{
+  background-color: #213145 !important;
+}
 </style>

--
Gitblit v1.9.3