|
@@ -47,7 +47,7 @@ class ScanController {
|
|
|
*/
|
|
|
static async countPartsDie(params) {
|
|
|
const res = await ScanController.http.postRequest(
|
|
|
- "/equip-component/equip-query/count",
|
|
|
+ equipquery_pre + "/count",
|
|
|
params
|
|
|
);
|
|
|
}
|
|
@@ -61,7 +61,7 @@ class ScanController {
|
|
|
*/
|
|
|
static async createPropertys(params) {
|
|
|
return await ScanController.http.postRequest(
|
|
|
- "/equip-component/equip-query/creat-propertys",
|
|
|
+ equipquery_pre + "/creat-propertys",
|
|
|
params
|
|
|
);
|
|
|
}
|
|
@@ -75,7 +75,7 @@ class ScanController {
|
|
|
*/
|
|
|
static async deleteProperty(params) {
|
|
|
return await ScanController.http.postRequest(
|
|
|
- "/datacenter/object/property/delete",
|
|
|
+ object_pre + "/property/delete",
|
|
|
params
|
|
|
);
|
|
|
}
|
|
@@ -89,7 +89,7 @@ class ScanController {
|
|
|
*/
|
|
|
static async propertyLinkEq(params) {
|
|
|
return await ScanController.http.postRequest(
|
|
|
- "/equip-component/property/property-query",
|
|
|
+ datacenter_pre + "/property/property-query",
|
|
|
params
|
|
|
);
|
|
|
}
|
|
@@ -100,7 +100,7 @@ class ScanController {
|
|
|
*/
|
|
|
static async propertyUpdate(params) {
|
|
|
return await ScanController.http.postRequest(
|
|
|
- "/equip-component/property/update",
|
|
|
+ datacenter_pre + "/property/update",
|
|
|
params
|
|
|
);
|
|
|
}
|
|
@@ -111,7 +111,7 @@ class ScanController {
|
|
|
*/
|
|
|
static async queryProperty(params) {
|
|
|
return await ScanController.http.postRequest(
|
|
|
- "/datacenter/object/property/query",
|
|
|
+ object_pre + "/property/query",
|
|
|
params
|
|
|
);
|
|
|
}
|
|
@@ -122,7 +122,7 @@ class ScanController {
|
|
|
*/
|
|
|
static async updateProperty(params) {
|
|
|
return await ScanController.http.postRequest(
|
|
|
- "/datacenter/object/property/update",
|
|
|
+ object_pre + "/property/update",
|
|
|
params
|
|
|
);
|
|
|
}
|
|
@@ -133,7 +133,7 @@ class ScanController {
|
|
|
*/
|
|
|
static async deleteGeneralSys(params) {
|
|
|
return await ScanController.http.postRequest(
|
|
|
- "/datacenter/object/general-system/delete",
|
|
|
+ object_pre + "/general-system/delete",
|
|
|
params
|
|
|
);
|
|
|
}
|
|
@@ -145,7 +145,7 @@ class ScanController {
|
|
|
*/
|
|
|
static async updateGeneralSys(params) {
|
|
|
return await ScanController.http.postRequest(
|
|
|
- "/datacenter/object/general-system/update",
|
|
|
+ object_pre + "/general-system/update",
|
|
|
params
|
|
|
);
|
|
|
}
|
|
@@ -156,7 +156,7 @@ class ScanController {
|
|
|
*/
|
|
|
static async getEquipBelongs(params) {
|
|
|
return await ScanController.http.postRequest(
|
|
|
- "/datacenter/dict/family/query",
|
|
|
+ dict_pre + "/family/query",
|
|
|
params
|
|
|
);
|
|
|
}
|
|
@@ -168,7 +168,7 @@ class ScanController {
|
|
|
*/
|
|
|
static async buildingQuery(params) {
|
|
|
return await ScanController.http.postRequest(
|
|
|
- "/datacenter/object/building/query",
|
|
|
+ object_pre + "/building/query",
|
|
|
params
|
|
|
);
|
|
|
}
|
|
@@ -179,7 +179,7 @@ class ScanController {
|
|
|
*/
|
|
|
static async shaftLinkBuild(params) {
|
|
|
return await ScanController.http.postRequest(
|
|
|
- "/datacenter/rel/sh-in-bd/link-bd",
|
|
|
+ datacenter_pre + "/rel/sh-in-bd/link-bd",
|
|
|
params
|
|
|
);
|
|
|
}
|
|
@@ -189,7 +189,7 @@ class ScanController {
|
|
|
*@return {*}
|
|
|
*/
|
|
|
static async querySysLinkBuild(params, fn) {
|
|
|
- let url = "/datacenter/object/general-system/query-new";
|
|
|
+ let url = object_pre + "/general-system/query-new";
|
|
|
if (params.buildingId) {
|
|
|
url += `?buildingId=${params.buildingId}`;
|
|
|
}
|
|
@@ -201,7 +201,7 @@ class ScanController {
|
|
|
}
|
|
|
static async countGeneralSys(params: any, fn: any) {
|
|
|
const res = await ScanController.http.postRequest(
|
|
|
- adm_middleware + "/object/general-system/count",
|
|
|
+ object_pre + "/general-system/count",
|
|
|
params
|
|
|
);
|
|
|
return fn ? fn(res) : res;
|
|
@@ -213,7 +213,7 @@ class ScanController {
|
|
|
*/
|
|
|
static async getFloorMsgByFloorID(params?: any) {
|
|
|
return await ScanController.http.postRequest(
|
|
|
- "/datacenter/object/floor/query",
|
|
|
+ object_pre + "/floor/query",
|
|
|
params
|
|
|
);
|
|
|
}
|
|
@@ -224,13 +224,13 @@ class ScanController {
|
|
|
*/
|
|
|
static async queryLinkSys(params) {
|
|
|
return await ScanController.http.postRequest(
|
|
|
- "/datacenter/object/general-system/query",
|
|
|
+ object_pre + "/general-system/query",
|
|
|
params
|
|
|
);
|
|
|
}
|
|
|
static async getAllProject(params, fn) {
|
|
|
const res = await ScanController.http.postRequest(
|
|
|
- "/datacenter/object/project/query/obj",
|
|
|
+ object_pre + "/project/query/obj",
|
|
|
params
|
|
|
);
|
|
|
return fn ? fn(res) : res;
|
|
@@ -244,7 +244,7 @@ class ScanController {
|
|
|
*/
|
|
|
static async sysRelateBuild(params, fn) {
|
|
|
const res = await ScanController.http.postRequest(
|
|
|
- "/datacenter/rel/sy-in-bd/link-bd",
|
|
|
+ datacenter_pre + "/rel/sy-in-bd/link-bd",
|
|
|
params
|
|
|
);
|
|
|
return fn ? fn(res) : res;
|
|
@@ -257,21 +257,21 @@ class ScanController {
|
|
|
*/
|
|
|
static async sysRelateFloor(params, fn) {
|
|
|
const res = await ScanController.http.postRequest(
|
|
|
- "/datacenter/rel/sy-in-fl/link-fl",
|
|
|
+ datacenter_pre + "/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`,
|
|
|
+ `${equipquery_pre}/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`,
|
|
|
+ `${datacenter_pre}/rel/sy-in-eq/link-sy-eq`,
|
|
|
params
|
|
|
);
|
|
|
return fn ? fn(res) : res;
|