diff --git a/f/web-kboss/src/router/index.js b/f/web-kboss/src/router/index.js index 5b6d339..bfd47cd 100644 --- a/f/web-kboss/src/router/index.js +++ b/f/web-kboss/src/router/index.js @@ -785,162 +785,162 @@ export const asyncRoutes = [ }, // // 客户 - // { - // path: "/customer", component: Layout, redirect: "/customer/workOrderManagement", meta: { - // title: "客户", icon: "el-icon-s-custom", noCache: true, fullPath: "/customer", - // }, - // children: [ - // // 工单 - // { - // path: "workOrderManagement", - // component: () => import("@/views/customer/workOrderManagement"), - // name: "WorkOrderManagement", - // meta: { title: "工单管理", fullPath: "/customer/workOrderManagement" }, - // }, - // // 退订 - // { - // path: "unsubscribe", + { + path: "/customer", component: Layout, redirect: "/customer/workOrderManagement", meta: { + title: "客户", icon: "el-icon-s-custom", noCache: true, fullPath: "/customer", + }, + children: [ + // 工单 + { + path: "workOrderManagement", + component: () => import("@/views/customer/workOrderManagement"), + name: "WorkOrderManagement", + meta: { title: "工单管理", fullPath: "/customer/workOrderManagement" }, + }, + // 退订 + { + path: "unsubscribe", - // component: () => import("@/views/customer/unsubscribe"), - // name: "Unsubscribe", - // alwaysShow: true, // 确保父菜单始终显示 - // meta: { - // title: "退订管理", - // alwaysShow: true - // }, - // children: [ - // { - // path: "BaiduNetdisk", - // component: () => import("@/views/customer/unsubscribe/BaiduNetdisk.vue"), - // name: "BaiduNetdisk", - // meta: { title: "百度云" } - // }, + component: () => import("@/views/customer/unsubscribe"), + name: "Unsubscribe", + alwaysShow: true, // 确保父菜单始终显示 + meta: { + title: "退订管理", + alwaysShow: true + }, + children: [ + { + path: "BaiduNetdisk", + component: () => import("@/views/customer/unsubscribe/BaiduNetdisk.vue"), + name: "BaiduNetdisk", + meta: { title: "百度云" } + }, - // ] - // }, - // // 完善信息 - // { - // path: 'approve', - // component: () => import('@/views/customer/ncApprove/index.vue'), - // name: "Approve", - // meta: { title: "信息完善", fullPath: "/customer/ncApprove" }, - // }, - // // 渠道管理 - // { - // hidden: true, - // path: "channelMangement", - // component: () => import("@/views/customer/channelMangement/index.vue"), - // name: "ChannelMangement", - // meta: { title: "渠道管理", fullPath: "/customer/channelMangement" }, - // }, - // //渠道产品管理 - // { - // hidden: true, - // path: "channelProductMangement", - // component: () => import("@/views/customer/channelMangement/channelProductMangement/index.vue"), - // name: "channelProductMangement", - // meta: { title: "渠道产品管理", fullPath: "/customer/channelMangement/channelProductMangement", noCache: true }, - // }, - // // 无权限 - // { - // hidden: true, - // path: "noChannelPermission", - // component: () => import("@/views/customer/channelMangement/noChannelPermission/index.vue"), - // name: "noChannelPermission", - // meta: { title: "无权限", fullPath: "/customer/channelMangement/noChannelPermission", noCache: true }, - // }, - // // 聊天 - // { - // hidden: true, - // path: "chat", - // component: () => import("@/views/product/productHome/chat/index.vue"), - // name: "chat", - // meta: { - // title: "聊天", fullPath: "/product/productHome/chat", noCache: true - // }, - // }, + ] + }, + // 完善信息 + { + path: 'approve', + component: () => import('@/views/customer/ncApprove/index.vue'), + name: "Approve", + meta: { title: "信息完善", fullPath: "/customer/ncApprove" }, + }, + // 渠道管理 + { + hidden: true, + path: "channelMangement", + component: () => import("@/views/customer/channelMangement/index.vue"), + name: "ChannelMangement", + meta: { title: "渠道管理", fullPath: "/customer/channelMangement" }, + }, + //渠道产品管理 + { + hidden: true, + path: "channelProductMangement", + component: () => import("@/views/customer/channelMangement/channelProductMangement/index.vue"), + name: "channelProductMangement", + meta: { title: "渠道产品管理", fullPath: "/customer/channelMangement/channelProductMangement", noCache: true }, + }, + // 无权限 + { + hidden: true, + path: "noChannelPermission", + component: () => import("@/views/customer/channelMangement/noChannelPermission/index.vue"), + name: "noChannelPermission", + meta: { title: "无权限", fullPath: "/customer/channelMangement/noChannelPermission", noCache: true }, + }, + // 聊天 + { + hidden: true, + path: "chat", + component: () => import("@/views/product/productHome/chat/index.vue"), + name: "chat", + meta: { + title: "聊天", fullPath: "/product/productHome/chat", noCache: true + }, + }, - // // 个人中心 - // { - // hidden: true, - // path: "customerInformation", - // component: () => import("@/views/customer/customerInformation"), - // name: "customerInformation", - // meta: { title: "个人中心", fullPath: "/customer/customerInformation" }, - // }, - // // 充值管理 - // { - // path: "rechargeRecord", - // component: () => import("@/views/customer/rechargeRecord"), - // name: "RechargeRecord", - // meta: { title: "充值管理", fullPath: "/customer/rechargeRecord" }, - // }, - // // 订单管理 - // { - // path: "orderManagement", - // component: () => import("@/views/customer/orderManagement"), - // name: "OrderManagement", - // meta: { title: "产品订单", fullPath: "/customer/orderManagement", noCache: true, }, - // }, - // // 订单详情 - // { - // path: "orderDetil", - // component: () => import("@/views/customer/orderDetil"), - // name: "orderDetil", - // hidden: true, - // meta: { title: "订单详情", fullPath: "/customer/orderDetil", noCache: true, }, - // }, - // // 促销邀请码 - // { - // hidden: true, - // path: "promotionalInvitationCode", - // component: () => import("@/views/customer/promotionalInvitationCode"), - // name: "PromotionalInvitationCode", - // meta: { title: "促销邀请码", fullPath: "/customer/promotionalInvitationCode" }, - // }, + // 个人中心 + { + hidden: true, + path: "customerInformation", + component: () => import("@/views/customer/customerInformation"), + name: "customerInformation", + meta: { title: "个人中心", fullPath: "/customer/customerInformation" }, + }, + // 充值管理 + { + path: "rechargeRecord", + component: () => import("@/views/customer/rechargeRecord"), + name: "RechargeRecord", + meta: { title: "充值管理", fullPath: "/customer/rechargeRecord" }, + }, + // 订单管理 + { + path: "orderManagement", + component: () => import("@/views/customer/orderManagement"), + name: "OrderManagement", + meta: { title: "产品订单", fullPath: "/customer/orderManagement", noCache: true, }, + }, + // 订单详情 + { + path: "orderDetil", + component: () => import("@/views/customer/orderDetil"), + name: "orderDetil", + hidden: true, + meta: { title: "订单详情", fullPath: "/customer/orderDetil", noCache: true, }, + }, + // 促销邀请码 + { + hidden: true, + path: "promotionalInvitationCode", + component: () => import("@/views/customer/promotionalInvitationCode"), + name: "PromotionalInvitationCode", + meta: { title: "促销邀请码", fullPath: "/customer/promotionalInvitationCode" }, + }, - // // 资源示例 - // { - // path: "userResource", component: () => import( - // // "@/views/customer/userResource/iframeJiNan.vue"//iframe报错 - // "@/views/customer/userResource" - // ), name: "userResource", meta: { title: "资源实例", fullPath: "/customer/userResource", noCache: true }, - // }, - // // ssh登录 - // { + // 资源示例 + { + path: "userResource", component: () => import( + // "@/views/customer/userResource/iframeJiNan.vue"//iframe报错 + "@/views/customer/userResource" + ), name: "userResource", meta: { title: "资源实例", fullPath: "/customer/userResource", noCache: true }, + }, + // ssh登录 + { - // path: "sshTerminal", - // component: () => import( - // // "@/views/customer/userResource/iframeJiNan.vue"//iframe报错 - // "@/views/customer/userResource/SshTerminal.vue" - // ), - // name: "sshTerminal", - // meta: { title: "ssh登录", fullPath: "/customer/SshTerminal", noCache: true }, - // }, - // // 审批记录 - // { - // hidden: true, path: "approvalRecord", component: () => import( - // // "@/views/customer/approvalRecord/iframeJiNan.vue"//iframe报错 - // "@/views/customer/approvalRecord" - // ), name: "approvalRecord", meta: { title: "审批记录", fullPath: "/customer/approvalRecord" }, - // }, - // // 发票管理 - // { - // path: "invoice", - // component: () => import("@/views/customer/invoice"), - // name: "Invoice", - // meta: { title: "发票管理", fullPath: "/customer/invoice" }, - // }, - // // 产品最新页 - // { - // hidden: true, - // path: "productIndex", - // component: () => import("@/views/product/productHome/productIndex/index.vue"), - // name: "ProductIndex", - // meta: { title: "产品最新页", fullPath: "/product/productHome/productIndex", noCache: true }, - // },], - // }, + path: "sshTerminal", + component: () => import( + // "@/views/customer/userResource/iframeJiNan.vue"//iframe报错 + "@/views/customer/userResource/SshTerminal.vue" + ), + name: "sshTerminal", + meta: { title: "ssh登录", fullPath: "/customer/SshTerminal", noCache: true }, + }, + // 审批记录 + { + hidden: true, path: "approvalRecord", component: () => import( + // "@/views/customer/approvalRecord/iframeJiNan.vue"//iframe报错 + "@/views/customer/approvalRecord" + ), name: "approvalRecord", meta: { title: "审批记录", fullPath: "/customer/approvalRecord" }, + }, + // 发票管理 + { + path: "invoice", + component: () => import("@/views/customer/invoice"), + name: "Invoice", + meta: { title: "发票管理", fullPath: "/customer/invoice" }, + }, + // 产品最新页 + { + hidden: true, + path: "productIndex", + component: () => import("@/views/product/productHome/productIndex/index.vue"), + name: "ProductIndex", + meta: { title: "产品最新页", fullPath: "/product/productHome/productIndex", noCache: true }, + },], + }, // 资质审核 { path: "/qualificationReview",