From f257f810be7162753cded8adb93542df0152eab5 Mon Sep 17 00:00:00 2001 From: zhangsir Date: Thu, 11 Jan 2024 16:31:05 +0800 Subject: [PATCH 1/3] =?UTF-8?q?excellent=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/portal/case/Index.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/views/portal/case/Index.vue b/src/views/portal/case/Index.vue index aa50a65e..75d90014 100644 --- a/src/views/portal/case/Index.vue +++ b/src/views/portal/case/Index.vue @@ -1088,13 +1088,13 @@ export default { this.search(true); }, searchexcellent(num) { + this.queryCondition.excellent =false; if(this.queryCondition.type==num){ - this.queryCondition.excellent =false; + this.queryCondition.excellent =''; this.queryCondition.type = ''; this.search(true) return } - this.queryCondition.excellent =false; this.queryCondition.type = num; if(num == 'excellent'){ this.queryCondition.excellent =true; @@ -1246,11 +1246,11 @@ export default { this.queryCondition.years = this.years.map(item => parseInt(item)) // 设置最佳案例为true或是false - if (this.queryCondition.type == 'excellent') { - this.queryCondition.excellent = true; - } else { - this.queryCondition.excellent = false; - } + // if (this.queryCondition.type == 'excellent') { + // this.queryCondition.excellent = true; + // } else { + // this.queryCondition.excellent = false; + // } //this.getTags(); // if (this.queryCondition.pageIndex == 1) { From 050ecb06dd2c018e8758c2ba569c0f1bdeefc9ab Mon Sep 17 00:00:00 2001 From: zhangsir Date: Thu, 11 Jan 2024 16:33:03 +0800 Subject: [PATCH 2/3] =?UTF-8?q?excellent=E4=B8=BAfalse?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/portal/case/Index.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/views/portal/case/Index.vue b/src/views/portal/case/Index.vue index 75d90014..aa50a65e 100644 --- a/src/views/portal/case/Index.vue +++ b/src/views/portal/case/Index.vue @@ -1088,13 +1088,13 @@ export default { this.search(true); }, searchexcellent(num) { - this.queryCondition.excellent =false; if(this.queryCondition.type==num){ - this.queryCondition.excellent =''; + this.queryCondition.excellent =false; this.queryCondition.type = ''; this.search(true) return } + this.queryCondition.excellent =false; this.queryCondition.type = num; if(num == 'excellent'){ this.queryCondition.excellent =true; @@ -1246,11 +1246,11 @@ export default { this.queryCondition.years = this.years.map(item => parseInt(item)) // 设置最佳案例为true或是false - // if (this.queryCondition.type == 'excellent') { - // this.queryCondition.excellent = true; - // } else { - // this.queryCondition.excellent = false; - // } + if (this.queryCondition.type == 'excellent') { + this.queryCondition.excellent = true; + } else { + this.queryCondition.excellent = false; + } //this.getTags(); // if (this.queryCondition.pageIndex == 1) { From 12f4bd8abb39470370ffe6f64269fed4195d46d7 Mon Sep 17 00:00:00 2001 From: zhangsir Date: Thu, 11 Jan 2024 17:34:08 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E5=8F=96=E6=B6=88=E9=80=89=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/PortalHeader.vue | 4 +++- src/views/portal/case/Index.vue | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/PortalHeader.vue b/src/components/PortalHeader.vue index 9213d28a..e4ffec05 100644 --- a/src/components/PortalHeader.vue +++ b/src/components/PortalHeader.vue @@ -146,6 +146,7 @@ import popup from '@/components/AlertPopup.vue'; import yearMedal from '@/components/Popup/China2023.vue'; import apiBoeCourse from '@/api/boe/course.js'; import {userAvatarText} from "@/utils/tools.js"; +import apiCase from "@/api/modules/cases.js"; export default { props: { current: { @@ -167,7 +168,7 @@ export default { keywords:{ type:String, default:'' - } + }, }, components:{popup,yearMedal}, @@ -273,6 +274,7 @@ export default { } }, searchJump() { + this.$emit('type1', '') if(this.current == 'index') { if (this.findType == '1') { if(this.keyword==''){return;} diff --git a/src/views/portal/case/Index.vue b/src/views/portal/case/Index.vue index aa50a65e..af11d3a1 100644 --- a/src/views/portal/case/Index.vue +++ b/src/views/portal/case/Index.vue @@ -1,7 +1,7 @@