2022-08-30 10:36:30 +08:00
|
|
|
|
import { createWebHistory, createRouter } from "vue-router";
|
2022-06-20 13:55:32 +08:00
|
|
|
|
/* Layout */
|
2022-08-30 10:36:30 +08:00
|
|
|
|
import Layout from "@/layout";
|
|
|
|
|
|
import basicInfo from "../views/admin/enterprise/account/basicInfo.vue";
|
2021-11-30 09:55:37 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* Note: 路由配置项
|
|
|
|
|
|
*
|
|
|
|
|
|
* hidden: true // 当设置 true 的时候该路由不会再侧边栏出现 如401,login等页面,或者如一些编辑页面/edit/1
|
|
|
|
|
|
* alwaysShow: true // 当你一个路由下面的 children 声明的路由大于1个时,自动会变成嵌套的模式--如组件页面
|
|
|
|
|
|
* // 只有一个时,会将那个子路由当做根路由显示在侧边栏--如引导页面
|
|
|
|
|
|
* // 若你想不管路由下面的 children 声明的个数都显示你的根路由
|
|
|
|
|
|
* // 你可以设置 alwaysShow: true,这样它就会忽略之前定义的规则,一直显示根路由
|
|
|
|
|
|
* redirect: noRedirect // 当设置 noRedirect 的时候该路由在面包屑导航中不可被点击
|
|
|
|
|
|
* name:'router-name' // 设定路由的名字,一定要填写不然使用<keep-alive>时会出现各种问题
|
|
|
|
|
|
* query: '{"id": 1, "name": "ry"}' // 访问路由的默认传递参数
|
2022-06-20 13:55:32 +08:00
|
|
|
|
* roles: ['admin', 'common'] // 访问路由的角色权限
|
|
|
|
|
|
* permissions: ['a:a:a', 'b:b:b'] // 访问路由的菜单权限
|
2021-11-30 09:55:37 +08:00
|
|
|
|
* meta : {
|
|
|
|
|
|
noCache: true // 如果设置为true,则不会被 <keep-alive> 缓存(默认 false)
|
|
|
|
|
|
title: 'title' // 设置该路由在侧边栏和面包屑中展示的名字
|
|
|
|
|
|
icon: 'svg-name' // 设置该路由的图标,对应路径src/assets/icons/svg
|
|
|
|
|
|
breadcrumb: false // 如果设置为false,则不会在breadcrumb面包屑中显示
|
|
|
|
|
|
activeMenu: '/system/user' // 当路由设置了该属性,则会高亮相对应的侧边栏。
|
|
|
|
|
|
}
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
// 公共路由
|
|
|
|
|
|
export const constantRoutes = [
|
|
|
|
|
|
{
|
2022-08-30 10:36:30 +08:00
|
|
|
|
path: "/",
|
|
|
|
|
|
name: "Home",
|
|
|
|
|
|
component: () => import("../views/website/website-layout.vue"),
|
2021-11-30 09:55:37 +08:00
|
|
|
|
hidden: true,
|
|
|
|
|
|
children: [
|
|
|
|
|
|
{
|
2022-08-30 10:36:30 +08:00
|
|
|
|
path: "login",
|
|
|
|
|
|
name: "login",
|
|
|
|
|
|
component: () => import("@/views/website/login/index.vue"),
|
|
|
|
|
|
children: [],
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
path: "",
|
|
|
|
|
|
component: () => import("../views/website/home/index.vue"),
|
|
|
|
|
|
},
|
2022-10-13 17:42:32 +08:00
|
|
|
|
{
|
2022-10-19 00:22:39 +08:00
|
|
|
|
path: "searchList/enterprise",
|
|
|
|
|
|
component: () => import("../views/website/searchList/enterprise.vue"),
|
2022-10-13 17:42:32 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
2022-10-19 00:22:39 +08:00
|
|
|
|
path: "searchList/enterprise/detail/:id",
|
|
|
|
|
|
component: () =>
|
|
|
|
|
|
import("../views/website/searchList/enterpriseDetail.vue"),
|
|
|
|
|
|
},
|
2022-10-27 13:39:36 +08:00
|
|
|
|
{
|
|
|
|
|
|
path: "searchList/achievement",
|
|
|
|
|
|
component: () => import("../views/website/searchList/achievement.vue"),
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
path: "searchList/achievement/detail/:id",
|
|
|
|
|
|
component: () => import("../views/website/searchList/achievementDetail.vue"),
|
|
|
|
|
|
},
|
2022-10-19 00:22:39 +08:00
|
|
|
|
{
|
|
|
|
|
|
path: "searchList/patent",
|
|
|
|
|
|
component: () => import("../views/website/searchList/patent.vue"),
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
path: "searchList/patent/detail/:id",
|
|
|
|
|
|
component: () => import("../views/website/searchList/patentDetail.vue"),
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
path: "searchList/expert",
|
|
|
|
|
|
component: () => import("../views/website/searchList/expert.vue"),
|
|
|
|
|
|
},
|
2022-10-27 13:39:36 +08:00
|
|
|
|
{
|
|
|
|
|
|
path: "searchList/expert/detail/:id",
|
|
|
|
|
|
component: () => import("../views/website/searchList/expertDetail.vue"),
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
path: "searchList/serviceDemand",
|
|
|
|
|
|
component: () => import("../views/website/searchList/serviceDemand.vue"),
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
path: "searchList/serviceDemand/detail/:id",
|
|
|
|
|
|
component: () => import("../views/website/searchList/serviceDemandDetail.vue"),
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
path: "searchList/technologyDemand",
|
|
|
|
|
|
component: () => import("../views/website/searchList/technologyDemand.vue"),
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
path: "searchList/technologyDemand/detail/:id",
|
|
|
|
|
|
component: () => import("../views/website/searchList/technologyDemandDetail.vue"),
|
|
|
|
|
|
},
|
2022-10-19 00:22:39 +08:00
|
|
|
|
{
|
|
|
|
|
|
path: "solution/:name",
|
|
|
|
|
|
name: "solution",
|
|
|
|
|
|
component: () => import("../views/website/solution/solution.vue"),
|
2022-10-13 17:42:32 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
2022-10-19 00:22:39 +08:00
|
|
|
|
path: "solution/detail/:id",
|
|
|
|
|
|
name: "solutionDetail",
|
|
|
|
|
|
component: () => import("../views/website/solution/detail.vue"),
|
2022-10-13 17:42:32 +08:00
|
|
|
|
},
|
2022-10-01 09:12:01 +08:00
|
|
|
|
{
|
2022-10-19 00:22:39 +08:00
|
|
|
|
path: "/innovate",
|
|
|
|
|
|
name: "innovate",
|
|
|
|
|
|
component: () => import("../views/website/innovate/innovate.vue"),
|
2022-10-01 09:12:01 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
2022-10-19 00:22:39 +08:00
|
|
|
|
path: "innovate/detail/:id",
|
|
|
|
|
|
name: "innovateDetail",
|
|
|
|
|
|
component: () => import("../views/website/innovate/detail.vue"),
|
2022-10-01 09:12:01 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
2022-10-19 00:22:39 +08:00
|
|
|
|
path: "activity",
|
|
|
|
|
|
name: "activity",
|
|
|
|
|
|
component: () => import("../views/website/activity/activity.vue"),
|
2022-10-01 09:12:01 +08:00
|
|
|
|
// children: [
|
|
|
|
|
|
// {
|
|
|
|
|
|
// path: '',
|
|
|
|
|
|
// name: 'activityList',
|
|
|
|
|
|
// component: () => import('../views/website/activity/list.vue'),
|
|
|
|
|
|
// },
|
|
|
|
|
|
// {
|
|
|
|
|
|
// path: 'detail/:id',
|
|
|
|
|
|
// name: 'activityDetail',
|
|
|
|
|
|
// component: () => import('../views/website/activity/detail.vue'),
|
|
|
|
|
|
// },
|
|
|
|
|
|
// ]
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
2022-10-19 00:22:39 +08:00
|
|
|
|
path: "about",
|
|
|
|
|
|
name: "about",
|
|
|
|
|
|
component: () => import("../views/website/about/about.vue"),
|
2022-10-01 09:12:01 +08:00
|
|
|
|
},
|
2022-08-30 10:36:30 +08:00
|
|
|
|
],
|
2021-11-30 09:55:37 +08:00
|
|
|
|
},
|
2022-10-01 09:12:01 +08:00
|
|
|
|
|
2021-11-30 09:55:37 +08:00
|
|
|
|
{
|
2022-08-30 10:36:30 +08:00
|
|
|
|
path: "/redirect",
|
|
|
|
|
|
component: Layout,
|
|
|
|
|
|
hidden: true,
|
|
|
|
|
|
children: [
|
|
|
|
|
|
{
|
|
|
|
|
|
path: "/redirect/:path(.*)",
|
|
|
|
|
|
component: () => import("@/views/redirect/index.vue"),
|
|
|
|
|
|
},
|
|
|
|
|
|
],
|
2021-11-30 09:55:37 +08:00
|
|
|
|
},
|
2022-08-30 10:36:30 +08:00
|
|
|
|
// {
|
|
|
|
|
|
// path: "/login",
|
|
|
|
|
|
// component: () => import("@/views/login"),
|
|
|
|
|
|
// hidden: true,
|
|
|
|
|
|
// },
|
|
|
|
|
|
// {
|
|
|
|
|
|
// path: "/register",
|
|
|
|
|
|
// component: () => import("@/views/register"),
|
|
|
|
|
|
// hidden: true,
|
|
|
|
|
|
// },
|
2021-11-30 09:55:37 +08:00
|
|
|
|
{
|
2022-08-30 10:36:30 +08:00
|
|
|
|
path: "/:pathMatch(.*)*",
|
|
|
|
|
|
component: () => import("@/views/error/404"),
|
|
|
|
|
|
hidden: true,
|
2021-11-30 09:55:37 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
2022-08-30 10:36:30 +08:00
|
|
|
|
path: "/401",
|
|
|
|
|
|
component: () => import("@/views/error/401"),
|
|
|
|
|
|
hidden: true,
|
2021-11-30 09:55:37 +08:00
|
|
|
|
},
|
2022-08-30 10:36:30 +08:00
|
|
|
|
|
2021-11-30 09:55:37 +08:00
|
|
|
|
{
|
2022-08-30 10:36:30 +08:00
|
|
|
|
path: "/identity",
|
|
|
|
|
|
component: () => import("@/views/identity/layout"),
|
|
|
|
|
|
hidden: true,
|
|
|
|
|
|
children: [
|
|
|
|
|
|
{
|
|
|
|
|
|
path: "index",
|
|
|
|
|
|
component: () => import("@/views/identity/index"),
|
|
|
|
|
|
name: "index",
|
|
|
|
|
|
meta: { title: "身份选择" },
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
path: "enterprise",
|
|
|
|
|
|
component: () => import("@/views/identity/enterprise"),
|
|
|
|
|
|
name: "enterprise",
|
|
|
|
|
|
meta: { title: "企业入驻" },
|
|
|
|
|
|
},
|
2022-09-20 17:31:39 +08:00
|
|
|
|
{
|
2022-10-19 00:22:39 +08:00
|
|
|
|
path: "expert",
|
|
|
|
|
|
component: () => import("@/views/identity/expert"),
|
|
|
|
|
|
name: "expert",
|
|
|
|
|
|
meta: { title: "专家入驻" },
|
2022-09-20 17:31:39 +08:00
|
|
|
|
},
|
2022-08-30 10:36:30 +08:00
|
|
|
|
// {
|
|
|
|
|
|
// path:'research',
|
|
|
|
|
|
// component: () => import('@/views/identity/research'),
|
|
|
|
|
|
// name: 'research',
|
|
|
|
|
|
// meta: { title: '研究机构入驻'}
|
|
|
|
|
|
// },
|
|
|
|
|
|
// {
|
|
|
|
|
|
// path:'laboratory',
|
|
|
|
|
|
// component: () => import('@/views/identity/laboratory'),
|
|
|
|
|
|
// name: 'laboratory',
|
|
|
|
|
|
// meta: { title: '实验室入驻'}
|
|
|
|
|
|
// },
|
|
|
|
|
|
// {
|
|
|
|
|
|
// path:'agent',
|
|
|
|
|
|
// component: () => import('@/views/identity/agent'),
|
|
|
|
|
|
// name: 'agent',
|
|
|
|
|
|
// meta: { title: '科技经纪人入驻'}
|
|
|
|
|
|
// }
|
|
|
|
|
|
],
|
2021-11-30 09:55:37 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
2022-08-30 10:36:30 +08:00
|
|
|
|
path: "/admin",
|
2021-11-30 09:55:37 +08:00
|
|
|
|
component: Layout,
|
2022-08-30 10:36:30 +08:00
|
|
|
|
redirect: "/admin/index",
|
2021-11-30 09:55:37 +08:00
|
|
|
|
children: [
|
|
|
|
|
|
{
|
2022-08-30 10:36:30 +08:00
|
|
|
|
path: "index",
|
|
|
|
|
|
component: () => import("@/views/admin/index"),
|
|
|
|
|
|
name: "Index",
|
|
|
|
|
|
meta: { title: "首页", icon: "dashboard", affix: true },
|
|
|
|
|
|
},
|
|
|
|
|
|
],
|
2021-11-30 09:55:37 +08:00
|
|
|
|
},
|
2022-08-30 10:36:30 +08:00
|
|
|
|
|
|
|
|
|
|
// {
|
|
|
|
|
|
// path: '',
|
|
|
|
|
|
// component: Layout,
|
|
|
|
|
|
// redirect: '/index',
|
|
|
|
|
|
// children: [
|
|
|
|
|
|
// {
|
|
|
|
|
|
// path: '/index',
|
|
|
|
|
|
// component: () => import('@/views/index'),
|
|
|
|
|
|
// name: 'Index',
|
|
|
|
|
|
// meta: { title: '首页', icon: 'dashboard', affix: true }
|
|
|
|
|
|
// }
|
|
|
|
|
|
// ]
|
|
|
|
|
|
// },
|
2021-11-30 09:55:37 +08:00
|
|
|
|
{
|
2022-08-30 10:36:30 +08:00
|
|
|
|
path: "/user",
|
2021-11-30 09:55:37 +08:00
|
|
|
|
component: Layout,
|
|
|
|
|
|
hidden: true,
|
2022-08-30 10:36:30 +08:00
|
|
|
|
redirect: "noredirect",
|
2021-11-30 09:55:37 +08:00
|
|
|
|
children: [
|
|
|
|
|
|
{
|
2022-08-30 10:36:30 +08:00
|
|
|
|
path: "profile",
|
|
|
|
|
|
component: () => import("@/views/system/user/profile/index"),
|
|
|
|
|
|
name: "Profile",
|
|
|
|
|
|
meta: { title: "个人中心", icon: "user" },
|
|
|
|
|
|
},
|
|
|
|
|
|
],
|
|
|
|
|
|
},
|
|
|
|
|
|
];
|
2022-06-20 13:55:32 +08:00
|
|
|
|
|
2022-08-30 10:36:30 +08:00
|
|
|
|
// 企业后台路由表
|
|
|
|
|
|
export const enterpriseRoutes = [
|
|
|
|
|
|
{
|
|
|
|
|
|
path: "/account",
|
|
|
|
|
|
component: Layout,
|
|
|
|
|
|
meta: { title: "账号管理", icon: "dashboard" },
|
|
|
|
|
|
alwaysShow: true,
|
|
|
|
|
|
redirect: "/account/basicInfo",
|
|
|
|
|
|
children: [
|
|
|
|
|
|
{
|
|
|
|
|
|
path: "basicInfo",
|
|
|
|
|
|
component: basicInfo,
|
|
|
|
|
|
name: "basicInfo",
|
|
|
|
|
|
meta: { title: "基本资料", icon: "list" },
|
|
|
|
|
|
},
|
2022-10-01 09:12:01 +08:00
|
|
|
|
{
|
|
|
|
|
|
path: "joinMembership",
|
2022-10-19 00:22:39 +08:00
|
|
|
|
component: () =>
|
|
|
|
|
|
import("@/views/admin/enterprise/account/joinMembership"),
|
2022-10-01 09:12:01 +08:00
|
|
|
|
name: "joinMembership",
|
|
|
|
|
|
meta: { title: "开通会员", icon: "list" },
|
|
|
|
|
|
},
|
2022-08-30 10:36:30 +08:00
|
|
|
|
{
|
|
|
|
|
|
path: "bill",
|
|
|
|
|
|
component: () => import("@/views/admin/enterprise/account/bill"),
|
|
|
|
|
|
name: "Bill",
|
|
|
|
|
|
meta: { title: "账单列表", icon: "list" },
|
|
|
|
|
|
},
|
2022-09-20 17:31:39 +08:00
|
|
|
|
// {
|
|
|
|
|
|
// path: "record",
|
|
|
|
|
|
// component: () => import("@/views/admin/enterprise/account/record"),
|
|
|
|
|
|
// name: "Record",
|
|
|
|
|
|
// meta: { title: "创新币兑换记录", icon: "list" },
|
|
|
|
|
|
// },
|
2022-08-30 10:36:30 +08:00
|
|
|
|
],
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
path: "/extension",
|
|
|
|
|
|
component: Layout,
|
|
|
|
|
|
meta: { title: "产品推广", icon: "dashboard" },
|
|
|
|
|
|
alwaysShow: true,
|
|
|
|
|
|
redirect: "/extension/product",
|
|
|
|
|
|
children: [
|
|
|
|
|
|
{
|
|
|
|
|
|
path: "product",
|
|
|
|
|
|
component: () => import("@/views/admin/enterprise/extension/product"),
|
|
|
|
|
|
name: "Product",
|
|
|
|
|
|
meta: { title: "产品列表", icon: "list" },
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
path: "release",
|
|
|
|
|
|
component: () => import("@/views/admin/enterprise/extension/release"),
|
|
|
|
|
|
hidden: true,
|
|
|
|
|
|
name: "Release",
|
|
|
|
|
|
meta: { title: "发布产品", icon: "list" },
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
path: "results",
|
|
|
|
|
|
component: () => import("@/views/admin/enterprise/extension/results"),
|
|
|
|
|
|
hidden: true,
|
|
|
|
|
|
name: "Results",
|
|
|
|
|
|
meta: { title: "匹配结果", icon: "list" },
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
path: "business",
|
|
|
|
|
|
component: () => import("@/views/admin/enterprise/extension/business"),
|
|
|
|
|
|
hidden: true,
|
|
|
|
|
|
name: "Business",
|
|
|
|
|
|
meta: { title: "浏览信息", icon: "list" },
|
|
|
|
|
|
},
|
|
|
|
|
|
],
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
path: "/demand",
|
|
|
|
|
|
component: Layout,
|
|
|
|
|
|
meta: { title: "需求管理", icon: "dashboard" },
|
|
|
|
|
|
alwaysShow: true,
|
|
|
|
|
|
redirect: "/demand/serviceDemand",
|
|
|
|
|
|
children: [
|
|
|
|
|
|
{
|
|
|
|
|
|
path: "serviceDemand",
|
|
|
|
|
|
component: () =>
|
|
|
|
|
|
import("@/views/admin/enterprise/demand/serviceDemand"),
|
|
|
|
|
|
name: "serviceDemand",
|
|
|
|
|
|
meta: { title: "服务需求", icon: "list" },
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
2022-09-20 17:31:39 +08:00
|
|
|
|
path: "releaseService",
|
2022-10-19 00:22:39 +08:00
|
|
|
|
component: () =>
|
|
|
|
|
|
import("@/views/admin/enterprise/demand/releaseService"),
|
2022-08-30 10:36:30 +08:00
|
|
|
|
hidden: true,
|
2022-09-20 17:31:39 +08:00
|
|
|
|
name: "releaseService",
|
2022-08-30 10:36:30 +08:00
|
|
|
|
meta: { title: "发布服务需求", icon: "list" },
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
path: "technology",
|
|
|
|
|
|
component: () => import("@/views/admin/enterprise/demand/technology"),
|
|
|
|
|
|
name: "technology",
|
|
|
|
|
|
meta: { title: "技术需求", icon: "list" },
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
2022-09-20 17:31:39 +08:00
|
|
|
|
path: "releaseTechnology",
|
2022-10-19 00:22:39 +08:00
|
|
|
|
component: () =>
|
|
|
|
|
|
import("@/views/admin/enterprise/demand/releaseTechnology"),
|
2022-08-30 10:36:30 +08:00
|
|
|
|
hidden: true,
|
2022-09-20 17:31:39 +08:00
|
|
|
|
name: "releaseTechnology",
|
2022-08-30 10:36:30 +08:00
|
|
|
|
meta: { title: "发布技术需求", icon: "list" },
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
path: "results",
|
|
|
|
|
|
component: () => import("@/views/admin/enterprise/demand/results"),
|
|
|
|
|
|
hidden: true,
|
|
|
|
|
|
name: "results",
|
|
|
|
|
|
meta: { title: "匹配结果", icon: "list" },
|
|
|
|
|
|
},
|
|
|
|
|
|
],
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
path: "/activity",
|
|
|
|
|
|
component: Layout,
|
|
|
|
|
|
meta: { title: "活动管理", icon: "dashboard" },
|
|
|
|
|
|
alwaysShow: true,
|
|
|
|
|
|
redirect: "/activity/active",
|
|
|
|
|
|
children: [
|
|
|
|
|
|
{
|
|
|
|
|
|
path: "active",
|
|
|
|
|
|
component: () => import("@/views/admin/enterprise/activity/active"),
|
|
|
|
|
|
name: "Active",
|
|
|
|
|
|
meta: { title: "活动列表", icon: "list" },
|
|
|
|
|
|
},
|
|
|
|
|
|
],
|
|
|
|
|
|
},
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
// 专家后台路由表
|
|
|
|
|
|
export const expertRoutes = [
|
|
|
|
|
|
{
|
|
|
|
|
|
path: "/account",
|
|
|
|
|
|
component: Layout,
|
2022-10-01 09:12:01 +08:00
|
|
|
|
meta: { title: "账号管理", icon: "dashboard" },
|
2022-08-30 10:36:30 +08:00
|
|
|
|
alwaysShow: true,
|
|
|
|
|
|
// redirect: 'noRedirect',
|
|
|
|
|
|
redirect: "/account/bill",
|
|
|
|
|
|
children: [
|
2022-10-13 17:42:32 +08:00
|
|
|
|
// {
|
|
|
|
|
|
// path: "bill",
|
|
|
|
|
|
// component: () => import("@/views/admin/expert/account/bill"),
|
|
|
|
|
|
// name: "Bill",
|
|
|
|
|
|
// meta: { title: "账单列表", icon: "list" },
|
|
|
|
|
|
// },
|
|
|
|
|
|
// {
|
|
|
|
|
|
// path: "exchange",
|
|
|
|
|
|
// component: () => import("@/views/admin/expert/account/exchange"),
|
|
|
|
|
|
// name: "Exchange",
|
|
|
|
|
|
// meta: { title: "兑换记录", icon: "list" },
|
|
|
|
|
|
// },
|
2022-08-30 10:36:30 +08:00
|
|
|
|
{
|
|
|
|
|
|
path: "basicInfo",
|
|
|
|
|
|
component: () => import("@/views/admin/expert/account/basicInfo"),
|
|
|
|
|
|
name: "basicInfo",
|
|
|
|
|
|
meta: { title: "基本资料", icon: "list" },
|
|
|
|
|
|
},
|
2022-10-13 17:42:32 +08:00
|
|
|
|
// {
|
|
|
|
|
|
// path: "transactionAuth",
|
|
|
|
|
|
// component: () => import("@/views/admin/expert/account/transactionAuth"),
|
|
|
|
|
|
// name: "transactionAuth",
|
|
|
|
|
|
// meta: { title: "交易认证", icon: "list" },
|
|
|
|
|
|
// },
|
|
|
|
|
|
// {
|
|
|
|
|
|
// path: "profit",
|
|
|
|
|
|
// component: () => import("@/views/admin/expert/account/profit"),
|
|
|
|
|
|
// name: "profit",
|
|
|
|
|
|
// meta: { title: "收益管理", icon: "list" },
|
|
|
|
|
|
// },
|
|
|
|
|
|
// {
|
|
|
|
|
|
// path: "withdrawal",
|
|
|
|
|
|
// component: () => import("@/views/admin/expert/account/withdrawal"),
|
|
|
|
|
|
// hidden: true,
|
|
|
|
|
|
// name: "Withdrawal",
|
|
|
|
|
|
// meta: { title: "提现记录", icon: "list" },
|
|
|
|
|
|
// },
|
2022-08-30 10:36:30 +08:00
|
|
|
|
],
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
path: "/technology",
|
|
|
|
|
|
component: Layout,
|
|
|
|
|
|
meta: { title: "技术管理", icon: "dashboard" },
|
|
|
|
|
|
alwaysShow: true,
|
|
|
|
|
|
redirect: "/technology/achievement",
|
|
|
|
|
|
children: [
|
|
|
|
|
|
{
|
|
|
|
|
|
path: "achievement",
|
|
|
|
|
|
component: () => import("@/views/admin/expert/technology/achievement"),
|
|
|
|
|
|
name: "Achievement",
|
|
|
|
|
|
meta: { title: "成果列表", icon: "list" },
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
path: "release",
|
|
|
|
|
|
component: () => import("@/views/admin/expert/technology/release"),
|
|
|
|
|
|
hidden: true,
|
|
|
|
|
|
name: "Release",
|
|
|
|
|
|
meta: { title: "发布成果", icon: "list" },
|
|
|
|
|
|
},
|
2022-10-13 17:42:32 +08:00
|
|
|
|
// {
|
|
|
|
|
|
// path: "results",
|
|
|
|
|
|
// component: () => import("@/views/admin/expert/technology/results"),
|
|
|
|
|
|
// hidden: true,
|
|
|
|
|
|
// name: "Results",
|
|
|
|
|
|
// meta: { title: "匹配结果", icon: "list" },
|
|
|
|
|
|
// },
|
2022-10-01 09:12:01 +08:00
|
|
|
|
// {
|
|
|
|
|
|
// path: "patent",
|
|
|
|
|
|
// component: () => import("@/views/admin/expert/technology/patent"),
|
|
|
|
|
|
// name: "patent",
|
|
|
|
|
|
// meta: { title: "专利列表", icon: "list" },
|
|
|
|
|
|
// },
|
2022-10-13 17:42:32 +08:00
|
|
|
|
// {
|
|
|
|
|
|
// path: "claimPatent",
|
|
|
|
|
|
// component: () => import("@/views/admin/expert/technology/claimPatent"),
|
|
|
|
|
|
// hidden: true,
|
|
|
|
|
|
// name: "claimPatent",
|
|
|
|
|
|
// meta: { title: "认领专利", icon: "list" },
|
|
|
|
|
|
// },
|
2022-08-30 10:36:30 +08:00
|
|
|
|
{
|
|
|
|
|
|
path: "paper",
|
|
|
|
|
|
component: () => import("@/views/admin/expert/technology/paper"),
|
|
|
|
|
|
name: "Paper",
|
|
|
|
|
|
meta: { title: "论文列表", icon: "list" },
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
path: "research",
|
|
|
|
|
|
component: () => import("@/views/admin/expert/technology/research"),
|
|
|
|
|
|
name: "Research",
|
|
|
|
|
|
meta: { title: "科研项目列表", icon: "list" },
|
|
|
|
|
|
},
|
|
|
|
|
|
],
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
path: "/demand",
|
|
|
|
|
|
component: Layout,
|
|
|
|
|
|
meta: { title: "需求管理", icon: "dashboard" },
|
|
|
|
|
|
alwaysShow: true,
|
|
|
|
|
|
redirect: "/demand/serviceDemand",
|
|
|
|
|
|
children: [
|
|
|
|
|
|
{
|
|
|
|
|
|
path: "serviceDemand",
|
|
|
|
|
|
component: () => import("@/views/admin/expert/demand/serviceDemand"),
|
|
|
|
|
|
name: "serviceDemand",
|
|
|
|
|
|
meta: { title: "服务需求", icon: "list" },
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
path: "release",
|
|
|
|
|
|
component: () => import("@/views/admin/expert/demand/release"),
|
|
|
|
|
|
hidden: true,
|
|
|
|
|
|
name: "release",
|
|
|
|
|
|
meta: { title: "发布需求", icon: "list" },
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
path: "already",
|
|
|
|
|
|
component: () => import("@/views/admin/expert/demand/already"),
|
|
|
|
|
|
name: "already",
|
|
|
|
|
|
meta: { title: "已合作企业", icon: "list" },
|
|
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
path: "think",
|
|
|
|
|
|
component: () => import("@/views/admin/expert/demand/think"),
|
|
|
|
|
|
name: "think",
|
|
|
|
|
|
meta: { title: "想合作企业", icon: "list" },
|
|
|
|
|
|
},
|
|
|
|
|
|
],
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
path: "/activity",
|
|
|
|
|
|
component: Layout,
|
|
|
|
|
|
meta: { title: "活动管理", icon: "dashboard" },
|
|
|
|
|
|
alwaysShow: true,
|
|
|
|
|
|
redirect: "/activity/active",
|
|
|
|
|
|
children: [
|
|
|
|
|
|
{
|
|
|
|
|
|
path: "active",
|
|
|
|
|
|
component: () => import("@/views/admin/expert/activity/active"),
|
|
|
|
|
|
name: "Active",
|
|
|
|
|
|
meta: { title: "活动列表", icon: "list" },
|
|
|
|
|
|
},
|
|
|
|
|
|
],
|
|
|
|
|
|
},
|
|
|
|
|
|
];
|
2022-06-20 13:55:32 +08:00
|
|
|
|
// 动态路由,基于用户权限动态去加载
|
|
|
|
|
|
export const dynamicRoutes = [
|
2021-11-30 09:55:37 +08:00
|
|
|
|
{
|
2022-08-30 10:36:30 +08:00
|
|
|
|
path: "/system/user-auth",
|
2021-11-30 09:55:37 +08:00
|
|
|
|
component: Layout,
|
|
|
|
|
|
hidden: true,
|
2022-08-30 10:36:30 +08:00
|
|
|
|
permissions: ["system:user:edit"],
|
2021-11-30 09:55:37 +08:00
|
|
|
|
children: [
|
|
|
|
|
|
{
|
2022-08-30 10:36:30 +08:00
|
|
|
|
path: "role/:userId(\\d+)",
|
|
|
|
|
|
component: () => import("@/views/system/user/authRole"),
|
|
|
|
|
|
name: "AuthRole",
|
|
|
|
|
|
meta: { title: "分配角色", activeMenu: "/system/user" },
|
|
|
|
|
|
},
|
|
|
|
|
|
],
|
2021-11-30 09:55:37 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
2022-08-30 10:36:30 +08:00
|
|
|
|
path: "/system/role-auth",
|
2021-11-30 09:55:37 +08:00
|
|
|
|
component: Layout,
|
|
|
|
|
|
hidden: true,
|
2022-08-30 10:36:30 +08:00
|
|
|
|
permissions: ["system:role:edit"],
|
2021-11-30 09:55:37 +08:00
|
|
|
|
children: [
|
|
|
|
|
|
{
|
2022-08-30 10:36:30 +08:00
|
|
|
|
path: "user/:roleId(\\d+)",
|
|
|
|
|
|
component: () => import("@/views/system/role/authUser"),
|
|
|
|
|
|
name: "AuthUser",
|
|
|
|
|
|
meta: { title: "分配用户", activeMenu: "/system/role" },
|
|
|
|
|
|
},
|
|
|
|
|
|
],
|
2021-11-30 09:55:37 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
2022-08-30 10:36:30 +08:00
|
|
|
|
path: "/system/dict-data",
|
2021-11-30 09:55:37 +08:00
|
|
|
|
component: Layout,
|
|
|
|
|
|
hidden: true,
|
2022-08-30 10:36:30 +08:00
|
|
|
|
permissions: ["system:dict:list"],
|
2021-11-30 09:55:37 +08:00
|
|
|
|
children: [
|
|
|
|
|
|
{
|
2022-08-30 10:36:30 +08:00
|
|
|
|
path: "index/:dictId(\\d+)",
|
|
|
|
|
|
component: () => import("@/views/system/dict/data"),
|
|
|
|
|
|
name: "Data",
|
|
|
|
|
|
meta: { title: "字典数据", activeMenu: "/system/dict" },
|
|
|
|
|
|
},
|
|
|
|
|
|
],
|
2021-11-30 09:55:37 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
2022-08-30 10:36:30 +08:00
|
|
|
|
path: "/monitor/job-log",
|
2021-11-30 09:55:37 +08:00
|
|
|
|
component: Layout,
|
|
|
|
|
|
hidden: true,
|
2022-08-30 10:36:30 +08:00
|
|
|
|
permissions: ["monitor:job:list"],
|
2021-11-30 09:55:37 +08:00
|
|
|
|
children: [
|
|
|
|
|
|
{
|
2022-08-30 10:36:30 +08:00
|
|
|
|
path: "index",
|
|
|
|
|
|
component: () => import("@/views/monitor/job/log"),
|
|
|
|
|
|
name: "JobLog",
|
|
|
|
|
|
meta: { title: "调度日志", activeMenu: "/monitor/job" },
|
|
|
|
|
|
},
|
|
|
|
|
|
],
|
2021-11-30 09:55:37 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
2022-08-30 10:36:30 +08:00
|
|
|
|
path: "/tool/gen-edit",
|
2021-11-30 09:55:37 +08:00
|
|
|
|
component: Layout,
|
|
|
|
|
|
hidden: true,
|
2022-08-30 10:36:30 +08:00
|
|
|
|
permissions: ["tool:gen:edit"],
|
2021-11-30 09:55:37 +08:00
|
|
|
|
children: [
|
|
|
|
|
|
{
|
2022-08-30 10:36:30 +08:00
|
|
|
|
path: "index/:tableId(\\d+)",
|
|
|
|
|
|
component: () => import("@/views/tool/gen/editTable"),
|
|
|
|
|
|
name: "GenEdit",
|
|
|
|
|
|
meta: { title: "修改生成配置", activeMenu: "/tool/gen" },
|
|
|
|
|
|
},
|
|
|
|
|
|
],
|
|
|
|
|
|
},
|
|
|
|
|
|
];
|
2021-11-30 09:55:37 +08:00
|
|
|
|
|
|
|
|
|
|
const router = createRouter({
|
|
|
|
|
|
history: createWebHistory(),
|
|
|
|
|
|
routes: constantRoutes,
|
|
|
|
|
|
scrollBehavior(to, from, savedPosition) {
|
|
|
|
|
|
if (savedPosition) {
|
2022-08-30 10:36:30 +08:00
|
|
|
|
return savedPosition;
|
2021-11-30 09:55:37 +08:00
|
|
|
|
} else {
|
2022-08-30 10:36:30 +08:00
|
|
|
|
return { top: 0 };
|
2021-11-30 09:55:37 +08:00
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
});
|
|
|
|
|
|
|
2021-12-06 15:57:21 +08:00
|
|
|
|
export default router;
|