From 8acceba06b00eb358c8f71f56855b69f5711be5c Mon Sep 17 00:00:00 2001 From: zhaofang <752743406@qq.com> Date: Fri, 16 Sep 2022 13:53:50 +0800 Subject: [PATCH 1/3] =?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/components/Course/courseForm.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 @@ - + From a0786262b783e7bbde5b57aac234657aa6c52585 Mon Sep 17 00:00:00 2001 From: zhaofang <752743406@qq.com> Date: Fri, 16 Sep 2022 15:54:52 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=B8=85=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/portal/course/Index.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/views/portal/course/Index.vue b/src/views/portal/course/Index.vue index 2618c4c3..660ab96b 100644 --- a/src/views/portal/course/Index.vue +++ b/src/views/portal/course/Index.vue @@ -450,16 +450,16 @@ export default { } 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; @@ -605,7 +605,6 @@ export default { }); this.courseList.push(...res.result.list); - console.log(this.courseList,'this.courseList'); this.moreState = 1; } else { this.moreState = 3; 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 3/3] =?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(); },