index.js 6.7 KB

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