diff --git a/src/components/Course/courseForm.vue b/src/components/Course/courseForm.vue index eb7c6fac..4dcda9ca 100644 --- a/src/components/Course/courseForm.vue +++ b/src/components/Course/courseForm.vue @@ -45,24 +45,24 @@
-
新功能引导
+
-
1
+
用标签为课程精准定位,吸引更多学员!可从以下维度构思:
-
✨ 讲领域(如:品质管理)
-
✨ 教技能(如:沟通技巧)
-
✨ 涉内容(如:5W1H分析法)
+
✨ 讲领域(如:品质管理)
+
✨ 教技能(如:沟通技巧)
+
✨ 涉内容(如: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() { @@ -2012,9 +2021,9 @@ export default { } .step-number { - width: 24px; + //width: 24px; height: 24px; - background: #409EFF; + //background: #409EFF; color: white; border-radius: 50%; display: flex; @@ -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%; +} + + diff --git a/src/components/Course/courseTag.vue b/src/components/Course/courseTag.vue index 196fe865..b494f4a2 100644 --- a/src/components/Course/courseTag.vue +++ b/src/components/Course/courseTag.vue @@ -217,7 +217,9 @@ export default { this.$emit('change', this.displayTags); this.clearInput(); - this.$refs.tagSelect.visible = false; + this.$nextTick(() => { + this.$refs.tagSelect.visible = false; + }); }, clearInput() { diff --git a/src/views/portal/course/Index.vue b/src/views/portal/course/Index.vue index de721c35..ef7d582b 100644 --- a/src/views/portal/course/Index.vue +++ b/src/views/portal/course/Index.vue @@ -71,25 +71,21 @@