import { HighFormworkCounts, HighFormworkList, HighFormworkMonitorData, HighFormworkProject, HighFormworkProjectList, IHighFormworkMonitorCurve, IHighFormworkWarningTimes } from '../model/highFormwork.model'; import { IHighFormworkFilterData, IHighFormworkTableData } from '../model'; import { ApiClientFactory } from '../core/api.client.factory'; export class HighFormworkService { constructor(private factory: ApiClientFactory) { } async loadHighFormworkCounts(projectId: string): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/highformwork/monitorNum` ); return result; } async loadHighFormworkProjects(projectId: string): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/highformwork/highformworkDetail` ); return result; } async loadHighFormworkProjectList(projectId: string): Promise { const results = await this.factory.entity.get( `/api/web/projects/${projectId}/highformwork/highformworkBasic` ); return results; } async loadHighFormworkMonitorData(projectId: string, programId: string): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/highformwork/${programId}/monitorPoints` ); return result; } // 获取高支模工程地图列表 async loadHighFormworkList(projectId: string) { return await this.factory.entity.get( `/api/web/projects/${projectId}/program/maps/programType/highformwork` ); } // 保存高支模工程地图 async loadHighFormworkSave(projectId: string, data: HighFormworkList) { return await this.factory.entity.post( `/api/web/projects/${projectId}/program/maps/programType/highformwork`, data ); } // 删除高支模工程地图 async loadHighFormworkDelete(projectId: string, id: string) { return await this.factory.entity.delete( `/api/web/projects/${projectId}/program/maps/id/${id}` ); } // 获取高支模报警次数数据 async loadHighFormworkWarningTimes(projectId: string, programId: string): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/highformwork/getAlarmCount`, { programId } ); return result; } // 高支模当前工程累计变形量 async loadHighFormworkMonitorCurve(projectId: string, programId: string): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/highformwork/getMonitorCurve`, { programId } ); return result; } // 获取高支模预报警记录(组件专用) async loadHighFormworkRecordByState(projectId: string, queryParams: IHighFormworkFilterData): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/highformwork/getRecordByState`, queryParams ); return result; } }