Prechádzať zdrojové kódy

获取信息接口修改

zhangyu 5 rokov pred
rodič
commit
ecd00a7df7
1 zmenil súbory, kde vykonal 3 pridanie a 3 odobranie
  1. 3 3
      src/api/repair.js

+ 3 - 3
src/api/repair.js

@@ -8,8 +8,8 @@ export function getEquipmentLabel(
     code,
     projectId
 ) {
-    return fetch({ method: 'GET', url: `${physics}/data-platform-3/infocode/query_property?projectId=${projectId}&type=${code}&enrich=true` })
-        // return fetch({ method: 'GET', url: `${physics}/data-platform-3/infocode/query_property?type=${code}` })
+    // return fetch({ method: 'GET', url: `${physics}/data-platform-3/infocode/query_property?projectId=${projectId}&type=${code}&enrich=true` })
+    return fetch({ method: 'GET', url: `${physics}/data-platform-3/infocode/complex_query?projectId=${projectId}&type=${code}&combine=true&enrich=true` })
 }
 //获取资产value内容
 export function getEquipmentValue(
@@ -39,7 +39,7 @@ export function getwinValue(
         ]
     }
     console.log(data)
-    return fetch({ method: 'POST', url: `${physics}/data-platform-3/infocode/complex_query?projectId=${projectId}&secret=${secret}`, data })
+    return fetch({ method: 'POST', url: `${physics}/data-platform-3/object/batch_query?projectId=${projectId}&secret=${secret}`, data })
 }
 
 //通过分精度获取折线图