From 790fdd590db71c3a13f9743f14d483e7995ae427 Mon Sep 17 00:00:00 2001 From: zhaofang <752743406@qq.com> Date: Fri, 16 Sep 2022 16:12:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/portal/course/Index.vue | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) 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(); },