|
|
@@ -23,7 +23,7 @@ enum Api {
|
|
|
GetApiUseCountDays = '/interface-center/monitor/getApiUseCountDays',
|
|
|
//(5) 获取接口近半年每月的调用次数
|
|
|
GetApiUseCountMouths = '/interface-center/monitor/getApiUseCountMouths',
|
|
|
- //(6) 各分析统计
|
|
|
+ //(6) 各分析统计-空间分析统计次数
|
|
|
BusinessStatistics = '/xldanalysis-center/xldanalyst/BusinessStatistics',
|
|
|
//(7) 分类统计
|
|
|
GetInterfacesTotalNum = '/interface-center/interface/getInterfacesTotalNum',
|
|
|
@@ -43,8 +43,6 @@ enum Api {
|
|
|
GetDataStoreData = '/interface-center/monitor/getDataStoreData',
|
|
|
//(14)分组统计文件资源大小(GB)
|
|
|
getDRResourceFileSize = '/datasearch-center/space/getDRResourceFileSize',
|
|
|
- //(15)空间分析统计次数
|
|
|
- GetSpatialTimes = '/xldanalysis-center/xldanalyst/BusinessStatistics',
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -163,7 +161,7 @@ export function queryBusinessStatistics(params) {
|
|
|
return new Promise<void>((resolve) => {
|
|
|
defHttp.post({ url: Api.BusinessStatistics, params })
|
|
|
.then((r) => {
|
|
|
- if (r.resp_code == 0 && r.datas && r.datas.length) {
|
|
|
+ if (r.resp_code == 0 && r.datas) {
|
|
|
resolve(r.datas);
|
|
|
} else {
|
|
|
resolve();
|
|
|
@@ -374,20 +372,3 @@ export function QueryDRResourceFileSize(params) {
|
|
|
})
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-/**
|
|
|
- * @description 空间分析统计次数
|
|
|
-*/
|
|
|
-export function querySpatialTimes(params) {
|
|
|
- return new Promise<void>((resolve) => {
|
|
|
- defHttp.get({ url: Api.GetSpatialTimes, params })
|
|
|
- .then((r) => {
|
|
|
- if (r.resp_code === 1 && r.datas && r.datas.length) {
|
|
|
- resolve(r.datas);
|
|
|
- } else {
|
|
|
- resolve([]);
|
|
|
- }
|
|
|
- })
|
|
|
- })
|
|
|
-}
|