From c43e75fafd2059d2491bf9fa924da1d42e9b5d2d Mon Sep 17 00:00:00 2001 From: "1147192855@qq.com" <1147192855@qq.com> Date: Mon, 15 Apr 2024 11:47:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E6=97=A0=E6=B3=95=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E4=B8=8B=E4=B8=80=E9=A2=98BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../homework_correction/do_papers_job.dart | 67 +++++++------------ marking_app/pubspec.yaml | 2 +- 2 files changed, 27 insertions(+), 42 deletions(-) diff --git a/marking_app/lib/pages/homework_correction/do_papers_job.dart b/marking_app/lib/pages/homework_correction/do_papers_job.dart index 60a4136..5710bcf 100644 --- a/marking_app/lib/pages/homework_correction/do_papers_job.dart +++ b/marking_app/lib/pages/homework_correction/do_papers_job.dart @@ -420,9 +420,7 @@ Widget $dropdownBoxSwitchStudentsOrTypeView(BuildContext context, {required Func 'DO_PAPERS_JOB_CONTINUE_TO_REVIEW', () { var _currentTabNew = _useSwitchStudentAndType.tabs.value.firstWhere((e) => e.finishCount < e.total); - _useSwitchStudentAndType.eventFire( - model: MarkingTextQuestionJobTabParamsBus(taskId, _currentTabNew.pageIndex), - ); + _useSwitchStudentAndType.eventFire(model: MarkingTextQuestionJobTabParamsBus(taskId, _currentTabNew.pageIndex)); }, ), child: quickText( @@ -473,41 +471,6 @@ Widget $dropdownBoxSwitchStudentsOrTypeView(BuildContext context, {required Func ), ], ), - // InkWell( - // onTap: () => easyThrottle( - // 'prioritize_homework_review', - // () => !_useSwitchStudentAndType.isFirst.value - // ? _useSwitchStudentAndType.jobPriorityReviewJoin(jobId) - // : _useSwitchStudentAndType.jobPriorityReviewCancel(jobId)), - // child: - // Row( - // crossAxisAlignment: CrossAxisAlignment.center, - // mainAxisAlignment: MainAxisAlignment.start, - // children: [ - // Stack( - // alignment: const FractionalOffset(0.52, 0.24), - // children: [ - // Icon( - // const IconData(0xe63d, fontFamily: "AlibabaIcon"), - // size: 12.sp, - // color: _useSwitchStudentAndType.isFirst.value - // ? Color.fromRGBO(76, 199, 147, 1) - // : Color.fromRGBO(164, 164, 164, 1), - // ), - // quickText('优先', size: 4.sp, color: Colors.white), - // ], - // ), - // SizedBox(width: 1.2.w), - // quickText( - // '优先批阅', - // size: 10.sp, - // color: _useSwitchStudentAndType.isFirst.value - // ? Color.fromRGBO(76, 199, 147, 1) - // : Color.fromRGBO(164, 164, 164, 1), - // ), - // ], - // ), - // ), ), ], ), @@ -546,7 +509,14 @@ class _EexamPaperAndScoringViewState extends ConsumerState e.pageIndex == theEventVal.pageIndex); + if (_theTab != null && _theTab.finishCount == _theTab.total) { + isDefaultFirst = false; + } + } } ref.read(doJobObtainGradingDataProvider.notifier).setVal(MarkingTextQuestionJobTabParams( pageIndex: theEventVal.pageIndex, @@ -623,8 +593,15 @@ class _EexamPaperAndScoringViewState extends ConsumerState e.pageIndex == _pageIndex); + if (_tabIndex != -1 && _tabIndex + 1 <= synchroTabs!.tabs.length - 1) { + model.isDefaultFirst = true; + } + } + if (model.paperId == 0 && jobData.nextPageIndex != null) { // 切换题型页面 model.paperId = null; @@ -640,8 +617,16 @@ class _EexamPaperAndScoringViewState extends ConsumerState e.pageIndex == _pageIndex); + if (_tabIndex != -1 && _tabIndex - 1 >= 0 && _tabIndex - 1 <= synchroTabs!.tabs.length - 1) { + model.isDefaultFirst = false; + } + } + if (model.paperId == 0 && jobData.previousPageIndex != null) { model.paperId = null; model.pageIndex = jobData.previousPageIndex!; diff --git a/marking_app/pubspec.yaml b/marking_app/pubspec.yaml index dd3a2a1..c5045f7 100644 --- a/marking_app/pubspec.yaml +++ b/marking_app/pubspec.yaml @@ -15,7 +15,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 1.0.102 +version: 1.0.103 environment: sdk: ">=2.17.1 <3.0.0"