page_router.dart 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. import 'package:cpt_labour_sg/modules/job_template_add/job_template_add_page.dart';
  2. import 'package:cpt_labour_sg/modules/job_template_list/job_template_list_page.dart';
  3. import 'package:cpt_labour_sg/modules/job_title_list/job_title_list_page.dart';
  4. import 'package:get/get.dart';
  5. import 'package:router/path/router_path.dart';
  6. import '../modules/job_list/job_list_page.dart';
  7. import '../modules/job_list_edit/job_list_edit_page.dart';
  8. import '../modules/labour_request_add/labour_request_add_page.dart';
  9. import '../modules/labour_request_edit/labour_request_edit_page.dart';
  10. import '../modules/labour_request_list/labour_request_list_page.dart';
  11. class LabourSGPageRouter {
  12. static final routes = [
  13. // 工作标题列表
  14. GetPage(
  15. name: RouterPath.jobTitleListSG,
  16. page: () => JobTitleListPage(),
  17. ),
  18. // 工作模板列表
  19. GetPage(
  20. name: RouterPath.jobTemplateListSG,
  21. page: () => JobTemplateListPage(),
  22. ),
  23. // 添加模板
  24. GetPage(
  25. name: RouterPath.jobTemplateAddSG,
  26. page: () => JobTemplateAddPage(),
  27. ),
  28. // 用工的编辑
  29. GetPage(
  30. name: RouterPath.labourRequestEditSG,
  31. page: () => LabourRequestEditPage(),
  32. ),
  33. // 用工请求
  34. GetPage(
  35. name: RouterPath.labourRequestSG,
  36. page: () => LabourRequestListPage(),
  37. ),
  38. // 用工请求添加
  39. GetPage(
  40. name: RouterPath.labourRequestAddSG,
  41. page: () => LabourRequestAddPage(),
  42. ),
  43. // 新加坡工作列表
  44. GetPage(
  45. name: RouterPath.jobListSG,
  46. page: () => JobListPage(),
  47. ),
  48. // 新加坡工作列表编辑
  49. GetPage(
  50. name: RouterPath.jobListEditSG,
  51. page: () => JobListEditPage(),
  52. ),
  53. ];
  54. }