|
|
@@ -206,6 +206,40 @@ if (roles.includes('admin')) {
|
|
|
}
|
|
|
]
|
|
|
} else if (roles.includes('api')) {
|
|
|
+ menus = [
|
|
|
+ {
|
|
|
+ name: '/home',
|
|
|
+ title: '主页',
|
|
|
+ icon: Home
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'rcs-parent',
|
|
|
+ title: 'RCS管理',
|
|
|
+ icon: DeviceMobileMessage,
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ name: '/task',
|
|
|
+ title: '任务列表'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '/paymentView',
|
|
|
+ title: '余额充值'
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: 'user-parent',
|
|
|
+ title: '用户管理',
|
|
|
+ icon: User,
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ name: '/dealer',
|
|
|
+ title: '用户列表'
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+} else if (roles.includes('user')) {
|
|
|
if (invitor === 25 || invitor === 605 || invitor === 606 || invitor === 698) {
|
|
|
menus = [
|
|
|
{
|
|
|
@@ -218,24 +252,25 @@ if (roles.includes('admin')) {
|
|
|
title: 'RCS管理',
|
|
|
icon: DeviceMobileMessage,
|
|
|
children: [
|
|
|
+ {
|
|
|
+ name: '/screenList',
|
|
|
+ title: '筛号列表'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '/phoneList',
|
|
|
+ title: '发送列表'
|
|
|
+ },
|
|
|
{
|
|
|
name: '/task',
|
|
|
title: '任务列表'
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'user-parent',
|
|
|
- title: '用户管理',
|
|
|
- icon: User,
|
|
|
- children: [
|
|
|
- {
|
|
|
- name: '/dealer',
|
|
|
- title: '用户列表'
|
|
|
},
|
|
|
{
|
|
|
name: '/paymentView',
|
|
|
title: '余额充值'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '/balance',
|
|
|
+ title: '余额明细'
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
@@ -252,57 +287,26 @@ if (roles.includes('admin')) {
|
|
|
title: 'RCS管理',
|
|
|
icon: DeviceMobileMessage,
|
|
|
children: [
|
|
|
+ {
|
|
|
+ name: '/screenList',
|
|
|
+ title: '筛号列表'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '/phoneList',
|
|
|
+ title: '发送列表'
|
|
|
+ },
|
|
|
{
|
|
|
name: '/task',
|
|
|
title: '任务列表'
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'user-parent',
|
|
|
- title: '用户管理',
|
|
|
- icon: User,
|
|
|
- children: [
|
|
|
+ },
|
|
|
{
|
|
|
- name: '/dealer',
|
|
|
- title: '用户列表'
|
|
|
+ name: '/balance',
|
|
|
+ title: '余额明细'
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
-
|
|
|
-} else if (roles.includes('user')) {
|
|
|
- menus = [
|
|
|
- {
|
|
|
- name: '/home',
|
|
|
- title: '主页',
|
|
|
- icon: Home
|
|
|
- },
|
|
|
- {
|
|
|
- name: 'rcs-parent',
|
|
|
- title: 'RCS管理',
|
|
|
- icon: DeviceMobileMessage,
|
|
|
- children: [
|
|
|
- {
|
|
|
- name: '/screenList',
|
|
|
- title: '筛号列表'
|
|
|
- },
|
|
|
- {
|
|
|
- name: '/phoneList',
|
|
|
- title: '发送列表'
|
|
|
- },
|
|
|
- {
|
|
|
- name: '/task',
|
|
|
- title: '任务列表'
|
|
|
- },
|
|
|
- {
|
|
|
- name: '/balance',
|
|
|
- title: '余额明细'
|
|
|
- }
|
|
|
- ]
|
|
|
- }
|
|
|
- ]
|
|
|
}
|
|
|
|
|
|
function toggleMenu() {
|