From 1c159dbda342d5dcfa488a276591a537c7bd1288 Mon Sep 17 00:00:00 2001 From: machuanyu <840649825@qq.com> Date: Thu, 14 Mar 2024 10:22:18 +0800 Subject: [PATCH] -- --- .../pages/homework_correction/job_priority_review_set.dart | 3 ++- .../lib/pages/homework_correction/pages/job_favorite.dart | 4 ++-- .../pages/job_list_participate_in_class.dart | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/marking_app/lib/pages/homework_correction/job_priority_review_set.dart b/marking_app/lib/pages/homework_correction/job_priority_review_set.dart index 96a7b5e..4469583 100644 --- a/marking_app/lib/pages/homework_correction/job_priority_review_set.dart +++ b/marking_app/lib/pages/homework_correction/job_priority_review_set.dart @@ -40,8 +40,9 @@ class _JobPriorityReviewSetState extends State RestClient _client = await getClient(); BaseStructureResult> res = await _client.getJobReadLevel(widget.groupId,tabIndex == 0?1:0); setState(() { - if(res.code == 200){ + if(res.success){ levelList = res.data!; + print(levelList.length); }else{ levelList = []; } diff --git a/marking_app/lib/pages/homework_correction/pages/job_favorite.dart b/marking_app/lib/pages/homework_correction/pages/job_favorite.dart index 988169a..113754a 100644 --- a/marking_app/lib/pages/homework_correction/pages/job_favorite.dart +++ b/marking_app/lib/pages/homework_correction/pages/job_favorite.dart @@ -47,14 +47,14 @@ class _JobFavoriteState extends State with CommonMixin { @override void initState() { super.initState(); - FastData fastData = FastData.getInstance(); + /* FastData fastData = FastData.getInstance(); fastData.getUser().then((value) { if (value == null || value == '') return; Map userInfo = json.decode(value); setState(() { loginName = userInfo['loginName']; }); - }); + });*/ getInvolveClasses(); _future = getData(); } diff --git a/marking_app/lib/pages/homework_correction/pages/job_list_participate_in_class.dart b/marking_app/lib/pages/homework_correction/pages/job_list_participate_in_class.dart index 18b19dc..2172a8d 100644 --- a/marking_app/lib/pages/homework_correction/pages/job_list_participate_in_class.dart +++ b/marking_app/lib/pages/homework_correction/pages/job_list_participate_in_class.dart @@ -271,7 +271,7 @@ class _JobListParticipateInClassState extends State w RouterManager.router.navigateTo( context, RouterManager.jobFavoritePagePath + - '?className=${Uri.encodeComponent(task.className)}&jobId=${widget.jobId}&schoolId=${task.dpcSchoolId}&gradeId=${task.dpcGradeId}&jobName=${widget.jobName}', + '?className=${Uri.encodeComponent(task.className)}&jobId=${widget.jobId}&schoolId=${task.dpcSchoolId}&gradeId=${task.dpcGradeId}&jobName=${Uri.encodeComponent(widget.jobName)}', transition: getTransition(), ); }