From edef6ae8f59823258ce610c9074d32e698958b51 Mon Sep 17 00:00:00 2001 From: ZZJ <10913410+zzj2100@user.noreply.gitee.com> Date: 星期四, 28 七月 2022 15:30:44 +0800 Subject: [PATCH] 本地图片适配 --- src/api/search.ts | 49 ++++++++++++++++++++++++++++++++++--------------- 1 files changed, 34 insertions(+), 15 deletions(-) diff --git a/src/api/search.ts b/src/api/search.ts index 9e685f9..618cf75 100644 --- a/src/api/search.ts +++ b/src/api/search.ts @@ -3,7 +3,7 @@ // 妫�绱㈤〉闈㈡暟鎹垪琛� export const getSearchList = (query: any) => { return request({ - url: "/data/api-v/es/esSearch", + url: "/saas/api-s/es/search", method: "post", data: query }); @@ -21,7 +21,7 @@ // 妫�绱㈤〉闈㈡爣绛炬煡璇� export const getTagList = (query: any) => { return request({ - url: "/data/api-v/es/tagList", + url: "/saas/api-s/es/tagList", method: "post", data: query }); @@ -30,25 +30,27 @@ // 妫�绱㈤〉闈换鍔″垪琛ㄦ煡璇� export const getTaskList = (query: any) => { return request({ - url: "/data/api-v/task/aggregateTaskList", - method: "get", - params: query - }); -}; - -// 瀛楀吀鏌ヨ锛堝竷闃茬瓑绾э級 -export const getAlarmLevel = (query: any) => { - return request({ - url: "/data/api-v/dictionary/findByType", - method: "get", + url: "/saas/api-s/es/aggTaskList", + method: "post", data: query }); }; +// 鑾峰彇鏍囩瀛楀吀 +// param:type + +export const getAlarmLevel = (query: any) => { + return request({ + url: '/saas/api-s/dictionary/findByType', + method: "get", + params: query + }) +} + // export const findPerson = (query: any) => { return request({ - url: "/data/api-v/es/queryEsCompareData", + url: "/saas/api-s/es/queryEsCompareData", method: "post", data: query }); @@ -60,4 +62,21 @@ method: "post", data: query }); -}; \ No newline at end of file +}; + +// 鑾峰彇閰嶇疆 +export const config = () => { + return request({ + url: "/saas/api-s/es/config", + method: "get", + }); +}; + +// 淇濆瓨閰嶇疆 +export const saveEsConfig = (query: any) => { + return request({ + url: " /saas/api-s/es/saveEsConfig", + method: "post", + data: query + }); +}; -- Gitblit v1.8.0