See999 vor 5 Jahren
Ursprung
Commit
3fb491f60a

+ 2 - 2
src/router/modules/stock.js Datei anzeigen

@@ -13,7 +13,7 @@ export default {
13 13
   },
14 14
   children: [
15 15
     {
16
-      path: "/warehouseReceipt/",
16
+      path: "/stock/warehouseReceipt/",
17 17
       component: Layout,
18 18
       redirect: "/stock/in",
19 19
       name: "warehouseReceipt",
@@ -24,7 +24,7 @@ export default {
24 24
       }
25 25
     },
26 26
     {
27
-      path: "/warehouseReceiptOther/",
27
+      path: "/stock/warehouseReceiptOther/",
28 28
       component: Layout,
29 29
       redirect: "/stock/in/other",
30 30
       name: "warehouseReceiptOther",

+ 2 - 2
src/styles/sidebar.scss Datei anzeigen

@@ -26,7 +26,7 @@
26 26
     .scrollbar-wrapper {
27 27
       overflow-x: hidden !important;
28 28
       .el-scrollbar__view {
29
-        height: 100%;
29
+        height: 96%;
30 30
         .hamburger-container {
31 31
           padding: 20px 10px 10px 10px;
32 32
           color: #fff;
@@ -48,7 +48,7 @@
48 48
     }
49 49
     .el-menu {
50 50
       border: none;
51
-      min-height: 130%;
51
+      // min-height: 130%;
52 52
       width: 100% !important;
53 53
     }
54 54
   }

+ 2 - 1
src/views/layout/components/Navbar.vue Datei anzeigen

@@ -313,6 +313,7 @@ export default {
313 313
     justify-content: space-between;
314 314
     min-width: 200px;
315 315
     margin-right: 10px;
316
+    font-size: 14px;
316 317
     .right-menu {
317 318
       float: right;
318 319
       height: 100%;
@@ -523,7 +524,7 @@ export default {
523 524
 }
524 525
 .dropdownBox {
525 526
     .el-dropdown-link{
526
-      font-size: 18px;
527
+      font-size: 14px;
527 528
       color:#fff;
528 529
     }
529 530
   }

+ 8 - 0
src/views/layout/components/Sidebar/SidebarItem.vue Datei anzeigen

@@ -210,12 +210,20 @@ export default {
210 210
 .menu-wrapper{
211 211
   .el-menu-item{
212 212
    background-color:#1F2D3D !important;
213
+   color: #fff !important;
213 214
   }
214 215
   .el-menu{
215 216
     background-color:#1F2D3D !important;
216 217
   }
217 218
   .el-submenu__title{
218 219
     background-color:#1F2D3D !important;
220
+    color: #fff !important;
221
+  }
222
+  .router-link-exact-active{
223
+    color: rgb(64, 158, 255) !important;
224
+    .el-menu-item{
225
+      color: rgb(64, 158, 255) !important;
226
+    }
219 227
   }
220 228
 }
221 229
 

+ 48 - 2
src/views/layout/components/Sidebar/index.vue Datei anzeigen

@@ -37,7 +37,32 @@
37 37
         :index="index"
38 38
         @a="b"
39 39
       ></sidebar-item>
40
+      <el-menu-item v-if="this.$store.getters.xt_user.cdm_role_exist" index="100">
41
+        <a :href="CDMWebsit()">
42
+          <i class="icon iconfont icon-manbing-xuanzhong" style="margin-right:4px"></i>
43
+          <span
44
+            slot="title"
45
+          >慢病管理</span>
46
+        </a>
47
+      </el-menu-item>
48
+      <el-menu-item v-if="this.$store.getters.xt_user.scrm_role_exist" index="101">
49
+        <a :href="SCRMWebsit()">
50
+          <i class="icon iconfont icon-pengyou" style="margin-right:4px"></i>
51
+          <span
52
+            slot="title"
53
+          >SCRM</span>
54
+        </a>
55
+      </el-menu-item>
56
+      <el-menu-item v-if="this.$store.getters.xt_user.mall_role_exist" index="102">
57
+        <a :href="MircoMallWebsit()">
58
+          <i class="icon iconfont icon-service_fill" style="margin-right:4px"></i>
59
+          <span
60
+            slot="title"
61
+          >微商城</span>
62
+        </a>
63
+      </el-menu-item>
40 64
     </el-menu>
65
+    
41 66
   </el-scrollbar>
42 67
   <!-- <div class="mianLeft">
43 68
     <div class="logo">
@@ -109,10 +134,19 @@ export default {
109 134
       // this.index = index;
110 135
       // this.activeClass = index;
111 136
       this.$emit("callBackIndex", index, num);
112
-    }
137
+    },
138
+    CDMWebsit() {
139
+      return process.env.CDM_HOST;
140
+    },
141
+    SCRMWebsit() {
142
+      return process.env.SRCM_HOST;
143
+    },
144
+    MircoMallWebsit() {
145
+      return process.env.MIRCO_MALL_HOST;
146
+    },
113 147
   },
114 148
   created() {
115
-    console.log(1111111121121111111, this.permission_routers);
149
+    // console.log(1111111121121111111, this.permission_routers);
116 150
     // this.permission_routers.map(item => {
117 151
     //   console.log(item.children);
118 152
     // });
@@ -204,5 +238,17 @@ export default {
204 238
 <style lang="scss">
205 239
 .scrollbar-wrapper {
206 240
   background-color: #1F2D3D;
241
+  .el-menu{
242
+    background-color: #1F2D3D !important;
243
+  }
244
+  .el-menu-item{
245
+    height: 40px !important;
246
+    line-height: 40px !important;
247
+    background-color: #1F2D3D !important;
248
+    color: #fff !important;
249
+    i{
250
+      color: #fff;
251
+    }
252
+  }
207 253
 }
208 254
 </style>