多讲师展示

This commit is contained in:
zhangsir
2024-02-06 09:40:56 +08:00
parent f18eb288ff
commit d273f70a5d
2 changed files with 9 additions and 8 deletions

View File

@@ -272,7 +272,8 @@ body {margin: 0px;padding: 0px;}
.course-info-user{ .course-info-user{
font-size: 14px; font-size: 14px;
color: #6E7B84; color: #6E7B84;
flex: 1; // flex: 1;
max-width: 100px;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;

View File

@@ -378,9 +378,9 @@
</div> </div>
<div class="course-info"> <div class="course-info">
<div class="course-info-user" v-if="cinfo.teacher"> <div class="course-info-user" style="max-width: 100px;" v-if="cinfo.teacher">
<el-tooltip :content="cinfo.teacher" placement="bottom" effect="light"> <el-tooltip :content="cinfo.teacher" placement="bottom" effect="light">
<span>{{ cinfo.teacher }}</span> <span class="course-info-author">{{ cinfo.teacher }}</span>
</el-tooltip> </el-tooltip>
</div> </div>
<div class="course-info-user"> <div class="course-info-user">
@@ -1393,10 +1393,10 @@ export default {
} }
//教师转化 //教师转化
if (item.teacher) { if (item.teacher) {
let dotIdx = item.teacher.indexOf(','); item.teacher = item.teacher.split(',').filter(itemValue => itemValue !== 'BOE教师').join(',');
if (dotIdx > 0) { // if (dotIdx > 0) {
item.teacher = item.teacher.substring(0, dotIdx); // item.teacher = item.teacher.substring(0, dotIdx);
} // }
} }
if (item.teacher && item.teacher == 'BOE教师') { if (item.teacher && item.teacher == 'BOE教师') {
item.teacher = ''; item.teacher = '';
@@ -1412,7 +1412,7 @@ export default {
item.name = item.name; item.name = item.name;
} }
}); });
console.log(res.result.list,'data')
this.courseList = res?.result?.list ?? [] this.courseList = res?.result?.list ?? []
console.log(this.courseList); console.log(this.courseList);
if (this.newData) { if (this.newData) {