1991 lines
72 KiB
JavaScript
1991 lines
72 KiB
JavaScript
import Vue from "vue";
|
||
import Router from "vue-router";
|
||
import store from "@/store";
|
||
/* Layout */
|
||
import Layout from "@/layout";
|
||
import GpuProduct from "@/views/product/productHome/capitalOnline/productItem/GpuProduct/index.vue";
|
||
import CreatePrivateNet from "@/views/product/productHome/capitalOnline/Net/privateNet/createPrivateNet/index.vue";
|
||
import ShowPrivateNet from "@/views/product/productHome/capitalOnline/Net/privateNet/showPrivateNet/index.vue";
|
||
import CreateChildNet from "@/views/product/productHome/capitalOnline/Net/childNet/createChildNet/index.vue";
|
||
import ShowChildNet from "@/views/product/productHome/capitalOnline/Net/childNet/showChildNet/index.vue";
|
||
import PrivateNetDetail from "@/views/product/productHome/capitalOnline/Net/privateNet/privateNetDetail/index.vue";
|
||
import ChildDetail from "@/views/product/productHome/capitalOnline/Net/childNet/childDetail/index.vue";
|
||
import SecurityGroup from "@/views/product/productHome/capitalOnline/Net/securityGroup/index.vue";
|
||
import CreateSecurityGroup
|
||
from "@/views/product/productHome/capitalOnline/Net/securityGroup/createSecurityGroup/index.vue";
|
||
import SecurityGroupDetail
|
||
from "@/views/product/productHome/capitalOnline/Net/securityGroup/securityGroupDetail/index.vue";
|
||
import ShowGpu from "@/views/product/productHome/capitalOnline/productItem/GpuProduct/ShowGpu/index.vue";
|
||
import ShowEip from "@/views/product/productHome/capitalOnline/Net/Eip/showEip/index.vue";
|
||
import CreateEip from "@/views/product/productHome/capitalOnline/Net/Eip/createEip/index.vue";
|
||
import { getHomePath } from '@/views/setting/tools'
|
||
|
||
Vue.use(Router);
|
||
|
||
/**
|
||
* Note: sub-menu only appear when route children.length >= 1
|
||
* Detail see: https://panjiachen.github.io/vue-element-admin-site/guide/essentials/router-and-nav.html
|
||
*
|
||
* hidden: true if set true, item will not show in the sidebar(default is false)
|
||
* alwaysShow: true if set true, will always show the root menu
|
||
* if not set alwaysShow, when item has more than one children route,
|
||
* it will becomes nested mode, otherwise not show the root menu
|
||
* redirect: noRedirect if set noRedirect will no redirect in the breadcrumb
|
||
* name:'router-name' the name is used by <keep-alive> (must set!!!)
|
||
* meta : {
|
||
roles: ['admin','editor'] control the page roles (you can set multiple roles)
|
||
title: 'title' the name show in sidebar and breadcrumb (recommend set)
|
||
icon: 'svg-name'/'el-icon-x' the icon show in the sidebar
|
||
noCache: true if set true, the page will no be cached(default is false)
|
||
affix: true if set true, the tag will affix in the tags-view
|
||
breadcrumb: false if set false, the item will hidden in breadcrumb(default is true)
|
||
activeMenu: '/example/list' if set path, the sidebar will highlight the path you set
|
||
fullPath:''完整路径
|
||
}
|
||
*/
|
||
|
||
/**
|
||
* constantRoutes
|
||
没有权限要求的基本页面
|
||
所有角色都可以访问下·
|
||
*/
|
||
export const constantRoutes = [
|
||
{
|
||
path: "/", component: Layout, hidden: true, children: [{
|
||
path: "/redirect/:path(.*)", component: () => import("@/views/redirect/index"),
|
||
},],
|
||
}, {
|
||
path: '/beforeLogin',
|
||
name: 'BeforeLogin',
|
||
title: 'beforeLogin',
|
||
component: () => import('@/views/beforeLogin/index.vue'),
|
||
hidden: true
|
||
},
|
||
{
|
||
path: '/demoDify',
|
||
name: 'DemoDify',
|
||
title: 'DemoDify',
|
||
component: () => import('@/views/demoDify/index.vue'),
|
||
},
|
||
|
||
{
|
||
path: '/wxPage',
|
||
name: 'wxPage',
|
||
title: '热门产品',
|
||
component: () => import('@/views/homePage/wxPage.vue'),
|
||
hidden: true
|
||
}, {
|
||
path: '/wxDetailPage',
|
||
name: 'wxDetailPage',
|
||
title: '产品详情',
|
||
component: () => import('@/views/homePage/wxDetailPage.vue'),
|
||
hidden: true
|
||
}, {
|
||
hidden: true, path: '/screen', name: 'screen', title: '可视化大屏', meta: {
|
||
title: "可视化大屏", fullPath: "/operation/analyze/screen",
|
||
}, component: () => import('@/views/product/bigScreen/index.vue'), children: [{
|
||
path: "index",
|
||
title: '可视化首页',
|
||
component: () => import('@/views/product/bigScreen/mainPage/index.vue'),
|
||
meta: {
|
||
title: "可视化首页", fullPath: "/operation/analyze/screen",
|
||
},
|
||
}, {
|
||
path: "userPage",
|
||
title: '可视化用户页',
|
||
component: () => import('@/views/product/bigScreen/userPage/index.vue'),
|
||
meta: {
|
||
title: "可视化用户页", fullPath: "/operation/analyze/screen/userPage",
|
||
},
|
||
}, {
|
||
path: "operatePage",
|
||
title: '可视化经营页',
|
||
component: () => import('@/views/product/bigScreen/operatePage/index.vue'),
|
||
meta: {
|
||
title: "可视化经营页", fullPath: "/operation/analyze/screen/operatePage",
|
||
},
|
||
}, {
|
||
path: "businessPage",
|
||
title: '商家页',
|
||
component: () => import('@/views/product/bigScreen/businessPage/index.vue'),
|
||
meta: {
|
||
title: "商家页", fullPath: "/operation/analyze/screen/businessPage",
|
||
},
|
||
}, {
|
||
path: "k8sRescource", title: '资源页', component: () => import('@/views/product/bigScreen/k8s/index.vue'), meta: {
|
||
title: "资源页", fullPath: "/operation/analyze/screen/k8s",
|
||
},
|
||
},
|
||
|
||
],
|
||
},
|
||
|
||
{
|
||
path: '/kbossCharge',
|
||
name: 'KbossCharge',
|
||
title: 'beforeLogin',
|
||
component: () => import('@/views/product/charge/index.vue'),
|
||
hidden: true
|
||
},
|
||
{
|
||
path: '/kyyForm',
|
||
name: 'kyyForm',
|
||
title: '产品咨询',
|
||
component: () => import('@/views/homePage/dialog/talk/talkBak/index.vue'),
|
||
hidden: true
|
||
},
|
||
{
|
||
path: '/testBak',
|
||
name: 'TestBak',
|
||
title: 'TestBak',
|
||
component: () => import('@/views/product/productHome/baiduProduct/bdProductNew/testBak.vue'),
|
||
hidden: true
|
||
}, {
|
||
path: "/login", component: () => import("@/views/login/indexNew.vue"), name: "Login", hidden: true,
|
||
}, {
|
||
path: "/floatingBox",
|
||
component: () => import("@/components/FloatingBox/simpleFloatingBox.vue"),
|
||
name: "FloatingBox",
|
||
hidden: true,
|
||
meta: {
|
||
noCache: true
|
||
}
|
||
}, {
|
||
path: "/login/mobile", component: () => import("@/views/loginMobile"), name: "Login", hidden: true,
|
||
}, {
|
||
path: "/registrationPage",
|
||
component: () => import("@/views/registrationPage/indexNew.vue"),
|
||
name: "registrationPage",
|
||
hidden: true,
|
||
meta: { title: "注册" },
|
||
}, {
|
||
path: "/registrationPage/mobile",
|
||
component: () => import("@/views/registrationPageMobile/index.vue"),
|
||
name: "registrationPage",
|
||
hidden: true,
|
||
meta: { title: "注册" },
|
||
},
|
||
{
|
||
hidden: true,
|
||
path: "/ncmatchHome",
|
||
component: () => import("@/views/homePage/ncmatch/index.vue"),
|
||
name: "ncmatchHome",
|
||
redirect: "/ncmatchHome/index",
|
||
meta: { fullPath: "/ncmatchHome/index", title: "官网首页", noCache: true, icon: 'el-icon-s-home' },
|
||
children: [
|
||
{
|
||
path: "index",
|
||
component: () => import("@/views/homePage/ncmatch/mainPage/index.vue"),
|
||
name: "ncmatchPageIndex",
|
||
hidden: true,
|
||
meta: { title: "首页", fullPath: "/ncmatch/mainPage/index" },
|
||
},
|
||
{
|
||
path: "supplyAndDemandSquare",
|
||
component: () => import("@/views/homePage/ncmatch/supplyAndDemandSquare/index.vue"),
|
||
name: "supplyAndDemandSquare",
|
||
hidden: true,
|
||
meta: { title: "算力供需广场", fullPath: "/ncmatch/supplyAndDemandSquare" },
|
||
},
|
||
{
|
||
path: "search",
|
||
component: () => import("@/views/homePage/ncmatch/searchBox/index.vue"),
|
||
name: "search",
|
||
hidden: true,
|
||
meta: { title: "产品查询", fullPath: "/ncmatch/searchBox" },
|
||
},
|
||
{
|
||
path: "historyBox",
|
||
component: () => import("@/views/homePage/ncmatch/historyBox/index.vue"),
|
||
name: "historyBox",
|
||
hidden: true,
|
||
meta: { title: "浏览记录", fullPath: "/ncmatch/historyBox" },
|
||
},
|
||
{
|
||
path: "favoriteBox",
|
||
component: () => import("@/views/homePage/ncmatch/favoriteBox/index.vue"),
|
||
name: "favoriteBox",
|
||
hidden: true,
|
||
meta: { title: "我的关注", fullPath: "/ncmatch/favoriteBox" },
|
||
},
|
||
]
|
||
},
|
||
{
|
||
path: "/homePage",
|
||
component: () => import("@/views/homePage/indexLast.vue"),
|
||
name: "homePage",
|
||
hidden: true,
|
||
meta: { title: "首页", noCache: true },
|
||
children: [{
|
||
path: "index",
|
||
component: () => import("@/views/homePage/mainPage/index.vue"),
|
||
name: "homePageIndex",
|
||
hidden: true,
|
||
meta: { title: "首页", onCache: true },
|
||
}, {
|
||
path: "detail",
|
||
component: () => import("@/views/homePage/detail/index.vue"),
|
||
name: "detail",
|
||
hidden: true,
|
||
meta: { title: "详情", onCache: true },
|
||
},
|
||
{
|
||
path: "new",
|
||
component: () => import("@/views/homePage/components/topBox/new/index.vue"),
|
||
name: "new",
|
||
hidden: true,
|
||
meta: { title: "政策解读", onCache: true },
|
||
},
|
||
{
|
||
path: "sale",
|
||
component: () => import("@/views/homePage/components/topBox/sale/index.vue"),
|
||
name: "sale",
|
||
hidden: true,
|
||
meta: { title: "促销活动", onCache: true },
|
||
},
|
||
|
||
|
||
{
|
||
path: "hospital",
|
||
component: () => import("@/views/homePage/solve/hospital/index.vue"),
|
||
name: "hospital",
|
||
hidden: true,
|
||
meta: { title: "灵医智能体" },
|
||
}, {
|
||
path: "customerService",
|
||
component: () => import("@/views/homePage/solve/customerService/index.vue"),
|
||
name: "customerService",
|
||
hidden: true,
|
||
meta: { title: "客悦" },
|
||
|
||
}, {
|
||
path: "about",
|
||
component: () => import("@/views/homePage/about/index.vue"),
|
||
name: "about",
|
||
hidden: true,
|
||
meta: { title: "关于" },
|
||
|
||
}]
|
||
},
|
||
{
|
||
path: "/homePageImage",
|
||
component: () => import("@/views/homePageImage/index"),
|
||
name: "homePageImage",
|
||
hidden: true,
|
||
meta: { title: "备案信息" },
|
||
}, {
|
||
path: "/paySuccess",
|
||
component: () => import("@/views/paySuccess/index"),
|
||
name: "paySuccess",
|
||
hidden: true,
|
||
meta: { title: "支付成功" },
|
||
}, {
|
||
path: "/payPage",
|
||
component: () => import("@/views/payPage/index"),
|
||
name: "payPage",
|
||
hidden: true,
|
||
meta: { title: "立即支付页面" },
|
||
}, {
|
||
path: "/auth-redirect", component: () => import("@/views/login/auth-redirect"), hidden: true,
|
||
}, {
|
||
path: "/404", component: () => import("@/views/error-page/404"), hidden: true,
|
||
}, {
|
||
path: "/401", component: () => import("@/views/error-page/401"), hidden: true,
|
||
},
|
||
];
|
||
|
||
/**
|
||
* asyncRoutes
|
||
* 需要根据用户角色动态加载的路由
|
||
*/
|
||
export const asyncRoutes = [
|
||
|
||
|
||
|
||
// 全部产品 - 一级菜单
|
||
// 全部产品 - 一级菜单(无子路由)
|
||
{
|
||
path: "/product",
|
||
component: Layout,
|
||
meta: {
|
||
title: "全部产品",
|
||
fullPath: "/product",
|
||
noCache: true,
|
||
icon: "el-icon-goods"
|
||
},
|
||
children: [
|
||
{
|
||
path: "",
|
||
component: () => import('@/views/product/allProduct/index.vue'),
|
||
name: 'ProductHome',
|
||
meta: {
|
||
title: "全部产品",
|
||
fullPath: "/product",
|
||
noCache: true
|
||
}
|
||
},
|
||
]
|
||
},
|
||
{
|
||
path: "/overview",
|
||
component: Layout,
|
||
meta: {
|
||
title: "资源概览",
|
||
fullPath: "/overview",
|
||
noCache: true,
|
||
icon: "el-icon-folder-opened"
|
||
},
|
||
children: [
|
||
{
|
||
path: "",
|
||
component: () => import('@/views/product/productHome/productIndex/index.vue'),
|
||
name: 'ResourceOverview',
|
||
meta: {
|
||
title: "资源概览",
|
||
fullPath: "/overview",
|
||
noCache: true
|
||
}
|
||
}
|
||
]
|
||
},
|
||
|
||
{
|
||
path: "/orderManagement",
|
||
component: Layout,
|
||
redirect: "/orderManagement/baidu",
|
||
name: "OrderManagement",
|
||
meta: {
|
||
title: "订单管理",
|
||
fullPath: "/orderManagement",
|
||
noCache: true,
|
||
icon: "el-icon-document-copy"
|
||
},
|
||
alwaysShow: true,
|
||
children: [
|
||
{
|
||
path: "orderManagement",
|
||
component: () => import("@/views/customer/orderManagement/index.vue"),
|
||
name: "OrderManagement",
|
||
meta: { title: "百度订单", fullPath: "/customer/orderManagement", noCache: true, },
|
||
},
|
||
]
|
||
},
|
||
|
||
|
||
{
|
||
path: "/resourceManagement",
|
||
component: Layout,
|
||
redirect: "/resourceManagement/baidu",
|
||
name: "ResourceManagement",
|
||
meta: {
|
||
title: "资源管理",
|
||
fullPath: "/resourceManagement",
|
||
noCache: true,
|
||
icon: "el-icon-paperclip"
|
||
},
|
||
alwaysShow: true,
|
||
children: [
|
||
{
|
||
path: "userResource", component: () => import(
|
||
// "@/views/customer/userResource/iframeJiNan.vue"//iframe报错
|
||
"@/views/customer/userResource/index.vue"
|
||
), name: "userResource", meta: { title: "百度资源", fullPath: "/customer/userResource", noCache: true },
|
||
},
|
||
]
|
||
},
|
||
|
||
// 官网
|
||
{
|
||
path: getHomePath() == '/ncmatchHome/index' ? "/ncmatchHome" : "/homePage",
|
||
component: () => import("@/views/homePage/indexLast.vue"),
|
||
name: "homePage",
|
||
redirect: "/homePage/index",
|
||
hidden: true,
|
||
meta: { fullPath: "/homePage/index", title: "官网首页", noCache: true, icon: 'el-icon-s-home', hidden: true },
|
||
children: [
|
||
{
|
||
path: "index",
|
||
component: () => import("@/views/homePage/mainPage/index.vue"),
|
||
name: "homePageIndex",
|
||
hidden: true,
|
||
meta: { title: "首页", fullPath: "/homePage/index" },
|
||
},
|
||
{
|
||
path: "detail",
|
||
component: () => import("@/views/homePage/detail/index.vue"),
|
||
name: "detail",
|
||
hidden: true,
|
||
meta: { title: "详情", cache: true },
|
||
}, {
|
||
path: "hospital",
|
||
component: () => import("@/views/homePage/solve/hospital/index.vue"),
|
||
name: "hospital",
|
||
hidden: true,
|
||
meta: { title: "灵医智能体" },
|
||
}, {
|
||
path: "customerService",
|
||
component: () => import("@/views/homePage/solve/customerService/index.vue"),
|
||
name: "customerService",
|
||
hidden: true,
|
||
meta: { title: "客悦" },
|
||
|
||
}, {
|
||
path: "about",
|
||
component: () => import("@/views/homePage/about/index.vue"),
|
||
name: "about",
|
||
hidden: true,
|
||
meta: { title: "关于" },
|
||
|
||
}]
|
||
},
|
||
// 咨询表单
|
||
{
|
||
path: "/consultingMangement",
|
||
name: 'ConsultingMangement',
|
||
component: Layout,
|
||
meta: { title: "咨询表单", fullPath: "/consultingMangement", noCache: true, icon: "el-icon-s-platform" },
|
||
children: [
|
||
{
|
||
path: "index",
|
||
component: () => import('@/views/operation/consultingMangement/index.vue'),
|
||
name: 'ConsultingMangement',
|
||
meta: { title: "咨询表单", fullPath: "/consultingMangement/index", noCache: true, icon: "el-icon-s-platform" },
|
||
}
|
||
]
|
||
},
|
||
// 订单管理
|
||
{
|
||
path: "/product",
|
||
name: 'product',
|
||
component: Layout,
|
||
redirect: "/product/productHome",
|
||
meta: { title: "", fullPath: "/product", noCache: true, icon: "el-icon-s-platform" },
|
||
children: [{
|
||
path: "productHome",
|
||
component: () => import('@/views/product/productHome/productIndex/index.vue'),
|
||
name: 'baiduProduct',
|
||
},
|
||
{
|
||
hidden: true,
|
||
path: "baiduProduct",
|
||
component: () => import('@/views/product/productHome/baiduProduct/index.vue'),
|
||
name: 'baiduProduct',
|
||
meta: { title: "百度智能云", fullPath: "/product/baiduProduct", noCache: true }
|
||
}, {
|
||
hidden: true,
|
||
path: "productHome/k8s/createK8s",
|
||
component: () => import('@/views/product/productHome/k8s/createK8s/index.vue'),
|
||
name: 'superComputingDomestic',
|
||
meta: { title: "容器云", fullPath: "/product/productHome/k8s/createK8s", noCache: true }
|
||
},
|
||
{
|
||
hidden: true,
|
||
path: "productHome",
|
||
name: 'productHome',
|
||
component: () => import("@/views/product/productHome/productIndex/index.vue"),
|
||
meta: {
|
||
title: "产品", icon: "el-icon-s-data", fullPath: "/product/productHome/productIndex",
|
||
},
|
||
}, {
|
||
hidden: true,
|
||
path: "superComputingCommon",
|
||
component: () => import('@/views/product/productHome/superComputingCommon/index.vue'),
|
||
name: 'superComputingCommon',
|
||
meta: { title: "通用计算", fullPath: "/product/superComputingCommon", noCache: true }
|
||
}, {
|
||
hidden: true,
|
||
path: "newPage",
|
||
component: () => import('@/views/product/productHome/productIndex/newPage'),
|
||
name: 'newPage',
|
||
meta: { title: "AI智算", fullPath: "/product/superComputingCommon", noCache: true }
|
||
}, {
|
||
hidden: true,
|
||
path: "superComputingDomestic",
|
||
component: () => import('@/views/product/productHome/superComputingDomestic/index.vue'),
|
||
name: 'superComputingDomestic',
|
||
meta: { title: "国产计算", fullPath: "/product/superComputingDomestic", noCache: true }
|
||
}, {
|
||
hidden: true,
|
||
path: "productHome/k8s/createK8s",
|
||
component: () => import('@/views/product/productHome/k8s/createK8s/index.vue'),
|
||
name: 'superComputingDomestic',
|
||
meta: { title: "k8s", fullPath: "/product/productHome/k8s/createK8s", noCache: true }
|
||
},
|
||
|
||
{
|
||
hidden: true,
|
||
path: "capProduct",
|
||
component: () => import('@/views/product/productHome/capitalOnline/index.vue'),
|
||
name: 'capProduct',
|
||
meta: { title: "集群节点一产品列表", fullPath: "/product/productHome/capitalOnlineTwo", noCache: true },
|
||
children: [{
|
||
path: "capProductTwo",
|
||
component: () => import('@/views/product/productHome/capitalOnline/capitalOnlineTwo/index.vue'),
|
||
name: 'capProductTwo',
|
||
meta: { title: "集群节点一产品", fullPath: "/product/productHome/capitalOnlineTwo", noCache: true },
|
||
}, {
|
||
path: "gpuProduct",
|
||
component: () => import('@/views/product/productHome/capitalOnline/productItem/GpuProduct/index.vue'),
|
||
name: 'gpuProduct',
|
||
meta: {
|
||
title: "GPU产品", fullPath: "/product/productHome/capitalOnline/productItem/GpuProduct", noCache: true
|
||
},
|
||
}]
|
||
}, {
|
||
path: 'gpu',
|
||
name: 'Gpu',
|
||
title: '4090配置A',
|
||
meta: { title: '4090配置A', noCache: true, fullpath: '/gpu' },
|
||
component: () => import('@/views/product/productHome/capitalOnline/Gpu/index.vue'),
|
||
children: [{
|
||
path: 'showGpu',
|
||
name: 'showGpu',
|
||
component: ShowGpu,
|
||
meta: { title: 'Gpu', noCache: true, fullpath: '/gpu/showGpu' },
|
||
}, {
|
||
path: 'createGpu',
|
||
name: 'createGpu',
|
||
component: GpuProduct,
|
||
meta: { title: '创建实例', noCache: true, fullpath: '/gpu/gpuIndex' },
|
||
}, {
|
||
path: 'securityGroup',
|
||
name: 'securityGroup',
|
||
component: SecurityGroup,
|
||
meta: { title: '安全组', noCache: true, fullpath: '/net/securityGroup' },
|
||
}, {
|
||
path: 'createSecurityGroup',
|
||
name: 'createSecurityGroup',
|
||
component: CreateSecurityGroup,
|
||
meta: { title: '创建安全组', noCache: true, fullpath: '/net/createSecurityGroup' },
|
||
}, {
|
||
path: 'securityGroupDetail',
|
||
name: 'securityGroupDetail',
|
||
component: SecurityGroupDetail,
|
||
meta: { title: '安全组详情', noCache: true, fullpath: '/net/securityGroupDetail' },
|
||
},],
|
||
hidden: true
|
||
}, {
|
||
path: 'net',
|
||
name: 'net',
|
||
title: '网络',
|
||
meta: { title: '私有网络', noCache: true, fullpath: '/net' },
|
||
component: () => import('@/views/product/productHome/capitalOnline/Net/index.vue'),
|
||
children: [{
|
||
path: 'netIndex',
|
||
name: 'netIndex',
|
||
component: CreatePrivateNet,
|
||
meta: { title: '创建私有网络', noCache: true, fullpath: '/net/netIndex' },
|
||
},
|
||
|
||
{
|
||
path: 'showPrivateNet',
|
||
name: 'showPrivateNet',
|
||
component: ShowPrivateNet,
|
||
meta: { title: '网络列表', noCache: true, fullpath: '/net/showPrivateNet' },
|
||
}, {
|
||
path: 'privateNetDetail',
|
||
name: 'privateNetDetail',
|
||
component: PrivateNetDetail,
|
||
meta: { title: '私有网络详情', noCache: true, fullpath: '/net/privateNetDetail' },
|
||
}, {
|
||
path: 'childCreate',
|
||
name: 'childCreate',
|
||
component: CreateChildNet,
|
||
meta: { title: '创建子网', noCache: true, fullpath: '/net/childCreate' },
|
||
}, {
|
||
path: 'showChildNet',
|
||
name: 'showChildNet',
|
||
component: ShowChildNet,
|
||
meta: { title: '展示子网', noCache: true, fullpath: '/net/showChildNet' },
|
||
}, {
|
||
path: 'childDetail',
|
||
name: 'childDetail',
|
||
component: ChildDetail,
|
||
meta: { title: '子网详情', noCache: true, fullpath: '/net/childDetail' },
|
||
}, {
|
||
path: 'showUEip',
|
||
name: 'showUEip',
|
||
component: ShowEip,
|
||
meta: { title: 'EIP列表', noCache: true, fullpath: '/net/showUEip' },
|
||
}, {
|
||
path: 'createUEip',
|
||
name: 'createUEip',
|
||
component: CreateEip,
|
||
meta: { title: '创建EIP', noCache: true, fullpath: '/net/createUEip' },
|
||
},],
|
||
hidden: true
|
||
}, {
|
||
hidden: true,
|
||
path: "ucloudProduct",
|
||
component: () => import('@/views/product/productHome/ucloud/index.vue'),
|
||
name: 'ucloudProduct',
|
||
meta: { title: "集群节点二产品列表", fullPath: "/product/productHome/ucloud", noCache: true },
|
||
children: [{
|
||
path: "ucloudProductTwo",
|
||
component: () => import('@/views/product/productHome/ucloud/ucloudTwo/index.vue'),
|
||
name: 'ucloudProductTwo',
|
||
meta: { title: "集群节点二产品列表", fullPath: "/product/productHome/ucloud/ucloudTwo", noCache: true },
|
||
}, {
|
||
path: "showCloudHost",
|
||
component: () => import('@/views/product/productHome/ucloud/showCloudHost/index.vue'),
|
||
name: 'showUcloudProduct',
|
||
meta: { title: "集群节点二产品", fullPath: "/product/productHome/ucloud/showCloudHost", noCache: true },
|
||
}, {
|
||
path: "createCloudHost",
|
||
component: () => import('@/views/product/productHome/ucloud/createCloudHost/index.vue'),
|
||
name: 'createCloudHost',
|
||
meta: { title: "集群节点二-购买", fullPath: "/product/productHome/ucloud/createCloudHost", noCache: true },
|
||
}, {
|
||
path: "showFireWall",
|
||
component: () => import('@/views/product/productHome/ucloud/fireWall/showFireWall/index.vue'),
|
||
name: 'showFireWall',
|
||
meta: { title: "防火墙列表", fullPath: "/product/productHome/ucloud/fireWall/showFireWall", noCache: true },
|
||
}, {
|
||
path: "detailFireWall",
|
||
component: () => import('@/views/product/productHome/ucloud/fireWall/detailFireWall/index.vue'),
|
||
name: 'detailFireWall',
|
||
meta: { title: "防火墙详情", fullPath: "/product/productHome/ucloud/fireWall/detailFireWall", noCache: true },
|
||
}, {
|
||
path: "createUEip",
|
||
component: () => import('@/views/product/productHome/ucloud/Eip/createUEip'),
|
||
name: 'createUEip',
|
||
meta: { title: "创建Eip", fullPath: "/product/productHome/ucloud/Eip/createUEip", noCache: true },
|
||
}, {
|
||
path: "showUEip",
|
||
component: () => import('@/views/product/productHome/ucloud/Eip/showUEip'),
|
||
name: 'showUEip',
|
||
meta: { title: "Eip列表", fullPath: "/product/productHome/ucloud/Eip/showUEip", noCache: true },
|
||
}]
|
||
},
|
||
{
|
||
hidden: true,
|
||
path: "baiduProductShow",
|
||
component: () => import('@/views/product/productHome/baiduProductShow/index.vue'),
|
||
name: 'baiduProductShow',
|
||
meta: { title: "资源购买", fullPath: "/product/baiduProductShow", noCache: true, }
|
||
}, {
|
||
path: "index", name: 'index', hidden: true, component: () => import("@/views/product/index.vue"), meta: {
|
||
title: "产品", icon: "el-icon-s-data", fullPath: "/product/index",
|
||
},
|
||
}, {
|
||
hidden: true,
|
||
path: "cloudDatabaseMysql",
|
||
component: () => import("@/views/operation/volcanoSystem/cloudDatabaseMysql"),
|
||
name: "cloudDatabaseMysql",
|
||
meta: {
|
||
title: "云数据库 Mysql版", fullPath: "/product/volcanoSystem/cloudDatabaseMysql",
|
||
},
|
||
}, {
|
||
hidden: true,
|
||
path: "cloudDatabaseRedis",
|
||
component: () => import("@/views/operation/volcanoSystem/cloudDatabaseRedis"),
|
||
name: "cloudDatabaseRedis",
|
||
meta: {
|
||
title: "缓存数据库 Redis版", fullPath: "/product/volcanoSystem/cloudDatabaseRedis",
|
||
},
|
||
}, {
|
||
hidden: true,
|
||
path: "cloudDatabaseMongoDB",
|
||
component: () => import("@/views/operation/volcanoSystem/cloudDatabaseMongoDB"),
|
||
name: "cloudDatabaseMongoDB",
|
||
meta: {
|
||
title: "文档数据库 MongoDB 版", fullPath: "/product/volcanoSystem/cloudDatabaseMongoDB",
|
||
},
|
||
},
|
||
|
||
{
|
||
hidden: true,
|
||
path: "cloudServer",
|
||
component: () => import("@/views/operation/volcanoSystem/cloudServer"),
|
||
name: "cloudServer",
|
||
meta: {
|
||
title: "云数据库", fullPath: "/product/volcanoSystem/cloudServer",
|
||
},
|
||
}, {
|
||
path: "shoppingCart",
|
||
component: () => import("@/views/management/shoppingCart"),
|
||
name: 'shoppingCart',
|
||
hidden: true,
|
||
meta: {
|
||
title: "购物车", fullPath: "/management/shoppingCart",
|
||
},
|
||
}, // 智算
|
||
// 产品-智算-a100
|
||
{
|
||
hidden: true,
|
||
path: "a100Product",
|
||
component: () => import("@/views/product/productHome/intelligentCalculation/a100Product/index.vue"),
|
||
name: "a100Product",
|
||
meta: {
|
||
title: "a100", fullPath: "/product/productHome/intelligentCalculation/a100Product", noCache: true
|
||
},
|
||
}, {
|
||
hidden: true,
|
||
path: "intelligentCalculation",
|
||
component: () => import("@/views/product/productHome/intelligentCalculation/index.vue"),
|
||
name: "intelligentCalculation",
|
||
meta: {
|
||
title: "智算", fullPath: "/product/productHome/intelligentCalculation", noCache: true
|
||
},
|
||
}, // 产品-智算-a200
|
||
{
|
||
hidden: true,
|
||
path: "a200Product",
|
||
component: () => import("@/views/product/productHome/intelligentCalculation/a200Product/index.vue"),
|
||
name: "a200Product",
|
||
meta: {
|
||
title: "a100", fullPath: "/product/productHome/intelligentCalculation/a200Product", noCache: true
|
||
},
|
||
}, // 产品-智算-a800
|
||
{
|
||
hidden: true,
|
||
path: "a800Product",
|
||
component: () => import("@/views/product/productHome/intelligentCalculation/a800Product/index.vue"),
|
||
name: "a800Product",
|
||
meta: {
|
||
title: "a800", fullPath: "/product/productHome/intelligentCalculation/a800Product", noCache: true
|
||
|
||
},
|
||
}, // 产品-超算-a
|
||
// H800
|
||
{
|
||
hidden: true,
|
||
path: "h800Product",
|
||
component: () => import("@/views/product/productHome/intelligentCalculation/h800Product/index.vue"),
|
||
name: "h800Product",
|
||
meta: {
|
||
title: "h800", fullPath: "/product/productHome/intelligentCalculation/h800Product", noCache: true
|
||
},
|
||
},
|
||
|
||
//网络
|
||
{
|
||
hidden: true,
|
||
path: "networkItem",
|
||
component: () => import("@/views/product/productHome/network/networkItem/index.vue"),
|
||
name: "networkItem",
|
||
meta: {
|
||
title: "网络", fullPath: "/product/productHome/network/networkItem",
|
||
},
|
||
|
||
},
|
||
//超算专用网络
|
||
{
|
||
hidden: true,
|
||
path: "hypercomputingPrivateNetwork",
|
||
component: () => import("@/views/product/productHome/network/hypercomputingPrivateNetwork/index.vue"),
|
||
name: "networkItem",
|
||
meta: {
|
||
title: "超算专用网络", fullPath: "/product/productHome/network/hypercomputingPrivateNetwork",
|
||
},
|
||
|
||
},
|
||
//传输
|
||
{
|
||
hidden: true,
|
||
path: "transmission",
|
||
component: () => import("@/views/product/productHome/network/transmission/index.vue"),
|
||
name: "transmission",
|
||
meta: {
|
||
title: "传输", fullPath: "/product/productHome/network/transmission",
|
||
},
|
||
|
||
},
|
||
|
||
],
|
||
},
|
||
|
||
|
||
{
|
||
|
||
},
|
||
|
||
// 退订管理 - 变为一级菜单(包含子菜单)
|
||
{
|
||
path: "/unsubscribeManagement",
|
||
component: Layout,
|
||
redirect: "/unsubscribeManagement/BaiduNetdisk", // 修正重定向路径
|
||
alwaysShow: true, // 添加这个属性到路由层级,不是meta里面
|
||
meta: {
|
||
title: "退订管理",
|
||
icon: "el-icon-circle-close",
|
||
noCache: true,
|
||
fullPath: "/unsubscribeManagement"
|
||
},
|
||
children: [
|
||
{
|
||
path: "BaiduNetdisk",
|
||
component: () => import("@/views/customer/unsubscribe/BaiduNetdisk.vue"),
|
||
name: "BaiduNetdisk",
|
||
meta: {
|
||
title: "百度云",
|
||
fullPath: "/unsubscribeManagement/BaiduNetdisk"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
// 信息完善 - 变为一级菜单
|
||
{
|
||
path: "/informationPerfect",
|
||
component: Layout,
|
||
meta: {
|
||
title: "信息完善",
|
||
icon: "el-icon-edit-outline",
|
||
noCache: true,
|
||
fullPath: "/informationPerfect"
|
||
},
|
||
children: [
|
||
{
|
||
path: "index",
|
||
component: () => import('@/views/customer/ncApprove/index.vue'),
|
||
name: "InformationPerfect",
|
||
meta: { title: "信息完善", fullPath: "/informationPerfect/index" },
|
||
}
|
||
]
|
||
},
|
||
// 充值管理 - 变为一级菜单
|
||
{
|
||
path: "/rechargeManagement",
|
||
component: Layout,
|
||
meta: {
|
||
title: "充值记录",
|
||
icon: "el-icon-money",
|
||
noCache: true,
|
||
fullPath: "/rechargeManagement"
|
||
},
|
||
children: [
|
||
{
|
||
path: "index",
|
||
component: () => import("@/views/customer/rechargeRecord"),
|
||
name: "RechargeManagement",
|
||
meta: { title: "充值记录", fullPath: "/rechargeManagement/index" },
|
||
}
|
||
]
|
||
},
|
||
// 发票管理 - 变为一级菜单
|
||
{
|
||
path: "/invoiceManagement",
|
||
component: Layout,
|
||
meta: {
|
||
title: "发票管理",
|
||
icon: "el-icon-document",
|
||
noCache: true,
|
||
fullPath: "/invoiceManagement"
|
||
},
|
||
children: [
|
||
{
|
||
path: "index",
|
||
component: () => import("@/views/customer/invoice"),
|
||
name: "InvoiceManagement",
|
||
meta: { title: "发票管理", fullPath: "/invoiceManagement/index" },
|
||
}
|
||
]
|
||
},
|
||
// 工单管理 - 变为一级菜单
|
||
{
|
||
path: "/workOrderManagement",
|
||
component: Layout,
|
||
meta: {
|
||
title: "工单管理",
|
||
icon: "el-icon-tickets",
|
||
noCache: true,
|
||
fullPath: "/workOrderManagement"
|
||
},
|
||
children: [
|
||
{
|
||
path: "index",
|
||
component: () => import("@/views/customer/workOrderManagement"),
|
||
name: "WorkOrderManagement",
|
||
meta: { title: "工单管理", fullPath: "/workOrderManagement/index" },
|
||
}
|
||
]
|
||
},
|
||
|
||
// // 客户
|
||
{
|
||
path: "/customer",
|
||
component: Layout,
|
||
redirect: "/customer/workOrderManagement",
|
||
hidden: true,
|
||
meta: {
|
||
title: "客户", icon: "el-icon-s-custom", noCache: true, fullPath: "/customer", hidden: true
|
||
},
|
||
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: "百度云" }
|
||
},
|
||
|
||
]
|
||
},
|
||
// 完善信息
|
||
{
|
||
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" },
|
||
},
|
||
|
||
// 资源示例
|
||
|
||
// 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: "/qualificationReview",
|
||
component: Layout,
|
||
name: "qualificationReview",
|
||
redirect: "/qualificationReview/index",
|
||
meta: { fullPath: "/qualificationReview", title: "资质审核", noCache: true, icon: 'el-icon-s-home' },
|
||
children: [
|
||
{
|
||
path: "noApproveInfo",
|
||
component: () => import("@/views/customer/qualificationReview/noApproveInfo/index.vue"),
|
||
name: "noApproveInfo",
|
||
meta: { title: "待审清单", fullPath: "/qualificationReview/index" },
|
||
},
|
||
{
|
||
path: "rejectInfo",
|
||
component: () => import("@/views/customer/qualificationReview/apprvedInfo/index.vue"),
|
||
name: "rejectInfo",
|
||
meta: { title: "已审清单", fullPath: "/qualificationReview/approvedInfo" },
|
||
},
|
||
|
||
]
|
||
},
|
||
// 供需审核
|
||
{
|
||
path: "/approveMangement",
|
||
component: Layout,
|
||
name: "approveMangement",
|
||
redirect: "/approveMangement/index",
|
||
meta: { fullPath: "/approveMangement", title: "供需审核", noCache: true, icon: 'el-icon-s-home' },
|
||
children: [
|
||
{
|
||
path: "pendingPro",
|
||
component: () => import("@/views/customer/approveMangement/pendingPro.vue"),
|
||
name: "pendingPro",
|
||
meta: { title: "待审清单", fullPath: "/approveMangement/index" },
|
||
},
|
||
{
|
||
path: "approvedPro",
|
||
component: () => import("@/views/customer/approveMangement/approvedPro.vue"),
|
||
name: "approvedPro",
|
||
meta: { title: "已审清单", fullPath: "/approveMangement/approvedPro" },
|
||
},
|
||
|
||
]
|
||
},
|
||
// 需求管理
|
||
{
|
||
path: "/demandMangement",
|
||
component: Layout,
|
||
name: "demandMangement",
|
||
redirect: "/demandMangement/index",
|
||
meta: { fullPath: "/demandMangement", title: "需求管理", noCache: true, icon: 'el-icon-document-checked' },
|
||
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",
|
||
component: Layout,
|
||
name: "productMangement",
|
||
redirect: "/productMangement/index",
|
||
meta: { fullPath: "/productMangement", title: "商品管理", noCache: true, icon: 'el-icon-shopping-cart-full' },
|
||
children: [
|
||
{
|
||
path: "index",
|
||
component: () => import("@/views/customer/productMangement/productList/index.vue"),
|
||
name: "productList",
|
||
meta: { title: "发布清单", fullPath: "/productMangement/index" },
|
||
},
|
||
{
|
||
path: "rejectedPro",
|
||
component: () => import("@/views/customer/productMangement/rejectedPro/index.vue"),
|
||
name: "rejectedPro",
|
||
meta: { title: "未通过清单", fullPath: "/productMangement/index" },
|
||
},
|
||
]
|
||
},
|
||
{
|
||
path: "/menuMangement",
|
||
component: Layout,
|
||
name: "menuMangement",
|
||
redirect: "/menuMangement/index",
|
||
meta: { fullPath: "/menuMangement", title: "菜单管理", noCache: true, icon: 'el-icon-s-home' },
|
||
children: [
|
||
{
|
||
path: "index",
|
||
component: () => import("@/views/operation/menuMangement/index.vue"),
|
||
name: "menuMangement",
|
||
meta: { title: "菜单管理", fullPath: "/menuMangement/index" },
|
||
},
|
||
]
|
||
},
|
||
|
||
{
|
||
path: "/sales", component: Layout,
|
||
|
||
meta: {
|
||
title: "销售", icon: "el-icon-shopping-cart-2", noCache: true, fullPath: "/sales",
|
||
}, redirect: "/sales/distributorManagement", children: [{
|
||
path: "distributorManagement",
|
||
component: () => import("@/views/sales/distributorManagement"), // component: () => import("@/views/sales/distributorManagement/lodIndex.vue"),
|
||
name: "Distributor",
|
||
meta: { title: "分销商管理", fullPath: "/sales/distributorManagement" }, // hidden: true,
|
||
}, {
|
||
path: "intelligentNetworkConfig",
|
||
component: () => import("@/views/sales/IntelligentNetworkConfig"),
|
||
name: "intelligentNetworkConfig",
|
||
meta: { title: "智算网络配置", fullPath: "/sales/IntelligentNetworkConfig" },
|
||
}, {
|
||
path: "chat", component: () => import("@/views/product/productHome/chat/index.vue"), name: "chat", meta: {
|
||
title: "聊天", fullPath: "/sales/chat", noCache: true
|
||
},
|
||
}, {
|
||
path: "rpRebate",
|
||
hidden: true,
|
||
component: () => import("@/views/sales/rpRebate"),
|
||
name: "rpRebate",
|
||
meta: { title: "返佣设置", fullPath: "/sales/rpRebate" },
|
||
}, {
|
||
path: "rpDiscount",
|
||
hidden: true,
|
||
component: () => import("@/views/sales/rpDiscount"),
|
||
name: "rpDiscount",
|
||
meta: { title: "折扣设置", fullPath: "/sales/rpDiscount" },
|
||
}, {
|
||
path: "floorPrice",
|
||
hidden: true,
|
||
component: () => import("@/views/sales/floorPrice"),
|
||
name: "floorPrice",
|
||
meta: { title: "底价设置", fullPath: "/sales/floorPrice" },
|
||
},
|
||
{
|
||
path: "bdUserMangement",
|
||
component: () => import("@/views/sales/BdUserMangement"),
|
||
name: "floorPrice",
|
||
meta: { title: "百度用户管理", fullPath: "/sales/BdUserMangement" },
|
||
children: [{
|
||
path: "orderManagement", component: () => import(
|
||
"@/views/sales/BdUserMangement/orderMangement"
|
||
), name: "orderManagement", meta: {
|
||
title: "订单管理", fullPath: "/sales/BdUserMangement/orderManagement",
|
||
},
|
||
}, {
|
||
path: "billMangement", component: () => import(
|
||
"@/views/sales/BdUserMangement/billMangement"
|
||
), name: "billMangement", meta: {
|
||
title: "账单管理", fullPath: "/sales/BdUserMangement/billMangement",
|
||
},
|
||
},]
|
||
},
|
||
{
|
||
path: "customerManagement",
|
||
component: () => import("@/views/sales/customerManagement"),
|
||
name: "Customer",
|
||
meta: { title: "客户管理", fullPath: "/sales/customerManagement" },
|
||
redirect: "/customerManagement/customerInformationList",
|
||
children: [{
|
||
path: "intendedCustomers", component: () => import(
|
||
"@/views/sales/customerManagement/intendedCustomers/index.vue"
|
||
), name: "intendedCustomers", meta: {
|
||
title: "意向客户", fullPath: "/sales/customerManagement/intendedCustomers",
|
||
},
|
||
}, {
|
||
path: "customerInformationList", component: () => import(
|
||
"@/views/sales/customerManagement/customerInformationList"
|
||
), name: "customerInformationList", meta: {
|
||
title: "客户信息列表", fullPath: "/sales/customerManagement/customerInformationList",
|
||
},
|
||
}, {
|
||
path: "zjUserList", hidden: true, component: () => import(
|
||
"@/views/sales/customerManagement/zjUserList"
|
||
), name: "zjUserList", meta: {
|
||
title: "中金客户列表", fullPath: "/sales/customerManagement/zjUserList",
|
||
},
|
||
},
|
||
|
||
{
|
||
path: "jiNanChaoSuanUserList", component: () => import(
|
||
"@/views/sales/customerManagement/jiNanChaoSuanUserList"
|
||
), // name: "jiNanChaoSuanUserList",
|
||
meta: {
|
||
title: "超算用户账号分配", fullPath: "/sales/customerManagement/jiNanChaoSuanUserList",
|
||
},
|
||
}, {
|
||
path: "jiNanChaoSuanTonBu", component: () => import(
|
||
"@/views/sales/customerManagement/jiNanChaoSuanTonBu"
|
||
), // name: "jiNanChaoSuanTonBu",
|
||
meta: {
|
||
title: "超算用户账号同步", fullPath: "/sales/customerManagement/jiNanChaoSuanTonBu",
|
||
},
|
||
}, {
|
||
path: "promotion",
|
||
component: () => import("@/views/sales/customerManagement/promotion"),
|
||
name: "Promotion",
|
||
meta: {
|
||
title: "生成邀请码", fullPath: "/sales/customerManagement/promotion",
|
||
},
|
||
}, {
|
||
path: "customerManagement",
|
||
component: () => import("@/views/sales/customerManagement/customerManagement"),
|
||
name: "customerManagement",
|
||
meta: {
|
||
title: "客户折扣设置", fullPath: "/sales/customerManagement/customerManagement",
|
||
},
|
||
}, {
|
||
path: "clientPriceSet", component: () => import(
|
||
"@/views/sales/customerManagement/clientPriceSet"
|
||
), name: "clientPriceSet", meta: {
|
||
title: "客户售价设置", fullPath: "/sales/customerManagement/clientPriceSet",
|
||
},
|
||
}, {
|
||
path: "invoiceManage", component: () => import(
|
||
"@/views/sales/customerManagement/invoiceManage"
|
||
), name: "InvoiceManage", meta: {
|
||
title: "发票管理", fullPath: "/sales/customerManagement/invoiceAndContract",
|
||
}, redirect: "/sales/customerManagement/invoiceManage/invoiceAndContract", children: [{
|
||
path: "invoiceAndContract", component: () => import(
|
||
"@/views/sales/customerManagement/invoiceManage/children/invoiceAndContract"
|
||
), name: "InvoiceAndContract", meta: {
|
||
title: "发票与合同", fullPath: "/sales/customerManagement/invoiceManage/invoiceAndContract",
|
||
},
|
||
}, {
|
||
path: "historyBilling", component: () => import(
|
||
"@/views/sales/customerManagement/invoiceManage/children/historyBilling"
|
||
), name: "HistoryBilling", meta: {
|
||
title: "审批记录", fullPath: "/sales/customerManagement/invoiceManage/historyBilling",
|
||
},
|
||
},]
|
||
},],
|
||
}, {
|
||
path: "salesAnalysis",
|
||
hidden: true,
|
||
component: () => import("@/views/sales/salesAnalysis"),
|
||
name: "salesAnalysis",
|
||
meta: { title: "销售分析", fullPath: "/sales/salesAnalysis" },
|
||
},],
|
||
},
|
||
|
||
{
|
||
path: "/operation", component: Layout, redirect: "/operation/supplierManagement", meta: {
|
||
title: "运营", icon: "el-icon-s-tools", noCache: true, fullPath: "/operation",
|
||
}, children: [
|
||
|
||
{
|
||
path: "operation",
|
||
hidden: true,
|
||
component: () => import("@/views/operation/examinationManagement"),
|
||
name: "Operation",
|
||
meta: {
|
||
title: "审批管理", fullPath: "/operation/examinationManagement",
|
||
},
|
||
redirect: "/operation/examinationManagement/sustomerDiscountApproval",
|
||
children: [{
|
||
path: "sustomerDiscountApproval", component: () => import(
|
||
"@/views/operation/examinationManagement/sustomerDiscountApproval"
|
||
), name: "MyOrganization", meta: {
|
||
title: "客户折扣审批", fullPath: "/operation/examinationManagement/sustomerDiscountApproval",
|
||
},
|
||
}, {
|
||
path: "supplierTransferApproval", component: () => import(
|
||
"@/views/operation/examinationManagement/supplierTransferApproval"
|
||
), name: "supplierTransferApproval", meta: {
|
||
title: "供应商销售收入转账审批", fullPath: "/operation/examinationManagement/supplierTransferApproval",
|
||
},
|
||
},
|
||
{
|
||
path: "distributorDiscountSetting", component: () => import(
|
||
"@/views/operation/examinationManagement/distributorDiscountSetting"
|
||
), name: "DistributorDiscountSetting", meta: {
|
||
title: "分销商折扣设置审批", fullPath: "/operation/examinationManagement/distributorDiscountSetting",
|
||
},
|
||
},
|
||
{
|
||
path: "distributorRebateSetUp", component: () => import(
|
||
"@/views/operation/examinationManagement/distributorRebateSetUp"
|
||
), name: "DistributorRebateSetUp", meta: {
|
||
title: "分销商回佣率设置审批", fullPath: "/operation/examinationManagement/DistributorRebateSetUp",
|
||
},
|
||
},
|
||
{
|
||
path: "distributorCommissionTransferApproval", component: () => import(
|
||
"@/views/operation/examinationManagement/distributorCommissionTransferApproval"
|
||
), name: "DistributorCommissionTransferApproval", meta: {
|
||
title: "分销商回佣转账审批",
|
||
fullPath: "/operation/examinationManagement/distributorCommissionTransferApproval",
|
||
},
|
||
},],
|
||
}, {
|
||
path: "supplierManagement",
|
||
title: "供应商管理",
|
||
component: () => import("@/views/operation/supplierManagement"),
|
||
name: "supplierManagement",
|
||
meta: {
|
||
title: "供应商管理", fullPath: "/operation/supplierManagement",
|
||
},
|
||
}, {
|
||
path: "computingCenterManagement",
|
||
component: () => import("@/views/operation/computingCenterManagement"),
|
||
name: "computingCenterManagement",
|
||
title: "容器云",
|
||
meta: {
|
||
title: "容器云", fullPath: "/operation/computingCenterManagement/mainPage", noCache: true
|
||
},
|
||
redirect: "/operation/computingCenterManagement",
|
||
children: [
|
||
|
||
{
|
||
path: "mainPage",
|
||
title: "算力中心",
|
||
component: () => import("@/views/operation/computingCenterManagement/mainPage/index.vue"),
|
||
name: "supplierManagement",
|
||
meta: {
|
||
title: "算力中心", fullPath: "/operation/computingCenterManagement/mainPage", noCache: true
|
||
},
|
||
}, {
|
||
path: "tagMangement",
|
||
|
||
title: "标签管理",
|
||
component: () => import("@/views/operation/computingCenterManagement/TagMangement/index.vue"),
|
||
name: "tagMangement",
|
||
meta: {
|
||
title: "标签管理", fullPath: "/operation/computingCenterManagement/tagMangement", noCache: true
|
||
},
|
||
}, {
|
||
path: "sellingConfiguration",
|
||
title: "出售配置",
|
||
component: () => import("@/views/operation/computingCenterManagement/sellingConfiguration/index.vue"),
|
||
name: "sellingConfiguration",
|
||
meta: {
|
||
title: "出售配置", fullPath: "/operation/computingCenterManagement/sellingConfiguration", noCache: true
|
||
},
|
||
}, {
|
||
hidden: true,
|
||
path: "pod",
|
||
title: "资源实例看板",
|
||
component: () => import("@/views/operation/computingCenterManagement/pod/index.vue"),
|
||
name: "pod",
|
||
meta: {
|
||
title: "资源实例看板", fullPath: "/operation/computingCenterManagement/pod", noCache: true
|
||
},
|
||
}, {
|
||
hidden: true,
|
||
path: "childPod",
|
||
title: "成员节点看板",
|
||
component: () => import("@/views/operation/computingCenterManagement/childPod/index.vue"),
|
||
name: "childPod",
|
||
meta: {
|
||
title: "成员节点看板", fullPath: "/operation/computingCenterManagement/childPod", noCache: true
|
||
},
|
||
}, {
|
||
hidden: true,
|
||
path: "clusterResourceInstanceConfiguration",
|
||
title: "资源实例配置",
|
||
component: () => import("@/views/operation/computingCenterManagement/clusterResourceInstanceConfiguration/index.vue"),
|
||
name: "clusterResourceInstanceConfiguration",
|
||
meta: {
|
||
title: "资源实例配置",
|
||
fullPath: "/operation/computingCenterManagement/clusterResourceInstanceConfiguration",
|
||
noCache: true
|
||
},
|
||
}, {
|
||
hidden: true,
|
||
path: "colony",
|
||
|
||
title: "管理集群",
|
||
component: () => import("@/views/operation/computingCenterManagement/colony/index.vue"),
|
||
name: "supplierManagement",
|
||
meta: {
|
||
title: "管理集群", fullPath: "/operation/computingCenterManagement/colony", noCache: true,
|
||
},
|
||
|
||
},
|
||
|
||
{
|
||
hidden: true,
|
||
path: "computingPowerNode",
|
||
title: "算力设备",
|
||
component: () => import("@/views/operation/computingCenterManagement/computingPowerNode/index.vue"),
|
||
name: "computingPowerNode",
|
||
meta: {
|
||
title: "算力设备", fullPath: "/operation/computingCenterManagement/computingPowerNode", noCache: true
|
||
},
|
||
}, {
|
||
hidden: true,
|
||
path: "part",
|
||
title: "算力部件管理",
|
||
component: () => import("@/views/operation/computingCenterManagement/Part/index.vue"),
|
||
name: "part",
|
||
meta: {
|
||
title: "算力部件管理", fullPath: "/operation/computingCenterManagement/Part", noCache: true
|
||
},
|
||
},]
|
||
}, {
|
||
path: "importSalesRevenue",
|
||
title: "导入销售额",
|
||
component: () => import("@/views/operation/importSalesRevenue"),
|
||
name: "ImportSalesRevenue",
|
||
meta: {
|
||
title: "导入销售额", fullPath: "/operation/ImportSalesRevenue",
|
||
},
|
||
},
|
||
|
||
{
|
||
path: "allProductManagement",
|
||
title: "公共售价管理",
|
||
component: () => import("@/views/operation/allProductManagement"),
|
||
name: "allProductManagement",
|
||
meta: {
|
||
title: "公共售价管理", fullPath: "/operation/allProductManagement",
|
||
},
|
||
},
|
||
|
||
{
|
||
path: "publicDiscountManagement",
|
||
title: "公共折扣管理",
|
||
component: () => import("@/views/operation/publicDiscountManagement"),
|
||
name: "publicDiscountManagement",
|
||
meta: {
|
||
title: "公共折扣管理", fullPath: "/operation/publicDiscountManagement",
|
||
},
|
||
}, {
|
||
path: "publicCostomerManagement",
|
||
component: () => import("@/views/operation/publicCostomerManagement"),
|
||
name: "PublicCostomerManagement",
|
||
meta: {
|
||
title: "公共客户管理", fullPath: "/operation/publicCostomerManagement",
|
||
},
|
||
},
|
||
|
||
{
|
||
path: "productManagement",
|
||
component: () => import("@/views/operation/productManagement"),
|
||
name: "productManagement",
|
||
hidden: true,
|
||
meta: {
|
||
title: "供应商产品管理", fullPath: "/operation/productManagement",
|
||
},
|
||
},
|
||
|
||
{
|
||
path: "specificationTemplateManagement",
|
||
component: () => import("@/views/operation/specificationTemplateManagement"),
|
||
name: "specificationTemplateManagement",
|
||
hidden: true,
|
||
meta: {
|
||
title: "产品规格模板管理", fullPath: "/operation/specificationTemplateManagement",
|
||
},
|
||
}, {
|
||
path: "saleActives",
|
||
component: () => import("@/views/operation/saleActives"),
|
||
name: "SaleActives",
|
||
meta: { title: "促销活动", fullPath: "/operation/saleActives" },
|
||
}, {
|
||
path: "voucher",
|
||
component: () => import("@/views/operation/voucher"),
|
||
name: "voucher",
|
||
meta: { title: "算力券管理", fullPath: "/operation/voucher" },
|
||
}, {
|
||
path: "customerTransfer",
|
||
component: () => import("@/views/operation/customerTransfer"),
|
||
name: "CustomerTransfer",
|
||
meta: {
|
||
title: "客户转移", fullPath: "/operation/customerTransfer",
|
||
},
|
||
}, {
|
||
path: "turnoverHandover",
|
||
component: () => import("@/views/operation/turnoverHandover"),
|
||
name: "TurnoverHandover",
|
||
meta: {
|
||
title: "离职交接", fullPath: "/operation/turnoverHandover",
|
||
},
|
||
},
|
||
|
||
{
|
||
path: "analyze", component: () => import("@/views/operation/analyze"), name: "analyze", meta: {
|
||
title: "分析", fullPath: "/operation/analyze",
|
||
}, redirect: "/operation/analyze", children: [
|
||
|
||
{
|
||
path: "bill", component: () => import(
|
||
"@/views/operation/analyze/bill/index.vue"
|
||
), name: "bill", meta: {
|
||
title: "消费KPI分析", fullPath: "/operation/analyze/bill",
|
||
},
|
||
},
|
||
|
||
{
|
||
path: "operationalAnalysis", component: () => import(
|
||
"@/views/operation/analyze/operationalAnalysis"
|
||
), name: "operationalAnalysis", meta: {
|
||
title: "运营KPI分析", fullPath: "/operation/analyze/operationalAnalysis",
|
||
},
|
||
}, {
|
||
path: "depementAnalysis", component: () => import(
|
||
"@/views/operation/analyze/depementAnalysis"
|
||
), name: "depementAnalysis", meta: {
|
||
title: "部门KPI分析", fullPath: "/operation/analyze/depementAnalysis",
|
||
},
|
||
}, {
|
||
path: "saleAnalysis", component: () => import(
|
||
"@/views/operation/analyze/saleAnalysis"
|
||
), name: "saleAnalysis", meta: {
|
||
title: "销售KPI分析", fullPath: "/operation/analyze/saleAnalysis",
|
||
},
|
||
}, {
|
||
path: "incomeAnalysis", component: () => import(
|
||
"@/views/operation/analyze/incomeAnalysis"
|
||
), name: "incomeAnalysis", meta: {
|
||
title: "收入分析", fullPath: "/operation/analyze/incomeAnalysis",
|
||
},
|
||
}, {
|
||
path: "profitAnalysis", component: () => import(
|
||
"@/views/operation/analyze/profitAnalysis"
|
||
), name: "profitAnalysis", meta: {
|
||
title: "利润分析", fullPath: "/operation/analyze/profitAnalysis",
|
||
},
|
||
},
|
||
|
||
|
||
],
|
||
}, {
|
||
path: "channelCustomer",
|
||
title: "渠道客户",
|
||
component: () => import("@/views/operation/channelCustomer"),
|
||
name: "channelCustomer",
|
||
meta: {
|
||
title: "渠道客户", fullPath: "/operation/channelCustomer", noCache: true
|
||
},
|
||
}, {
|
||
hidden: true,
|
||
path: "intelligentConfigOpe",
|
||
title: "智算产品配置",
|
||
component: () => import("@/views/operation/IntelligentConfigOpe"),
|
||
name: "intelligentConfigOpe",
|
||
meta: {
|
||
title: "智算产品配置", fullPath: "/operation/IntelligentConfigOpe",
|
||
},
|
||
}, {
|
||
path: "deviceMangement",
|
||
component: () => import("@/views/operation/deviceMangement"),
|
||
name: "deviceMangement",
|
||
meta: {
|
||
title: "产品租赁", fullPath: "/operation/deviceMangement",
|
||
},
|
||
redirect: "/operation/deviceMangement",
|
||
children: [{
|
||
path: "device", component: () => import(
|
||
"@/views/operation/deviceMangement/device/index.vue"
|
||
), name: "device", meta: {
|
||
title: "设备管理", fullPath: "/operation/deviceMangement/device",
|
||
},
|
||
}, {
|
||
path: "deviceBillList", component: () => import(
|
||
"@/views/operation/deviceMangement/deviceBillList/index.vue"
|
||
), name: "deviceBillList", meta: {
|
||
title: "设备订单", fullPath: "/operation/deviceMangement/deviceBillList",
|
||
},
|
||
}, {
|
||
path: "machineRoom", component: () => import(
|
||
"@/views/operation/deviceMangement/machineRoom/index.vue"
|
||
), name: "machineRoom", meta: {
|
||
title: "机房信息", fullPath: "/operation/deviceMangement/machineRoom",
|
||
},
|
||
}, {
|
||
path: "deviceGrid", component: () => import(
|
||
"@/views/operation/deviceMangement/deviceGrid/index.vue"
|
||
), name: "deviceGrid", meta: {
|
||
title: "统计分析", fullPath: "/operation/deviceMangement/deviceGrid",
|
||
}, children: [{
|
||
path: "machineRoomGrid",
|
||
component: () => import("@/views/operation/deviceMangement/deviceGrid/machineRoomGrid.vue"),
|
||
name: "machineRoomGrid",
|
||
meta: {
|
||
title: "机房统计", fullPath: "/operation/deviceMangement/deviceGrid/machineRoomGrid"
|
||
}
|
||
}, {
|
||
path: "deviceExpiration",
|
||
component: () => import("@/views/operation/deviceMangement/deviceGrid/deviceExpiration.vue"),
|
||
name: "deviceExpiration",
|
||
meta: {
|
||
title: "设备统计", fullPath: "/operation/deviceMangement/deviceGrid/deviceExpiration"
|
||
}
|
||
}, {
|
||
path: "supplierAndProductStatistics",
|
||
component: () => import("@/views/operation/deviceMangement/deviceGrid/supplierAndProductStatistics.vue"),
|
||
name: "deviceExpiration",
|
||
meta: {
|
||
title: "供需指数", fullPath: "/operation/deviceMangement/deviceGrid/supplierAndProductStatistics"
|
||
}
|
||
},
|
||
|
||
|
||
]
|
||
}, {
|
||
hidden: true, path: "deviceContract", component: () => import(
|
||
"@/views/operation/deviceMangement/deviceContract/index.vue"
|
||
), name: "deviceContract", // beforeRouteEnter(to, from, next) {
|
||
// // 在路由进入前执行逻辑
|
||
// // 可以访问组件实例 `this`,但是此时还无法访问到组件实例本身
|
||
// next(vm => {
|
||
// console.log('Before route enter', vm);
|
||
// })
|
||
//
|
||
// // 继续路由导航
|
||
// },
|
||
meta: {
|
||
title: "设备合同", fullPath: "/operation/deviceMangement/deviceContract",
|
||
},
|
||
},],
|
||
}, {
|
||
path: 'approval', component: () => import("@/views/operation/approval"), name: "approval", meta: {
|
||
title: "审批配置", fullPath: "/operation/approval"
|
||
}, children: [{
|
||
path: "approvalArgumentsConfig",
|
||
component: () => import("@/views/operation/approval/approvalArgumentsConfig"),
|
||
name: "approvalArgumentsConfig",
|
||
meta: {
|
||
title: "参数配置", fullPath: "/operation/approval/approvalArgumentsConfig"
|
||
}
|
||
},
|
||
|
||
{
|
||
path: "approvalConfig",
|
||
component: () => import("@/views/operation/approval/approvalConfig"),
|
||
name: "approvalConfig",
|
||
meta: {
|
||
title: "审核人配置", fullPath: "/operation/approval/approvalConfig"
|
||
}
|
||
}, {
|
||
path: "approvalList",
|
||
component: () => import("@/views/operation/approval/approvalList"),
|
||
name: "approvalList",
|
||
meta: {
|
||
title: "流程列表", fullPath: "/operation/approval/approvalList"
|
||
}
|
||
}]
|
||
}, {
|
||
path: "test", name: 'test', component: () => import("@/views/Test/index"), meta: {
|
||
title: "Test", icon: "el-icon-shopping-cart-2", noCache: true, fullPath: "/Test/index",
|
||
},
|
||
},],
|
||
},
|
||
{
|
||
path: "/operationAndMaintenance", component: Layout, redirect: "/operationAndMaintenance/index", meta: {
|
||
title: "运维", icon: "el-icon-s-tools", noCache: true, fullPath: "/operationAndMaintenance",
|
||
}, children: [{
|
||
path: "workOrderProcessing",
|
||
component: () => import("@/views/operationAndMaintenance/workOrderProcessing"),
|
||
name: "WorkOrderProcessing",
|
||
meta: {
|
||
title: "手工工单处理", fullPath: "/operationAndMaintenance/workOrderProcessing",
|
||
},
|
||
}, {
|
||
path: "documentManagement",
|
||
component: () => import("@/views/operationAndMaintenance/documentManagement"),
|
||
name: "DocumentManagement",
|
||
meta: {
|
||
title: "文档管理", fullPath: "/operationAndMaintenance/documentManagement",
|
||
},
|
||
}, {
|
||
path: "productSupply",
|
||
component: () => import("@/views/operationAndMaintenance/productSupply"),
|
||
name: "productSupply",
|
||
meta: {
|
||
title: "产品供应", fullPath: "/operationAndMaintenance/productSupply", noCache: true
|
||
},
|
||
}, {
|
||
path: "envDeployment",
|
||
component: () => import("@/views/operationAndMaintenance/envDeployment"),
|
||
name: "envDeployment",
|
||
meta: {
|
||
title: "环境部署", fullPath: "/operationAndMaintenance/envDeployment", noCache: true
|
||
},
|
||
},
|
||
],
|
||
},
|
||
|
||
{
|
||
path: "/finance", component: Layout, redirect: "/finance", meta: {
|
||
title: "财务", icon: "el-icon-s-data", noCache: true, fullPath: "/finance",
|
||
}, children: [{
|
||
path: "supplierSettlement",
|
||
hidden: true,
|
||
component: () => import(
|
||
"@/views/finance/supplierSettlement"
|
||
),
|
||
name: "SupplierSettlement",
|
||
meta: { title: "供应商结算", fullPath: "/finance/supplierSettlement" },
|
||
children: [{
|
||
path: "supplierSalesReconciliation", component: () => import(
|
||
"@/views/finance/supplierSettlement/supplierSalesReconciliation"
|
||
), name: "SupplierSalesReconciliation", meta: {
|
||
title: "供应商销售对账", fullPath: "/finance/supplierSettlement/supplierSalesReconciliation",
|
||
},
|
||
}, {
|
||
path: "misaccounting",
|
||
component: () => import("@/views/finance/supplierSettlement/misaccounting"),
|
||
name: "Misaccounting",
|
||
meta: {
|
||
title: "错账处理", fullPath: "/finance/supplierSettlement/misaccounting",
|
||
},
|
||
},],
|
||
}, {
|
||
path: "supplierSettlementStatistics",
|
||
component: () => import("@/views/endDay/supplierSettlementStatistics"),
|
||
name: "supplierSettlementStatistics",
|
||
meta: { title: "供应商结算统计", fullPath: "/endDay/supplierSettlementStatistics" },
|
||
},
|
||
{
|
||
path: "customerRechargeManagement",
|
||
component: () => import("@/views/finance/customerRechargeManagement"),
|
||
name: "CustomerRechargeManagement",
|
||
meta: {
|
||
title: "客户充值管理", fullPath: "/finance/customerRechargeManagement",
|
||
},
|
||
children: [{
|
||
path: "customersRechargeOnffline", component: () => import(
|
||
"@/views/finance/customerRechargeManagement/customersRechargeOnffline"
|
||
), name: "CustomersRechargeOnffline", meta: {
|
||
title: "客户线下充值入账", fullPath: "/finance/customerRechargeManagement/customersRechargeOnffline",
|
||
},
|
||
},
|
||
],
|
||
}, {
|
||
path: "financialAnalysis",
|
||
hidden: true,
|
||
component: () => import("@/views/finance/financialAnalysis"),
|
||
meta: { title: "财务分析", fullPath: "/finance/financialAnalysis" },
|
||
},
|
||
|
||
],
|
||
},
|
||
|
||
{
|
||
path: "/superAdministrator", component: Layout, redirect: "/superAdministrator/index", meta: {
|
||
title: "超级管理员", icon: "el-icon-user-solid", noCache: true, fullPath: "/superAdministrator",
|
||
}, children: [{
|
||
path: "addAdmin", component: () => import("@/views/superAdministrator/addAdmin"), name: "addAdmin", meta: {
|
||
title: "添加业主机构管理员", fullPath: "/superAdministrator/addAdmin",
|
||
},
|
||
}, {
|
||
path: "permissionListManagement",
|
||
component: () => import("@/views/superAdministrator/permissionListManagement"),
|
||
name: "permissionListManagement",
|
||
meta: {
|
||
title: "权限列表管理", fullPath: "/superAdministrator/permissionListManagement",
|
||
},
|
||
}, {
|
||
path: "rolepermissionConfiguration",
|
||
component: () => import("@/views/superAdministrator/rolepermissionConfiguration"),
|
||
name: "RolepermissionConfiguration",
|
||
meta: {
|
||
title: "角色权限配置", fullPath: "/superAdministrator/rolepermissionConfiguration",
|
||
},
|
||
}, {
|
||
path: "systeCconfigurationManagement",
|
||
component: () => import("@/views/superAdministrator/systeCconfigurationManagement"),
|
||
name: "SysteCconfigurationManagement",
|
||
meta: {
|
||
title: "系统参数配置", fullPath: "/superAdministrator/systeCconfigurationManagement",
|
||
},
|
||
}, {
|
||
path: "codeManagement",
|
||
title: "代码与键值管理",
|
||
component: () => import("@/views/superAdministrator/codeManagement"),
|
||
name: "codeManagement",
|
||
meta: {
|
||
title: "代码与键值管理", fullPath: "/superAdministrator/codeManagement",
|
||
},
|
||
},],
|
||
},
|
||
// {
|
||
// path: "/administrator", component: Layout, redirect: "/administrator/index", meta: {
|
||
// title: "企业管理",
|
||
// icon: "el-icon-office-building",
|
||
// noCache: true,
|
||
// fullPath: "/administrator"
|
||
// },
|
||
// children: [
|
||
// {
|
||
// path: "departmentManagement",
|
||
// component: () => import("@/views/administrator/departmentManagement"),
|
||
// name: "epartmentManagement",
|
||
// meta: {
|
||
// title: "部门管理", fullPath: "/administrator/departmentManagement",
|
||
// },
|
||
// }, {
|
||
// path: "configureOrganizationUserRole",
|
||
// component: () => import("@/views/administrator/configureOrganizationUserRole"),
|
||
// name: "ConfigureOrganizationUserRole",
|
||
// meta: {
|
||
// title: "角色管理", fullPath: "/administrator/configureOrganizationUserRole",
|
||
// },
|
||
// }, {
|
||
// path: "stationMessageSettings",
|
||
// component: () => import("@/views/administrator/stationMessageSettings"),
|
||
// name: "StationMessageSettings",
|
||
// meta: {
|
||
// title: "站内信设置", fullPath: "/administrator/stationMessageSettings",
|
||
// },
|
||
// },],
|
||
// },
|
||
{
|
||
path: "/management",
|
||
hidden: true,
|
||
component: Layout,
|
||
redirect: "/management/userRightsManagement/accountManagement",
|
||
meta: {
|
||
title: "管理", icon: "el-icon-setting", noCache: true, fullPath: "/management",
|
||
},
|
||
children: [{
|
||
path: "userManagement",
|
||
component: () => import("@/views/management/userRightsManagement"),
|
||
meta: { title: "用户权限管理", fullPath: "/management/userManagement" },
|
||
redirect: "/management/userManagement/accountManagement",
|
||
children: [{
|
||
path: "accountManagement", component: () => import(
|
||
"@/views/management/userRightsManagement/accountManagement"
|
||
), name: "accountManagement", meta: {
|
||
title: "用户管理", fullPath: "/management/userManagement/accountManagement",
|
||
},
|
||
}, {
|
||
path: "authorityManagement", component: () => import(
|
||
"@/views/management/userRightsManagement/authorityManagement"
|
||
), name: "AuthorityManagement", meta: {
|
||
title: "权限管理", fullPath: "/management/userManagement/authorityManagement",
|
||
},
|
||
}, {
|
||
path: "organizationManagement", component: () => import(
|
||
"@/views/management/userRightsManagement/organizationManagement"
|
||
), name: "OrganizationManagement", meta: {
|
||
title: "组织管理", fullPath: "/management/userManagement/organizationManagement",
|
||
},
|
||
},],
|
||
}, {
|
||
path: "serviceManagement",
|
||
component: () => import("@/views/management/serviceManagement"),
|
||
meta: { title: "业务管理", fullPath: "/management/serviceManagement" },
|
||
redirect: "/management/serviceManagement/orderManagement",
|
||
children: [{
|
||
path: "billingManagement",
|
||
component: () => import("@/views/management/serviceManagement/billingManagement"),
|
||
name: "BillingManagement",
|
||
meta: {
|
||
title: "账单管理", fullPath: "/management/serviceManagement/billingManagement",
|
||
},
|
||
}, {
|
||
path: "financialManagement", component: () => import(
|
||
"@/views/management/serviceManagement/financialManagement"
|
||
), name: "FinancialManagement", meta: {
|
||
title: "财务管理", fullPath: "/management/serviceManagement/financialManagement",
|
||
},
|
||
},],
|
||
}, {
|
||
path: "/supplier_product", component: () => import("@/views/management/suplier_pro/index.vue"),
|
||
}, {
|
||
path: "/systemManagement",
|
||
title: "系统参数管理",
|
||
component: () => import("@/views/management/systemManagement"),
|
||
name: "systemManagement",
|
||
meta: {
|
||
title: "系统参数管理", fullPath: "/management/systemManagement",
|
||
},
|
||
}, {
|
||
path: "/dayDispose",
|
||
title: "日末管理",
|
||
component: () => import("@/views/management/dayDispose"),
|
||
name: "dayDispose",
|
||
meta: { title: "日末管理", fullPath: "/management/dayDispose" },
|
||
},],
|
||
},
|
||
|
||
|
||
{
|
||
path: "/endDay", component: Layout, redirect: "/endDay/endDay", hidden: true, meta: {
|
||
title: "日末", icon: "el-icon-s-custom", noCache: true, fullPath: "/endDay",
|
||
}, children: [{
|
||
path: "endDay",
|
||
component: () => import("@/views/endDay/endDay"),
|
||
name: "endDay",
|
||
meta: { title: "日末", fullPath: "/endDay/endDay" },
|
||
},
|
||
|
||
],
|
||
},
|
||
|
||
{
|
||
path: "*", redirect: "/404", hidden: true,
|
||
},];
|
||
|
||
|
||
const createRouter = () => new Router({
|
||
// mode: 'history', // require service support
|
||
scrollBehavior: () => ({
|
||
y: 0, x: 0
|
||
}), routes: constantRoutes,
|
||
});
|
||
|
||
const router = createRouter();
|
||
|
||
// 在beforeRouteLeave导航守卫中清空面包屑状态
|
||
router.beforeEach((to, from, next) => {
|
||
// 清空面包屑状态的代码
|
||
// store.commit('tagsView/resetBreadcrumbState');
|
||
next();
|
||
});
|
||
window.addEventListener('beforeunload', function () {
|
||
// 清空面包屑状态的代码
|
||
store.commit('tagsView/resetBreadcrumbState');
|
||
|
||
});
|
||
|
||
// Detail see: https://github.com/vuejs/vue-router/issues/1234#issuecomment-357941465
|
||
export function resetRouter() {
|
||
// asyncRoutes
|
||
const newRouter = createRouter();
|
||
router.matcher = newRouter.matcher; // reset router
|
||
}
|
||
|
||
export default router;
|