This commit is contained in:
670788339
2025-10-28 16:42:07 +08:00
parent 5a3b57bd1c
commit e55aa09409

View File

@@ -606,9 +606,11 @@ export default {
console.log("父组件:",tags) console.log("父组件:",tags)
let ids = ""; let ids = "";
tags.forEach(tag=>{ tags.forEach(tag=>{
console.log("父组件name : ",tag.tagName)
ids += tag.id + ','; ids += tag.id + ',';
}) })
this.courseInfo.tags = ids; this.courseInfo.tags = ids;
console.log("父组件ids : ",this.courseInfo.tags)
}, },
showChooseOrg(){ showChooseOrg(){
this.$refs.refChooseOrg.dlgShow = true; this.$refs.refChooseOrg.dlgShow = true;
@@ -1202,12 +1204,17 @@ export default {
}, },
//保存课程信息并进入下一步 //保存课程信息并进入下一步
saveAndNext(btnType) { saveAndNext(btnType) {
console.log("courseForm 保存课程信息 btnType = " + btnType);
//if(this.courseInfo.type) //if(this.courseInfo.type)
//console.log(this.courseCrowds,'courseCrowds'); //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) { if (this.showTags.length > 0) {
this.courseInfo.tags = this.showTags.join(); this.courseInfo.tags = this.showTags.join();
} }
console.log("courseForm 保存课程信息 this.courseInfo.tags = " + this.courseInfo.tags);
this.courseInfo.keywords = this.tips.join(',') || '' this.courseInfo.keywords = this.tips.join(',') || ''
//检查输入是否合法 //检查输入是否合法
//if(!this.requireSaveCourse){ //if(!this.requireSaveCourse){