Skip to content
This repository has been archived by the owner on Apr 25, 2022. It is now read-only.

Timetable 更优雅的课程详情 #134

Open
CCXXXI opened this issue Oct 24, 2021 · 0 comments
Open

Timetable 更优雅的课程详情 #134

CCXXXI opened this issue Oct 24, 2021 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@CCXXXI
Copy link
Owner

CCXXXI commented Oct 24, 2021

当前实现

onPressed: () => Get.defaultDialog(
title: c.course.courseName!,
middleText: const JsonEncoder.withIndent('').convert(
c.course.toJson()
..remove('weeks')
..remove('periods'),
),
),

转为 json 之后移除过长的 weeks 和 periods 字段。

结果类似这样:

{
"teacherId": "76663",
"teacherName": "孙海英",
"courseId": "331020",
"courseCode": "SOFT0031132228",
"courseNo": "01",
"courseName": "软件测试和验证",
"roomId": "",
"roomName": "",
"taskId": null,
"expLessonGroupId": "",
"expLessonGroupIndexNo": "",
"remark": "",
"specialRoom": "理科楼B226"
}

预期

@CCXXXI CCXXXI added the enhancement New feature or request label Oct 24, 2021
@CCXXXI CCXXXI added this to the timetable v2 milestone Oct 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant