提交 635c86d8 authored 作者: coderBryanFu's avatar coderBryanFu

update

上级 1179583c
...@@ -59,347 +59,358 @@ import SearchResults from '@/views/comprehensiveSearch/searchResults/index.vue' ...@@ -59,347 +59,358 @@ import SearchResults from '@/views/comprehensiveSearch/searchResults/index.vue'
import Chat from '@/views/comprehensiveSearch/chat/index.vue' import Chat from '@/views/comprehensiveSearch/chat/index.vue'
const routes = [ const routes = [
// 智能写报 // 智能写报
{ {
path: "/writtingAsstaint", path: "/writtingAsstaint",
name: "writtingAsstaint", name: "writtingAsstaint",
component: WrittingAsstaint, component: WrittingAsstaint,
meta: { meta: {
title: "智能写报" title: "智能写报"
} }
}, },
{
path: "/",
redirect: "/billHome"
},
{ // 中美博弈概览页面路由
path: "/", {
redirect: "/billHome" path: "/overView",
}, name: "overView",
component: overView,
meta: {
title: "法案首页"
}
},
// 智库系统的主要路由
{
path: "/thinkTank",
name: "thinkTank",
component: thinkTank,
meta: {
title: "首页"
}
},
{
path: "/think-tank/:id",
name: "ThinkTankDetail",
component: ThinkTankDetail,
meta: {
title: "智库详情"
}
},
{
path: "/report/:id",
name: "ReportDetail",
component: ReportDetail,
meta: {
title: "报告详情"
}
},
// 中美博弈概览页面路由 // 法案系统路由
{ {
path: "/overView", path: "/billHome",
name: "overView", name: "BillHome",
component: overView, component: BillHome,
meta: { meta: {
title: "法案首页" title: "法案首页"
} }
}, },
{
path: "/billLayout",
name: "BillLayoutContainer",
component: BillLayoutContainer,
redirect: "/billLayout/bill",
meta: {
title: "法案布局"
},
children: [
// 法案分析路由
{
path: "bill",
name: "BillLayout",
component: BillLayout,
redirect: "/billLayout/bill/introduction",
meta: {
title: "法案分析"
},
children: [
{
path: "introduction",
name: "BillIntroduction",
component: BillIntroduction,
meta: { title: "法案简介" }
},
{
path: "background",
name: "BillBackground",
component: BillBackground,
meta: { title: "法案背景" }
},
{
path: "template",
name: "BillTemplate",
component: BillTemplate,
meta: { title: "内容概要" }
}
]
},
// 深度挖掘路由
{
path: "deepDig",
name: "BillDeepDigLayout",
component: BillDeepDigLayout,
redirect: "/billLayout/deepDig/processOverview",
meta: {
title: "深度挖掘"
},
children: [
{
path: "processOverview",
name: "BillDeepDigProcessOverview",
component: BillDeepDigProcessOverview,
meta: { title: "流程概要" }
},
{
path: "processAnalysis",
name: "BillDeepDigProcessAnalysis",
component: BillDeepDigProcessAnalysis,
meta: { title: "流程分析" }
},
{
path: "poliContribution",
name: "BillDeepDigPoliContribution",
component: BillDeepDigPoliContribution,
meta: { title: "政治献金" }
}
]
},
// 影响分析路由
{
path: "influence",
name: "BillInfluenceLayout",
component: BillInfluenceLayout,
redirect: "/billLayout/influence/industry",
meta: {
title: "影响分析"
},
children: [
{
path: "industry",
name: "BillInfluenceIndustry",
component: BillInfluenceIndustry,
meta: { title: "对华产业影响" }
},
{
path: "scientificResearch",
name: "BillInfluenceScientificResearch",
component: BillInfluenceScientificResearch,
meta: { title: "对华科研影响" }
}
]
},
{
path: "relevantCircumstance",
name: "BillRelevantCircumstance",
component: BillRelevantCircumstance,
meta: {
title: "相关情况"
}
}
]
},
// 智库系统的主要路由 // 出口管制首页
{ {
path: "/thinkTank", path: "/exportControl",
name: "thinkTank", name: "ExportControl",
component: thinkTank, component: ExportControl,
meta: { meta: {
title: "首页" title: "出口管制"
} }
}, },
{
path: "/think-tank/:id",
name: "ThinkTankDetail",
component: ThinkTankDetail,
meta: {
title: "智库详情"
}
},
{
path: "/report/:id",
name: "ReportDetail",
component: ReportDetail,
meta: {
title: "报告详情"
}
},
// 法案系统路由 // 政令首页
{ {
path: "/billHome", path: "/decree",
name: "BillHome", name: "Decree",
component: BillHome, component: Decree,
meta: { meta: {
title: "法案首页" title: "政令"
} }
}, },
{ {
path: "/billLayout", path: "/decreeLayout",
name: "BillLayoutContainer", name: "DecreeLayoutContainer",
component: BillLayoutContainer, component: DecreeLayoutContainer,
redirect: "/billLayout/bill", redirect: "/decreeLayout/overview",
meta: { meta: {
title: "法案布局" title: "政令布局"
}, },
children: [ children: [
// 法案分析路由 {
{ path: "overview",
path: "bill", name: "DecreeOverviewLayout",
name: "BillLayout", component: DecreeOverviewLayout,
component: BillLayout, redirect: "/decreeLayout/overview/introduction",
redirect: "/billLayout/bill/introduction", meta: {
meta: { title: "政令概况"
title: "法案分析" },
}, children: [
children: [ {
{ path: "introduction",
path: "introduction", name: "DecreeIntroduction",
name: "BillIntroduction", component: DecreeIntroduction,
component: BillIntroduction, meta: { title: "政令简介" }
meta: { title: "法案简介" } },
}, {
{ path: "background",
path: "background", name: "DecreeBackground",
name: "BillBackground", component: DecreeBackground,
component: BillBackground, meta: { title: "政令背景" }
meta: { title: "法案背景" } }
}, ]
{ },
path: "template", // 深度挖掘路由
name: "BillTemplate", {
component: BillTemplate, path: "deepDig",
meta: { title: "内容概要" } name: "DeepDig",
} component: DecreeDeepDig,
] meta: {
}, title: "深度挖掘"
// 深度挖掘路由 }
{ },
path: "deepDig", // 影响分析路由
name: "BillDeepDigLayout", {
component: BillDeepDigLayout, path: "influence",
redirect: "/billLayout/deepDig/processOverview", name: "DecreeInfluence",
meta: { component: DecreeInfluence,
title: "深度挖掘" meta: {
}, title: "影响分析"
children: [ }
{ }
path: "processOverview", ]
name: "BillDeepDigProcessOverview", },
component: BillDeepDigProcessOverview,
meta: { title: "流程概要" }
},
{
path: "processAnalysis",
name: "BillDeepDigProcessAnalysis",
component: BillDeepDigProcessAnalysis,
meta: { title: "流程分析" }
},
{
path: "poliContribution",
name: "BillDeepDigPoliContribution",
component: BillDeepDigPoliContribution,
meta: { title: "政治献金" }
}
]
},
// 影响分析路由
{
path: "influence",
name: "BillInfluenceLayout",
component: BillInfluenceLayout,
redirect: "/billLayout/influence/industry",
meta: {
title: "影响分析"
},
children: [
{
path: "industry",
name: "BillInfluenceIndustry",
component: BillInfluenceIndustry,
meta: { title: "对华产业影响" }
},
{
path: "scientificResearch",
name: "BillInfluenceScientificResearch",
component: BillInfluenceScientificResearch,
meta: { title: "对华科研影响" }
}
]
},
{
path: "relevantCircumstance",
name: "BillRelevantCircumstance",
component: BillRelevantCircumstance,
meta: {
title: "相关情况"
}
}
]
},
// 出口管制首页 // 市场准入限制首页
{ {
path: "/exportControl", path: "/marketAccessRestrictions",
name: "ExportControl", name: "MarketAccessRestrictions",
component: ExportControl, component: MarketAccessRestrictions,
meta: { meta: {
title: "出口管制" title: "市场准入限制"
} }
}, },
{
path: "/marketAccessLayout",
name: "MarketAccessLayout",
component: MarketAccessLayout,
redirect: "/marketAccessLayout/overview",
meta: {
title: "市场准入限制布局"
},
children: [
{
path: "overview",
name: "MarketAccessOverview",
component: MarketAccessOverview,
meta: {
title: "调查概况"
}
},
{
path: "case",
name: "MarketAccessCase",
component: MarketAccessCase,
meta: {
title: "调查案件"
}
}
]
},
{
path: "/marketSingleCaseLayout",
name: "MarketSingleCaseLayout",
component: MarketSingleCaseLayout,
redirect: "/marketSingleCaseLayout/overview",
meta: {
title: "单次调查案件布局"
},
children: [
{
path: "overview",
name: "MarketSingleCaseOverview",
component: MarketSingleCaseOverview,
meta: {
title: "调查简介"
}
},
{
path: "deepdig",
name: "MarketSingleCaseDeepdig",
component: MarketSingleCaseDeepdig,
meta: {
title: "深度挖掘"
}
}
]
},
// 政令首页 // 出口管制转移过来的页面
{ {
path: "/decree", path: "/exportControl/analysis",
name: "Decree", name: "analysis",
component: Decree, component: () => import("@/views/exportControl/analysis/index.vue"),
meta: { meta: {
title: "政令" title: "分析页"
} }
}, },
{ {
path: "/decreeLayout", path: "/exportControl/infoplatform",
name: "DecreeLayoutContainer", name: "infoplatform",
component: DecreeLayoutContainer, component: () => import("@/views/exportControl/infoPlatform/index.vue"),
redirect: "/decreeLayout/overview", meta: {
meta: { title: "信息平台"
title: "政令布局" }
}, },
children: [ {
{ path: "/exportControl/rulelimit",
path: "overview", name: "rulelimit",
name: "DecreeOverviewLayout", component: () => import("@/views/exportControl/ruleLimit/index.vue"),
component: DecreeOverviewLayout, meta: {
redirect: "/decreeLayout/overview/introduction", title: "规则限制"
meta: { }
title: "政令概况" },
}, {
children: [ path: "/exportControl/ruledetail",
{ name: "ruledetail",
path: "introduction", component: () => import("@/views/exportControl/ruleDetail/index.vue"),
name: "DecreeIntroduction", meta: {
component: DecreeIntroduction, title: "规则详情"
meta: { title: "政令简介" } }
}, },
{ {
path: "background", path: "/exportControl/researchfunding",
name: "DecreeBackground", name: "researchfunding",
component: DecreeBackground, component: () => import("@/views/exportControl/researchFunding/index.vue"),
meta: { title: "政令背景" } meta: {
} title: "科研资助"
] }
}, },
// 深度挖掘路由
{
path: "deepDig",
name: "DeepDig",
component: DecreeDeepDig,
meta: {
title: "深度挖掘"
}
},
// 影响分析路由
{
path: "influence",
name: "DecreeInfluence",
component: DecreeInfluence,
meta: {
title: "影响分析"
}
}
]
},
// 市场准入限制首页 // 投融资限制
{ {
path: "/marketAccessRestrictions", path: "/finance",
name: "MarketAccessRestrictions", name: "finance",
component: MarketAccessRestrictions, component: Finance,
meta: { meta: {
title: "市场准入限制" title: "投融资限制"
} }
}, },
{
path: "/marketAccessLayout",
name: "MarketAccessLayout",
component: MarketAccessLayout,
redirect: "/marketAccessLayout/overview",
meta: {
title: "市场准入限制布局"
},
children: [
{
path: "overview",
name: "MarketAccessOverview",
component: MarketAccessOverview,
meta: {
title: "调查概况"
}
},
{
path: "case",
name: "MarketAccessCase",
component: MarketAccessCase,
meta: {
title: "调查案件"
}
}
]
},
{
path: "/marketSingleCaseLayout",
name: "MarketSingleCaseLayout",
component: MarketSingleCaseLayout,
redirect: "/marketSingleCaseLayout/overview",
meta: {
title: "单次调查案件布局"
},
children: [
{
path: "overview",
name: "MarketSingleCaseOverview",
component: MarketSingleCaseOverview,
meta: {
title: "调查简介"
}
},
{
path: "deepdig",
name: "MarketSingleCaseDeepdig",
component: MarketSingleCaseDeepdig,
meta: {
title: "深度挖掘"
}
}
]
},
// 出口管制转移过来的页面
{
path: "/exportControl/analysis",
name: "analysis",
component: () => import("@/views/exportControl/analysis/index.vue"),
meta: {
title: "分析页"
}
},
{
path: "/exportControl/infoplatform",
name: "infoplatform",
component: () => import("@/views/exportControl/infoPlatform/index.vue"),
meta: {
title: "信息平台"
}
},
{
path: "/exportControl/rulelimit",
name: "rulelimit",
component: () => import("@/views/exportControl/ruleLimit/index.vue"),
meta: {
title: "规则限制"
}
},
{
path: "/exportControl/ruledetail",
name: "ruledetail",
component: () => import("@/views/exportControl/ruleDetail/index.vue"),
meta: {
title: "规则详情"
}
},
{
path: "/exportControl/researchfunding",
name: "researchfunding",
component: () => import("@/views/exportControl/researchFunding/index.vue"),
meta: {
title: "科研资助"
}
},
// 门户 // 门户
{ {
...@@ -447,16 +458,16 @@ const routes = [ ...@@ -447,16 +458,16 @@ const routes = [
]; ];
const router = createRouter({ const router = createRouter({
history: createWebHistory(), history: createWebHistory(),
routes routes
}); });
// 路由守卫 - 设置页面标题 // 路由守卫 - 设置页面标题
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
if (to.meta.title) { if (to.meta.title) {
// document.title = `${to.meta.title} - Think Tank` // document.title = `${to.meta.title} - Think Tank`
} }
next(); next();
}); });
export default router; export default router;
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论