多讲师展示

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{
font-size: 14px;
color: #6E7B84;
flex: 1;
// flex: 1;
max-width: 100px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;

View File

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