page_router.dart 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import 'package:cpt_report/modules/device_list/device_list_page.dart';
  2. import 'package:cpt_report/modules/report_finance/report_finance_page.dart';
  3. import 'package:cpt_report/modules/report_labour/report_labour_page.dart';
  4. import 'package:cpt_report/modules/report_list/report_list_page.dart';
  5. import 'package:cpt_report/modules/report_staff_request/report_staff_request_page.dart';
  6. import 'package:get/get.dart';
  7. import 'package:router/path/router_path.dart';
  8. class ReportPageRouter {
  9. static final routes = [
  10. //设备列表
  11. GetPage(
  12. name: RouterPath.deviceList,
  13. page: () => DeviceListPage(),
  14. ),
  15. //报表列表
  16. GetPage(
  17. name: RouterPath.reportList,
  18. page: () => ReportListPage(),
  19. ),
  20. //财务报表
  21. GetPage(
  22. name: RouterPath.reportFinance,
  23. page: () => ReportFinancePage(),
  24. ),
  25. //员工申请
  26. GetPage(
  27. name: RouterPath.reportStaffRequest,
  28. page: () => ReportStaffRequestPage(),
  29. ),
  30. //用工统计
  31. GetPage(
  32. name: RouterPath.reportCasualLabour,
  33. page: () => ReportLabourPage(),
  34. ),
  35. ];
  36. }