|
@@ -5,12 +5,143 @@ VueRouter.prototype.push = function push(location) {
|
|
|
return originalPush.call(this, location).catch((err) => err);
|
|
|
};
|
|
|
Vue.use(VueRouter);
|
|
|
+// 信息展示
|
|
|
+const infoview = [
|
|
|
+ {
|
|
|
+ path: '/infoview-laboratory/index',
|
|
|
+ meta: { title: '重点实验室信息展示' },
|
|
|
+ component: () => import('../views/infoview-laboratory/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/infoview-research/index',
|
|
|
+ meta: { title: '研究方向信息展示' },
|
|
|
+ component: () => import('../views/infoview-research/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/infoview-equipment/index',
|
|
|
+ meta: { title: '设备信息展示' },
|
|
|
+ component: () => import('../views/infoview-equipment/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/infoview-achievement/index',
|
|
|
+ meta: { title: '重要成果信息展示' },
|
|
|
+ component: () => import('../views/infoview-achievement/index.vue'),
|
|
|
+ },
|
|
|
+];
|
|
|
+// 科研信息
|
|
|
+const scientific = [
|
|
|
+ {
|
|
|
+ path: '/scientific-personnel/index',
|
|
|
+ meta: { title: '主任及科研助理信息展示' },
|
|
|
+ component: () => import('../views/scientific-personnel/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/scientific-learning/index',
|
|
|
+ meta: { title: '学术委员会信息展示' },
|
|
|
+ component: () => import('../views/scientific-learning/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/scientific-task/index',
|
|
|
+ meta: { title: '承担科研任务信息展示' },
|
|
|
+ component: () => import('../views/scientific-task/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/scientific-award/index',
|
|
|
+ meta: { title: '获奖信息展示' },
|
|
|
+ component: () => import('../views/scientific-award/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/scientific-paper/index',
|
|
|
+ meta: { title: '论文发表记录展示' },
|
|
|
+ component: () => import('../views/scientific-paper/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/scientific-achieve/index',
|
|
|
+ meta: { title: '成果展示' },
|
|
|
+ component: () => import('../views/scientific-achieve/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/scientific-otherachieve/index',
|
|
|
+ meta: { title: '其他成果' },
|
|
|
+ component: () => import('../views/scientific-otherachieve/index.vue'),
|
|
|
+ },
|
|
|
+];
|
|
|
+// 学术交流
|
|
|
+const learning = [
|
|
|
+ {
|
|
|
+ path: '/learning/index',
|
|
|
+ meta: { title: '学术交流' },
|
|
|
+ component: () => import('../views/learning/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/learning/sociology/index',
|
|
|
+ meta: { title: '社会服务活动' },
|
|
|
+ component: () => import('../views/learning/sociology/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/learning/technology/index',
|
|
|
+ meta: { title: '技术服务活动' },
|
|
|
+ component: () => import('../views/learning/technology/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/learning/science/index',
|
|
|
+ meta: { title: '科普活动' },
|
|
|
+ component: () => import('../views/learning/science/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/learning/report/index',
|
|
|
+ meta: { title: '分析/建议/决策/咨询报告' },
|
|
|
+ component: () => import('../views/learning/report/index.vue'),
|
|
|
+ },
|
|
|
+];
|
|
|
+// 队伍建设与人才培养;
|
|
|
+const ranks = [
|
|
|
+ {
|
|
|
+ path: '/ranks/index',
|
|
|
+ meta: { title: '队伍建设与人才培养' },
|
|
|
+ component: () => import('../views/ranks/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/ranks/personnel/index',
|
|
|
+ meta: { title: '人才称号' },
|
|
|
+ component: () => import('../views/ranks/personnel/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/ranks/title/index',
|
|
|
+ meta: { title: '职称晋升' },
|
|
|
+ component: () => import('../views/ranks/title/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/ranks/boshuo/index',
|
|
|
+ meta: { title: '博硕培养' },
|
|
|
+ component: () => import('../views/ranks/boshuo/index.vue'),
|
|
|
+ },
|
|
|
+];
|
|
|
+// 平台活动时间段公式;
|
|
|
+const activity = [
|
|
|
+ {
|
|
|
+ path: '/activity-time/index',
|
|
|
+ meta: { title: '平台活动时间段公示' },
|
|
|
+ component: () => import('../views/activity-time/index.vue'),
|
|
|
+ },
|
|
|
+];
|
|
|
+
|
|
|
const web = [
|
|
|
{
|
|
|
path: '/',
|
|
|
meta: { title: '网站首页' },
|
|
|
component: () => import('../views/index.vue'),
|
|
|
},
|
|
|
+ // 信息展示
|
|
|
+ ...infoview,
|
|
|
+ // 科研信息
|
|
|
+ ...scientific,
|
|
|
+ // 学术交流
|
|
|
+ ...learning,
|
|
|
+ // 队伍建设与人才培养
|
|
|
+ ...ranks,
|
|
|
+ // 平台活动时间段公式
|
|
|
+ ...activity,
|
|
|
];
|
|
|
const routes = [...web];
|
|
|
const router = new VueRouter({
|