From 40ac85f1fefcf99e973efdc27cf5013905eea2a1 Mon Sep 17 00:00:00 2001 From: 670788339 <670788339@qq.com> Date: Thu, 13 Nov 2025 18:43:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E7=BA=BF=E6=A0=87=E7=AD=BE=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E6=94=B9=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Course/courseForm.vue | 101 +++++++++++++++++---------- 1 file changed, 66 insertions(+), 35 deletions(-) diff --git a/src/components/Course/courseForm.vue b/src/components/Course/courseForm.vue index eb7c6fac..9816fd50 100644 --- a/src/components/Course/courseForm.vue +++ b/src/components/Course/courseForm.vue @@ -56,13 +56,13 @@
✨ 涉内容(如:5W1H分析法)
- + - + @@ -114,11 +114,14 @@ - + + @focus="onTagFocus" style="width: 95%;"> + + + @@ -303,11 +306,14 @@ --> - + + @focus="onTagFocus" > + + + @@ -647,6 +653,9 @@ export default { this.loadUserGroup(); }, methods: { + handleTagHelp(){ + this.checkAndShowGuidance(); + }, // 关键字的更改 changeKeywords(option){ if(option.target.value){ @@ -955,26 +964,26 @@ export default { this.curCourseId = this.courseInfo.id console.log('保存课程成功',this.curCourseId) console.log('isTip ',this.courseInfo.isTip) - if(this.courseInfo.isTip){ - // 检查是否为首次创建,显示引导 - this.checkAndShowGuidance(); - } + // if(this.courseInfo.isTip){ + // // 检查是否为首次创建,显示引导 + // this.checkAndShowGuidance(); + // } if (this.courseChooseId == 1) { this.weike.dlgShow = true; } else { this.biaoke.dlgShow = true; } - this.$nextTick(() => { - this.initTagComponent(); - // 如果显示引导,初始化高亮元素 - if (this.showGuidance) { - this.$nextTick(() => { - this.initGuidanceElements(); - this.highlightCurrentStep(); - }); - } - }); + // this.$nextTick(() => { + // this.initTagComponent(); + // // 如果显示引导,初始化高亮元素 + // if (this.showGuidance) { + // this.$nextTick(() => { + // this.initGuidanceElements(); + // this.highlightCurrentStep(); + // }); + // } + // }); } else { this.$message.error(rs.message); } @@ -983,15 +992,15 @@ export default { // 检查并显示引导 checkAndShowGuidance() { // 检查本地存储,判断是否为首次创建 - const hasShownGuidance = localStorage.getItem('course_creation_guidance_shown'); - if (!hasShownGuidance) { - this.showGuidance = true; - this.currentStep = 1; - this.isFirstCreate = true; - // 标记引导已显示 - localStorage.setItem('course_creation_guidance_shown', 'true'); - apiCourse.saveTip(); - } + // const hasShownGuidance = localStorage.getItem('course_creation_guidance_shown'); + // if (!hasShownGuidance) { + this.showGuidance = true; + this.currentStep = 1; + this.isFirstCreate = true; + // 标记引导已显示 + localStorage.setItem('course_creation_guidance_shown', 'true'); + // apiCourse.saveTip(); + // } }, // 初始化引导元素 initGuidanceElements() { @@ -2060,4 +2069,26 @@ export default { position: relative; z-index: 10001; } +//.el-form-item__content { +// display: flex; +// width: 80%; +// .tag-container { +// width: 95%; +// } +//} +.tag-from-item .el-form-item__content { + margin-left: 0 !important; + display: flex; + //align-items: center; + .tag-container { + width: 95%; + } +} +.guidance-highlight .el-form-item__content { + margin-left: 0 !important; + display: flex; + width: 75%; +} + +