job_service_impl.dart 955 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import 'package:cpt_job/modules/job_list/job_list_page.dart';
  2. import 'package:plugin_basic/basic_export.dart';
  3. import 'package:router/componentRouter/job_service.dart';
  4. import 'package:shared/utils/log_utils.dart';
  5. import '../modules/attendance_review_list/attendance_review_page.dart';
  6. import '../modules/sign_in_sign_out/sign_in_sign_out_page.dart';
  7. class JobServiceImpl extends GetxService implements JobService {
  8. @override
  9. void onInit() {
  10. super.onInit();
  11. //初始化资源
  12. Log.d("JobServiceImpl 初始化资源");
  13. }
  14. @override
  15. void onClose() {
  16. super.onClose();
  17. //销毁资源
  18. Log.d("JobServiceImpl 销毁资源");
  19. }
  20. // 启动签到签出页面
  21. @override
  22. void startSignInSignOutPage() {
  23. SignInSignOutPage.startInstance();
  24. }
  25. @override
  26. void startJobListPage() {
  27. JobListPage.startInstance();
  28. }
  29. @override
  30. void startAttendanceReviewPage() {
  31. AttendanceReviewPage.startInstance();
  32. }
  33. }