|
@@ -2,91 +2,51 @@ import fetch from './fetch'
|
|
|
import { api } from './config.js'
|
|
|
import http from './httpUtil'
|
|
|
|
|
|
-//系统集成统计环形图
|
|
|
-export function getIntegrateStatisticsToLoop(param, success) {
|
|
|
- let url = `/pointconfig/datasource/queryWithCount`
|
|
|
- let data = param
|
|
|
- http.postJson(url, data, success)
|
|
|
+//系统集成统计条形图
|
|
|
+export function getIntegrateStatisticsToBar(param, success) {
|
|
|
+ let url = `/pointconfig/report/point-statis `
|
|
|
+ http.postJson(url, param, success)
|
|
|
}
|
|
|
|
|
|
-//系统集成统计条形
|
|
|
-export function getIntegrateStatisticsToBar(param, success) {
|
|
|
+//系统集成统计环形图
|
|
|
+export function getIntegrateStatisticsToLoop(param, success) {
|
|
|
let url = `/pointconfig/report/meterfunc-statis`
|
|
|
- let data = param
|
|
|
- http.postJson(url, data, success)
|
|
|
+ http.postJson(url, param, success)
|
|
|
}
|
|
|
|
|
|
//表号功能号总览
|
|
|
export function getTabFunNumOverview(param, success) {
|
|
|
let url = `/pointconfig/report/meterfunc-overview`
|
|
|
- let data = param
|
|
|
- data = {
|
|
|
- "Comming": 'revit',
|
|
|
- "ProjId": 'Pj4201050001',
|
|
|
- "UserId": 'test',
|
|
|
- "PageNum": 1,
|
|
|
- "PageSize": 10,
|
|
|
- "Filter": ""
|
|
|
- }
|
|
|
- http.postJson(url, data, success)
|
|
|
+ http.postJson(url, param, success)
|
|
|
}
|
|
|
|
|
|
//表号功能号对应历史数据
|
|
|
export function getHistoryData(param, success) {
|
|
|
- let url = `/ScanBuilding/service/user/query`
|
|
|
+ let url = `/data-platform-3/hisdata/batch_query_period_data_by_metfun`
|
|
|
let data = param
|
|
|
- data = {
|
|
|
- "Comming": 'revit',
|
|
|
- "ProjId": 'Pj4201050001',
|
|
|
- "UserId": 'test',
|
|
|
- "PageNum": 1,
|
|
|
- "PageSize": 10,
|
|
|
- "Filter": ""
|
|
|
- }
|
|
|
http.postJson(url, data, success)
|
|
|
}
|
|
|
|
|
|
//获取表号功能号的源数据
|
|
|
export function getTabFunNumSourceData(param, success) {
|
|
|
- let url = `/ScanBuilding/service/user/query`
|
|
|
- let data = param
|
|
|
- data = {
|
|
|
- "Comming": 'revit',
|
|
|
- "ProjId": 'Pj4201050001',
|
|
|
- "UserId": 'test',
|
|
|
- "PageNum": 1,
|
|
|
- "PageSize": 10,
|
|
|
- "Filter": ""
|
|
|
- }
|
|
|
- http.postJson(url, data, success)
|
|
|
+ let url = `/pointconfig/report/query-point`
|
|
|
+ http.postJson(url, param, success)
|
|
|
}
|
|
|
|
|
|
//获取表号功能号对应的对象实例
|
|
|
export function getTabFunNumObjInstance(param, success) {
|
|
|
- let url = `/ScanBuilding/service/user/query`
|
|
|
- let data = param
|
|
|
- data = {
|
|
|
- "Comming": 'revit',
|
|
|
- "ProjId": 'Pj4201050001',
|
|
|
- "UserId": 'test',
|
|
|
- "PageNum": 1,
|
|
|
- "PageSize": 10,
|
|
|
- "Filter": ""
|
|
|
- }
|
|
|
- http.postJson(url, data, success)
|
|
|
+ let url = `/pointconfig/report/query-instance`
|
|
|
+ http.postJson(url, param, success)
|
|
|
}
|
|
|
|
|
|
//添加表号功能号
|
|
|
export function addTabFunNum(param, success) {
|
|
|
- let url = `/ScanBuilding/service/user/query`
|
|
|
- let data = param
|
|
|
- data = {
|
|
|
- "Comming": 'revit',
|
|
|
- "ProjId": 'Pj4201050001',
|
|
|
- "UserId": 'test',
|
|
|
- "PageNum": 1,
|
|
|
- "PageSize": 10,
|
|
|
- "Filter": ""
|
|
|
- }
|
|
|
- http.postJson(url, data, success)
|
|
|
+ let url = `/pointconfig/report/custom-meter-func`
|
|
|
+ http.postJson(url, param, success)
|
|
|
+}
|
|
|
+
|
|
|
+//表号功能号对应总览
|
|
|
+export function tableFuncRelatedOverview(param, success) {
|
|
|
+ let url = `/pointconfig/report/meter-related`
|
|
|
+ http.postJson(url, param, success)
|
|
|
}
|