Merge branch 'main' of https://git.opencomputing.cn/yumoqing/kboss
This commit is contained in:
commit
5c3a9b847b
@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="index">
|
<div class="index">
|
||||||
<div :class="{ 'has-logo': showLogo }" class="sidebar-container">
|
<div :class="{ 'has-logo': showLogo }" class="sidebar-container">
|
||||||
@ -47,7 +48,12 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
components: { SidebarItem, Logo },
|
components: { SidebarItem, Logo },
|
||||||
|
created() {
|
||||||
|
console.log("filteredRoutes路由Menu",this.filteredRoutes);
|
||||||
|
|
||||||
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
||||||
...mapGetters(["permission_routes", "sidebar"]),
|
...mapGetters(["permission_routes", "sidebar"]),
|
||||||
showLogo() {
|
showLogo() {
|
||||||
return true;
|
return true;
|
||||||
@ -64,6 +70,7 @@ export default {
|
|||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
return this.permission_routes.filter(route => !this.homePageRouteIdentifier(route));
|
return this.permission_routes.filter(route => !this.homePageRouteIdentifier(route));
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -75,7 +82,7 @@ export default {
|
|||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.index {
|
.index {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100vh;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
.sidebar-container {
|
.sidebar-container {
|
||||||
@ -133,3 +140,4 @@ export default {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -605,7 +605,7 @@ export const asyncRoutes = [
|
|||||||
component: () => import('@/views/product/productHome/ucloud/Eip/showUEip'),
|
component: () => import('@/views/product/productHome/ucloud/Eip/showUEip'),
|
||||||
name: 'showUEip',
|
name: 'showUEip',
|
||||||
meta: { title: "Eip列表", fullPath: "/product/productHome/ucloud/Eip/showUEip", noCache: true },
|
meta: { title: "Eip列表", fullPath: "/product/productHome/ucloud/Eip/showUEip", noCache: true },
|
||||||
},]
|
}]
|
||||||
}, // {
|
}, // {
|
||||||
// hidden: true,
|
// hidden: true,
|
||||||
// path: "baiduProduct",
|
// path: "baiduProduct",
|
||||||
@ -757,16 +757,20 @@ export const asyncRoutes = [
|
|||||||
// component: () => import("@/views/product"),
|
// component: () => import("@/views/product"),
|
||||||
// meta: { title: "产品", fullPath: "/product", icon: "el-icon-s-data", },
|
// meta: { title: "产品", fullPath: "/product", icon: "el-icon-s-data", },
|
||||||
// },
|
// },
|
||||||
|
// 客户
|
||||||
{
|
{
|
||||||
path: "/customer", component: Layout, redirect: "/customer/workOrderManagement", meta: {
|
path: "/customer", component: Layout, redirect: "/customer/workOrderManagement", meta: {
|
||||||
title: "客户", icon: "el-icon-s-custom", noCache: true, fullPath: "/customer",
|
title: "客户", icon: "el-icon-s-custom", noCache: true, fullPath: "/customer",
|
||||||
}, children: [{
|
},
|
||||||
|
children: [
|
||||||
|
// 工单
|
||||||
|
{
|
||||||
path: "workOrderManagement",
|
path: "workOrderManagement",
|
||||||
component: () => import("@/views/customer/workOrderManagement"),
|
component: () => import("@/views/customer/workOrderManagement"),
|
||||||
name: "WorkOrderManagement",
|
name: "WorkOrderManagement",
|
||||||
meta: { title: "工单管理", fullPath: "/customer/workOrderManagement" },
|
meta: { title: "工单管理", fullPath: "/customer/workOrderManagement" },
|
||||||
},
|
},
|
||||||
|
// 退订
|
||||||
{
|
{
|
||||||
path: "unsubscribe",
|
path: "unsubscribe",
|
||||||
|
|
||||||
@ -792,30 +796,39 @@ export const asyncRoutes = [
|
|||||||
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
// 完善信息
|
||||||
{
|
{
|
||||||
path: 'approve',
|
path: 'approve',
|
||||||
component: () => import('@/views/customer/ncApprove/index.vue'),
|
component: () => import('@/views/customer/ncApprove/index.vue'),
|
||||||
name: "Approve",
|
name: "Approve",
|
||||||
meta: { title: "信息完善", fullPath: "/customer/ncApprove" },
|
meta: { title: "信息完善", fullPath: "/customer/ncApprove" },
|
||||||
}, {
|
},
|
||||||
|
// 渠道管理
|
||||||
|
{
|
||||||
hidden: true,
|
hidden: true,
|
||||||
path: "channelMangement",
|
path: "channelMangement",
|
||||||
component: () => import("@/views/customer/channelMangement/index.vue"),
|
component: () => import("@/views/customer/channelMangement/index.vue"),
|
||||||
name: "ChannelMangement",
|
name: "ChannelMangement",
|
||||||
meta: { title: "渠道管理", fullPath: "/customer/channelMangement" },
|
meta: { title: "渠道管理", fullPath: "/customer/channelMangement" },
|
||||||
}, {
|
},
|
||||||
|
//渠道产品管理
|
||||||
|
{
|
||||||
hidden: true,
|
hidden: true,
|
||||||
path: "channelProductMangement",
|
path: "channelProductMangement",
|
||||||
component: () => import("@/views/customer/channelMangement/channelProductMangement/index.vue"),
|
component: () => import("@/views/customer/channelMangement/channelProductMangement/index.vue"),
|
||||||
name: "channelProductMangement",
|
name: "channelProductMangement",
|
||||||
meta: { title: "渠道产品管理", fullPath: "/customer/channelMangement/channelProductMangement", noCache: true },
|
meta: { title: "渠道产品管理", fullPath: "/customer/channelMangement/channelProductMangement", noCache: true },
|
||||||
}, {
|
},
|
||||||
|
// 无权限
|
||||||
|
{
|
||||||
hidden: true,
|
hidden: true,
|
||||||
path: "noChannelPermission",
|
path: "noChannelPermission",
|
||||||
component: () => import("@/views/customer/channelMangement/noChannelPermission/index.vue"),
|
component: () => import("@/views/customer/channelMangement/noChannelPermission/index.vue"),
|
||||||
name: "noChannelPermission",
|
name: "noChannelPermission",
|
||||||
meta: { title: "无权限", fullPath: "/customer/channelMangement/noChannelPermission", noCache: true },
|
meta: { title: "无权限", fullPath: "/customer/channelMangement/noChannelPermission", noCache: true },
|
||||||
}, {
|
},
|
||||||
|
// 聊天
|
||||||
|
{
|
||||||
hidden: true,
|
hidden: true,
|
||||||
path: "chat",
|
path: "chat",
|
||||||
component: () => import("@/views/product/productHome/chat/index.vue"),
|
component: () => import("@/views/product/productHome/chat/index.vue"),
|
||||||
@ -823,35 +836,47 @@ export const asyncRoutes = [
|
|||||||
meta: {
|
meta: {
|
||||||
title: "聊天", fullPath: "/product/productHome/chat", noCache: true
|
title: "聊天", fullPath: "/product/productHome/chat", noCache: true
|
||||||
},
|
},
|
||||||
}, // {
|
},
|
||||||
|
|
||||||
|
// {
|
||||||
// path: "workOrderManagement/mobile",
|
// path: "workOrderManagement/mobile",
|
||||||
// component: () => import("@/views/customer/mobile_workOrderManagement"),
|
// component: () => import("@/views/customer/mobile_workOrderManagement"),
|
||||||
// name: "mobile_workOrderManagement",
|
// name: "mobile_workOrderManagement",
|
||||||
// meta: { title: "工单管理", fullPath: "/customer/workOrderManagement" , isMobile: true },
|
// meta: { title: "工单管理", fullPath: "/customer/workOrderManagement" , isMobile: true },
|
||||||
// },
|
// },
|
||||||
|
|
||||||
|
// 个人中心
|
||||||
{
|
{
|
||||||
hidden: true,
|
hidden: true,
|
||||||
path: "customerInformation",
|
path: "customerInformation",
|
||||||
component: () => import("@/views/customer/customerInformation"),
|
component: () => import("@/views/customer/customerInformation"),
|
||||||
name: "customerInformation",
|
name: "customerInformation",
|
||||||
meta: { title: "个人中心", fullPath: "/customer/customerInformation" },
|
meta: { title: "个人中心", fullPath: "/customer/customerInformation" },
|
||||||
}, {
|
},
|
||||||
|
// 充值管理
|
||||||
|
{
|
||||||
path: "rechargeRecord",
|
path: "rechargeRecord",
|
||||||
component: () => import("@/views/customer/rechargeRecord"),
|
component: () => import("@/views/customer/rechargeRecord"),
|
||||||
name: "RechargeRecord",
|
name: "RechargeRecord",
|
||||||
meta: { title: "充值管理", fullPath: "/customer/rechargeRecord" },
|
meta: { title: "充值管理", fullPath: "/customer/rechargeRecord" },
|
||||||
}, {
|
},
|
||||||
|
// 订单管理
|
||||||
|
{
|
||||||
path: "orderManagement",
|
path: "orderManagement",
|
||||||
component: () => import("@/views/customer/orderManagement"),
|
component: () => import("@/views/customer/orderManagement"),
|
||||||
name: "OrderManagement",
|
name: "OrderManagement",
|
||||||
meta: { title: "产品订单", fullPath: "/customer/orderManagement", noCache: true, },
|
meta: { title: "产品订单", fullPath: "/customer/orderManagement", noCache: true, },
|
||||||
}, {
|
},
|
||||||
|
// 订单详情
|
||||||
|
{
|
||||||
path: "orderDetil",
|
path: "orderDetil",
|
||||||
component: () => import("@/views/customer/orderDetil"),
|
component: () => import("@/views/customer/orderDetil"),
|
||||||
name: "orderDetil",
|
name: "orderDetil",
|
||||||
hidden: true,
|
hidden: true,
|
||||||
meta: { title: "订单详情", fullPath: "/customer/orderDetil", noCache: true, },
|
meta: { title: "订单详情", fullPath: "/customer/orderDetil", noCache: true, },
|
||||||
}, {
|
},
|
||||||
|
// 促销邀请码
|
||||||
|
{
|
||||||
hidden: true,
|
hidden: true,
|
||||||
path: "promotionalInvitationCode",
|
path: "promotionalInvitationCode",
|
||||||
component: () => import("@/views/customer/promotionalInvitationCode"),
|
component: () => import("@/views/customer/promotionalInvitationCode"),
|
||||||
@ -912,6 +937,7 @@ export const asyncRoutes = [
|
|||||||
meta: { title: "产品最新页", fullPath: "/product/productHome/productIndex", noCache: true },
|
meta: { title: "产品最新页", fullPath: "/product/productHome/productIndex", noCache: true },
|
||||||
},],
|
},],
|
||||||
},
|
},
|
||||||
|
// 资质审核
|
||||||
{
|
{
|
||||||
path: "/qualificationReview",
|
path: "/qualificationReview",
|
||||||
component: Layout,
|
component: Layout,
|
||||||
@ -934,6 +960,7 @@ export const asyncRoutes = [
|
|||||||
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
// 供需审核
|
||||||
{
|
{
|
||||||
path: "/approveMangement",
|
path: "/approveMangement",
|
||||||
component: Layout,
|
component: Layout,
|
||||||
@ -956,6 +983,28 @@ export const asyncRoutes = [
|
|||||||
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
// 需求管理 - 移动到商品管理上方
|
||||||
|
{
|
||||||
|
path: "/demandMangement",
|
||||||
|
component: Layout,
|
||||||
|
name: "demandMangement",
|
||||||
|
redirect: "/demandMangement/index",
|
||||||
|
meta: { fullPath: "/demandMangement", title: "需求管理", noCache: true, icon: 'el-icon-s-home' },
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
path: "index",
|
||||||
|
component: () => import("@/views/customer/demand/demandList.vue"),
|
||||||
|
name: "demandList",
|
||||||
|
meta: { title: "发布清单", fullPath: "/demandMangement/index" },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: "rejectDemand",
|
||||||
|
component: () => import("@/views/customer/demand/rejectDemand.vue"),
|
||||||
|
name: "rejectDemand",
|
||||||
|
meta: { title: "未通过清单", fullPath: "/demandMangement/rejectDemand" },
|
||||||
|
},
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: "/productMangement",
|
path: "/productMangement",
|
||||||
component: Layout,
|
component: Layout,
|
||||||
@ -967,13 +1016,13 @@ export const asyncRoutes = [
|
|||||||
path: "index",
|
path: "index",
|
||||||
component: () => import("@/views/customer/productMangement/productList/index.vue"),
|
component: () => import("@/views/customer/productMangement/productList/index.vue"),
|
||||||
name: "productList",
|
name: "productList",
|
||||||
meta: { title: "商品发布清单", fullPath: "/productMangement/index" },
|
meta: { title: "发布清单", fullPath: "/productMangement/index" },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "rejectedPro",
|
path: "rejectedPro",
|
||||||
component: () => import("@/views/customer/productMangement/rejectedPro/index.vue"),
|
component: () => import("@/views/customer/productMangement/rejectedPro/index.vue"),
|
||||||
name: "rejectedPro",
|
name: "rejectedPro",
|
||||||
meta: { title: "商品未通过清单", fullPath: "/productMangement/index" },
|
meta: { title: "未通过清单", fullPath: "/productMangement/index" },
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -992,27 +1041,6 @@ export const asyncRoutes = [
|
|||||||
},
|
},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
path: "/demandMangement",
|
|
||||||
component: Layout,
|
|
||||||
name: "demandMangement",
|
|
||||||
redirect: "/demandMangement/index",
|
|
||||||
meta: { fullPath: "/demandMangement", title: "需求管理", noCache: true, icon: 'el-icon-s-home' },
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
path: "index",
|
|
||||||
component: () => import("@/views/customer/demand/demandList.vue"),
|
|
||||||
name: "demandList",
|
|
||||||
meta: { title: "需求发布清单", fullPath: "/demandMangement/index" },
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: "rejectDemand",
|
|
||||||
component: () => import("@/views/customer/demand/rejectDemand.vue"),
|
|
||||||
name: "rejectDemand",
|
|
||||||
meta: { title: "需求未通过清单", fullPath: "/demandMangement/rejectDemand" },
|
|
||||||
},
|
|
||||||
]
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
{
|
||||||
path: "/sales", component: Layout,
|
path: "/sales", component: Layout,
|
||||||
@ -1691,7 +1719,7 @@ export const asyncRoutes = [
|
|||||||
// name: "obile_supplierSettlementStatistics",
|
// name: "obile_supplierSettlementStatistics",
|
||||||
// meta: { title: "供应商结算统计", fullPath: "/endDay/supplierSettlementStatistics" },
|
// meta: { title: "供应商结算统计", fullPath: "/endDay/supplierSettlementStatistics" },
|
||||||
// },
|
// },
|
||||||
|
//
|
||||||
// ],
|
// ],
|
||||||
// },
|
// },
|
||||||
{
|
{
|
||||||
@ -1731,24 +1759,26 @@ export const asyncRoutes = [
|
|||||||
title: "代码与键值管理", fullPath: "/superAdministrator/codeManagement",
|
title: "代码与键值管理", fullPath: "/superAdministrator/codeManagement",
|
||||||
},
|
},
|
||||||
},],
|
},],
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
path: "/administrator", component: Layout, redirect: "/administrator/index", meta: {
|
path: "/administrator", component: Layout, redirect: "/administrator/index", meta: {
|
||||||
title: "管理员", icon: "el-icon-s-tools", noCache: true, fullPath: "/administrator",
|
title: "企业管理", icon: "el-icon-s-tools", noCache: true, fullPath: "/administrator",
|
||||||
}, children: [{
|
}, children: [
|
||||||
path: "configureOrganizationUserRole",
|
{
|
||||||
component: () => import("@/views/administrator/configureOrganizationUserRole"),
|
|
||||||
name: "ConfigureOrganizationUserRole",
|
|
||||||
meta: {
|
|
||||||
title: "本机构用户角色配置", fullPath: "/administrator/configureOrganizationUserRole",
|
|
||||||
},
|
|
||||||
}, {
|
|
||||||
path: "departmentManagement",
|
path: "departmentManagement",
|
||||||
component: () => import("@/views/administrator/departmentManagement"),
|
component: () => import("@/views/administrator/departmentManagement"),
|
||||||
name: "epartmentManagement",
|
name: "epartmentManagement",
|
||||||
meta: {
|
meta: {
|
||||||
title: "部门管理", fullPath: "/administrator/departmentManagement",
|
title: "部门管理", fullPath: "/administrator/departmentManagement",
|
||||||
},
|
},
|
||||||
}, {
|
},{
|
||||||
|
path: "configureOrganizationUserRole",
|
||||||
|
component: () => import("@/views/administrator/configureOrganizationUserRole"),
|
||||||
|
name: "ConfigureOrganizationUserRole",
|
||||||
|
meta: {
|
||||||
|
title: "角色管理", fullPath: "/administrator/configureOrganizationUserRole",
|
||||||
|
},
|
||||||
|
}, {
|
||||||
path: "stationMessageSettings",
|
path: "stationMessageSettings",
|
||||||
component: () => import("@/views/administrator/stationMessageSettings"),
|
component: () => import("@/views/administrator/stationMessageSettings"),
|
||||||
name: "StationMessageSettings",
|
name: "StationMessageSettings",
|
||||||
|
|||||||
@ -10,7 +10,7 @@ $panGreen: #30B08F;
|
|||||||
|
|
||||||
// sidebar
|
// sidebar
|
||||||
$menuText: #000;
|
$menuText: #000;
|
||||||
$menuActiveText: #1b14d9; // 当前激活菜单项的文字颜色
|
$menuActiveText: #296ad9; // 当前激活菜单项的文字颜色
|
||||||
$subMenuActiveText: #100101; // 当前激活子菜单项的文字颜色
|
$subMenuActiveText: #100101; // 当前激活子菜单项的文字颜色
|
||||||
|
|
||||||
$menuBg: #fff; // 整体背景颜色
|
$menuBg: #fff; // 整体背景颜色
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user