feat: 首页数据对接
This commit is contained in:
63
apps/web-antd/src/api/analytics/index.ts
Normal file
63
apps/web-antd/src/api/analytics/index.ts
Normal file
@@ -0,0 +1,63 @@
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询工单数量
|
||||
* @param params
|
||||
* @returns 工单数量
|
||||
*/
|
||||
export function getIndexCount() {
|
||||
return requestClient.get<any>('/property/index/indexCount');
|
||||
}
|
||||
|
||||
// 今日预警分类统计
|
||||
export function getStatisticsCurrDay() {
|
||||
return requestClient.get<any>('/sis/alarmEvents/query/statistics/currDay');
|
||||
}
|
||||
// 所有预警信息分类统计
|
||||
export function getStatistics() {
|
||||
return requestClient.get<any>('/sis/alarmEvents/query/statistics');
|
||||
}
|
||||
// /**
|
||||
// * 导出资产管理列表
|
||||
// * @param params
|
||||
// * @returns 资产管理列表
|
||||
// */
|
||||
// export function assetExport(params?: AssetQuery) {
|
||||
// return commonExport('/property/asset/export', params ?? {});
|
||||
// }
|
||||
|
||||
// /**
|
||||
// * 查询资产管理详情
|
||||
// * @param id id
|
||||
// * @returns 资产管理详情
|
||||
// */
|
||||
// export function assetInfo(id: ID) {
|
||||
// return requestClient.get<AssetVO>(`/property/asset/${id}`);
|
||||
// }
|
||||
|
||||
// /**
|
||||
// * 新增资产管理
|
||||
// * @param data
|
||||
// * @returns void
|
||||
// */
|
||||
// export function assetAdd(data: AssetForm) {
|
||||
// return requestClient.postWithMsg<void>('/property/asset', data);
|
||||
// }
|
||||
|
||||
// /**
|
||||
// * 更新资产管理
|
||||
// * @param data
|
||||
// * @returns void
|
||||
// */
|
||||
// export function assetUpdate(data: AssetForm) {
|
||||
// return requestClient.putWithMsg<void>('/property/asset', data);
|
||||
// }
|
||||
|
||||
// /**
|
||||
// * 删除资产管理
|
||||
// * @param id id
|
||||
// * @returns void
|
||||
// */
|
||||
// export function assetRemove(id: ID | IDS) {
|
||||
// return requestClient.deleteWithMsg<void>(`/property/asset/${id}`);
|
||||
// }
|
Reference in New Issue
Block a user