From cdde6ae90b01e8aff9c58f0cae807dbc6aed09ea Mon Sep 17 00:00:00 2001 From: JenniferW <1627055433@qq.com> Date: Tue, 25 Nov 2025 14:09:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/order/index.js | 36 +- src/views/order/intention/search.vue | 3050 +++++++++++--------------- 2 files changed, 1265 insertions(+), 1821 deletions(-) diff --git a/src/api/order/index.js b/src/api/order/index.js index 3845de8..5313aad 100644 --- a/src/api/order/index.js +++ b/src/api/order/index.js @@ -1,5 +1,23 @@ import request from '@/utils/request' +// 智能搜索接口 - 根据输入内容获取对应的key和value +export function searchHint(query) { + return request({ + url: '/products/search/smart', + method: 'get', + params: query + }) +} + +// 查询 - 在所有字段中搜索相似内容,可模糊可精确 +export function search(data) { + return request({ + url: '/products/search/fuzzy', + method: 'post', + data: data + }) +} + // 查询 - 关键差异信息推荐 export function differenceWords(data) { return request({ @@ -9,24 +27,6 @@ export function differenceWords(data) { }) } -// 查询 - 在所有字段中搜索相似内容,可模糊可精确 -export function logout(data) { - return request({ - url: '/products/search/fuzzy', - method: 'post', - data: data - }) -} - - -// 智能搜索接口 - 根据输入内容获取对应的key和value -export function getInfo(query) { - return request({ - url: '/products/search/smart', - method: 'get', - params: query - }) -} // 参数对比 export function compare(query) { diff --git a/src/views/order/intention/search.vue b/src/views/order/intention/search.vue index 936976a..eb8de75 100644 --- a/src/views/order/intention/search.vue +++ b/src/views/order/intention/search.vue @@ -3,201 +3,193 @@
-
- - -