技术转移菜单初始化
This commit is contained in:
@ -6,13 +6,15 @@ Vue.use(Router);
|
||||
/* Router Modules */
|
||||
import policyPage from './modules/policyPage';
|
||||
import configPage from './modules/configPage';
|
||||
import transferPage from './modules/transferPage';
|
||||
|
||||
export const DynamicRoutes = [
|
||||
// 政策管理
|
||||
policyPage,
|
||||
// 前端配置
|
||||
configPage
|
||||
// frontEndConfig
|
||||
configPage,
|
||||
// 技术转移
|
||||
transferPage
|
||||
];
|
||||
|
||||
export default DynamicRoutes;
|
||||
|
@ -19,7 +19,7 @@ const nestedRouter = {
|
||||
path: 'addUnscramble',
|
||||
component: resolve => require(['@/views/front/unscramble/add'], resolve),
|
||||
name: 'addUnscramble',
|
||||
meta: { title: '解读' },
|
||||
meta: { title: '政策解读' },
|
||||
hidden: true
|
||||
},
|
||||
{
|
||||
@ -33,7 +33,7 @@ const nestedRouter = {
|
||||
path: 'addExpressNews',
|
||||
component: resolve => require(['@/views/front/expressNews/add'], resolve),
|
||||
name: 'addExpressNews',
|
||||
meta: { title: '资讯' },
|
||||
meta: { title: '资讯快报' },
|
||||
hidden: true
|
||||
}
|
||||
]
|
||||
|
@ -18,7 +18,7 @@ const nestedRouter = {
|
||||
path: 'add',
|
||||
component: resolve => require(['@/views/policy/library/add'], resolve),
|
||||
name: 'add',
|
||||
meta: { title: '添加' },
|
||||
meta: { title: '政策库' },
|
||||
hidden: true
|
||||
},
|
||||
{
|
||||
|
42
src/router/modules/transferPage.js
Normal file
42
src/router/modules/transferPage.js
Normal file
@ -0,0 +1,42 @@
|
||||
/** When your routing table is too long, you can split it into small modules **/
|
||||
|
||||
import Layout from '@/layout';
|
||||
// 技术转移
|
||||
const nestedRouter = {
|
||||
path: '/technology',
|
||||
component: Layout,
|
||||
redirect: 'noRedirect',
|
||||
meta: { title: '技术转移' },
|
||||
children: [
|
||||
{
|
||||
path: 'demand',
|
||||
component: resolve =>
|
||||
require(['@/views/technology/demand/index'], resolve),
|
||||
name: 'demand',
|
||||
meta: { title: '企业需求' }
|
||||
},
|
||||
// {
|
||||
// path: 'addDemand',
|
||||
// component: resolve => require(['@/views/technology/demand/add'], resolve),
|
||||
// name: 'addDemand',
|
||||
// meta: { title: '企业需求' },
|
||||
// hidden: true
|
||||
// },
|
||||
{
|
||||
path: 'achievement',
|
||||
component: resolve =>
|
||||
require(['@/views/technology/achievement/index'], resolve),
|
||||
name: 'achievement',
|
||||
meta: { title: '科技成果' }
|
||||
}
|
||||
// {
|
||||
// path: 'addAchievement',
|
||||
// component: resolve => require(['@/views/technology/achievement/add'], resolve),
|
||||
// name: 'addAchievement',
|
||||
// meta: { title: '科技成果' },
|
||||
// hidden: true
|
||||
// },
|
||||
]
|
||||
};
|
||||
|
||||
export default nestedRouter;
|
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<div>添加资讯</div>
|
||||
<div>{{ editPage ? '修改' : '添加' }}资讯</div>
|
||||
<el-form
|
||||
style="width:50%;margin:15px 0 0 15px"
|
||||
label-position="left"
|
||||
|
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<div>添加解读</div>
|
||||
<div>{{ editPage ? '修改' : '添加' }}解读</div>
|
||||
<el-form
|
||||
style="width:50%;margin:15px 0 0 15px"
|
||||
label-position="left"
|
||||
|
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<div>添加政策</div>
|
||||
<div>{{ editPage ? '修改' : '添加' }}政策</div>
|
||||
<el-form
|
||||
style="width:50%;margin:15px 0 0 15px"
|
||||
label-position="left"
|
||||
|
5
src/views/technology/achievement/index.vue
Normal file
5
src/views/technology/achievement/index.vue
Normal file
@ -0,0 +1,5 @@
|
||||
<template>
|
||||
<div>
|
||||
成就
|
||||
</div>
|
||||
</template>
|
5
src/views/technology/demand/index.vue
Normal file
5
src/views/technology/demand/index.vue
Normal file
@ -0,0 +1,5 @@
|
||||
<template>
|
||||
<div>
|
||||
需求
|
||||
</div>
|
||||
</template>
|
Reference in New Issue
Block a user