index.js 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. import { createWebHistory , createRouter } from 'vue-router'
  2. import Layout from '../layout/index.vue'
  3. import HomeView from '../views/home/index.vue'
  4. import PlanningHome from '../views/planning/home.vue'
  5. import PersonalHome from '../views/personal/home.vue'
  6. import HouseWorkbench from '../views/house/workbench/index.vue'
  7. import Consignor from '../views/house/workbench/consignor.vue'
  8. import Certificate from '../views/house/workbench/certificate.vue'
  9. import BaseInfo from '../views/house/workbench/baseInfo.vue'
  10. import Assumption from '../views/house/workbench/assumption.vue'
  11. import EntityInfo from '../views/house/workbench/entityInfo.vue'
  12. import FolderChild from '../views/house/folder/child.vue'
  13. import FolderParent from '../views/house/folder/parent.vue'
  14. import Folder from '../views/house/folder/index.vue'
  15. import AssetsFolder from '@/views/assets/folder/index.vue'
  16. import AssetsFolderParent from '@/views/assets/folder/parent.vue'
  17. import AssetsFolderChild from '@/views/assets/folder/child.vue'
  18. import AssetsTmpl from '@/views/assets/template/index.vue'
  19. import AssetsTmplMange from '@/views/assets/template/mange.vue'
  20. import AssetsCreateCalculateTmpl from '@/views/assets/template/createCalculate.vue'
  21. import AssetsCalculateWorkbench from '@/views/assets/workbench/calculate/index.vue'
  22. import AssetsCalculateBaseInfo from '@/views/assets/workbench/calculate/baseInfo.vue'
  23. import AssetsCalculateImportInfo from '@/views/assets/workbench/calculate/importInfo.vue'
  24. import AssetsCalculateEqptBaseInfo from '@/views/assets/workbench/calculate/eqptBaseInfo.vue'
  25. const routes = [
  26. {
  27. path: '/',
  28. redirect: '/home/index'
  29. },
  30. {
  31. path: '/home',
  32. redirect: '/home/index'
  33. },
  34. {
  35. path: '/home/house',
  36. redirect: '/home/house/parent'
  37. },
  38. {
  39. path: '/home/houseWorkbench',
  40. redirect: '/home/house/parent'
  41. },
  42. {
  43. path: '/home/assets',
  44. redirect: '/home/assets/parent'
  45. },
  46. {
  47. path: '/home/assets/template',
  48. redirect: '/home/assets/template/mange'
  49. },
  50. {
  51. path: '/home/assets/workbench/calculate',
  52. redirect: '/home/assets/folder'
  53. },
  54. {
  55. path: '/home',
  56. component: Layout,
  57. name: 'home',
  58. meta: {
  59. title: '首页'
  60. },
  61. children: [
  62. {
  63. path: 'index',
  64. component: HomeView,
  65. name: 'homeIndex',
  66. },
  67. {
  68. path: 'planning',
  69. component: PlanningHome,
  70. name: 'planningIndex',
  71. meta: {
  72. title: '土地工作台'
  73. },
  74. },
  75. {
  76. path: 'house',
  77. component: Folder,
  78. name: 'folder',
  79. meta: {
  80. title: '房地产工作台'
  81. },
  82. children: [
  83. {
  84. path: 'parent',
  85. component: FolderParent,
  86. name: 'FolderParent',
  87. meta: {
  88. title: '项目'
  89. },
  90. },
  91. {
  92. path: 'folder',
  93. component: FolderChild,
  94. name: 'folderChild',
  95. meta: {
  96. title: '文件夹'
  97. },
  98. }
  99. ]
  100. },
  101. {
  102. path: 'houseWorkbench',
  103. component: HouseWorkbench,
  104. name: 'houseWorkbench',
  105. meta: {
  106. title: '房地产项目'
  107. },
  108. children: [
  109. {
  110. path: 'consignor',
  111. component: Consignor,
  112. name: 'consignor',
  113. meta: {
  114. title: '委托人函'
  115. },
  116. },
  117. {
  118. path: 'certificate',
  119. component: Certificate,
  120. name: 'certificate',
  121. meta: {
  122. title: '权属资料'
  123. },
  124. },
  125. {
  126. path: 'baseInfo',
  127. component: BaseInfo,
  128. name: 'baseInfo',
  129. meta: {
  130. title: '项目基本信息'
  131. },
  132. },
  133. {
  134. path: 'assumption',
  135. component: Assumption,
  136. name: 'assumption',
  137. meta: {
  138. title: '假设条件'
  139. },
  140. },
  141. {
  142. path: 'entityInfo',
  143. component: EntityInfo,
  144. name: 'entityInfo',
  145. meta: {
  146. title: '实物状况'
  147. },
  148. }
  149. ]
  150. },
  151. {
  152. path: 'assets',
  153. component: AssetsFolder,
  154. name: 'assetsFolder',
  155. meta: {
  156. title: '资产工作台'
  157. },
  158. children: [
  159. {
  160. path: 'parent',
  161. component: AssetsFolderParent,
  162. name: 'assetsFolderParent',
  163. meta: {
  164. title: '项目'
  165. },
  166. },
  167. {
  168. path: 'folder',
  169. component: AssetsFolderChild,
  170. name: 'assetsFolderChild',
  171. meta: {
  172. title: '文件夹'
  173. },
  174. },
  175. {
  176. path: 'template',
  177. component: AssetsTmpl,
  178. name: 'assetsTmpl',
  179. meta: {
  180. title: '模板管理'
  181. },
  182. children: [
  183. {
  184. path: 'mange',
  185. component: AssetsTmplMange,
  186. name: 'assetsTmplMange',
  187. // meta: {
  188. // title: '模板列表'
  189. // },
  190. },
  191. {
  192. path: 'create/calculate',
  193. component: AssetsCreateCalculateTmpl,
  194. name: 'assetsCreateCalculateTmpl',
  195. meta: {
  196. title: '创建测算表模板'
  197. },
  198. }
  199. ]
  200. },
  201. {
  202. path: 'workbench/calculate',
  203. component: AssetsCalculateWorkbench,
  204. name: 'assetsCalculateWorkbench',
  205. meta: {
  206. title: '文件夹'
  207. },
  208. children: [
  209. {
  210. path: 'baseInfo',
  211. component: AssetsCalculateBaseInfo,
  212. name: 'assetsCalculateBaseInfo',
  213. meta: {
  214. title: '测算表基本信息'
  215. },
  216. },
  217. {
  218. path: 'importInfo',
  219. component: AssetsCalculateImportInfo,
  220. name: 'assetsCalculateimportInfo',
  221. meta: {
  222. title: '完善测算表信息'
  223. },
  224. },
  225. {
  226. path: 'eqptBaseInfo',
  227. component: AssetsCalculateEqptBaseInfo,
  228. name: 'assetsCalculateEqptBaseInfo',
  229. meta: {
  230. title: '生成测算表'
  231. },
  232. },
  233. ]
  234. }
  235. ],
  236. }
  237. ],
  238. },
  239. {
  240. path: '/showDoc',
  241. name: 'doc',
  242. component: () => import('../components/PageOffice/index.vue')
  243. }
  244. ]
  245. const router = createRouter({
  246. history: createWebHistory('/prod/'),
  247. routes,
  248. })
  249. export default router