refactor: update to new project structure
This commit is contained in:
@@ -1,30 +1,30 @@
|
||||
import Vue from 'vue'
|
||||
import Router from 'vue-router'
|
||||
import Dashboard from '@/components/dashboard/Dashboard'
|
||||
import NotFound from '@/components/exception/404'
|
||||
import NotPermit from '@/components/exception/403'
|
||||
import ServerError from '@/components/exception/500'
|
||||
import PageView from '@/components/layout/PageView'
|
||||
import RouteView from '@/components/layout/RouteView'
|
||||
import MenuView from '@/components/layout/MenuView'
|
||||
import BasicForm from '@/components/form/BasicForm'
|
||||
import StepForm from '@/components/form/stepForm/StepForm'
|
||||
import AdvancedForm from '@/components/form/advancedForm/AdvancedForm'
|
||||
import Success from '@/components/result/Success'
|
||||
import Error from '@/components/result/Error'
|
||||
import QueryList from '@/components/list/QueryList'
|
||||
import StandardList from '@/components/list/StandardList'
|
||||
import CardList from '@/components/list/CardList'
|
||||
import SearchLayout from '@/components/list/search/SearchLayout'
|
||||
import ArticleList from '@/components/list/search/ArticleList'
|
||||
import ApplicationList from '@/components/list/search/ApplicationList'
|
||||
import ProjectList from '@/components/list/search/ProjectList'
|
||||
import WorkPlace from '@/components/dashboard/WorkPlace'
|
||||
import Login from '@/components/login/Login'
|
||||
import BasicDetail from '@/components/detail/BasicDetail'
|
||||
import AdvancedDetail from '@/components/detail/AdvancedDetail'
|
||||
import TaskCard from '@/components/task/Index'
|
||||
import ColorBox from '@/components/check/Index'
|
||||
import Dashboard from '@/pages/dashboard/Analysis'
|
||||
import NotFound from '@/pages/exception/404'
|
||||
import NotPermit from '@/pages/exception/403'
|
||||
import ServerError from '@/pages/exception/500'
|
||||
import PageView from '@/layouts/PageView'
|
||||
import RouteView from '@/layouts/RouteView'
|
||||
import MenuView from '@/layouts/MenuView'
|
||||
import BasicForm from '@/pages/form/BasicForm'
|
||||
import StepForm from '@/pages/form/stepForm/StepForm'
|
||||
import AdvancedForm from '@/pages/form/advancedForm/AdvancedForm'
|
||||
import Success from '@/pages/result/Success'
|
||||
import Error from '@/pages/result/Error'
|
||||
import QueryList from '@/pages/list/QueryList'
|
||||
import StandardList from '@/pages/list/StandardList'
|
||||
import CardList from '@/pages/list/CardList'
|
||||
import SearchLayout from '@/pages/list/search/SearchLayout'
|
||||
import ArticleList from '@/pages/list/search/ArticleList'
|
||||
import ApplicationList from '@/pages/list/search/ApplicationList'
|
||||
import ProjectList from '@/pages/list/search/ProjectList'
|
||||
import WorkPlace from '@/pages/dashboard/WorkPlace'
|
||||
import Login from '@/pages/login/Login'
|
||||
import BasicDetail from '@/pages/detail/BasicDetail'
|
||||
import AdvancedDetail from '@/pages/detail/AdvancedDetail'
|
||||
import TaskCard from '@/pages/components/TaskCard'
|
||||
import ColorBox from '@/pages/components/Palette'
|
||||
|
||||
Vue.use(Router)
|
||||
|
||||
@@ -209,20 +209,20 @@ export default new Router({
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/components',
|
||||
redirect: '/components/taskcard',
|
||||
path: '/pages',
|
||||
redirect: '/pages/taskcard',
|
||||
name: '小组件',
|
||||
icon: 'appstore-o',
|
||||
component: PageView,
|
||||
children: [
|
||||
{
|
||||
path: '/components/taskcard',
|
||||
path: '/pages/taskcard',
|
||||
name: '任务卡片',
|
||||
icon: 'none',
|
||||
component: TaskCard
|
||||
},
|
||||
{
|
||||
path: '/components/palette',
|
||||
path: '/pages/palette',
|
||||
name: '颜色复选框',
|
||||
icon: 'none',
|
||||
component: ColorBox
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import Vue from 'vue'
|
||||
import Router from 'vue-router'
|
||||
import PageView from '@/components/layout/PageView'
|
||||
import RouteView from '@/components/layout/RouteView'
|
||||
import MenuView from '@/components/layout/MenuView'
|
||||
import Login from '@/components/login/Login'
|
||||
import PageView from '@/layouts/PageView'
|
||||
import RouteView from '@/layouts/RouteView'
|
||||
import MenuView from '@/layouts/MenuView'
|
||||
import Login from '@/pages/login/Login'
|
||||
|
||||
Vue.use(Router)
|
||||
|
||||
@@ -32,13 +32,13 @@ export default new Router({
|
||||
{
|
||||
path: '/dashboard/workplace',
|
||||
name: '工作台',
|
||||
component: () => import('@/components/dashboard/WorkPlace'),
|
||||
component: () => import('@/pages/dashboard/WorkPlace'),
|
||||
icon: 'none'
|
||||
},
|
||||
{
|
||||
path: '/dashboard/analysis',
|
||||
name: '分析页',
|
||||
component: () => import('@/components/dashboard/Dashboard'),
|
||||
component: () => import('@/pages/dashboard/Analysis'),
|
||||
icon: 'none'
|
||||
}
|
||||
]
|
||||
@@ -52,19 +52,19 @@ export default new Router({
|
||||
{
|
||||
path: '/form/basic',
|
||||
name: '基础表单',
|
||||
component: () => import('@/components/form/BasicForm'),
|
||||
component: () => import('@/pages/form/BasicForm'),
|
||||
icon: 'none'
|
||||
},
|
||||
{
|
||||
path: '/form/step',
|
||||
name: '分步表单',
|
||||
component: () => import('@/components/form/stepForm/StepForm'),
|
||||
component: () => import('@/pages/form/stepForm/StepForm'),
|
||||
icon: 'none'
|
||||
},
|
||||
{
|
||||
path: '/form/advanced',
|
||||
name: '高级表单',
|
||||
component: () => import('@/components/form/advancedForm/AdvancedForm'),
|
||||
component: () => import('@/pages/form/advancedForm/AdvancedForm'),
|
||||
icon: 'none'
|
||||
}
|
||||
]
|
||||
@@ -78,43 +78,43 @@ export default new Router({
|
||||
{
|
||||
path: '/list/query',
|
||||
name: '查询表格',
|
||||
component: () => import('@/components/list/QueryList'),
|
||||
component: () => import('@/pages/list/QueryList'),
|
||||
icon: 'none'
|
||||
},
|
||||
{
|
||||
path: '/list/primary',
|
||||
name: '标准列表',
|
||||
component: () => import('@/components/list/StandardList'),
|
||||
component: () => import('@/pages/list/StandardList'),
|
||||
icon: 'none'
|
||||
},
|
||||
{
|
||||
path: '/list/card',
|
||||
name: '卡片列表',
|
||||
component: () => import('@/components/list/CardList'),
|
||||
component: () => import('@/pages/list/CardList'),
|
||||
icon: 'none'
|
||||
},
|
||||
{
|
||||
path: '/list/search',
|
||||
name: '搜索列表',
|
||||
component: () => import('@/components/list/search/SearchLayout'),
|
||||
component: () => import('@/pages/list/search/SearchLayout'),
|
||||
icon: 'none',
|
||||
children: [
|
||||
{
|
||||
path: '/list/search/article',
|
||||
name: '文章',
|
||||
component: () => import('@/components/list/search/ArticleList'),
|
||||
component: () => import('@/pages/list/search/ArticleList'),
|
||||
icon: 'none'
|
||||
},
|
||||
{
|
||||
path: '/list/search/application',
|
||||
name: '应用',
|
||||
component: () => import('@/components/list/search/ApplicationList'),
|
||||
component: () => import('@/pages/list/search/ApplicationList'),
|
||||
icon: 'none'
|
||||
},
|
||||
{
|
||||
path: '/list/search/project',
|
||||
name: '项目',
|
||||
component: () => import('@/components/list/search/ProjectList'),
|
||||
component: () => import('@/pages/list/search/ProjectList'),
|
||||
icon: 'none'
|
||||
}
|
||||
]
|
||||
@@ -131,13 +131,13 @@ export default new Router({
|
||||
path: '/detail/basic',
|
||||
name: '基础详情页',
|
||||
icon: 'none',
|
||||
component: () => import('@/components/detail/BasicDetail')
|
||||
component: () => import('@/pages/detail/BasicDetail')
|
||||
},
|
||||
{
|
||||
path: '/detail/advanced',
|
||||
name: '高级详情页',
|
||||
icon: 'none',
|
||||
component: () => import('@/components/detail/AdvancedDetail')
|
||||
component: () => import('@/pages/detail/AdvancedDetail')
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -151,13 +151,13 @@ export default new Router({
|
||||
path: '/result/success',
|
||||
name: '成功',
|
||||
icon: 'none',
|
||||
component: () => import('@/components/result/Success')
|
||||
component: () => import('@/pages/result/Success')
|
||||
},
|
||||
{
|
||||
path: '/result/error',
|
||||
name: '失败',
|
||||
icon: 'none',
|
||||
component: () => import('@/components/result/Error')
|
||||
component: () => import('@/pages/result/Error')
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -171,19 +171,19 @@ export default new Router({
|
||||
path: '/exception/404',
|
||||
name: '404',
|
||||
icon: 'none',
|
||||
component: () => import('@/components/exception/404')
|
||||
component: () => import('@/pages/exception/404')
|
||||
},
|
||||
{
|
||||
path: '/exception/403',
|
||||
name: '403',
|
||||
icon: 'none',
|
||||
component: () => import('@/components/exception/403')
|
||||
component: () => import('@/pages/exception/403')
|
||||
},
|
||||
{
|
||||
path: '/exception/500',
|
||||
name: '500',
|
||||
icon: 'none',
|
||||
component: () => import('@/components/exception/500')
|
||||
component: () => import('@/pages/exception/500')
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -198,13 +198,13 @@ export default new Router({
|
||||
path: '/components/taskcard',
|
||||
name: '任务卡片',
|
||||
icon: 'none',
|
||||
component: () => import('@/components/task/Index')
|
||||
component: () => import('@/pages/components/TaskCard')
|
||||
},
|
||||
{
|
||||
path: '/components/palette',
|
||||
name: '颜色复选框',
|
||||
icon: 'none',
|
||||
component: () => import('@/components/check/Index')
|
||||
component: () => import('@/pages/components/Palette')
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user