main_routes.js 15 KB

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