From 1da73648cde84467f0d6346b89b2e2101ef5ff20 Mon Sep 17 00:00:00 2001 From: zhongshujie <2862698242@qq.com> Date: 星期一, 28 四月 2025 16:21:37 +0800 Subject: [PATCH] 搜索什么 --- src/views/achievements/index.vue | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/views/achievements/index.vue b/src/views/achievements/index.vue index ef5f72a..186b937 100644 --- a/src/views/achievements/index.vue +++ b/src/views/achievements/index.vue @@ -325,7 +325,6 @@ { value: "all", label: "鍏ㄩ儴" }, { value: "Name", label: "鏍囬" }, { value: "author", label: "浣滆��" }, - // { value: "year", label: "骞翠唤" }, { value: "keyWords", label: "鍏抽敭璇�" }, { value: "abstract", label: "鎽樿" }, { value: "source", label: "鏉ユ簮" }, @@ -659,7 +658,6 @@ //鑾峰彇涓嬫媺閫夋嫨妗嗙殑鍐呭 async getSelectData() { - this.loading = true; try { // 鍚屾椂鍙戣捣涓や釜寮傛璇锋眰锛屽苟绛夊緟瀹冧滑鐨勭粨鏋� const [subjectListResult, resourceListResult] = await Promise.all([ @@ -708,12 +706,15 @@ // 鎼滅储 handleSearch(isText) { this.associationList = []; + console.log(isText, "isText"); + if (isText.text != "") { this.inputValue = isText.text; this.inputType = isText.type; this.associationList.push({ type: isText.label, content: isText.text, + value: isText.type, }); this.getItemList(); } @@ -721,6 +722,7 @@ // 璇锋眰鏁版嵁 getItemList() { + this.loading = true; let searchData = {}; // 鍒濆鍖栦竴涓┖瀵硅薄鏉ュ瓨鍌ㄦ悳绱㈡暟鎹� if (this.inputValue) { // 濡傛灉杈撳叆鍊煎瓨鍦� @@ -757,7 +759,7 @@ searchData[item.value + ">="] = startDate; searchData[item.value + "<="] = endDate; } else { - searchData[item.value + "*"] = item.content; + searchData["||" +item.value + "*"] = item.content; } }); } -- Gitblit v1.9.1