From f20a554bdb24e9dfde9dc6a69d78595944f61d15 Mon Sep 17 00:00:00 2001 From: mark <mark18340872469@163.com> Date: 星期二, 25 十月 2022 14:53:57 +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