From 426ed75bc31c3543dfd33b187c01bcd010d4db5e Mon Sep 17 00:00:00 2001 From: 670788339 <670788339@qq.com> Date: Wed, 12 Nov 2025 10:51:14 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E7=B2=BE=E5=93=81=E8=AF=BE=E5=85=A8?= =?UTF-8?q?=E9=83=A8=E5=88=87=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/portal/course/Index.vue | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/views/portal/course/Index.vue b/src/views/portal/course/Index.vue index 1489c783..de9019bf 100644 --- a/src/views/portal/course/Index.vue +++ b/src/views/portal/course/Index.vue @@ -459,9 +459,9 @@ export default { // } // 添加计算是否所有热点标签都未选中(即"全部"选中状态) - isAllHotTagsSelected() { - return !this.hotTagsList.some(tag => tag.checked); - } + // isAllHotTagsSelected() { + // return !this.hotTagsList.some(tag => tag.checked); + // } }, data() { return { @@ -527,7 +527,8 @@ export default { searchRecords: [], hotList: [], totalPages: 1, - localSessionKey: this.$xpage.constants.localCourseFiltersKey + localSessionKey: this.$xpage.constants.localCourseFiltersKey, + isAllHotTagsSelected: true, }; }, // 受众需要每次刷新 @@ -773,6 +774,7 @@ export default { this.hotTagsList.forEach(tag => { tag.checked = false; }); + this.isAllHotTagsSelected = true; // 清空course.tags this.course.tags = ''; @@ -988,13 +990,15 @@ export default { }, //点击标签 handleTagClick(item, list,type) { + this.isAllHotTagsSelected = false; + item.checked = !item.checked; // 更新course.tags const checkedTags = this.hotTagsList.filter(tag => tag.checked); let tagIds = checkedTags.map(tag => tag.id).join(','); this.course.tags = tagIds; - + this.$forceUpdate(); // 强制触发stagList重新计算 this.$nextTick(() => { this.searchData(type); From a94d101853bca755811311ba60cb9486dd165b54 Mon Sep 17 00:00:00 2001 From: 670788339 <670788339@qq.com> Date: Wed, 12 Nov 2025 10:55:35 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E8=BF=98=E5=8E=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/portal/course/Index.vue | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/views/portal/course/Index.vue b/src/views/portal/course/Index.vue index de9019bf..8ff9ae79 100644 --- a/src/views/portal/course/Index.vue +++ b/src/views/portal/course/Index.vue @@ -459,9 +459,9 @@ export default { // } // 添加计算是否所有热点标签都未选中(即"全部"选中状态) - // isAllHotTagsSelected() { - // return !this.hotTagsList.some(tag => tag.checked); - // } + isAllHotTagsSelected() { + return !this.hotTagsList.some(tag => tag.checked); + } }, data() { return { @@ -528,7 +528,7 @@ export default { hotList: [], totalPages: 1, localSessionKey: this.$xpage.constants.localCourseFiltersKey, - isAllHotTagsSelected: true, + // isAllHotTagsSelected: true, }; }, // 受众需要每次刷新 @@ -774,7 +774,6 @@ export default { this.hotTagsList.forEach(tag => { tag.checked = false; }); - this.isAllHotTagsSelected = true; // 清空course.tags this.course.tags = ''; @@ -990,7 +989,6 @@ export default { }, //点击标签 handleTagClick(item, list,type) { - this.isAllHotTagsSelected = false; item.checked = !item.checked; @@ -998,7 +996,7 @@ export default { const checkedTags = this.hotTagsList.filter(tag => tag.checked); let tagIds = checkedTags.map(tag => tag.id).join(','); this.course.tags = tagIds; - this.$forceUpdate(); + // 强制触发stagList重新计算 this.$nextTick(() => { this.searchData(type); From dc57becb0d18b32b961f25f7abe3fd3899c8e167 Mon Sep 17 00:00:00 2001 From: 670788339 <670788339@qq.com> Date: Wed, 12 Nov 2025 11:20:11 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E7=B2=BE=E5=93=81=E8=AF=BE=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E5=85=A8=E9=83=A8=E6=9C=AA=E6=98=BE=E7=A4=BA=E9=80=89?= =?UTF-8?q?=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/portal/course/qualityCourse.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/portal/course/qualityCourse.vue b/src/views/portal/course/qualityCourse.vue index a6153e3c..e2f1e6f8 100644 --- a/src/views/portal/course/qualityCourse.vue +++ b/src/views/portal/course/qualityCourse.vue @@ -513,7 +513,7 @@ export default { totalPages: 1, localSessionKey: this.$xpage.constants.localCourseFiltersKey, hotTagsList: [], - isAllHotTagsSelected: true, + // isAllHotTagsSelected: true, }; }, // 受众需要每次刷新 @@ -728,7 +728,7 @@ export default { }, handleTagClick(item, list,type) { console.info('切换标签 item = ' + item) - this.isAllHotTagsSelected = false; + // this.isAllHotTagsSelected = false; item.checked = !item.checked; @@ -736,7 +736,7 @@ export default { const checkedTags = this.hotTagsList.filter(tag => tag.checked); let tagIds = checkedTags.map(tag => tag.id).join(','); this.course.tags = tagIds; - this.$forceUpdate(); + // this.$forceUpdate(); this.searchData(type); // 强制触发stagList重新计算 From 720cff1d1eb1b9253efb2f5a8fd3039899593b8a Mon Sep 17 00:00:00 2001 From: 670788339 <670788339@qq.com> Date: Wed, 12 Nov 2025 14:54:24 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E6=8F=90=E7=A4=BA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Course/courseForm.vue | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/src/components/Course/courseForm.vue b/src/components/Course/courseForm.vue index 55c56764..eb7c6fac 100644 --- a/src/components/Course/courseForm.vue +++ b/src/components/Course/courseForm.vue @@ -75,7 +75,7 @@ -
+ @@ -1004,26 +1004,7 @@ export default { const currentElement = this.guidanceElements[this.currentStep - 1]; if (currentElement) { - const rect = currentElement.getBoundingClientRect(); - this.highlightStyle = { - top: `${rect.top}px`, - left: `${rect.left}px`, - width: `${rect.width}px`, - height: `${rect.height}px`, - }; - - // 滚动到可见区域 currentElement.scrollIntoView({ behavior: 'smooth', block: 'center' }); - // // 特殊处理录播课标签位置,避免被遮挡 - if (this.courseInfo.type === 20 && this.currentStep === 1) { - console.info('-- 特殊处理录播课标签位置 -- ') - this.highlightStyle = { - top: `252.513px`, - left: `${rect.left}px`, - width: `${rect.width}px`, - height: `${rect.height}px`, - }; - } } }, // 下一步 @@ -2002,7 +1983,9 @@ export default { max-width: 500px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); z-index: 10000; - top: 0%; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); } .guidance-title {