授课教师名称增加工号

This commit is contained in:
zhangsir
2024-11-04 16:26:43 +08:00
parent 633ddbd51c
commit 2576fdd070
2 changed files with 6 additions and 2 deletions

View File

@@ -637,7 +637,9 @@ export default {
} }
this.teacherList = rs.result.teachers; this.teacherList = rs.result.teachers;
this.teacherName = rs.result.teachers; this.teacherName = rs.result.teachers;
this.teacher = rs.result.teachers.map(res => res.teacherName); this.teacher = rs.result.teachers.map(item => {
return `${item.teacherName}(${item.userNo})`
});
this.totalContent = rs.result.contents.length; //计算总内容数 this.totalContent = rs.result.contents.length; //计算总内容数
if (this.courseInfo.tags != "") { if (this.courseInfo.tags != "") {
this.showTags = this.courseInfo.tags.split(","); this.showTags = this.courseInfo.tags.split(",");

View File

@@ -681,7 +681,9 @@ export default {
} }
this.teacherList = rs.result.teachers; this.teacherList = rs.result.teachers;
this.teacherName = rs.result.teachers; this.teacherName = rs.result.teachers;
this.teacher = rs.result.teachers.map(item => item.teacherName); this.teacher = rs.result.teachers.map(item => {
return `${item.teacherName}(${item.userNo})`
});
this.showTags = this.courseInfo.tags.split(","); this.showTags = this.courseInfo.tags.split(",");
if (rs.result.course.resOwner3 == "") { if (rs.result.course.resOwner3 == "") {
this.resOwnerArray = [ this.resOwnerArray = [