This commit is contained in:
machuanyu 2024-03-14 10:22:18 +08:00
parent 8e95d8791c
commit 1c159dbda3
3 changed files with 5 additions and 4 deletions

View File

@ -40,8 +40,9 @@ class _JobPriorityReviewSetState extends State<JobPriorityReviewSet>
RestClient _client = await getClient();
BaseStructureResult<List<JobStudentLevel>> 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 = [];
}

View File

@ -47,14 +47,14 @@ class _JobFavoriteState extends State<JobFavorite> 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<String, dynamic> userInfo = json.decode(value);
setState(() {
loginName = userInfo['loginName'];
});
});
});*/
getInvolveClasses();
_future = getData();
}

View File

@ -271,7 +271,7 @@ class _JobListParticipateInClassState extends State<JobListParticipateInClass> 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(),
);
}