main_routes.js 14 KB

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