123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246 |
- import { createWebHashHistory, createRouter } from 'vue-router'
- import Layout from '../layout/index.vue'
- import HomeView from '../views/home/index.vue'
- import PlanningHome from '../views/planning/home.vue'
- import PersonalHome from '../views/personal/home.vue'
- import HouseWorkbench from '../views/house/workbench/index.vue'
- import Consignor from '../views/house/workbench/consignor.vue'
- import Certificate from '../views/house/workbench/certificate.vue'
- import BaseInfo from '../views/house/workbench/baseInfo.vue'
- import Assumption from '../views/house/workbench/assumption.vue'
- import EntityInfo from '../views/house/workbench/entityInfo.vue'
- import FolderChild from '../views/house/folder/child.vue'
- import FolderParent from '../views/house/folder/parent.vue'
- import Folder from '../views/house/folder/index.vue'
- import AssetsFolder from '@/views/assets/folder/index.vue'
- import AssetsFolderParent from '@/views/assets/folder/parent.vue'
- import AssetsFolderChild from '@/views/assets/folder/child.vue'
- import AssetsTmpl from '@/views/assets/template/index.vue'
- import AssetsTmplMange from '@/views/assets/template/mange.vue'
- import AssetsCreateCalculateTmpl from '@/views/assets/template/createCalculate.vue'
- import AssetsCalculateWorkbench from '@/views/assets/workbench/calculate/index.vue'
- import AssetsCalculateBaseInfo from '@/views/assets/workbench/calculate/baseInfo.vue'
- import AssetsCalculateimportInfo from '@/views/assets/workbench/calculate/importInfo.vue'
- const routes = [
- {
- path: '/',
- redirect: '/home/index'
- },
- {
- path: '/home',
- redirect: '/home/index'
- },
- {
- path: '/home/house',
- redirect: '/home/house/parent'
- },
- {
- path: '/home/houseWorkbench',
- redirect: '/home/house/parent'
- },
- {
- path: '/home/assets',
- redirect: '/home/assets/parent'
- },
- {
- path: '/home/assets/template',
- redirect: '/home/assets/template/mange'
- },
- {
- path: '/home/assets/workbench/calculate',
- redirect: '/home/assets/folder'
- },
- {
- path: '/home',
- component: Layout,
- name: 'home',
- meta: {
- title: '首页'
- },
- children: [
- {
- path: 'index',
- component: HomeView,
- name: 'homeIndex',
- },
- {
- path: 'planning',
- component: PlanningHome,
- name: 'planningIndex',
- meta: {
- title: '土地工作台'
- },
- },
- {
- path: 'house',
- component: Folder,
- name: 'folder',
- meta: {
- title: '房地产工作台'
- },
- children: [
- {
- path: 'parent',
- component: FolderParent,
- name: 'FolderParent',
- meta: {
- title: '项目'
- },
- },
- {
- path: 'folder',
- component: FolderChild,
- name: 'folderChild',
- meta: {
- title: '文件夹'
- },
- }
- ]
- },
- {
- path: 'houseWorkbench',
- component: HouseWorkbench,
- name: 'houseWorkbench',
- meta: {
- title: '房地产项目'
- },
- children: [
- {
- path: 'consignor',
- component: Consignor,
- name: 'consignor',
- meta: {
- title: '委托人函'
- },
- },
- {
- path: 'certificate',
- component: Certificate,
- name: 'certificate',
- meta: {
- title: '权属资料'
- },
- },
- {
- path: 'baseInfo',
- component: BaseInfo,
- name: 'baseInfo',
- meta: {
- title: '项目基本信息'
- },
- },
- {
- path: 'assumption',
- component: Assumption,
- name: 'assumption',
- meta: {
- title: '假设条件'
- },
- },
- {
- path: 'entityInfo',
- component: EntityInfo,
- name: 'entityInfo',
- meta: {
- title: '实物状况'
- },
- }
- ]
- },
- {
- path: 'assets',
- component: AssetsFolder,
- name: 'assetsFolder',
- meta: {
- title: '资产工作台'
- },
- children: [
- {
- path: 'parent',
- component: AssetsFolderParent,
- name: 'assetsFolderParent',
- meta: {
- title: '项目'
- },
- },
- {
- path: 'folder',
- component: AssetsFolderChild,
- name: 'assetsFolderChild',
- meta: {
- title: '文件夹'
- },
- },
- {
- path: 'template',
- component: AssetsTmpl,
- name: 'assetsTmpl',
- meta: {
- title: '模板管理'
- },
- children: [
- {
- path: 'mange',
- component: AssetsTmplMange,
- name: 'assetsTmplMange',
- // meta: {
- // title: '模板列表'
- // },
- },
- {
- path: 'create/calculate',
- component: AssetsCreateCalculateTmpl,
- name: 'assetsCreateCalculateTmpl',
- meta: {
- title: '创建测算表模板'
- },
- }
- ]
- },
- {
- path: 'workbench/calculate',
- component: AssetsCalculateWorkbench,
- name: 'assetsCalculateWorkbench',
- meta: {
- title: '文件夹'
- },
- children: [
- {
- path: 'baseInfo',
- component: AssetsCalculateBaseInfo,
- name: 'assetsCalculateBaseInfo',
- meta: {
- title: '测算表基本信息'
- },
- },
- {
- path: 'importInfo',
- component: AssetsCalculateimportInfo,
- name: 'assetsCalculateimportInfo',
- meta: {
- title: '完善测算表信息'
- },
- },
- ]
- }
- ],
- }
- ],
- },
- {
- path: '/showDoc',
- name: 'doc',
- component: () => import('../components/PageOffice/index.vue')
- }
- ]
- const router = createRouter({
- history: createWebHashHistory(),
- routes,
- })
- export default router
|