瀏覽代碼

获取信息接口修改

zhangyu 5 年之前
父節點
當前提交
ecd00a7df7
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/api/repair.js

+ 3 - 3
src/api/repair.js

@@ -8,8 +8,8 @@ export function getEquipmentLabel(
     code,
     code,
     projectId
     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内容
 //获取资产value内容
 export function getEquipmentValue(
 export function getEquipmentValue(
@@ -39,7 +39,7 @@ export function getwinValue(
         ]
         ]
     }
     }
     console.log(data)
     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 })
 }
 }
 
 
 //通过分精度获取折线图
 //通过分精度获取折线图