2024.2.21
This commit is contained in:
@@ -9,6 +9,7 @@ import { useUser } from "@/store/user.js";
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
// history: createWebHistory('/dist'),
|
||||
routes: [...notFoundAndNoPower, ...fullScreenRouting, ...staticRoutes],
|
||||
});
|
||||
|
||||
|
||||
@@ -67,6 +67,15 @@ export const fullScreenRouting = [
|
||||
title: "注册",
|
||||
isHide: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
path: "/password",
|
||||
name: "password",
|
||||
component: () => import("@/views/password/password.vue"),
|
||||
meta: {
|
||||
title: "修改密码",
|
||||
isHide: true,
|
||||
},
|
||||
}
|
||||
];
|
||||
|
||||
@@ -284,115 +293,115 @@ export const asyncRoutes = [
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
{
|
||||
path: '/organization',
|
||||
component: layout,
|
||||
meta: {
|
||||
title: '大机构管理',
|
||||
// roles: ['MG'],
|
||||
isHide: true
|
||||
},
|
||||
redirect: '/organization/big_organization',
|
||||
children: [
|
||||
{
|
||||
path: '/organization/big_organization',
|
||||
component: () => import('@/views/organization/big_organization.vue'),
|
||||
meta: {
|
||||
title: '大机构',
|
||||
icon: 'Tickets'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/organization/big_organization/agent_detail',
|
||||
name: 'agent_detail',
|
||||
component: () => import('@/views/organization/agent_detail.vue'),
|
||||
meta: {
|
||||
title: '机构详情',
|
||||
isHide: true,
|
||||
activeMenu: '/organization/big_organization'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/mini_organization_manage',
|
||||
component: layout,
|
||||
meta: {
|
||||
title: '小机构管理',
|
||||
// roles: ['FO'],
|
||||
isHide: true
|
||||
},
|
||||
redirect: '/mini_organization_manage/mini_organization',
|
||||
children: [
|
||||
{
|
||||
path: '/mini_organization/mini_organization',
|
||||
component: () => import('@/views/organization/mini_organization.vue'),
|
||||
meta: {
|
||||
title: '小机构',
|
||||
icon: 'SetUp'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/organization/mini_organization/mini_agent_detail',
|
||||
name: 'mini_agent_detail',
|
||||
component: () => import('@/views/organization/mini_agent_detail.vue'),
|
||||
meta: {
|
||||
title: '小机构详情',
|
||||
isHide: true,
|
||||
activeMenu: '/mini_organization/mini_organization'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/agent_manage',
|
||||
component: layout,
|
||||
meta: {
|
||||
title: '大代理管理',
|
||||
// roles: ['FO', 'SO'],
|
||||
isHide: true
|
||||
},
|
||||
redirect: '/agent_manage/agent_list',
|
||||
children: [
|
||||
{
|
||||
path: '/agent_manage/agent_list',
|
||||
component: () => import('@/views/organization/agent_list.vue'),
|
||||
meta: {
|
||||
title: '大代理',
|
||||
icon: 'Discount'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/promotion_manage',
|
||||
component: layout,
|
||||
meta: {
|
||||
title: '代理',
|
||||
icon: 'Connection',
|
||||
},
|
||||
redirect: '/promotion_manage/one_promotion_list',
|
||||
children: [
|
||||
{
|
||||
path: '/promotion_manage/one_promotion_list',
|
||||
component: () => import('@/views/organization/one_promotion_list.vue'),
|
||||
meta: {
|
||||
title: '一级代理',
|
||||
icon: 'User',
|
||||
// roles: ['FO', 'SO', 'AG']
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/promotion_manage/two_promotion_list',
|
||||
component: () => import('@/views/organization/two_promotion_list.vue'),
|
||||
meta: {
|
||||
title: '二级代理',
|
||||
icon: 'User',
|
||||
// roles: ['FO', 'SO', 'AG', 'FB']
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
// {
|
||||
// path: '/organization',
|
||||
// component: layout,
|
||||
// meta: {
|
||||
// title: '大机构管理',
|
||||
// // roles: ['MG'],
|
||||
// isHide: true
|
||||
// },
|
||||
// redirect: '/organization/big_organization',
|
||||
// children: [
|
||||
// {
|
||||
// path: '/organization/big_organization',
|
||||
// component: () => import('@/views/organization/big_organization.vue'),
|
||||
// meta: {
|
||||
// title: '大机构',
|
||||
// icon: 'Tickets'
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// path: '/organization/big_organization/agent_detail',
|
||||
// name: 'agent_detail',
|
||||
// component: () => import('@/views/organization/agent_detail.vue'),
|
||||
// meta: {
|
||||
// title: '机构详情',
|
||||
// isHide: true,
|
||||
// activeMenu: '/organization/big_organization'
|
||||
// }
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// path: '/mini_organization_manage',
|
||||
// component: layout,
|
||||
// meta: {
|
||||
// title: '小机构管理',
|
||||
// // roles: ['FO'],
|
||||
// isHide: true
|
||||
// },
|
||||
// redirect: '/mini_organization_manage/mini_organization',
|
||||
// children: [
|
||||
// {
|
||||
// path: '/mini_organization/mini_organization',
|
||||
// component: () => import('@/views/organization/mini_organization.vue'),
|
||||
// meta: {
|
||||
// title: '小机构',
|
||||
// icon: 'SetUp'
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// path: '/organization/mini_organization/mini_agent_detail',
|
||||
// name: 'mini_agent_detail',
|
||||
// component: () => import('@/views/organization/mini_agent_detail.vue'),
|
||||
// meta: {
|
||||
// title: '小机构详情',
|
||||
// isHide: true,
|
||||
// activeMenu: '/mini_organization/mini_organization'
|
||||
// }
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// path: '/agent_manage',
|
||||
// component: layout,
|
||||
// meta: {
|
||||
// title: '大代理管理',
|
||||
// // roles: ['FO', 'SO'],
|
||||
// isHide: true
|
||||
// },
|
||||
// redirect: '/agent_manage/agent_list',
|
||||
// children: [
|
||||
// {
|
||||
// path: '/agent_manage/agent_list',
|
||||
// component: () => import('@/views/organization/agent_list.vue'),
|
||||
// meta: {
|
||||
// title: '大代理',
|
||||
// icon: 'Discount'
|
||||
// }
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// path: '/promotion_manage',
|
||||
// component: layout,
|
||||
// meta: {
|
||||
// title: '代理',
|
||||
// icon: 'Connection',
|
||||
// },
|
||||
// redirect: '/promotion_manage/one_promotion_list',
|
||||
// children: [
|
||||
// {
|
||||
// path: '/promotion_manage/one_promotion_list',
|
||||
// component: () => import('@/views/organization/one_promotion_list.vue'),
|
||||
// meta: {
|
||||
// title: '一级代理',
|
||||
// icon: 'User',
|
||||
// // roles: ['FO', 'SO', 'AG']
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// path: '/promotion_manage/two_promotion_list',
|
||||
// component: () => import('@/views/organization/two_promotion_list.vue'),
|
||||
// meta: {
|
||||
// title: '二级代理',
|
||||
// icon: 'User',
|
||||
// // roles: ['FO', 'SO', 'AG', 'FB']
|
||||
// }
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
{
|
||||
path: '/shop_manage',
|
||||
component: layout,
|
||||
@@ -408,28 +417,28 @@ export const asyncRoutes = [
|
||||
name: 'shop_list',
|
||||
component: () => import('@/views/organization/shop_list.vue'),
|
||||
meta: {
|
||||
title: '商家列表',
|
||||
title: '用户列表',
|
||||
icon: 'Tickets'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/shop_manage/shop_detail',
|
||||
name: 'shop_detail',
|
||||
component: () => import('@/views/organization/shop_detail.vue'),
|
||||
meta: {
|
||||
title: '详情',
|
||||
isHide: true,
|
||||
activeMenu: '/shop_manage/shop_list'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/shop_manage/maker_apply',
|
||||
component: () => import('@/views/organization/maker_apply.vue'),
|
||||
meta: {
|
||||
title: '创客申请',
|
||||
icon: 'User'
|
||||
}
|
||||
}
|
||||
// {
|
||||
// path: '/shop_manage/shop_detail',
|
||||
// name: 'shop_detail',
|
||||
// component: () => import('@/views/organization/shop_detail.vue'),
|
||||
// meta: {
|
||||
// title: '详情',
|
||||
// isHide: true,
|
||||
// activeMenu: '/shop_manage/shop_list'
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// path: '/shop_manage/maker_apply',
|
||||
// component: () => import('@/views/organization/maker_apply.vue'),
|
||||
// meta: {
|
||||
// title: '创客申请',
|
||||
// icon: 'User'
|
||||
// }
|
||||
// }
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -452,25 +461,25 @@ export const asyncRoutes = [
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/device_manage',
|
||||
component: layout,
|
||||
meta: {
|
||||
title: '设备管理',
|
||||
isHide: true
|
||||
},
|
||||
redirect: '/device_manage/device_list',
|
||||
children: [
|
||||
{
|
||||
path: '/device_manage/device_list',
|
||||
component: () => import('@/views/device/device_list.vue'),
|
||||
meta: {
|
||||
title: '设备列表',
|
||||
icon: 'TakeawayBox'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
// {
|
||||
// path: '/device_manage',
|
||||
// component: layout,
|
||||
// meta: {
|
||||
// title: '设备管理',
|
||||
// isHide: true
|
||||
// },
|
||||
// redirect: '/device_manage/device_list',
|
||||
// children: [
|
||||
// {
|
||||
// path: '/device_manage/device_list',
|
||||
// component: () => import('@/views/device/device_list.vue'),
|
||||
// meta: {
|
||||
// title: '设备列表',
|
||||
// icon: 'TakeawayBox'
|
||||
// }
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
{
|
||||
path: '/total_earnings',
|
||||
component: layout,
|
||||
@@ -490,66 +499,66 @@ export const asyncRoutes = [
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/promotion',
|
||||
component: layout,
|
||||
meta: {
|
||||
title: '推广图片管理',
|
||||
isHide: true,
|
||||
// roles: ['MG']
|
||||
},
|
||||
redirect: '/promotion/promotion_list',
|
||||
children: [
|
||||
{
|
||||
path: '/promotion/promotion_list',
|
||||
component: () => import('@/views/promotion/promotion_list.vue'),
|
||||
meta: {
|
||||
title: '推广图片',
|
||||
icon: 'PictureRounded'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/app_manage',
|
||||
component: layout,
|
||||
meta: {
|
||||
title: 'APP管理',
|
||||
icon: 'Iphone',
|
||||
// roles: ['MG']
|
||||
},
|
||||
redirect: '/app_manage/menu_list',
|
||||
children: [
|
||||
{
|
||||
path: '/app_manage/menu_list',
|
||||
component: () => import('@/views/app_manage/menu_list.vue'),
|
||||
meta: {
|
||||
title: '菜单管理',
|
||||
icon: 'Tickets'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/setting',
|
||||
component: layout,
|
||||
meta: {
|
||||
title: '系统设置',
|
||||
icon: 'Setting',
|
||||
// roles: ['MG']
|
||||
},
|
||||
redirect: '/setting/appid_manage',
|
||||
children: [
|
||||
{
|
||||
path: '/setting/appid_manage',
|
||||
component: () => import('@/views/setting/appid_manage.vue'),
|
||||
meta: {
|
||||
title: 'Appid管理',
|
||||
icon: 'Tickets'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
// {
|
||||
// path: '/promotion',
|
||||
// component: layout,
|
||||
// meta: {
|
||||
// title: '推广图片管理',
|
||||
// isHide: true,
|
||||
// // roles: ['MG']
|
||||
// },
|
||||
// redirect: '/promotion/promotion_list',
|
||||
// children: [
|
||||
// {
|
||||
// path: '/promotion/promotion_list',
|
||||
// component: () => import('@/views/promotion/promotion_list.vue'),
|
||||
// meta: {
|
||||
// title: '推广图片',
|
||||
// icon: 'PictureRounded'
|
||||
// }
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// path: '/app_manage',
|
||||
// component: layout,
|
||||
// meta: {
|
||||
// title: 'APP管理',
|
||||
// icon: 'Iphone',
|
||||
// // roles: ['MG']
|
||||
// },
|
||||
// redirect: '/app_manage/menu_list',
|
||||
// children: [
|
||||
// {
|
||||
// path: '/app_manage/menu_list',
|
||||
// component: () => import('@/views/app_manage/menu_list.vue'),
|
||||
// meta: {
|
||||
// title: '菜单管理',
|
||||
// icon: 'Tickets'
|
||||
// }
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
// {
|
||||
// path: '/setting',
|
||||
// component: layout,
|
||||
// meta: {
|
||||
// title: '系统设置',
|
||||
// icon: 'Setting',
|
||||
// // roles: ['MG']
|
||||
// },
|
||||
// redirect: '/setting/appid_manage',
|
||||
// children: [
|
||||
// {
|
||||
// path: '/setting/appid_manage',
|
||||
// component: () => import('@/views/setting/appid_manage.vue'),
|
||||
// meta: {
|
||||
// title: 'Appid管理',
|
||||
// icon: 'Tickets'
|
||||
// }
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
{
|
||||
path: '/notice',
|
||||
component: layout,
|
||||
|
||||
Reference in New Issue
Block a user