diff --git a/src/views/portal/course/Index.vue b/src/views/portal/course/Index.vue index 660ab96b..d66574f7 100644 --- a/src/views/portal/course/Index.vue +++ b/src/views/portal/course/Index.vue @@ -58,7 +58,7 @@
- + 全部 {{item.name}} @@ -447,6 +447,8 @@ export default { this.course[i] = ""; if (i === "sysType1") { this.types.sysTypes = ""; + // this.types.oneSubList = []; + // this.types.towSubList = []; } if (i === "sysType2") { this.types.subOne = ""; @@ -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(); },