index.js 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  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 Conditions from '../views/house/workbench/conditions.vue'
  8. import GuarantyResult from '../views/house/workbench/guarantyResult.vue'
  9. import FolderChild from '../views/house/folder/child.vue'
  10. import FolderParent from '../views/house/folder/parent.vue'
  11. import Folder from '../views/house/folder/index.vue'
  12. // 资产项目列表
  13. import AssetsFolder from '@/views/assets/folder/index.vue'
  14. import AssetsFolderParent from '@/views/assets/folder/parent.vue'
  15. import AssetsFolderChild from '@/views/assets/folder/child.vue'
  16. // 资产模板管理
  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 AssetsCreateReportTmpl from '@/views/assets/template/createReport.vue'
  21. // 资产机器设备
  22. import AssetsEqptCalculateWorkbench from '@/views/assets/workbench/eqpt/calculate/index.vue'
  23. import AssetsEqptCalculateBaseInfo from '@/views/assets/workbench/eqpt/calculate/baseInfo.vue'
  24. import AssetsEqptCalculateImportInfo from '@/views/assets/workbench/eqpt/calculate/importInfo.vue'
  25. import AssetsEqptCalculateEqptBaseInfo from '@/views/assets/workbench/eqpt/calculate/eqptBaseInfo.vue'
  26. import AssetsEqptReportWorkbench from '@/views/assets/workbench/eqpt/report/index.vue'
  27. import AssetsEqptReportBaseInfo from '@/views/assets/workbench/eqpt/report/baseInfo.vue'
  28. import AssetsEqptReportEqptBaseInfo from '@/views/assets/workbench/eqpt/report/eqptBaseInfo.vue'
  29. // 资产债权
  30. import AssetsCRCalculateWorkbench from '@/views/assets/workbench/cr/calculate/index.vue'
  31. import AssetsCRCalculateBaseInfo from '@/views/assets/workbench/cr/calculate/baseInfo.vue'
  32. const routes = [
  33. {
  34. path: '/',
  35. redirect: '/home/index'
  36. },
  37. {
  38. path: '/home',
  39. redirect: '/home/index'
  40. },
  41. {
  42. path: '/home/house',
  43. redirect: '/home/house/parent'
  44. },
  45. {
  46. path: '/home/houseWorkbench',
  47. redirect: '/home/house/parent'
  48. },
  49. {
  50. path: '/home/assets',
  51. redirect: '/home/assets/parent'
  52. },
  53. {
  54. path: '/home/assets/template',
  55. redirect: '/home/assets/template/mange'
  56. },
  57. {
  58. path: '/home/assets/workbench/eqpt/calculate',
  59. redirect: '/home/assets/folder'
  60. },
  61. {
  62. path: '/home/assets/workbench/eqpt/report',
  63. redirect: '/home/assets/folder'
  64. },
  65. {
  66. path: '/home/assets/workbench/cr/calculate',
  67. redirect: '/home/assets/folder'
  68. },
  69. {
  70. path: '/home/assets/workbench/cr/report',
  71. redirect: '/home/assets/folder'
  72. },
  73. {
  74. path: '/home',
  75. component: Layout,
  76. name: 'home',
  77. meta: {
  78. title: '首页'
  79. },
  80. children: [
  81. {
  82. path: 'index',
  83. component: HomeView,
  84. name: 'homeIndex',
  85. },
  86. {
  87. path: 'planning',
  88. component: PlanningHome,
  89. name: 'planningIndex',
  90. meta: {
  91. title: '土地工作台'
  92. },
  93. },
  94. {
  95. path: 'house',
  96. component: Folder,
  97. name: 'folder',
  98. meta: {
  99. title: '房地产工作台'
  100. },
  101. children: [
  102. {
  103. path: 'parent',
  104. component: FolderParent,
  105. name: 'FolderParent',
  106. meta: {
  107. title: '项目'
  108. },
  109. },
  110. {
  111. path: 'folder',
  112. component: FolderChild,
  113. name: 'folderChild',
  114. meta: {
  115. title: '文件夹'
  116. },
  117. }
  118. ]
  119. },
  120. {
  121. path: 'houseWorkbench',
  122. component: HouseWorkbench,
  123. name: 'houseWorkbench',
  124. meta: {
  125. title: '房地产项目'
  126. },
  127. children: [
  128. {
  129. path: 'consignor',
  130. component: Consignor,
  131. name: 'consignor',
  132. meta: {
  133. title: '委托人函'
  134. },
  135. },
  136. {
  137. path: 'conditions',
  138. component: Conditions,
  139. name: 'conditions',
  140. meta: {
  141. title: '假设限制条件及使用说明'
  142. },
  143. },
  144. {
  145. path: 'guarantyResult',
  146. component: GuarantyResult,
  147. name: 'guarantyResult',
  148. meta: {
  149. title: '房地产抵押估价结果报告'
  150. },
  151. },
  152. ]
  153. },
  154. {
  155. path: 'assets',
  156. component: AssetsFolder,
  157. name: 'assetsFolder',
  158. meta: {
  159. title: '资产工作台'
  160. },
  161. children: [
  162. {
  163. path: 'parent',
  164. component: AssetsFolderParent,
  165. name: 'assetsFolderParent',
  166. meta: {
  167. title: '项目'
  168. },
  169. },
  170. {
  171. path: 'folder',
  172. component: AssetsFolderChild,
  173. name: 'assetsFolderChild',
  174. meta: {
  175. title: '文件夹'
  176. },
  177. },
  178. {
  179. path: 'template',
  180. component: AssetsTmpl,
  181. name: 'assetsTmpl',
  182. meta: {
  183. title: '模板管理'
  184. },
  185. children: [
  186. {
  187. path: 'mange',
  188. component: AssetsTmplMange,
  189. name: 'assetsTmplMange',
  190. // meta: {
  191. // title: '模板列表'
  192. // },
  193. },
  194. {
  195. path: 'create/calculate',
  196. component: AssetsCreateCalculateTmpl,
  197. name: 'assetsCreateCalculateTmpl',
  198. meta: {
  199. title: '创建测算表模板'
  200. },
  201. },
  202. {
  203. path: 'create/report',
  204. component: AssetsCreateReportTmpl,
  205. name: 'assetsCreateReportTmpl',
  206. meta: {
  207. title: '创建报告模板'
  208. },
  209. }
  210. ]
  211. },
  212. {
  213. path: 'workbench/eqpt/calculate',
  214. component: AssetsEqptCalculateWorkbench,
  215. name: 'assetsEqptCalculateWorkbench',
  216. meta: {
  217. title: '文件夹'
  218. },
  219. children: [
  220. {
  221. path: 'baseInfo',
  222. component: AssetsEqptCalculateBaseInfo,
  223. name: 'assetsEqptCalculateBaseInfo',
  224. meta: {
  225. title: '测算表基本信息'
  226. },
  227. },
  228. {
  229. path: 'importInfo',
  230. component: AssetsEqptCalculateImportInfo,
  231. name: 'assetsEqptCalculateimportInfo',
  232. meta: {
  233. title: '完善测算表信息'
  234. },
  235. },
  236. {
  237. path: 'eqptBaseInfo',
  238. component: AssetsEqptCalculateEqptBaseInfo,
  239. name: 'assetsEqptCalculateEqptBaseInfo',
  240. meta: {
  241. title: '生成测算表'
  242. },
  243. },
  244. ]
  245. },
  246. {
  247. path: 'workbench/eqpt/report',
  248. component: AssetsEqptReportWorkbench,
  249. name: 'assetsEqptReportWorkbench',
  250. meta: {
  251. title: '文件夹'
  252. },
  253. children: [
  254. {
  255. path: 'baseInfo',
  256. component: AssetsEqptReportBaseInfo,
  257. name: 'assetsEqptReportBaseInfo',
  258. meta: {
  259. title: '报告基本信息'
  260. },
  261. },
  262. {
  263. path: 'eqptBaseInfo',
  264. component: AssetsEqptReportEqptBaseInfo,
  265. name: 'assetsEqptReportEqptBaseInfo',
  266. meta: {
  267. title: '生成报告'
  268. },
  269. },
  270. ]
  271. }
  272. ],
  273. }
  274. ],
  275. },
  276. {
  277. path: '/showDoc',
  278. name: 'doc',
  279. component: () => import('../components/PageOffice/index.vue')
  280. }
  281. ]
  282. const router = createRouter({
  283. history: createWebHistory('/prod/'),
  284. routes,
  285. })
  286. export default router