From d273f70a5d48cfa5a74ac6bbbe155c6b6546e2b1 Mon Sep 17 00:00:00 2001 From: zhangsir Date: Tue, 6 Feb 2024 09:40:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E8=AE=B2=E5=B8=88=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/styles/portal.scss | 3 ++- src/views/portal/course/Index.vue | 14 +++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/assets/styles/portal.scss b/src/assets/styles/portal.scss index 3b5344a2..98df7892 100644 --- a/src/assets/styles/portal.scss +++ b/src/assets/styles/portal.scss @@ -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; diff --git a/src/views/portal/course/Index.vue b/src/views/portal/course/Index.vue index a9fe4922..6857a078 100644 --- a/src/views/portal/course/Index.vue +++ b/src/views/portal/course/Index.vue @@ -378,9 +378,9 @@
-
+
- {{ cinfo.teacher }} + {{ cinfo.teacher }}
@@ -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) {