Pārlūkot izejas kodu

Merge branch 'master' of http://git.cc-lotus.info/live/web-achieve

guhongwei 4 gadi atpakaļ
vecāks
revīzija
290592851c
1 mainītis faili ar 14 papildinājumiem un 14 dzēšanām
  1. 14 14
      src/components/common/Sidebar.vue

+ 14 - 14
src/components/common/Sidebar.vue

@@ -58,7 +58,7 @@ export default {
   computed: {
     ...mapState(['user']),
     onRoutes() {
-      return this.$route.path.replace('/', '');
+      return this.$route.path;
     },
   },
   created() {
@@ -87,17 +87,17 @@ export default {
         this.$set(this, `items`, _.uniqBy(list, 'index'));
       } else if (user.role == '2') {
         let data = [
-          { icon: 'el-icon-eleme', index: 'adminExamine', title: '初审申请书' },
-          { icon: 'el-icon-thumb', index: 'adminScore', title: '专家评分' },
-          { icon: 'el-icon-orange', index: 'adminMeet', title: '专家会审' },
-          { icon: 'el-icon-edit-outline', index: 'adminPerfect', title: '资料完善' },
-          { icon: 'el-icon-postcard', index: 'adminCate', title: '证书发放' },
-          { icon: 'el-icon-postcard', index: 'adminHaveCert', title: '已证书发放' },
+          { icon: 'el-icon-eleme', index: '/adminExamine', title: '初审申请书' },
+          { icon: 'el-icon-thumb', index: '/adminScore', title: '专家评分' },
+          { icon: 'el-icon-orange', index: '/adminMeet', title: '专家会审' },
+          { icon: 'el-icon-edit-outline', index: '/adminPerfect', title: '资料完善' },
+          { icon: 'el-icon-postcard', index: '/adminCate', title: '证书发放' },
+          { icon: 'el-icon-postcard', index: '/adminHaveCert', title: '已证书发放' },
         ];
         list.push(...data);
         this.$set(this, `items`, _.uniqBy(list, 'index'));
       } else if (user.role === '3') {
-        let data = [{ icon: 'el-icon-thumb', index: 'expertScore', title: '专家评分' }];
+        let data = [{ icon: 'el-icon-thumb', index: '/expertScore', title: '专家评分' }];
         list.push(...data);
         this.$set(this, `items`, _.uniqBy(list, 'index'));
       } else {
@@ -109,12 +109,12 @@ export default {
             subs: [
               {
                 icon: 'el-icon-eleme',
-                index: 'firstApply',
+                index: '/firstApply',
                 title: '待审中',
               },
               {
                 icon: 'el-icon-eleme',
-                index: 'updateApply',
+                index: '/updateApply',
                 title: '审核未通过',
               },
             ],
@@ -126,12 +126,12 @@ export default {
             subs: [
               {
                 icon: 'el-icon-eleme',
-                index: 'expertExam',
+                index: '/expertExam',
                 title: '待评分',
               },
               {
                 icon: 'el-icon-eleme',
-                index: 'noExpertScore',
+                index: '/noExpertScore',
                 title: '评分审核未通过',
               },
             ],
@@ -143,12 +143,12 @@ export default {
             subs: [
               {
                 icon: 'el-icon-eleme',
-                index: 'expertMeet',
+                index: '/expertMeet',
                 title: '待会审',
               },
               {
                 icon: 'el-icon-eleme',
-                index: 'noExpertMeet',
+                index: '/noExpertMeet',
                 title: '会审未通过',
               },
             ],