mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 03:16:42 +08:00
多讲师展示
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user