diff --git a/src/components/Course/courseForm.vue b/src/components/Course/courseForm.vue index fb473b36..b492898a 100644 --- a/src/components/Course/courseForm.vue +++ b/src/components/Course/courseForm.vue @@ -79,7 +79,7 @@ - + @@ -217,7 +217,7 @@ - + diff --git a/src/views/portal/course/Index.vue b/src/views/portal/course/Index.vue index 2618c4c3..d66574f7 100644 --- a/src/views/portal/course/Index.vue +++ b/src/views/portal/course/Index.vue @@ -58,7 +58,7 @@
- + 全部 {{item.name}} @@ -447,19 +447,21 @@ export default { this.course[i] = ""; if (i === "sysType1") { this.types.sysTypes = ""; + // this.types.oneSubList = []; + // this.types.towSubList = []; } if (i === "sysType2") { this.types.subOne = ""; + this.types.oneSubList = []; } if (i === "sysType3") { this.types.subTow = ""; + this.types.towSubList = []; } if (i === "type") { this.category = ""; this.categorySub = ""; } - - this.searchTags.splice(index, 1); if(i === 'type') { this.category = null; @@ -500,12 +502,21 @@ export default { changeTypeSub(num) { this.types.subTow = "0"; let list = {}; - if (num !== 0) { + + if (num != 0) { apiType.list(1, num).then(res => { if (res.status === 200) { this.types.towSubList = res.result; } }); + } else { + this.types.oneSubList = []; + } + this.searchData(); + }, + changeTypeTow(num) { + if(num == 0) { + this.types.towSubList=[] } this.searchData(); }, @@ -605,7 +616,6 @@ export default { }); this.courseList.push(...res.result.list); - console.log(this.courseList,'this.courseList'); this.moreState = 1; } else { this.moreState = 3;