|
|
@ -16,48 +16,251 @@ export default [ |
|
|
layout: false, |
|
|
layout: false, |
|
|
routes: [ |
|
|
routes: [ |
|
|
{ |
|
|
{ |
|
|
name: 'login', |
|
|
|
|
|
path: '/user/login', |
|
|
path: '/user/login', |
|
|
|
|
|
layout: false, |
|
|
|
|
|
name: 'login', |
|
|
component: './User/Login', |
|
|
component: './User/Login', |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
path: '/user', |
|
|
|
|
|
redirect: '/User/login', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
name: 'register-result', |
|
|
|
|
|
icon: 'smile', |
|
|
|
|
|
path: '/user/register-result', |
|
|
|
|
|
component: './User/register-result', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
name: 'register', |
|
|
|
|
|
icon: 'smile', |
|
|
|
|
|
path: '/user/register', |
|
|
|
|
|
component: './User/register', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
component: '404', |
|
|
|
|
|
}, |
|
|
], |
|
|
], |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
path: '/welcome', |
|
|
path: '/dashboard', |
|
|
name: 'welcome', |
|
|
name: 'dashboard', |
|
|
icon: 'smile', |
|
|
icon: 'dashboard', |
|
|
component: './Welcome', |
|
|
routes: [ |
|
|
|
|
|
{ |
|
|
|
|
|
path: '/dashboard', |
|
|
|
|
|
redirect: '/dashboard/analysis', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
name: 'analysis', |
|
|
|
|
|
icon: 'smile', |
|
|
|
|
|
path: '/dashboard/analysis', |
|
|
|
|
|
component: './dashboard/analysis', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
name: 'monitor', |
|
|
|
|
|
icon: 'smile', |
|
|
|
|
|
path: '/dashboard/monitor', |
|
|
|
|
|
component: './dashboard/monitor', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
name: 'workplace', |
|
|
|
|
|
icon: 'smile', |
|
|
|
|
|
path: '/dashboard/workplace', |
|
|
|
|
|
component: './dashboard/workplace', |
|
|
|
|
|
}, |
|
|
|
|
|
], |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
path: '/admin', |
|
|
path: '/form', |
|
|
name: 'admin', |
|
|
icon: 'form', |
|
|
icon: 'crown', |
|
|
name: 'form', |
|
|
access: 'canAdmin', |
|
|
|
|
|
routes: [ |
|
|
routes: [ |
|
|
{ |
|
|
{ |
|
|
path: '/admin', |
|
|
path: '/form', |
|
|
redirect: '/admin/sub-page', |
|
|
redirect: '/form/basic-form', |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
path: '/admin/sub-page', |
|
|
name: 'basic-form', |
|
|
name: 'sub-page', |
|
|
icon: 'smile', |
|
|
component: './Admin', |
|
|
path: '/form/basic-form', |
|
|
|
|
|
component: './form/basic-form', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
name: 'step-form', |
|
|
|
|
|
icon: 'smile', |
|
|
|
|
|
path: '/form/step-form', |
|
|
|
|
|
component: './form/step-form', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
name: 'advanced-form', |
|
|
|
|
|
icon: 'smile', |
|
|
|
|
|
path: '/form/advanced-form', |
|
|
|
|
|
component: './form/advanced-form', |
|
|
}, |
|
|
}, |
|
|
], |
|
|
], |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
name: 'list.table-list', |
|
|
|
|
|
icon: 'table', |
|
|
|
|
|
path: '/list', |
|
|
path: '/list', |
|
|
component: './TableList', |
|
|
icon: 'table', |
|
|
|
|
|
name: 'list', |
|
|
|
|
|
routes: [ |
|
|
|
|
|
{ |
|
|
|
|
|
path: '/list/search', |
|
|
|
|
|
name: 'search-list', |
|
|
|
|
|
component: './list/search', |
|
|
|
|
|
routes: [ |
|
|
|
|
|
{ |
|
|
|
|
|
path: '/list/search', |
|
|
|
|
|
redirect: '/list/search/articles', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
name: 'articles', |
|
|
|
|
|
icon: 'smile', |
|
|
|
|
|
path: '/list/search/articles', |
|
|
|
|
|
component: './list/search/articles', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
name: 'projects', |
|
|
|
|
|
icon: 'smile', |
|
|
|
|
|
path: '/list/search/projects', |
|
|
|
|
|
component: './list/search/projects', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
name: 'applications', |
|
|
|
|
|
icon: 'smile', |
|
|
|
|
|
path: '/list/search/applications', |
|
|
|
|
|
component: './list/search/applications', |
|
|
|
|
|
}, |
|
|
|
|
|
], |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
path: '/list', |
|
|
|
|
|
redirect: '/list/table-list', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
name: 'table-list', |
|
|
|
|
|
icon: 'smile', |
|
|
|
|
|
path: '/list/table-list', |
|
|
|
|
|
component: './list/table-list', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
name: 'basic-list', |
|
|
|
|
|
icon: 'smile', |
|
|
|
|
|
path: '/list/basic-list', |
|
|
|
|
|
component: './list/basic-list', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
name: 'card-list', |
|
|
|
|
|
icon: 'smile', |
|
|
|
|
|
path: '/list/card-list', |
|
|
|
|
|
component: './list/card-list', |
|
|
|
|
|
}, |
|
|
|
|
|
], |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
path: '/profile', |
|
|
|
|
|
name: 'profile', |
|
|
|
|
|
icon: 'profile', |
|
|
|
|
|
routes: [ |
|
|
|
|
|
{ |
|
|
|
|
|
path: '/profile', |
|
|
|
|
|
redirect: '/profile/basic', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
name: 'basic', |
|
|
|
|
|
icon: 'smile', |
|
|
|
|
|
path: '/profile/basic', |
|
|
|
|
|
component: './profile/basic', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
name: 'advanced', |
|
|
|
|
|
icon: 'smile', |
|
|
|
|
|
path: '/profile/advanced', |
|
|
|
|
|
component: './profile/advanced', |
|
|
|
|
|
}, |
|
|
|
|
|
], |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
name: 'result', |
|
|
|
|
|
icon: 'CheckCircleOutlined', |
|
|
|
|
|
path: '/result', |
|
|
|
|
|
routes: [ |
|
|
|
|
|
{ |
|
|
|
|
|
path: '/result', |
|
|
|
|
|
redirect: '/result/success', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
name: 'success', |
|
|
|
|
|
icon: 'smile', |
|
|
|
|
|
path: '/result/success', |
|
|
|
|
|
component: './result/success', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
name: 'fail', |
|
|
|
|
|
icon: 'smile', |
|
|
|
|
|
path: '/result/fail', |
|
|
|
|
|
component: './result/fail', |
|
|
|
|
|
}, |
|
|
|
|
|
], |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
name: 'exception', |
|
|
|
|
|
icon: 'warning', |
|
|
|
|
|
path: '/exception', |
|
|
|
|
|
routes: [ |
|
|
|
|
|
{ |
|
|
|
|
|
path: '/exception', |
|
|
|
|
|
redirect: '/exception/403', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
name: '403', |
|
|
|
|
|
icon: 'smile', |
|
|
|
|
|
path: '/exception/403', |
|
|
|
|
|
component: './exception/403', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
name: '404', |
|
|
|
|
|
icon: 'smile', |
|
|
|
|
|
path: '/exception/404', |
|
|
|
|
|
component: './exception/404', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
name: '500', |
|
|
|
|
|
icon: 'smile', |
|
|
|
|
|
path: '/exception/500', |
|
|
|
|
|
component: './exception/500', |
|
|
|
|
|
}, |
|
|
|
|
|
], |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
name: 'account', |
|
|
|
|
|
icon: 'user', |
|
|
|
|
|
path: '/account', |
|
|
|
|
|
routes: [ |
|
|
|
|
|
{ |
|
|
|
|
|
path: '/account', |
|
|
|
|
|
redirect: '/account/center', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
name: 'center', |
|
|
|
|
|
icon: 'smile', |
|
|
|
|
|
path: '/account/center', |
|
|
|
|
|
component: './account/center', |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
name: 'settings', |
|
|
|
|
|
icon: 'smile', |
|
|
|
|
|
path: '/account/settings', |
|
|
|
|
|
component: './account/settings', |
|
|
|
|
|
}, |
|
|
|
|
|
], |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
path: '/', |
|
|
path: '/', |
|
|
redirect: '/welcome', |
|
|
redirect: '/dashboard/analysis', |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
path: '*', |
|
|
component: '404', |
|
|
layout: false, |
|
|
|
|
|
component: './404', |
|
|
|
|
|
}, |
|
|
}, |
|
|
]; |
|
|
]; |
|
|
|