Browse Source

查询模板修改

zhongxiaoyu 2 years ago
parent
commit
69bd8fcc73
1 changed files with 14 additions and 0 deletions
  1. 14 0
      src/api/dataIntegration.ts

+ 14 - 0
src/api/dataIntegration.ts

@@ -22,6 +22,9 @@ export function GeneralDataReception(params) {
 }
 
 export function Query(params) {
+  if (NEW_DATACONTENT_ID.includes(params.id)) {
+    return NewQuery(params)
+  }
   return request({
     url: '/openApi/query',
     method: 'post',
@@ -32,6 +35,17 @@ export function Query(params) {
   })
 }
 
+function NewQuery(params) {
+  return request({
+    url: '/newOpenApi/search',
+    method: 'post',
+    headers: {
+      'content-type': 'application/json',
+    },
+    data: params,
+  })
+}
+
 //服务管理-启动
 export function Start(params) {
   return request({