|
@@ -864,51 +864,59 @@ export function getEquipTableCon(param) {
|
|
|
}
|
|
|
|
|
|
//设备清单-查询当前设备下的部件分类
|
|
|
-export function getEquipPartsType(param) {
|
|
|
+export function getEquipPartsType(param, success) {
|
|
|
+ let url = `${baseUrl}/equip-component/equip-query/components-count`;
|
|
|
let data = param;
|
|
|
- return fetch({ method: 'POST', url: `${baseUrl}/equip-component/equip-query/components-count`, data })
|
|
|
+ http.postJson(url, data, success)
|
|
|
}
|
|
|
|
|
|
//设备清单-查询当前设备类下的部件分类
|
|
|
-export function getPartsAllType(param) {
|
|
|
+export function getPartsAllType(param, success) {
|
|
|
+ let url = `${baseUrl}/equip-component/equip-query/equip-compon?category=${data.category}&id=${data.id}`;
|
|
|
let data = param;
|
|
|
- return fetch({ method: 'GET', url: `${baseUrl}/equip-component/equip-query/equip-compon?category=${data.category}&id=${data.id}` })
|
|
|
+ http.postJson(url, data, success)
|
|
|
}
|
|
|
|
|
|
//all - 查询数据字典 --列表表头
|
|
|
-export function getDataDictionary(param) {
|
|
|
+export function getDataDictionary(param, success) {
|
|
|
+ let url = `${baseUrl}/datacenter/data-dictionary/query`;
|
|
|
let data = param;
|
|
|
- return fetch({ method: 'POST', url: `${baseUrl}/datacenter/data-dictionary/query`, data })
|
|
|
+ http.postJson(url, data, success)
|
|
|
}
|
|
|
|
|
|
//设备清单 - 根据分类查询部件列表内容
|
|
|
-export function getEquipPartsCon(param) {
|
|
|
+export function getEquipPartsCon(param, success) {
|
|
|
+ let url = `${baseUrl}/equip-component/equip-query/components-property`;
|
|
|
let data = param;
|
|
|
- return fetch({ method: 'POST', url: `${baseUrl}/equip-component/equip-query/components-property`, data })
|
|
|
+ http.postJson(url, data, success)
|
|
|
}
|
|
|
|
|
|
//设备清单 - 新增部件
|
|
|
-export function createPart(param) {
|
|
|
+export function createPart(param, success) {
|
|
|
+ let url = `${baseUrl}/datacenter/component/create?projectId=${param.projectId}`;
|
|
|
let data = param.data;
|
|
|
- return fetch({ method: 'POST', url: `${baseUrl}/datacenter/component/create?projectId=${param.projectId}`, data })
|
|
|
+ http.postJson(url, data, success)
|
|
|
}
|
|
|
|
|
|
//设备清单 - 删除部件
|
|
|
-export function deleteParts(param) {
|
|
|
+export function deleteParts(param, success) {
|
|
|
+ let url = `${baseUrl}/datacenter/component/delete?projectId=${param.projectId}`;
|
|
|
let data = param.data;
|
|
|
- return fetch({ method: 'POST', url: `${baseUrl}/datacenter/component/delete?projectId=${param.projectId}`, data })
|
|
|
+ http.postJson(url, data, success)
|
|
|
}
|
|
|
|
|
|
//设备清单 - 更新部件
|
|
|
-export function updateParts(param) {
|
|
|
+export function updateParts(param, success) {
|
|
|
+ let url = `${baseUrl}/datacenter/component/update?projectId=${param.projectId}`;
|
|
|
let data = param.data;
|
|
|
- return fetch({ method: 'POST', url: `${baseUrl}/datacenter/component/update?projectId=${param.projectId}`, data })
|
|
|
+ http.postJson(url, data, success)
|
|
|
}
|
|
|
|
|
|
//创建资产
|
|
|
-export function createPropertyData(param) {
|
|
|
+export function createPropertyData(param, success) {
|
|
|
+ let url = `${baseUrl}/datacenter/property/create?projectId=${param.projectId}`;
|
|
|
let data = param.data;
|
|
|
- return fetch({ method: 'POST', url: `${baseUrl}/datacenter/property/create?projectId=${param.projectId}`, data })
|
|
|
+ http.postJson(url, data, success)
|
|
|
}
|
|
|
|
|
|
//动态数据关联-冲突选择确认
|