sunny 1 ano atrás
pai
commit
f33bf520d9
3 arquivos alterados com 31 adições e 25 exclusões
  1. 4 4
      config/dev.env.js
  2. 14 13
      src/permission.js
  3. 13 8
      src/router/index.js

+ 4 - 4
config/dev.env.js

@@ -2,10 +2,10 @@ module.exports = {
 	NODE_ENV: '"development"',
 	ENV_CONFIG: '"dev"',
   // 本地数据库:登录用户名 admin123,密码 admin123
-  // OS_API: '"http://192.168.100.208:9083/admin"',
-  // BASE_API: '"http://192.168.100.208:9083/admin"',
-  OS_API: '"https://xiaoyou.dgtis.com/admin"',
-  BASE_API: '"https://xiaoyou.dgtis.com/admin"',
+  OS_API: '"http://192.168.100.208:9083/admin"',
+  BASE_API: '"http://192.168.100.208:9083/admin"',
+  // OS_API: '"https://xiaoyou.dgtis.com/admin"',
+  // BASE_API: '"https://xiaoyou.dgtis.com/admin"',
   
   
   

+ 14 - 13
src/permission.js

@@ -21,21 +21,22 @@ const myRoles = [
   // 'pointInstructions', 
   // 'pointRulesList', 
   // 'pointList', 
-  // 'goodsManage', 
-  // 'goodsExchangeRules', 
-  // 'goodsList', 
-  // 'giftManage', 
-  // 'giftExchangeRules', 
-  // 'giftList', 
-  // 'welfareManage', 
-  // 'welfareList', 
-  // 'exchangeManage', 
-  // 'exchangeList',
+  'goodsManage', 
+  'goodsExchangeRules', 
+  'goodsList', 
+  'giftManage', 
+  'giftExchangeRules', 
+  'giftList', 
+  'welfareManage', 
+  'welfareList', 
+  'exchangeManage', 
+  'exchangeList',
   // 'activityManage', 
   // 'activityList', 
-  'noticeManage', 
-  'noticeList', 
-  'rankingList',
+  // 'noticeManage', 
+  // 'noticeList', 
+  // 'ranking',
+  // 'rankingList',
 ]
 
 router.beforeEach((to, from, next) => {

+ 13 - 8
src/router/index.js

@@ -105,8 +105,8 @@ export const asyncRouterMap = [
       icon: 'fuli'
     },
     children: [
-      { path: 'welfareList', component: _import('welfareManage/welfareList'), name: 'welfareList', meta: { title: '福利列表', noCache: true }},
-      { path: 'welfareList', component: _import('welfareManage/welfareList'), name: 'welfareList', meta: { title: '福利列表', noCache: false, hideTag: true, hidden: true}},
+      { path: 'welfareList', component: _import('welfareManage/welfareList'), name: 'welfareList', meta: { title: '福利列表', icon: 'lipin', noCache: true }},
+      // { path: 'welfareList', component: _import('welfareManage/welfareList'), name: 'welfareList', meta: { title: '福利列表', noCache: false, hideTag: true, hidden: true}},
     ]
   },
   {
@@ -119,8 +119,8 @@ export const asyncRouterMap = [
       icon: 'duihuan'
     },
     children: [
-      { path: 'exchangeList', component: _import('exchangeManage/exchangeList'), name: 'exchangeList', meta: { title: '兑换列表', noCache: true }},
-      { path: 'exchangeList', component: _import('exchangeManage/exchangeList'), name: 'exchangeList', meta: { title: '兑换列表', noCache: false, hideTag: true, hidden: true}},
+      { path: 'exchangeList', component: _import('exchangeManage/exchangeList'), name: 'exchangeList', meta: { title: '兑换列表', icon: 'duihuan', noCache: true }},
+      // { path: 'exchangeList', component: _import('exchangeManage/exchangeList'), name: 'exchangeList', meta: { title: '兑换列表', noCache: false, hideTag: true, hidden: true}},
     ]
   },
   {
@@ -133,8 +133,8 @@ export const asyncRouterMap = [
       icon: 'huodong'
     },
     children: [
-      { path: 'activityList', component: _import('activityManage/activityList'), name: 'activityList', meta: { title: '活动列表', noCache: true }},
-      { path: 'activityList', component: _import('activityManage/activityList'), name: 'activityList', meta: { title: '活动列表', noCache: false, hideTag: true, hidden: true}},
+      { path: 'activityList', component: _import('activityManage/activityList'), name: 'activityList', meta: { title: '活动列表', icon: 'huodong', noCache: true }},
+      // { path: 'activityList', component: _import('activityManage/activityList'), name: 'activityList', meta: { title: '活动列表', noCache: false, hideTag: true, hidden: true}},
     ]
   },
   {
@@ -147,14 +147,19 @@ export const asyncRouterMap = [
       icon: 'tongzhi'
     },
     children: [
-      { path: 'noticeList', component: _import('noticeManage/noticeList'), name: 'noticeList', meta: { title: '通知列表', noCache: true }},
-      { path: 'noticeList', component: _import('noticeManage/noticeList'), name: 'noticeList', meta: { title: '通知列表', noCache: false, hideTag: true, hidden: true}},
+      { path: 'noticeList', component: _import('noticeManage/noticeList'), name: 'noticeList', meta: { title: '通知列表', icon: 'tongzhi', noCache: true }},
+      // { path: 'noticeList', component: _import('noticeManage/noticeList'), name: 'noticeList', meta: { title: '通知列表', noCache: false, hideTag: true, hidden: true}},
     ]
   },
   {
     path: '/ranking',
     component: Layout,
     redirect: 'noredirect',
+    name: 'ranking',
+    meta: {
+      title: '积分排行',
+      icon: 'paihang'
+    },
     children: [
       { path: 'rankingList', component: _import('ranking/rankingList'), name: 'rankingList', meta: { title: '积分排行', icon: 'paihang', noCache: true }},
     ]