From e55aa09409d360fd1cf490b4357c0112fc845f37 Mon Sep 17 00:00:00 2001 From: 670788339 <670788339@qq.com> Date: Tue, 28 Oct 2025 16:42:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Course/courseForm.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/components/Course/courseForm.vue b/src/components/Course/courseForm.vue index a4245a36..8da89517 100644 --- a/src/components/Course/courseForm.vue +++ b/src/components/Course/courseForm.vue @@ -606,9 +606,11 @@ export default { console.log("父组件:",tags) let ids = ""; tags.forEach(tag=>{ + console.log("父组件name : ",tag.tagName) ids += tag.id + ','; }) this.courseInfo.tags = ids; + console.log("父组件ids : ",this.courseInfo.tags) }, showChooseOrg(){ this.$refs.refChooseOrg.dlgShow = true; @@ -1202,12 +1204,17 @@ export default { }, //保存课程信息并进入下一步 saveAndNext(btnType) { + console.log("courseForm 保存课程信息 btnType = " + btnType); //if(this.courseInfo.type) //console.log(this.courseCrowds,'courseCrowds'); //标签,多个,转化为逗号分隔的 + + console.log("courseForm 保存课程信息 this.showTags = " + this.showTags); + console.log("courseForm 保存课程信息 this.courseInfo.tags = " + this.courseInfo.tags); if (this.showTags.length > 0) { this.courseInfo.tags = this.showTags.join(); } + console.log("courseForm 保存课程信息 this.courseInfo.tags = " + this.courseInfo.tags); this.courseInfo.keywords = this.tips.join(',') || '' //检查输入是否合法 //if(!this.requireSaveCourse){