Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nanMoMentorPlatform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
node_server
nanMoMentorPlatform
Commits
4b5a9c33
Commit
4b5a9c33
authored
Jul 06, 2026
by
PC-20251223ZVQQ\Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询用户头像
parent
e14daa22
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
15 additions
and
5 deletions
+15
-5
studentManager.ts
src/biz/admin/studentManager.ts
+1
-0
dashboard.ts
src/biz/parent/dashboard.ts
+2
-1
dashboard.ts
src/biz/student/dashboard.ts
+4
-2
myTeacher.ts
src/biz/student/myTeacher.ts
+1
-0
communication.ts
src/biz/teacher/communication.ts
+1
-0
dashboard.ts
src/biz/teacher/dashboard.ts
+2
-1
myStudents.ts
src/biz/teacher/myStudents.ts
+2
-0
teacherInfo.ts
src/biz/teacher/teacherInfo.ts
+1
-0
teacher.ts
src/routers/teacher.ts
+1
-1
No files found.
src/biz/admin/studentManager.ts
View file @
4b5a9c33
...
...
@@ -203,6 +203,7 @@ export async function studentInfo(studentId: string) {
let
dataInfo
=
{
user_id
:
uacUser
.
data
.
user_id
,
// 学生ID
user_name
:
uacUser
.
data
.
user_name
,
// 学生姓名
avatar
:
uacUser
.
data
.
avatar
||
''
,
// 头像
gender
:
uacUser
.
data
.
gender
,
// 性别
class_id
:
profile
.
data
?
profile
.
data
.
class_id
:
null
,
// 班级ID(用于编辑)
class_name
:
classInfo
&&
classInfo
.
data
?
classInfo
.
data
.
full_name
:
""
,
// 班级名称(用于展示)
...
...
src/biz/parent/dashboard.ts
View file @
4b5a9c33
...
...
@@ -142,7 +142,8 @@ async function getChildInfo(studentId: string) {
className
:
className
,
teacherName
:
teacherName
,
gender
:
student
.
data
?.
gender
||
''
,
phone
:
student
.
data
?.
phone
||
''
phone
:
student
.
data
?.
phone
||
''
,
avatar
:
student
.
data
?.
avatar
||
''
};
}
...
...
src/biz/student/dashboard.ts
View file @
4b5a9c33
...
...
@@ -45,7 +45,8 @@ async function getPersonalInfo(studentId: string) {
juniorSchool
:
profile
.
middle_school
||
''
,
youthPartyMember
:
profile
.
is_youth_party_school
?
'是'
:
'否'
,
studentNo
:
profile
.
student_no
||
''
,
familyContact
:
parentPhone
familyContact
:
parentPhone
,
avatar
:
student
.
data
.
avatar
||
''
};
}
...
...
@@ -95,7 +96,8 @@ async function getMyTeacherInfo(studentId: string, semester: any) {
teacherSubjects
:
subjects
,
teacherClasses
:
classes
,
teacherGender
:
teacher
.
data
?.
gender
||
''
,
politicalStatus
:
teacherProfile
.
data
?.
political_status
||
''
politicalStatus
:
teacherProfile
.
data
?.
political_status
||
''
,
teacherAvatar
:
teacher
.
data
?.
avatar
||
''
};
}
...
...
src/biz/student/myTeacher.ts
View file @
4b5a9c33
...
...
@@ -123,6 +123,7 @@ export async function getMyTeacher(studentId: string) {
teacherInfo
:
{
user_id
:
match
.
data
.
teacher_id
,
user_name
:
teacher
.
data
?
teacher
.
data
.
user_name
:
''
,
avatar
:
teacher
.
data
?
teacher
.
data
.
avatar
:
''
,
gender
:
teacher
.
data
?
teacher
.
data
.
gender
:
''
,
phone
:
teacher
.
data
?
teacher
.
data
.
phone
:
''
,
email
:
teacher
.
data
?
teacher
.
data
.
email
:
''
,
...
...
src/biz/teacher/communication.ts
View file @
4b5a9c33
...
...
@@ -365,6 +365,7 @@ export async function getStudentOptions(teacherId: string, semesterId?: number,
studentOptions
.
push
({
student_id
:
match
.
student_id
,
student_name
:
student_name
,
avatar
:
student
.
data
?.
avatar
||
''
,
class_name
:
className
,
student_no
:
studentProfile
.
data
?
studentProfile
.
data
.
student_no
:
''
,
match_type
:
match
.
match_type
,
// 选择方式(主动选择/抢课分配)
...
...
src/biz/teacher/dashboard.ts
View file @
4b5a9c33
...
...
@@ -66,7 +66,8 @@ async function getTeacherPersonalInfo(teacherId: string) {
teacherSubjects
:
subjects
,
teacherClasses
:
classes
,
teacherGender
:
teacher
.
data
?.
gender
||
''
,
politicalStatus
:
teacherProfile
.
data
?.
political_status
||
''
politicalStatus
:
teacherProfile
.
data
?.
political_status
||
''
,
avatar
:
teacher
.
data
?.
avatar
||
''
};
}
...
...
src/biz/teacher/myStudents.ts
View file @
4b5a9c33
...
...
@@ -196,6 +196,8 @@ export async function getStudentDetail(teacherId: string, studentId: string, sem
return
{
// 学生名称
student_name
:
student
.
data
?
student
.
data
.
user_name
:
''
,
// 头像
avatar
:
student
.
data
?
student
.
data
.
avatar
:
''
,
// 选择方式(主动选择/抢课分配)
match_type
:
match
.
data
.
match_type
,
// 是否青年党校
...
...
src/biz/teacher/teacherInfo.ts
View file @
4b5a9c33
...
...
@@ -46,6 +46,7 @@ export async function teacherInfo(teacherId: string) {
gender
:
uacUser
.
data
.
gender
,
phone
:
uacUser
.
data
.
phone
,
email
:
uacUser
.
data
.
email
,
avatar
:
uacUser
.
data
.
avatar
||
''
,
political_status
:
profile
.
data
?
profile
.
data
.
political_status
:
""
,
is_class_teacher
:
profile
.
data
?
profile
.
data
.
is_class_teacher
:
false
,
max_students
:
profile
.
data
?
profile
.
data
.
max_students
:
0
,
...
...
src/routers/teacher.ts
View file @
4b5a9c33
...
...
@@ -207,7 +207,7 @@ async function addCommunication(req, res) {
const
userInfo
=
req
.
userInfo
;
let
reqConf
=
{
student_ids
:
'[String]'
,
semesterId
:
'Number'
,
subtype_id
:
'Number'
,
date
:
'String'
,
location
:
'String'
,
content
:
'String'
,
attachment
:
'[String]'
};
const
NotMustHaveKeys
=
[
'location'
,
'attachment'
];
const
NotMustHaveKeys
=
[
'location'
,
'attachment'
,
'semesterId'
];
let
{
student_ids
,
semesterId
,
subtype_id
,
date
,
location
,
content
,
attachment
}
=
eccReqParamater
(
reqConf
,
req
.
body
,
NotMustHaveKeys
);
let
commData
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment