|
@@ -46,7 +46,7 @@ class ScanController {
|
|
|
*/
|
|
|
static async countPartsDie(params) {
|
|
|
const res = await ScanController.http.postRequest(
|
|
|
- "/equip-component/equip-query/count",
|
|
|
+ equipquery_pre + "/count",
|
|
|
params
|
|
|
);
|
|
|
}
|
|
@@ -60,7 +60,7 @@ class ScanController {
|
|
|
*/
|
|
|
static async createPropertys(params) {
|
|
|
return await ScanController.http.postRequest(
|
|
|
- "/equip-component/equip-query/creat-propertys",
|
|
|
+ equipquery_pre + "/creat-propertys",
|
|
|
params
|
|
|
);
|
|
|
}
|
|
@@ -74,7 +74,7 @@ class ScanController {
|
|
|
*/
|
|
|
static async deleteProperty(params) {
|
|
|
return await ScanController.http.postRequest(
|
|
|
- "/datacenter/object/property/delete",
|
|
|
+ object_pre + "/property/delete",
|
|
|
params
|
|
|
);
|
|
|
}
|
|
@@ -88,7 +88,7 @@ class ScanController {
|
|
|
*/
|
|
|
static async propertyLinkEq(params) {
|
|
|
return await ScanController.http.postRequest(
|
|
|
- "/equip-component/property/property-query",
|
|
|
+ datacenter_pre + "/property/property-query",
|
|
|
params
|
|
|
);
|
|
|
}
|
|
@@ -99,7 +99,7 @@ class ScanController {
|
|
|
*/
|
|
|
static async propertyUpdate(params) {
|
|
|
return await ScanController.http.postRequest(
|
|
|
- "/equip-component/property/update",
|
|
|
+ datacenter_pre + "/property/update",
|
|
|
params
|
|
|
);
|
|
|
}
|
|
@@ -110,7 +110,7 @@ class ScanController {
|
|
|
*/
|
|
|
static async queryProperty(params) {
|
|
|
return await ScanController.http.postRequest(
|
|
|
- "/datacenter/object/property/query",
|
|
|
+ object_pre + "/property/query",
|
|
|
params
|
|
|
);
|
|
|
}
|
|
@@ -121,7 +121,7 @@ class ScanController {
|
|
|
*/
|
|
|
static async updateProperty(params) {
|
|
|
return await ScanController.http.postRequest(
|
|
|
- "/datacenter/object/property/update",
|
|
|
+ object_pre + "/property/update",
|
|
|
params
|
|
|
);
|
|
|
}
|
|
@@ -132,7 +132,7 @@ class ScanController {
|
|
|
*/
|
|
|
static async deleteGeneralSys(params) {
|
|
|
return await ScanController.http.postRequest(
|
|
|
- "/datacenter/object/general-system/delete",
|
|
|
+ object_pre + "/general-system/delete",
|
|
|
params
|
|
|
);
|
|
|
}
|
|
@@ -144,7 +144,7 @@ class ScanController {
|
|
|
*/
|
|
|
static async updateGeneralSys(params) {
|
|
|
return await ScanController.http.postRequest(
|
|
|
- "/datacenter/object/general-system/update",
|
|
|
+ object_pre + "/general-system/update",
|
|
|
params
|
|
|
);
|
|
|
}
|
|
@@ -155,7 +155,7 @@ class ScanController {
|
|
|
*/
|
|
|
static async getEquipBelongs(params) {
|
|
|
return await ScanController.http.postRequest(
|
|
|
- "/datacenter/dict/family/query",
|
|
|
+ dict_pre + "/family/query",
|
|
|
params
|
|
|
);
|
|
|
}
|
|
@@ -167,7 +167,7 @@ class ScanController {
|
|
|
*/
|
|
|
static async buildingQuery(params) {
|
|
|
return await ScanController.http.postRequest(
|
|
|
- "/datacenter/object/building/query",
|
|
|
+ object_pre + "/building/query",
|
|
|
params
|
|
|
);
|
|
|
}
|
|
@@ -178,7 +178,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
|
|
|
);
|
|
|
}
|
|
@@ -188,7 +188,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}`;
|
|
|
}
|
|
@@ -200,7 +200,7 @@ class ScanController {
|
|
|
}
|
|
|
static async countGeneralSys(params: any, fn: any) {
|
|
|
const res = await ScanController.http.postRequest(
|
|
|
- "/datacenter/object/general-system/count",
|
|
|
+ object_pre + "/general-system/count",
|
|
|
params
|
|
|
);
|
|
|
return fn ? fn(res) : res;
|
|
@@ -212,7 +212,7 @@ class ScanController {
|
|
|
*/
|
|
|
static async getFloorMsgByFloorID(params?: any) {
|
|
|
return await ScanController.http.postRequest(
|
|
|
- "/datacenter/object/floor/query",
|
|
|
+ object_pre + "/floor/query",
|
|
|
params
|
|
|
);
|
|
|
}
|
|
@@ -223,13 +223,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;
|
|
@@ -243,7 +243,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;
|
|
@@ -256,21 +256,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;
|