|
@@ -1,7 +1,7 @@
|
|
import httpUtil from "../scan/httpUtil";
|
|
import httpUtil from "../scan/httpUtil";
|
|
import fetch from "../scan/fetch";
|
|
import fetch from "../scan/fetch";
|
|
import storage from '@/framework/utils/storage'
|
|
import storage from '@/framework/utils/storage'
|
|
-import { baseUrl, graphicUrl, dataCenter, dictCustom } from "@/api/scan/config.js"
|
|
|
|
|
|
+import { baseUrl, graphicUrl, dataCenter, dictCustom } from "@/api/scan/config"
|
|
|
|
|
|
|
|
|
|
//查询总览
|
|
//查询总览
|
|
@@ -77,7 +77,7 @@ export function sysDirection(param, success) {
|
|
//************************无需配置源末端关系计算15种********************************//
|
|
//************************无需配置源末端关系计算15种********************************//
|
|
// 建筑下的业务空间
|
|
// 建筑下的业务空间
|
|
export function businessSpaceAll(param) {
|
|
export function businessSpaceAll(param) {
|
|
- let {relation_type, zone_type, proId} = param
|
|
|
|
|
|
+ let { relation_type, zone_type, proId } = param
|
|
let userName = storage.get("user_name")
|
|
let userName = storage.get("user_name")
|
|
let ProjectId = localStorage.getItem("projectId")
|
|
let ProjectId = localStorage.getItem("projectId")
|
|
let objectTypes = zone_type ? "?objectTypes=" + zone_type : ''
|
|
let objectTypes = zone_type ? "?objectTypes=" + zone_type : ''
|
|
@@ -85,19 +85,19 @@ export function businessSpaceAll(param) {
|
|
method: 'POST',
|
|
method: 'POST',
|
|
url: `${baseUrl}${dataCenter}/relation-calc/` + relation_type + objectTypes,
|
|
url: `${baseUrl}${dataCenter}/relation-calc/` + relation_type + objectTypes,
|
|
data: proId,
|
|
data: proId,
|
|
- headers: {'ProjectId': ProjectId, 'Comming': 'adm', 'Account': userName}
|
|
|
|
|
|
+ headers: { 'ProjectId': ProjectId, 'Comming': 'adm', 'Account': userName }
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
//************************数据转换********************************//
|
|
//************************数据转换********************************//
|
|
|
|
|
|
-// 项目化字典-统计数量
|
|
|
|
|
|
+// 项目化字典-统计数量 修改过大小写
|
|
export function dictCount(param, success) {
|
|
export function dictCount(param, success) {
|
|
let url = `${baseUrl}${dictCustom}/project-dict-count`
|
|
let url = `${baseUrl}${dictCustom}/project-dict-count`
|
|
httpUtil.postJson(url, param, success)
|
|
httpUtil.postJson(url, param, success)
|
|
}
|
|
}
|
|
|
|
|
|
-// 项目化字典-需补充转换规则数量
|
|
|
|
|
|
+// 项目化字典-需补充转换规则数量 修改过大小写
|
|
export function dictSwitchCount(param, success) {
|
|
export function dictSwitchCount(param, success) {
|
|
let url = `${baseUrl}${dictCustom}/project-dict-switch-count`
|
|
let url = `${baseUrl}${dictCustom}/project-dict-switch-count`
|
|
httpUtil.postJson(url, param, success)
|
|
httpUtil.postJson(url, param, success)
|
|
@@ -112,7 +112,7 @@ export function dectInfo(param) {
|
|
method: 'POST',
|
|
method: 'POST',
|
|
url: `${baseUrl}${dictCustom}/project-dict-info`,
|
|
url: `${baseUrl}${dictCustom}/project-dict-info`,
|
|
data,
|
|
data,
|
|
- headers: {'ProjectId': ProjectId, 'Comming': 'adm', 'Account': userName}
|
|
|
|
|
|
+ headers: { 'ProjectId': ProjectId, 'Comming': 'adm', 'Account': userName }
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
@@ -141,11 +141,12 @@ export function dictUpdate(param, success) {
|
|
}
|
|
}
|
|
|
|
|
|
// 查询关系数据
|
|
// 查询关系数据
|
|
-export function relQuery(param,success) {
|
|
|
|
|
|
+export function relQuery(param, success) {
|
|
// let url = `${baseUrl}${dataCenter}/relation-manual-calc/rel-query`
|
|
// let url = `${baseUrl}${dataCenter}/relation-manual-calc/rel-query`
|
|
let url = `${baseUrl}${dataCenter}/rel-manual-calc/query`
|
|
let url = `${baseUrl}${dataCenter}/rel-manual-calc/query`
|
|
- httpUtil.postJson(url,param,success)
|
|
|
|
|
|
+ httpUtil.postJson(url, param, success)
|
|
}
|
|
}
|
|
|
|
+
|
|
//添加关系数据
|
|
//添加关系数据
|
|
export function relAdd(data) {
|
|
export function relAdd(data) {
|
|
let userName = storage.get("user_name")
|
|
let userName = storage.get("user_name")
|
|
@@ -155,7 +156,7 @@ export function relAdd(data) {
|
|
// url: `${baseUrl}${dataCenter}/relation-manual-calc/rel-add`,
|
|
// url: `${baseUrl}${dataCenter}/relation-manual-calc/rel-add`,
|
|
url: `${baseUrl}${dataCenter}/rel-manual-calc/add`,
|
|
url: `${baseUrl}${dataCenter}/rel-manual-calc/add`,
|
|
data,
|
|
data,
|
|
- headers: {'ProjectId': ProjectId, 'Comming': 'adm', 'Account': userName}
|
|
|
|
|
|
+ headers: { 'ProjectId': ProjectId, 'Comming': 'adm', 'Account': userName }
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|