main_routes.js 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  1. import Login from '../client/Login.vue';
  2. import Desktop from '../client/Desktop.vue';
  3. import LowcodePage from '../lowcode/LowcodePage';
  4. const Dashboard = () => import(/* webpackChunkName: "component-1" */ '../dashboard/Dashboard.vue');
  5. const Window = () => import(/* webpackChunkName: "component-2" */ '../window/Window.vue');
  6. const SheetWindow = () => import(/* webpackChunkName: "component-3" */ '../sheetWindow/SheetWindow.vue');
  7. const TabFormEdit = () => import(/* webpackChunkName: "component-4" */ '../window/tabFormView/TabFormEdit.vue');
  8. const TabFormView = () => import(/* webpackChunkName: "component-5" */ '../window/tabFormView/TabFormView.vue');
  9. const AttributeEditPanel = () => import(/* webpackChunkName: "component-6" */ '../window/attribute/AttributeEditPanel.vue');
  10. const TabAudit = () => import(/* webpackChunkName: "component-8" */ '../window/tabView/TabAudit.vue');
  11. const Approve = () => import(/* webpackChunkName: "component-9" */ '../workflow/Approve.vue');
  12. const RoleCurdField = () => import(/* webpackChunkName: "component-18" */ '../role/RoleCurdField.vue');
  13. const RoleCurdFieldTab = () => import(/* webpackChunkName: "component-19" */ '../role/RoleCurdFieldTab.vue');
  14. const TabDataSort = () => import(/* webpackChunkName: "component-21" */ '../customer/TabDataSort.vue');
  15. const WorkflowEdit = () => import(/* webpackChunkName: "component-22" */ '../workflow/WorkflowEdit.vue');
  16. const DataImportPanel = () => import(/* webpackChunkName: "component-23" */ '../customer/DataImportPanel.vue');
  17. const Notification = () => import(/* webpackChunkName: "component-25" */ '../client/Notification.vue');
  18. const SingleNotification = () => import(/* webpackChunkName: "component-26" */ '../client/SingleNotification.vue');
  19. const GenerateDocumentTool = () => import(/* webpackChunkName: "component-27" */ '../customer/GenerateDocumentTool.vue');
  20. const UserParameters = () => import(/* webpackChunkName: "component-28" */ '../client/UserParameters.vue');
  21. const OrganizationEditPanel = () => import(/* webpackChunkName: "component-29" */ '../client/OrganizationEditPanel.vue');
  22. const BarCodeEdit = () => import(/* webpackChunkName: "component-30" */ '../customer/BarCodeEdit.vue');
  23. const Archive = () => import(/* webpackChunkName: "component-31" */ '../client/Archive.vue');
  24. const UserSearch = () => import(/* webpackChunkName: "component-34" */ '../customer/UserSearch.vue');
  25. const Monitor = () => import(/* webpackChunkName: "component-35" */ '../customer/Monitor.vue');
  26. const BatchUpdateField = () => import(/* webpackChunkName: "component-36" */ '../customer/BatchUpdateField.vue');
  27. const ActivitiAdmin = () => import(/* webpackChunkName: "component-38" */ '../workflow/ActivitiAdmin.vue');
  28. const DocManagement = () => import(/* webpackChunkName: "component-39" */ '../workflow/DocManagement.vue');
  29. const PrintPage = () => import(/* webpackChunkName: "component-49" */ '../customer/PrintPage.vue');
  30. const NotFound = () => import(/* webpackChunkName: "component-50" */ '../client/NotFound.vue');
  31. const Camera = () => import(/* webpackChunkName: "component-51" */ '../widget/Camera.vue');
  32. const Cropper = () => import(/* webpackChunkName: "component-52" */ '../widget/Cropper.vue');
  33. const WebSocketCapture = () => import(/* webpackChunkName: "component-53" */ '../widget/WebSocketCapture.vue');
  34. const WebRtcCapture = () => import(/* webpackChunkName: "component-54" */ '../widget/WebRtcCapture.vue');
  35. const InfoWindowPage = () => import(/* webpackChunkName: "component-57" */ '../info/InfoWindowPage.vue');
  36. const TaskProcessManagement = () => import(/* webpackChunkName: "component-58" */ '../workflow/TaskProcessManagement.vue');
  37. const ExecutionList = () => import(/* webpackChunkName: "component-59" */ '../workflow/ExecutionList.vue');
  38. const NoRole = () => import(/* webpackChunkName: "component-60" */ '../role/NoRole.vue');
  39. const PrivacyStatement = () => import(/* webpackChunkName: "component-test-62" */ '../confirm/privacy-statement.vue');
  40. const StudyVideo = () => import(/* webpackChunkName: "component-test-63" */ '../confirm/StudyVideo.vue');
  41. const ResetPassword = () => import(/* webpackChunkName: "component-test-64" */ '../confirm/ResetPassword.vue');
  42. const PdfPrint = () => import(/* webpackChunkName: "component-test-66" */ '../confirm/PdfPrint.vue');
  43. const RetrievePassword = () => import(/* webpackChunkName: "component-test-67" */ '../client/RetrievePassword.vue');
  44. const KnowledgeTrain1 = () => import(/* webpackChunkName: "component-test-68" */ '../confirm/KnowledgeTrain1.vue');
  45. const KnowledgeTrainAnswer = () => import(/* webpackChunkName: "component-test-69" */ '../confirm/KnowledgeTrainAnswer.vue');
  46. const ReportApprove = () => import(/* webpackChunkName: "component-71" */ '../workflow/ReportApprove.vue');
  47. const ExcelReport = () => import(/* webpackChunkName: "component-72" */ '../client/ExcelReport.vue');
  48. const DateExcelReport = () => import(/* webpackChunkName: "component-73" */ '../client/DateExcelReport.vue');
  49. const DelegationReport = () => import(/* webpackChunkName: "component-74" */ '../client/DelegationReport.vue');
  50. const ContainerLayout = () => import(/* webpackChunkName: "component-test-1" */ '../../test/ContainerLayout.vue');
  51. const DynamicImport = () => import(/* webpackChunkName: "component-test-2" */ '../../test/DynamicImport.vue');
  52. const Test = () => import(/* webpackChunkName: "component-test-4" */ '../../test/Test.vue');
  53. const Training = () => import(/* webpackChunkName: "component-test-5" */ '../../test/Training.vue');
  54. import { ProcessReport } from 'pc-component-v3';
  55. export default [
  56. { path: '/', redirect: '/login' },
  57. {
  58. path: '/login',
  59. component: Login,
  60. meta: {
  61. loginRequired: false,
  62. },
  63. },
  64. {
  65. path: '/desktop', component: Desktop,
  66. children: [
  67. //仪表盘
  68. {
  69. path: 'dashboard',
  70. component: Dashboard,
  71. meta: {
  72. loginRequired: false,
  73. functionAccessArray: [
  74. {
  75. functionNo: '资产仪表盘',
  76. itemNo: ['公司资产统计', '部门资产统计'],
  77. },
  78. {
  79. functionNo: '仓库仪表盘',
  80. itemNo: '出入库统计',
  81. },
  82. ],
  83. },
  84. },
  85. // 窗口
  86. { path: 'window/:windowNo', component: Window },
  87. // Web电子表格 窗口
  88. { path: 'sheetWindow/:windowNo', component: SheetWindow },
  89. // CRUD编辑窗口
  90. // eslint-disable-next-line
  91. { path: 'window/window-edit/:type/:uuid', component: TabFormEdit },
  92. // eslint-disable-next-line
  93. { path: 'window/window-edit/:type/:windowNo/:tabIndex', component: TabFormEdit },
  94. // eslint-disable-next-line
  95. { path: 'window/window-edit/:type/:windowNo/:tabIndex/:recordId', component: TabFormEdit },
  96. // CRUD不可编辑窗口
  97. // eslint-disable-next-line
  98. { path: 'window/window-read/:type/:uuid', component: TabFormView },
  99. // eslint-disable-next-line
  100. { path: 'window/window-read/:type/:windowNo/:tabIndex/:recordId', component: TabFormView },
  101. // 属性编辑窗口
  102. {
  103. path: 'attribute-edit/:uuid', component: AttributeEditPanel,
  104. 'meta': {
  105. 'loginRequired': true,
  106. 'functionAccessArray': [
  107. {
  108. 'functionNo': '20220321_212846',
  109. 'itemNo': '1',
  110. },
  111. ],
  112. },
  113. },
  114. // 审计数据窗口
  115. { path: 'window/window-audit/:uuid', component: TabAudit },
  116. // 查询窗口
  117. { path: 'info/:infoWindowNo', component: InfoWindowPage },
  118. // 流程和报口
  119. { path: 'process-report/:no', component: ProcessReport },
  120. // 审批
  121. { path: 'approve', component: Approve },
  122. // 无权限访问界面
  123. { path: 'no-role', component: NoRole },
  124. //角色CURD访问权限(父页签)
  125. {
  126. path: 'roleCurdField',
  127. component: RoleCurdField,
  128. meta: {
  129. loginRequired: true,
  130. functionAccessArray: [
  131. {
  132. functionNo: 'xxx',
  133. itemNo: ['x1', 'x2'],
  134. },
  135. {
  136. functionNo: 'yyy',
  137. itemNo: 'y1',
  138. },
  139. ],
  140. },
  141. },
  142. //角色CURD访问权限(子页签)
  143. {
  144. path: 'roleCurdFieldTab', component: RoleCurdFieldTab,
  145. 'meta': {
  146. 'loginRequired': true,
  147. 'functionAccessArray': [
  148. {
  149. 'functionNo': '20220321_212846',
  150. 'itemNo': '1',
  151. },
  152. ],
  153. },
  154. },
  155. // 页签字段排序
  156. { path: 'tab-data-sort/:uuid', component: TabDataSort },
  157. // 工作流编辑
  158. {
  159. path: 'workflow-edit', component: WorkflowEdit,
  160. meta: {
  161. 'loginRequired': true,
  162. 'functionAccessArray': [
  163. {
  164. 'functionNo': '20220424_144806',
  165. 'itemNo': '1',
  166. },
  167. ],
  168. },
  169. },
  170. // 数据导入
  171. {
  172. path: 'data-import-panel',component: DataImportPanel,
  173. meta: {
  174. 'loginRequired': true,
  175. 'functionAccessArray': [
  176. {
  177. 'functionNo': '20220328_093317',
  178. 'itemNo': '2',
  179. },
  180. {
  181. 'functionNo': '20220712_133418',
  182. 'itemNo': '1',
  183. },
  184. ],
  185. },
  186. },
  187. // 数据导入
  188. { path: 'data-import-panel/:uuid', component: DataImportPanel },
  189. // 通知
  190. { path: 'notification', component: Notification },
  191. // 单条通知
  192. // eslint-disable-next-line
  193. { path: 'single-notification/:messageId', component: SingleNotification },
  194. // 生单
  195. // eslint-disable-next-line
  196. { path: 'generate-document/:type/:infoWindowNo/:uuid', component: GenerateDocumentTool },
  197. // 用户参数
  198. { path: 'userParameters', component: UserParameters },
  199. // 部门编辑
  200. {
  201. path: 'OrganizationEditPanel', component: OrganizationEditPanel,
  202. meta: {
  203. 'loginRequired': true,
  204. 'functionAccessArray': [
  205. {
  206. 'functionNo': '20220314_103037',
  207. 'itemNo': '2',
  208. },
  209. ],
  210. },
  211. },
  212. // 条码编辑
  213. {
  214. path: 'barCode-edit', component: BarCodeEdit,
  215. meta: {
  216. 'loginRequired': true,
  217. 'functionAccessArray': [
  218. {
  219. 'functionNo': '20220328_092713',
  220. 'itemNo': '3',
  221. },
  222. ],
  223. },
  224. },
  225. // 归档
  226. { path: 'archive', component: Archive },
  227. //用户搜索
  228. { path: 'userSearch', component: UserSearch },
  229. //抓拍
  230. { path: 'monitor', component: Monitor },
  231. //批量修改字段
  232. {
  233. path: 'batchUpdateField/:uuid', component: BatchUpdateField,
  234. 'meta': {
  235. 'loginRequired': true,
  236. 'functionAccessArray': [
  237. {
  238. 'functionNo': '20220322_095822',
  239. 'itemNo': '1',
  240. },
  241. ],
  242. },
  243. },
  244. // 工作流管理员2019
  245. { path: 'activitiAdmin', component: ActivitiAdmin },
  246. // 工作流管理员2019
  247. {
  248. path: 'DocManagement', component: DocManagement,
  249. 'meta': {
  250. 'loginRequired': true,
  251. 'functionAccessArray': [
  252. {
  253. 'functionNo': '20220424_144806',
  254. 'itemNo': '1',
  255. },
  256. ],
  257. },
  258. },
  259. // 任务流程管理
  260. { path: 'taskProcessManagement', component: TaskProcessManagement,
  261. meta: {
  262. 'loginRequired': true,
  263. 'functionAccessArray': [
  264. {
  265. 'functionNo': '20220424_144806',
  266. 'itemNo': '1',
  267. },
  268. ],
  269. },
  270. },
  271. // 执行列表
  272. { path: 'executionList', component: ExecutionList,
  273. meta: {
  274. 'loginRequired': true,
  275. 'functionAccessArray': [
  276. {
  277. 'functionNo': '20220424_144806',
  278. 'itemNo': '1',
  279. },
  280. ],
  281. },
  282. },
  283. // 执行列表
  284. { path: 'lowcode-example/:lowcodeWindowNo', component: LowcodePage },
  285. { path: 'pdf-print', component: PdfPrint },
  286. { path: 'report-approve', component: ReportApprove },
  287. ],
  288. },
  289. // 执行列表
  290. { path: '/lowcode-page/:lowcodeWindowNo', component: LowcodePage },
  291. // 打印页面
  292. { path: '/single/PrintPage', component: PrintPage },
  293. //钉钉待办任务审批跳转
  294. // eslint-disable-next-line
  295. { path: '/window/window-read/:type/:windowNo/:tabIndex/:recordId', component: TabFormView },
  296. { path: '/test', component: Test },
  297. { path: '/webrt', component: WebRtcCapture },
  298. { path: '/WebSocketCapture', component: WebSocketCapture },
  299. { path: '/cropper', component: Cropper },
  300. { path: '/camera', component: Camera },
  301. { path: '/containerLayout', component: ContainerLayout },
  302. { path: '/DynamicImport', component: DynamicImport },
  303. { path: '/notFound', component: NotFound },
  304. { path:'/privacy-statement', component: PrivacyStatement},
  305. { path:'/studyVideo', component: StudyVideo},
  306. { path:'/resetPassword', component: ResetPassword},
  307. { path:'/retrievePassword', component: RetrievePassword},
  308. { path:'/knowledgeTrain', component: KnowledgeTrain1},
  309. { path:'/knowledgeTrainAnswer', component: KnowledgeTrainAnswer},
  310. { path: '/excelReport/:processReportNo', component: ExcelReport},
  311. { path: '/dateExcelReport/:processReportNo', component: DateExcelReport},
  312. { path: '/desktop/delegationReport', component: DelegationReport},
  313. ];