From 822cfc39455f3cb3a2bd37d787643e9e4995e123 Mon Sep 17 00:00:00 2001 From: zhonghua Date: Tue, 3 Mar 2026 17:38:29 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=A1=A8=E6=A0=BC):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=20a-table=20=E7=A7=BB=E5=8A=A8=E7=AB=AF=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E4=B8=8E=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 统一启用横向滚动和 minWidth 列宽,固定操作列到右侧,并为表头添加 white-space: nowrap 及排课页面移动端布局优化。 Made-with: Cursor --- reading-platform-frontend/index.html | 7 +- reading-platform-frontend/src/App.vue | 4 + .../views/admin/courses/CourseDetailView.vue | 110 ++++------ .../views/admin/courses/CourseListView.vue | 102 +++------ .../views/admin/courses/CourseReviewView.vue | 78 ++----- .../views/admin/courses/CourseStatsView.vue | 146 ++++-------- .../courses/components/Step3ScheduleRef.vue | 46 +--- .../admin/packages/PackageDetailView.vue | 14 +- .../views/admin/packages/PackageEditView.vue | 55 ++--- .../views/admin/packages/PackageListView.vue | 71 ++---- .../admin/resources/ResourceListView.vue | 149 +++++-------- .../views/admin/tenants/TenantListView.vue | 188 +++++----------- .../src/views/admin/themes/ThemeListView.vue | 35 ++- .../src/views/school/PackageView.vue | 116 ++++------ .../views/school/courses/CourseDetailView.vue | 172 ++++++++------- .../views/school/parents/ParentListView.vue | 207 +++++++----------- .../views/school/schedule/ScheduleView.vue | 198 ++++++----------- .../views/school/schedule/TimetableView.vue | 141 +++++------- .../school-courses/SchoolCourseListView.vue | 29 ++- .../school/settings/OperationLogView.vue | 68 +++--- .../src/views/school/tasks/TaskListView.vue | 88 ++------ .../teacher/classes/ClassStudentsView.vue | 52 ++--- .../school-courses/SchoolCourseDetailView.vue | 7 +- .../school-courses/SchoolCourseListView.vue | 38 ++-- 24 files changed, 758 insertions(+), 1363 deletions(-) diff --git a/reading-platform-frontend/index.html b/reading-platform-frontend/index.html index 2ab6f25..69e0117 100644 --- a/reading-platform-frontend/index.html +++ b/reading-platform-frontend/index.html @@ -3,7 +3,12 @@ - + + + 幼儿阅读教学服务平台 diff --git a/reading-platform-frontend/src/App.vue b/reading-platform-frontend/src/App.vue index ef443cc..f31db6e 100644 --- a/reading-platform-frontend/src/App.vue +++ b/reading-platform-frontend/src/App.vue @@ -24,6 +24,10 @@ body { padding-right: env(safe-area-inset-right); } +#app .ant-layout-header { + background-color: #ffffff !important; +} + #app { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', diff --git a/reading-platform-frontend/src/views/admin/courses/CourseDetailView.vue b/reading-platform-frontend/src/views/admin/courses/CourseDetailView.vue index 7f23d1d..1509e2c 100644 --- a/reading-platform-frontend/src/views/admin/courses/CourseDetailView.vue +++ b/reading-platform-frontend/src/views/admin/courses/CourseDetailView.vue @@ -20,11 +20,8 @@ 数据 - + 删除 @@ -223,12 +220,8 @@
-
+
{{ translateLessonType(lesson.lessonType) }} @@ -254,29 +247,20 @@
核心资源
-
+
{{ lesson.videoName || '绘本动画' }}
-
+
{{ lesson.pptName || '教学课件' }}
-
+
{{ lesson.pdfName || '电子绘本' }} @@ -333,12 +317,8 @@ 视频资源
-
+
{{ item.name }} @@ -352,12 +332,8 @@ 音频资源
-
+
{{ item.name }} @@ -371,12 +347,8 @@ 文档资源
-
+
@@ -392,14 +364,8 @@ 图片资源
- +
@@ -414,11 +380,7 @@ - +
@@ -541,9 +503,9 @@ const domainTags = computed(() => { // 是否有课程介绍内容 const hasIntroContent = computed(() => { return course.value.introSummary || course.value.introHighlights || - course.value.introGoals || course.value.introSchedule || - course.value.introKeyPoints || course.value.introMethods || - course.value.introEvaluation || course.value.introNotes; + course.value.introGoals || course.value.introSchedule || + course.value.introKeyPoints || course.value.introMethods || + course.value.introEvaluation || course.value.introNotes; }); // 排课参考数据 @@ -582,7 +544,7 @@ const allVideos = computed(() => { paths.forEach((item: any) => { videos.push({ path: item.path, name: item.name || '视频', source: '资源库' }); }); - } catch {} + } catch { } } return videos; }); @@ -596,7 +558,7 @@ const allAudios = computed(() => { paths.forEach((item: any) => { audios.push({ path: item.path, name: item.name || '音频', source: '资源库' }); }); - } catch {} + } catch { } } return audios; }); @@ -623,7 +585,7 @@ const allDocuments = computed(() => { paths.forEach((item: any) => { docs.push({ path: item.path, name: item.name || '电子绘本', type: 'pdf', source: '资源库' }); }); - } catch {} + } catch { } } return docs; }); @@ -637,16 +599,16 @@ const allImages = computed(() => { paths.forEach((item: any) => { images.push({ path: item.path, name: item.name || '挂图' }); }); - } catch {} + } catch { } } return images; }); const hasAnyResources = computed(() => { return allVideos.value.length > 0 || - allAudios.value.length > 0 || - allDocuments.value.length > 0 || - allImages.value.length > 0; + allAudios.value.length > 0 || + allDocuments.value.length > 0 || + allImages.value.length > 0; }); const totalResourcesCount = computed(() => { @@ -1119,9 +1081,17 @@ const fetchCourseDetail = async () => { font-size: 18px; margin-right: 8px; - &.video { color: #722ed1; } - &.ppt { color: #fa8c16; } - &.pdf { color: #f5222d; } + &.video { + color: #722ed1; + } + + &.ppt { + color: #fa8c16; + } + + &.pdf { + color: #f5222d; + } } .resource-name { diff --git a/reading-platform-frontend/src/views/admin/courses/CourseListView.vue b/reading-platform-frontend/src/views/admin/courses/CourseListView.vue index 758c280..51e90c6 100644 --- a/reading-platform-frontend/src/views/admin/courses/CourseListView.vue +++ b/reading-platform-frontend/src/views/admin/courses/CourseListView.vue @@ -4,25 +4,15 @@ - + 小班 中班 大班 - + 草稿 审核中 已驳回 @@ -30,13 +20,8 @@ 已下架 - + @@ -53,25 +38,15 @@
- +