处理无法切换下一题BUG
This commit is contained in:
parent
ecfb2c33b6
commit
c43e75fafd
|
|
@ -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<ExamPaperAndScoringVi
|
|||
var theEventVal = eventVal as MarkingTextQuestionJobTabParamsBus;
|
||||
bool? isDefaultFirst;
|
||||
if (theJobData != null) {
|
||||
isDefaultFirst = theJobData!.pageIndex < theEventVal.pageIndex;
|
||||
isDefaultFirst = theJobData!.pageIndex == theEventVal.pageIndex ? null : theJobData!.pageIndex < theEventVal.pageIndex;
|
||||
} else {
|
||||
if (synchroTabs?.tabs.isNotEmpty ?? false) {
|
||||
var _theTab = synchroTabs?.tabs.firstWhereOrNull((e) => 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<ExamPaperAndScoringVi
|
|||
pageIndex: jobData.pageIndex,
|
||||
nextPageIndex: jobData.nextPageIndex,
|
||||
previousPageIndex: jobData.previousPageIndex,
|
||||
isDefaultFirst: true,
|
||||
);
|
||||
if (jobData.nextId == 0 && (synchroTabs?.tabs.isNotEmpty ?? false)) {
|
||||
var _pageIndex = jobData.pageIndex;
|
||||
var _tabIndex = synchroTabs!.tabs.indexWhere((e) => 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<ExamPaperAndScoringVi
|
|||
paperId: jobData.prevId,
|
||||
nextPageIndex: jobData.nextPageIndex,
|
||||
previousPageIndex: jobData.previousPageIndex,
|
||||
isDefaultFirst: false,
|
||||
);
|
||||
|
||||
if (jobData.prevId == 0 && (synchroTabs?.tabs.isNotEmpty ?? false)) {
|
||||
var _pageIndex = jobData.pageIndex;
|
||||
var _tabIndex = synchroTabs!.tabs.indexWhere((e) => 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!;
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue