|
|
@@ -178,6 +178,17 @@ export class StudyRecordsPageComponent implements OnInit {
|
|
|
return `${Math.floor(seconds / 3600)}小时${Math.floor((seconds % 3600) / 60)}分`;
|
|
|
}
|
|
|
|
|
|
+ studentValue(student: Item): number {
|
|
|
+ return Number(student['szyh'] ?? student['UserID'] ?? student['UserId'] ?? student['userId'] ?? student['ID'] ?? 0);
|
|
|
+ }
|
|
|
+
|
|
|
+ studentName(student: Item): string {
|
|
|
+ const name = String(student['honeyname'] ?? student['HoneyName'] ?? student['honeyName'] ?? student['UserName'] ?? student['username'] ?? '').trim();
|
|
|
+ if (name) return name;
|
|
|
+ const mobile = String(student['Mobile'] ?? student['mobile'] ?? '').trim();
|
|
|
+ return mobile || `学员 ${this.studentValue(student)}`;
|
|
|
+ }
|
|
|
+
|
|
|
private loadLearningHistory(uid: number): void {
|
|
|
const targetUid = this.session.groupId() === 3 ? this.studentId : uid;
|
|
|
if (!targetUid) {
|