mark
2022-10-25 f20a554bdb24e9dfde9dc6a69d78595944f61d15
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
  });
};
};
// 获取配置
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
  });
};