|
@@ -29,9 +29,12 @@ class ScanController {
|
|
|
*@return {*}
|
|
|
*/
|
|
|
static async BeatchQueryParam(params, fn) {
|
|
|
- let data = params.data
|
|
|
- const res = await ScanController.http.postRequest(`/rwd/iot/data/current?projectId=${params.projectId}&groupCode=${params.groupCode}&appId=${params.appId}`, data)
|
|
|
- return fn ? fn(res) : res
|
|
|
+ let data = params.data;
|
|
|
+ const res = await ScanController.http.postRequest(
|
|
|
+ `/rwd/iot/data/current?projectId=${params.projectId}&groupCode=${params.groupCode}&appId=${params.appId}`,
|
|
|
+ data
|
|
|
+ );
|
|
|
+ return fn ? fn(res) : res;
|
|
|
}
|
|
|
/**
|
|
|
|
|
@@ -42,7 +45,10 @@ class ScanController {
|
|
|
*@return {*}
|
|
|
*/
|
|
|
static async countPartsDie(params) {
|
|
|
- const res = await ScanController.http.postRequest('/equip-component/equip-query/count', params)
|
|
|
+ const res = await ScanController.http.postRequest(
|
|
|
+ "/equip-component/equip-query/count",
|
|
|
+ params
|
|
|
+ );
|
|
|
}
|
|
|
/**
|
|
|
|
|
@@ -53,7 +59,10 @@ class ScanController {
|
|
|
*@return {*}
|
|
|
*/
|
|
|
static async createPropertys(params) {
|
|
|
- return await ScanController.http.postRequest('/equip-component/equip-query/creat-propertys', params)
|
|
|
+ return await ScanController.http.postRequest(
|
|
|
+ "/equip-component/equip-query/creat-propertys",
|
|
|
+ params
|
|
|
+ );
|
|
|
}
|
|
|
/**
|
|
|
|
|
@@ -63,9 +72,12 @@ class ScanController {
|
|
|
|
|
|
*@return {*}
|
|
|
*/
|
|
|
- static async deleteProperty(params) {
|
|
|
- return await ScanController.http.postRequest('/datacenter/object/property/delete', params)
|
|
|
- }
|
|
|
+ static async deleteProperty(params) {
|
|
|
+ return await ScanController.http.postRequest(
|
|
|
+ "/datacenter/object/property/delete",
|
|
|
+ params
|
|
|
+ );
|
|
|
+ }
|
|
|
/**
|
|
|
|
|
|
*@description: 查询资产 同时关联设备信息
|
|
@@ -74,41 +86,56 @@ class ScanController {
|
|
|
|
|
|
*@return {*}
|
|
|
*/
|
|
|
- static async propertyLinkEq(params) {
|
|
|
- return await ScanController.http.postRequest('/equip-component/property/property-query', params)
|
|
|
- }
|
|
|
+ static async propertyLinkEq(params) {
|
|
|
+ return await ScanController.http.postRequest(
|
|
|
+ "/equip-component/property/property-query",
|
|
|
+ params
|
|
|
+ );
|
|
|
+ }
|
|
|
/**
|
|
|
@description: 修改资产的附件功能
|
|
|
@param {*}
|
|
|
@return {*}
|
|
|
*/
|
|
|
- static async propertyUpdate(params) {
|
|
|
- return await ScanController.http.postRequest('/equip-component/property/update', params)
|
|
|
- }
|
|
|
+ static async propertyUpdate(params) {
|
|
|
+ return await ScanController.http.postRequest(
|
|
|
+ "/equip-component/property/update",
|
|
|
+ params
|
|
|
+ );
|
|
|
+ }
|
|
|
/**
|
|
|
- *@description: 查询资产
|
|
|
- *@param {*}
|
|
|
- *@return {*}
|
|
|
- */
|
|
|
- static async queryProperty(params) {
|
|
|
- return await ScanController.http.postRequest('/datacenter/object/property/query', params)
|
|
|
- }
|
|
|
+ *@description: 查询资产
|
|
|
+ *@param {*}
|
|
|
+ *@return {*}
|
|
|
+ */
|
|
|
+ static async queryProperty(params) {
|
|
|
+ return await ScanController.http.postRequest(
|
|
|
+ "/datacenter/object/property/query",
|
|
|
+ params
|
|
|
+ );
|
|
|
+ }
|
|
|
/**
|
|
|
- *@description: 更新资产信息
|
|
|
- *@param {*}
|
|
|
- *@return {*}
|
|
|
- */
|
|
|
- static async updateProperty(params) {
|
|
|
- return await ScanController.http.postRequest('/datacenter/object/property/update', params)
|
|
|
- }
|
|
|
+ *@description: 更新资产信息
|
|
|
+ *@param {*}
|
|
|
+ *@return {*}
|
|
|
+ */
|
|
|
+ static async updateProperty(params) {
|
|
|
+ return await ScanController.http.postRequest(
|
|
|
+ "/datacenter/object/property/update",
|
|
|
+ params
|
|
|
+ );
|
|
|
+ }
|
|
|
/**
|
|
|
- *@description: 删除系统信息
|
|
|
- *@param {*}
|
|
|
- *@return {*}
|
|
|
- */
|
|
|
- static async deleteGeneralSys(params) {
|
|
|
- return await ScanController.http.postRequest('/datacenter/object/general-system/delete', params)
|
|
|
- }
|
|
|
+ *@description: 删除系统信息
|
|
|
+ *@param {*}
|
|
|
+ *@return {*}
|
|
|
+ */
|
|
|
+ static async deleteGeneralSys(params) {
|
|
|
+ return await ScanController.http.postRequest(
|
|
|
+ "/datacenter/object/general-system/delete",
|
|
|
+ params
|
|
|
+ );
|
|
|
+ }
|
|
|
/**
|
|
|
|
|
|
*@description: 更新系统信息
|
|
@@ -116,7 +143,10 @@ class ScanController {
|
|
|
*@return {*}
|
|
|
*/
|
|
|
static async updateGeneralSys(params) {
|
|
|
- return await ScanController.http.postRequest('/datacenter/object/general-system/update', params)
|
|
|
+ return await ScanController.http.postRequest(
|
|
|
+ "/datacenter/object/general-system/update",
|
|
|
+ params
|
|
|
+ );
|
|
|
}
|
|
|
/**
|
|
|
@description: 创建资产所需(Family族id3位编码)-根据设备类型(4位编码)或部件类型(6位编码)查询,!!设备与设备族的关系
|
|
@@ -124,7 +154,10 @@ class ScanController {
|
|
|
@return {*}
|
|
|
*/
|
|
|
static async getEquipBelongs(params) {
|
|
|
- return await ScanController.http.postRequest('/datacenter/dict/family/query', params)
|
|
|
+ return await ScanController.http.postRequest(
|
|
|
+ "/datacenter/dict/family/query",
|
|
|
+ params
|
|
|
+ );
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -132,56 +165,74 @@ class ScanController {
|
|
|
@param {*}
|
|
|
@return {*}
|
|
|
*/
|
|
|
- static async buildingQuery(params) {
|
|
|
- return await ScanController.http.postRequest('/datacenter/object/building/query', params)
|
|
|
- }
|
|
|
- /**
|
|
|
+ static async buildingQuery(params) {
|
|
|
+ return await ScanController.http.postRequest(
|
|
|
+ "/datacenter/object/building/query",
|
|
|
+ params
|
|
|
+ );
|
|
|
+ }
|
|
|
+ /**
|
|
|
@description: 关系-竖井所在建筑
|
|
|
@param {*}
|
|
|
@return {*}
|
|
|
*/
|
|
|
- static async shaftLinkBuild(params) {
|
|
|
- return await ScanController.http.postRequest('/datacenter/rel/sh-in-bd/link-bd', params)
|
|
|
- }
|
|
|
- /**
|
|
|
- *@description: 查询系统信息 - 建筑楼层 - 系统一对多
|
|
|
- *@param {*} params
|
|
|
- *@return {*}
|
|
|
- */
|
|
|
+ static async shaftLinkBuild(params) {
|
|
|
+ return await ScanController.http.postRequest(
|
|
|
+ "/datacenter/rel/sh-in-bd/link-bd",
|
|
|
+ params
|
|
|
+ );
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ *@description: 查询系统信息 - 建筑楼层 - 系统一对多
|
|
|
+ *@param {*} params
|
|
|
+ *@return {*}
|
|
|
+ */
|
|
|
static async querySysLinkBuild(params, fn) {
|
|
|
- let url = '/datacenter/object/general-system/query-new';
|
|
|
+ let url = "/datacenter/object/general-system/query-new";
|
|
|
if (params.buildingId) {
|
|
|
- url += `?buildingId=${params.buildingId}`
|
|
|
+ url += `?buildingId=${params.buildingId}`;
|
|
|
}
|
|
|
if (params.floorId) {
|
|
|
- url += `&floorId=${params.floorId}`
|
|
|
+ url += `&floorId=${params.floorId}`;
|
|
|
}
|
|
|
const res = await ScanController.http.postRequest(url, params);
|
|
|
- return fn ? fn(res) : res
|
|
|
+ return fn ? fn(res) : res;
|
|
|
}
|
|
|
static async countGeneralSys(params: any, fn: any) {
|
|
|
- const res = await ScanController.http.postRequest('/datacenter/object/general-system/count', params)
|
|
|
- return fn ? fn(res) : res
|
|
|
+ const res = await ScanController.http.postRequest(
|
|
|
+ "/datacenter/object/general-system/count",
|
|
|
+ params
|
|
|
+ );
|
|
|
+ return fn ? fn(res) : res;
|
|
|
}
|
|
|
/**
|
|
|
- *@description: 获取楼层信息
|
|
|
- *@param {*}
|
|
|
- *@return {*}
|
|
|
- */
|
|
|
+ *@description: 获取楼层信息
|
|
|
+ *@param {*}
|
|
|
+ *@return {*}
|
|
|
+ */
|
|
|
static async getFloorMsgByFloorID(params?: any) {
|
|
|
- return await ScanController.http.postRequest('/datacenter/object/floor/query', params)
|
|
|
+ return await ScanController.http.postRequest(
|
|
|
+ "/datacenter/object/floor/query",
|
|
|
+ params
|
|
|
+ );
|
|
|
}
|
|
|
/**
|
|
|
- *@description: //设备清单 - 查询系统关联专业 - 查询系统信息 - 查询系统所属专业类型
|
|
|
- *@param {*}
|
|
|
- *@return {*}
|
|
|
- */
|
|
|
+ *@description: //设备清单 - 查询系统关联专业 - 查询系统信息 - 查询系统所属专业类型
|
|
|
+ *@param {*}
|
|
|
+ *@return {*}
|
|
|
+ */
|
|
|
static async queryLinkSys(params) {
|
|
|
- return await ScanController.http.postRequest('/datacenter/object/general-system/query', params)
|
|
|
+ return await ScanController.http.postRequest(
|
|
|
+ "/datacenter/object/general-system/query",
|
|
|
+ params
|
|
|
+ );
|
|
|
}
|
|
|
static async getAllProject(params, fn) {
|
|
|
- const res = await ScanController.http.postRequest('/datacenter/object/project/query/obj', params)
|
|
|
- return fn ? fn(res) : res
|
|
|
+ const res = await ScanController.http.postRequest(
|
|
|
+ "/datacenter/object/project/query/obj",
|
|
|
+ params
|
|
|
+ );
|
|
|
+ return fn ? fn(res) : res;
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -189,28 +240,40 @@ class ScanController {
|
|
|
* @param {*} params
|
|
|
* @param {*} fn
|
|
|
* @return {*}
|
|
|
- */
|
|
|
+ */
|
|
|
static async sysRelateBuild(params, fn) {
|
|
|
- const res = await ScanController.http.postRequest('/datacenter/rel/sy-in-bd/link-bd', params);
|
|
|
- return fn ? fn(res) : res
|
|
|
+ const res = await ScanController.http.postRequest(
|
|
|
+ "/datacenter/rel/sy-in-bd/link-bd",
|
|
|
+ params
|
|
|
+ );
|
|
|
+ return fn ? fn(res) : res;
|
|
|
}
|
|
|
/**
|
|
|
* @description: 创建系统所在建筑关系,系统一对多,覆盖
|
|
|
* @param {*} params
|
|
|
* @param {*} fn
|
|
|
* @return {*}
|
|
|
- */
|
|
|
+ */
|
|
|
static async sysRelateFloor(params, fn) {
|
|
|
- const res = await ScanController.http.postRequest('/datacenter/rel/sy-in-fl/link-fl', params);
|
|
|
- return fn ? fn(res) : res
|
|
|
+ const res = await ScanController.http.postRequest(
|
|
|
+ "/datacenter/rel/sy-in-fl/link-fl",
|
|
|
+ params
|
|
|
+ );
|
|
|
+ return fn ? fn(res) : res;
|
|
|
}
|
|
|
static async getEquipInSys(params, fn) {
|
|
|
- const res = await ScanController.http.postRequest(`/equip-component/equip-query/sys-equip`, params)
|
|
|
- return fn ? fn(res) : res
|
|
|
+ const res = await ScanController.http.postRequest(
|
|
|
+ `/equip-component/equip-query/sys-equip`,
|
|
|
+ params
|
|
|
+ );
|
|
|
+ return fn ? fn(res) : res;
|
|
|
}
|
|
|
static async sysLinkEquip(params, fn) {
|
|
|
- const res = await ScanController.http.postRequest(`/datacenter/rel/sy-in-eq/link-sy-eq`, params)
|
|
|
- return fn ? fn(res) : res
|
|
|
+ const res = await ScanController.http.postRequest(
|
|
|
+ `/datacenter/rel/sy-in-eq/link-sy-eq`,
|
|
|
+ params
|
|
|
+ );
|
|
|
+ return fn ? fn(res) : res;
|
|
|
}
|
|
|
/**
|
|
|
* 设备清单 - 更新设备
|
|
@@ -228,7 +291,7 @@ class ScanController {
|
|
|
datacenter_pre + "/sy-in-eq/unlinks-sy-eq",
|
|
|
params
|
|
|
);
|
|
|
- return fn ? fn(res) : res
|
|
|
+ return fn ? fn(res) : res;
|
|
|
}
|
|
|
static async zoneQuery() {}
|
|
|
static async TypePartsDie() {}
|
|
@@ -296,7 +359,7 @@ class ScanController {
|
|
|
*/
|
|
|
static async deleteBuildInfo(params) {
|
|
|
return await this.http.postRequest(
|
|
|
- floor_pre + "/building/single/delete",
|
|
|
+ object_pre + "/building/single/delete",
|
|
|
params
|
|
|
);
|
|
|
}
|
|
@@ -327,7 +390,24 @@ class ScanController {
|
|
|
params
|
|
|
);
|
|
|
}
|
|
|
+ /**
|
|
|
+ * 建筑楼层管理-修改楼层
|
|
|
+ */
|
|
|
+ static async manageUpdateFloor(params) {
|
|
|
+ return await this.http.postRequest(floor_pre + "/update", params);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 楼层接口-----更新楼层轮廓
|
|
|
+ */
|
|
|
+ static async floorUpdateOutline(params) {
|
|
|
+ return await this.http.postRequest(floor_pre + "/update-outline", params);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 楼层接口-----查询楼层轮廓
|
|
|
+ */
|
|
|
+ static async floorQueryOutline(params) {
|
|
|
+ return await this.http.postRequest(floor_pre + "/query-outline", params);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-export default ScanController;
|
|
|
+export default ScanController;
|