From 4dfab0f4c3e7d0f7dba37cd64c1e58865adb6e4e Mon Sep 17 00:00:00 2001 From: machuanyu <840649825@qq.com> Date: Thu, 14 Mar 2024 17:44:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/homework_correction/pages/job_favorite.dart | 3 ++- .../pages/homework_correction/quick_data_check.dart | 1 + .../widget/quick_student_data_table.dart | 10 ++++++---- 3 files changed, 9 insertions(+), 5 deletions(-) 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 785af21..14428aa 100644 --- a/marking_app/lib/pages/homework_correction/pages/job_favorite.dart +++ b/marking_app/lib/pages/homework_correction/pages/job_favorite.dart @@ -43,7 +43,7 @@ class _JobFavoriteState extends State with CommonMixin { JobReportJoinClass? classData; late String loginName; final int pageSize = 100; - String className = '-1'; + String className = '全部'; @override void initState() { @@ -376,6 +376,7 @@ Widget $classSelection(List? involveClasses, JobReportJoinCl )), child: DropdownButton( value: classData?.uniqueId ?? '-1', + style: TextStyle(color: Color.fromRGBO(89, 89, 89, 1), fontSize: 12.sp), underline: Container(), // isExpanded:true, diff --git a/marking_app/lib/pages/homework_correction/quick_data_check.dart b/marking_app/lib/pages/homework_correction/quick_data_check.dart index 39a7917..574a421 100644 --- a/marking_app/lib/pages/homework_correction/quick_data_check.dart +++ b/marking_app/lib/pages/homework_correction/quick_data_check.dart @@ -105,6 +105,7 @@ class _QuickDataCheckPageState extends State style: TextStyle(fontSize: 14.sp, color: Colors.white), )), )), + SizedBox(width: 24.r,), ], ), SizedBox(height: 10.r), diff --git a/marking_app/lib/pages/homework_correction/widget/quick_student_data_table.dart b/marking_app/lib/pages/homework_correction/widget/quick_student_data_table.dart index 10d2f6c..9a9cd03 100644 --- a/marking_app/lib/pages/homework_correction/widget/quick_student_data_table.dart +++ b/marking_app/lib/pages/homework_correction/widget/quick_student_data_table.dart @@ -34,27 +34,29 @@ class _QuickStudentDataTableState extends State { assert(index >= 0); StudentDetails item = widget.bodyList[index]; int num = 0; + int total = 0; item.kgDetails.forEach((element) { if (element.state == 0) { num = num + 1; } + total = total + 1; }); item.zgDetails.forEach((element) { if (element.state == 0) { num = num + 1; } + total = total + 1; }); return DataRow2.byIndex( index: index, color: color != null - ? num == 0 - ? MaterialStateProperty.all(color) - : MaterialStateProperty.all(Color(0xFFFFD79C)) + ? num == total + ? MaterialStateProperty.all(Color(0xFFFFD79C)) + : MaterialStateProperty.all(color) : null, cells: [ DataCell(InkWell( onTap: () { - RouterManager.router.navigateTo( context, RouterManager.quickCheckPersonalPath +