|
@@ -70,68 +70,7 @@ const showDrawer = ref(false)
|
|
|
const { user } = useUserStore()
|
|
const { user } = useUserStore()
|
|
|
const roles = user.roles
|
|
const roles = user.roles
|
|
|
let menus = []
|
|
let menus = []
|
|
|
-if (roles.includes('admin')) {
|
|
|
|
|
- menus = [
|
|
|
|
|
- {
|
|
|
|
|
- name: '/home',
|
|
|
|
|
- title: '主页',
|
|
|
|
|
- icon: Home
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- name: 'rcs-parent',
|
|
|
|
|
- title: 'RCS管理',
|
|
|
|
|
- icon: DeviceMobileMessage,
|
|
|
|
|
- children: [
|
|
|
|
|
- {
|
|
|
|
|
- name: '/phoneList',
|
|
|
|
|
- title: '料子列表'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- name: '/task',
|
|
|
|
|
- title: '任务列表'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- name: '/device',
|
|
|
|
|
- title: '设备列表'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- name: '/channel',
|
|
|
|
|
- title: '渠道列表'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- name: '/rcsNumber',
|
|
|
|
|
- title: 'RCS号码'
|
|
|
|
|
- }
|
|
|
|
|
- ]
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- name: 'user-parent',
|
|
|
|
|
- title: '用户管理',
|
|
|
|
|
- icon: User,
|
|
|
|
|
- children: [
|
|
|
|
|
- {
|
|
|
|
|
- name: '/user',
|
|
|
|
|
- title: '用户列表'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- name: '/dealer',
|
|
|
|
|
- title: '经销商列表'
|
|
|
|
|
- }
|
|
|
|
|
- ]
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- name: 'settings',
|
|
|
|
|
- title: '系统设置',
|
|
|
|
|
- icon: Settings,
|
|
|
|
|
- children: [
|
|
|
|
|
- {
|
|
|
|
|
- name: '/sysConfig',
|
|
|
|
|
- title: '参数设置'
|
|
|
|
|
- }
|
|
|
|
|
- ]
|
|
|
|
|
- }
|
|
|
|
|
- ]
|
|
|
|
|
-} else if (roles.includes('api')) {
|
|
|
|
|
|
|
+if (roles.includes('api')) {
|
|
|
menus = [
|
|
menus = [
|
|
|
{
|
|
{
|
|
|
name: '/home',
|
|
name: '/home',
|