job_report_revision #2

Merged
wangyang merged 30 commits from job_report_revision into main 2024-03-13 15:11:28 +08:00
1 changed files with 9 additions and 3 deletions
Showing only changes of commit 314638a3ae - Show all commits

View File

@ -184,9 +184,15 @@ class RouterManager {
static final _jobReportPageHandler = Handler(handlerFunc: (BuildContext? context, Map<String, List<String>> params) {
int id = int.parse(params['id']![0]);
String title = params['title']![0];
int? schoolId = int.parse(params['schoolId']![0]);
int? gradeId = int.parse(params['gradeId']![0]);
String? className = params['className']![0];
int? schoolId;
if (params['schoolId'] != null && params['schoolId']![0] != null && params['schoolId']![0] != 'null') {
schoolId = int.parse(params['schoolId']![0]);
}
int? gradeId;
if (params['gradeId'] != null && params['gradeId']![0] != null && params['gradeId']![0] != 'null') {
gradeId = int.parse(params['gradeId']![0]);
}
String? className = params['className']?[0];
return JobReport(id: id, title: title,schoolId:schoolId,gradeId:gradeId,className:className);
});