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 @@
-
- - -