|
@@ -4,7 +4,7 @@ import http from './httpUtil'
|
|
let arithmetic = '/arithmetic'
|
|
let arithmetic = '/arithmetic'
|
|
|
|
|
|
var Comming = 'revit'
|
|
var Comming = 'revit'
|
|
-//获取打印标签模板test
|
|
|
|
|
|
+ //获取打印标签模板test
|
|
export function getTest() {
|
|
export function getTest() {
|
|
return fetch({ method: 'GET', url: `${api}/service/template/note_template` })
|
|
return fetch({ method: 'GET', url: `${api}/service/template/note_template` })
|
|
}
|
|
}
|
|
@@ -393,11 +393,11 @@ export function setHeader(param) {
|
|
//获取头部接口
|
|
//获取头部接口
|
|
export function getHeader(param) {
|
|
export function getHeader(param) {
|
|
let data = {
|
|
let data = {
|
|
- "AppType": Comming,
|
|
|
|
- "Code": param.code,
|
|
|
|
- "ProjId": param.perjectId
|
|
|
|
- }
|
|
|
|
- // return fetch({ method: 'POST', url: `${api}/service/dict/equipment_family_info_header`, data })
|
|
|
|
|
|
+ "AppType": Comming,
|
|
|
|
+ "Code": param.code,
|
|
|
|
+ "ProjId": param.perjectId
|
|
|
|
+ }
|
|
|
|
+ // return fetch({ method: 'POST', url: `${api}/service/dict/equipment_family_info_header`, data })
|
|
return fetch({ method: 'POST', url: `${api}/service/dict/infocode_query_header`, data })
|
|
return fetch({ method: 'POST', url: `${api}/service/dict/infocode_query_header`, data })
|
|
}
|
|
}
|
|
|
|
|
|
@@ -446,7 +446,7 @@ export function getSpaceFloor(param) {
|
|
export function createBusiness(param) {
|
|
export function createBusiness(param) {
|
|
let data = param.data
|
|
let data = param.data
|
|
return fetch({ method: "POST", url: `${physics}/space/create?projectId=${param.ProjId}&secret=${param.secret}`, data })
|
|
return fetch({ method: "POST", url: `${physics}/space/create?projectId=${param.ProjId}&secret=${param.secret}`, data })
|
|
- // return fetch({ method: "POST", url: `/test/space/create?projectId=${param.ProjId}&secret=${param.secret}`, data })
|
|
|
|
|
|
+ // return fetch({ method: "POST", url: `/test/space/create?projectId=${param.ProjId}&secret=${param.secret}`, data })
|
|
}
|
|
}
|
|
|
|
|
|
//批量创建业务空间
|
|
//批量创建业务空间
|
|
@@ -496,7 +496,7 @@ export function getGraphyId(param) {
|
|
export function getBussines(param) {
|
|
export function getBussines(param) {
|
|
let data = param.data
|
|
let data = param.data
|
|
return fetch({ method: "POST", url: `${physics}/object/outside_query?projectId=${param.ProjId}&secret=${param.secret}`, data })
|
|
return fetch({ method: "POST", url: `${physics}/object/outside_query?projectId=${param.ProjId}&secret=${param.secret}`, data })
|
|
- // return fetch({ method: "POST", url: `/test/object/outside_query?projectId=${param.ProjId}&secret=${param.secret}`, data })
|
|
|
|
|
|
+ // return fetch({ method: "POST", url: `/test/object/outside_query?projectId=${param.ProjId}&secret=${param.secret}`, data })
|
|
}
|
|
}
|
|
|
|
|
|
//替代前一个接口
|
|
//替代前一个接口
|
|
@@ -929,7 +929,7 @@ export function equipLinkSys(param, success) {
|
|
export function sysLinkEquip(param, success) {
|
|
export function sysLinkEquip(param, success) {
|
|
let url = `${baseUrl}/datacenter/sy-in-eq/link-sy-eq`;
|
|
let url = `${baseUrl}/datacenter/sy-in-eq/link-sy-eq`;
|
|
http.postJson(url, param, success)
|
|
http.postJson(url, param, success)
|
|
-}
|
|
|
|
|
|
+}
|
|
|
|
|
|
//设备清单 - 根据对象删除系统和设备的关系
|
|
//设备清单 - 根据对象删除系统和设备的关系
|
|
export function sysUnlinkEquip(param, success) {
|
|
export function sysUnlinkEquip(param, success) {
|
|
@@ -994,7 +994,7 @@ export function queryPartsDie(param, success) {
|
|
}
|
|
}
|
|
|
|
|
|
//查询项目下设备或部件的类别、以及名称
|
|
//查询项目下设备或部件的类别、以及名称
|
|
-export function TypePartsDie( success) {
|
|
|
|
|
|
+export function TypePartsDie(success) {
|
|
let url = `${baseUrl}/equip-component/equip-query/equip-compon-category`;
|
|
let url = `${baseUrl}/equip-component/equip-query/equip-compon-category`;
|
|
http.getJson(url, {}, success)
|
|
http.getJson(url, {}, success)
|
|
}
|
|
}
|
|
@@ -1072,7 +1072,7 @@ export function queryPhysicsAllType(param, success) {
|
|
}
|
|
}
|
|
|
|
|
|
//查询所有设备族信息
|
|
//查询所有设备族信息
|
|
-export function queryFamilyAll( success) {
|
|
|
|
|
|
+export function queryFamilyAll(success) {
|
|
let url = `${baseUrl}/datacenter/data-dictionary/family-query-All`;
|
|
let url = `${baseUrl}/datacenter/data-dictionary/family-query-All`;
|
|
http.getJson(url, {}, success)
|
|
http.getJson(url, {}, success)
|
|
}
|
|
}
|
|
@@ -1414,4 +1414,61 @@ export function createRelateInZoneAndISp(param, success) {
|
|
export function groupCreRelaZoneAndISp(param, success) {
|
|
export function groupCreRelaZoneAndISp(param, success) {
|
|
let url = `${baseUrl}/datacenter/si-in-sp-base/link-list?type=${param.type}`;
|
|
let url = `${baseUrl}/datacenter/si-in-sp-base/link-list?type=${param.type}`;
|
|
http.postJson(url, param.data, success)
|
|
http.postJson(url, param.data, success)
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+/**系统集成成果管理 */
|
|
|
|
+//系统集成统计条形图
|
|
|
|
+export function getIntegrateStatisticsToBar(param, success) {
|
|
|
|
+ let url = `/pointconfig/report/point-statis `
|
|
|
|
+ http.postJson(url, param, success)
|
|
|
|
+}
|
|
|
|
+//系统集成统计环形图
|
|
|
|
+export function getIntegrateStatisticsToLoop(param, success) {
|
|
|
|
+ let url = `/pointconfig/report/meterfunc-statis`
|
|
|
|
+ http.postJson(url, param, success)
|
|
|
|
+}
|
|
|
|
+//表号功能号总览
|
|
|
|
+export function getTabFunNumOverview(param, success) {
|
|
|
|
+ let url = `/pointconfig/report/meterfunc-overview`
|
|
|
|
+ http.postJson(url, param, success)
|
|
|
|
+}
|
|
|
|
+//表号功能号对应历史数据
|
|
|
|
+export function getHistoryData(query, param, success) {
|
|
|
|
+ let url = `/data-platform-3/hisdata/batch_query_period_data_by_metfun`
|
|
|
|
+ url += `?projectId=${query.projectId}&secret=${query.secret}`
|
|
|
|
+ fetch({ url: url, method: 'post', data: param, headers: { 'ProjectId': query.projectId, 'Comming': 'adm', 'Account': query.userInfo.username } }).then((response) => {
|
|
|
|
+ success(response.data);
|
|
|
|
+ }).catch(error => {
|
|
|
|
+ console.error(error);
|
|
|
|
+ });
|
|
|
|
+}
|
|
|
|
+//获取表号功能号的源数据
|
|
|
|
+export function getTabFunNumSourceData(param, success) {
|
|
|
|
+ let url = `/pointconfig/report/query-point`
|
|
|
|
+ http.postJson(url, param, success)
|
|
|
|
+}
|
|
|
|
+//获取表号功能号对应的对象实例
|
|
|
|
+export function getTabFunNumObjInstance(param, success) {
|
|
|
|
+ let url = `/pointconfig/report/query-instance`
|
|
|
|
+ http.postJson(url, param, success)
|
|
|
|
+}
|
|
|
|
+//添加表号功能号
|
|
|
|
+export function addTabFunNum(param, success) {
|
|
|
|
+ let url = `/pointconfig/report/custom-meter-func`
|
|
|
|
+ http.postJson(url, param, success)
|
|
|
|
+}
|
|
|
|
+//表号功能号对应总览
|
|
|
|
+export function tableFuncRelatedOverview(param, success) {
|
|
|
|
+ let url = `/pointconfig/report/meter-related`
|
|
|
|
+ http.postJson(url, param, success)
|
|
|
|
+}
|
|
|
|
+//实例中查询设备信息
|
|
|
|
+export function getEquipByEqID(param, success) {
|
|
|
|
+ let url = `${baseUrl}/datacenter/equip/query`
|
|
|
|
+ http.postJson(url, param, success)
|
|
|
|
+}
|
|
|
|
+//获取楼层信息
|
|
|
|
+export function getFloorMsgByFloorID(param, success) {
|
|
|
|
+ let url = `${baseUrl}/datacenter/floor/query`
|
|
|
|
+ http.postJson(url, param, success)
|
|
}
|
|
}
|