import { AlarmRecordFilterData, AlarmRecordTableData, BridgeWarningFilterList, BridgeWarningTableData, BridgeWorkCycleTableData, CuringRoomAlarm, CuringRoomFormData, CuringRoomMonitor, ElevatorWarningFilterData, ElevatorWarningTableData, HeWeatherFilterData, HeWeatherTableData, IBetonProjectAlarmTableData, IBetonProjectFilterData, IBetonProjectTableData, IBorderGuardFilterData, IBorderGuardTableData, ICraneCertificationRecordFilterData, ICraneCertificationRecordTableData, ICraneFilterData, ICraneTableData, ICraneWarningFilterData, ICraneWarningTableData, IElevatorFilterData, IElevatorTableData, IEnvMonitorFilterData, IEnvMonitorTableData, IFoundationPitAlarmRecord, IFoundationPitHistoryData, IFoundationPitSerachSelect, IGantryCraneFilterData, IGantryCraneTable, IGantryCraneWarningTable, IGuardFenceFilterData, IGuardFenceTableData, IHighFormworkFilterData, IHighFormworkTableData, IHighFormworkWarningTableData, IHistoryDataFilterData, IHistoryDataTableData, IMachineProjectInfo, IPaverHistory, IPitchMixStationHistory, IPitchMixStationParams, IPitchMixStationWarn, IProductionLedgerConditionData, IProductionLedgerFilterData, IProductionLedgerTableData, IShieldMachineFilterData, IShieldMachineTableData, ISubstationFilterData, ISubstationTableData, IUnloadPlatformFilterData, IUnloadPlatformTableData, IUnloadPlatformWarningTableData, IWaterMeterFilterData, IWaterMeterTableData, QualityTableData, SecurityFilterData, SecurityQueryConditionList, SecurityTableData, TreasuryFormData, TreasuryMonitor, TreasuryMonitorAlarm, LaborFilterData, ILaborTableData, VehicleData, GotVehicleData, IloadSewageTableData, IloadSewageTableRowData, IloadSewagealarmTableData, IloadSewageAlarmResData, warnType, HistoryRecordQuery, tableInspection, tableInspectionDetail, IElevatorDriverIdentities, SteelWireFilterData, ISteelWireHistoryTable, ISteelWireAlarmTable, } from '../model/dataCenter.model'; import { ApiClientFactory } from '../core/api.client.factory'; import { IHighFormworkFilterDataByProgramId } from '../model'; export class DataCenterService { constructor(private factory: ApiClientFactory) {} /****************************************************** 数字工地 ******************************************************/ /****************** 环境监测 ******************/ /** * 查询环境监测表格数据 * @param projectId 项目Id * @param obj 过滤条件 */ async loadEnvMonitorTableData(projectId: string, queryParams: IEnvMonitorFilterData): Promise { const result = await this.factory.entity.get( `/api/open/web/projects/${projectId}/dataCenter/envs`, queryParams ); return result; } /** * 导出环境监测页面Excel数据 * @param projectId 项目Id * @param obj 过滤条件 * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 */ exportEnvMonitorToExcel(projectId: string, queryParams: IEnvMonitorFilterData): void { this.factory.entity.exportFile( `/api/open/web/projects/${projectId}/dataCenter/envs`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } /****************** 塔机监测-吊装循环 ******************/ /** * 查询塔机监测-吊装循环表格数据 * @param projectId 项目Id * @param queryParams 过滤条件 */ async loadCraneTableData(projectId: string, queryParams: ICraneFilterData): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/dataCenter/towerCrane/dataRecords`, queryParams ); return result; } /** * 导出塔机监测-吊装循环页面Excel数据 * @param projectId 项目Id * @param queryParams 过滤条件 * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 */ exportCraneToExcel(projectId: string, queryParams: ICraneFilterData) { this.factory.entity.exportFile( `/api/open/web/projects/${projectId}/dataCenter/towerCrane/excelRecords`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } /****************** 塔机监测-预警数据 ******************/ /** * 查询塔机监测-预警数据表格数据 * @param projectId 项目Id * @param queryParams 过滤条件 */ async loadCraneWarningTableData( projectId: string, queryParams: ICraneWarningFilterData ): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/dataCenter/towerCrane/alarmRecords`, queryParams ); return result; } /** * 塔吊告警类型列表 * @param projectId 项目Id * @param queryParams 过滤条件 */ async getWarnTypeList(): Promise { const result = await this.factory.entity.get('/api/web/projects/towerCrane/dataRecord/alarmtype'); return result; } /** * 导出塔机监测-预警数据页面Excel数据 * @param projectId 项目Id * @param queryParams 过滤条件 * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 */ exportCraneWarningToExcel(projectId: string, queryParams: ICraneWarningFilterData) { this.factory.entity.exportFile( `/api/open/web/projects/${projectId}/dataCenter/towerCrane/excelAlarmRecords`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } /****************** 外墙架监测 ******************/ /** * 外墙架监测-告警记录列表 * @param projectId 项目Id */ async getExternalWallWarnList(projectId: string, params: any): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/scaffold/dataCenter/excelAlarmRecords`, params ); return result; } /** * 外墙架监测-历史记录列表 * @param projectId 项目Id */ async getExternalWallHistoryList(projectId: string, params: any): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/scaffold/dataCenter/alarmRawRecords`, params ); return result; } /** * 外墙架监测-告警历史列表导出 * @param projectId 项目Id */ exportExternalWallHistoryToExcel(projectId: string, params: any) { this.factory.entity.exportFile( `/api/web/projects/${projectId}/scaffold/dataCenter/alarmRawRecords`, params, { ignoreHeaders: false, }, 'gssToken' ); } /** * 外墙架监测-告警列表导出 * @param projectId 项目Id */ exportExternalWallWarnToExcel(projectId: string, params: any) { this.factory.entity.exportFile( `/api/open/web/projects/${projectId}/scaffold/dataCenter/excelAlarmRecords`, params, { ignoreHeaders: false, }, 'gssToken' ); } /****************** 塔吊防倾翻 ******************/ /** * 塔吊防倾翻-告警历史 * @param projectId 项目Id */ async getTippingHistoryList(projectId: string, params: any): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/antiOverturn/dataCenter/alarmRawRecords`, params ); return result; } /** * 塔吊防倾翻-告警历史列表导出 * @param projectId 项目Id */ exportTippingHistoryToExcel(projectId: string, params: any) { this.factory.entity.exportFile( `/api/web/projects/${projectId}/antiOverturn/dataCenter/alarmRawRecords`, params, { ignoreHeaders: false, }, 'gssToken' ); } /** * 塔吊防倾翻-告警历史列表导出 * @param projectId 项目Id */ exportTippingWarnToExcel(projectId: string, params: any) { this.factory.entity.exportFile( `/api/web/projects/${projectId}/antiOverturn/dataCenter/alarmRecords`, params, { ignoreHeaders: false, }, 'gssToken' ); } /** * 塔吊防倾翻-告警类型 * @param projectId 项目Id */ async getDeviceNameList(projectId: string): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/antiOverturn/dataCenter/alarmType` ); return result; } /** * 塔吊防倾翻-告警信息 * @param projectId 项目Id */ async getTippingWarnList(projectId: string, params: any): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/antiOverturn/dataCenter/alarmRecords`, params ); return result; } /****************** 塔机监测-认证记录 ******************/ /** * 查询塔机监测-认证记录 * @param projectId 项目Id * @param queryParams 过滤条件 */ async loadCraneCertificationRecordTableData( projectId: string, queryParams: ICraneCertificationRecordFilterData ): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/towerCraneDriverIdentitys/pageList`, queryParams ); return result; } /** * 导出塔机监测-认证记录 * @param projectId 项目Id * @param queryParams 过滤条件 * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 */ exportCraneCertificationRecordToExcel(projectId: string, queryParams: ICraneCertificationRecordFilterData) { this.factory.entity.exportFile( `/api/open/web/projects/${projectId}/towerCraneDriverIdentitys/pageList`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } /****************** 升降电梯 ******************/ /** * 查询升降电梯表格数据 * @param projectId 项目Id * @param obj 过滤条件 */ async loadElevatorTableData(projectId: string, queryParams: IElevatorFilterData): Promise { const result = await this.factory.entity.get( `api/web/projects/${projectId}/elevator/dataCenter/dataRecords`, queryParams ); return result; } /** * 查询升降电梯认证记录司机姓名 * @param projectId 项目Id */ async loadElevatorDriverInfosUniqueName(projectId: string): Promise { const result = await this.factory.entity.get( `api/web/projects/${projectId}/elevator/driverInfos/uniqueNameList` ); return result; } /** * 查询升降电梯认证记录设备 * @param projectId 项目Id * @param params 过滤条件 */ async loadElevatorDriverInfosSimpleDevices(projectId: string, params: any): Promise { const result = await this.factory.entity.get(`api/web/projects/${projectId}/entities/simpleDevices`, params); return result; } /** * 查询升降电梯认证记录数据 * @param projectId 项目Id * @param params 过滤条件 */ async loadElevatorDriverIdentitiesList(projectId: string, params: any): Promise { const result = await this.factory.entity.get( `api/web/projects/${projectId}/elevatorDriverIdentities/getPageList`, params ); return result; } /** * 查询升降电梯认证记录数据导出 * @param projectId 项目Id * @param params 过滤条件 */ async exportElevatorDriverIdentitiesList(projectId: string, params: any): Promise { this.factory.entity.exportFile( `/api/web/projects/${projectId}/elevatorDriverIdentities/getPageList`, params, { ignoreHeaders: false, }, 'gssToken' ); } /** * 导出升降电梯页面Excel数据 * @param projectId 项目Id * @param obj 过滤条件 * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 */ exportElevatorToExcel(projectId: string, queryParams: IElevatorFilterData): void { this.factory.entity.exportFile( `/api/open/web/projects/${projectId}/elevator/dataCenter/excelRecords`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } /****************** 卸料平台 ******************/ /** * 查询卸料平台表格数据 * @param projectId 项目Id * @param queryParams 过滤条件 */ async loadUnloadPlatformTableData( projectId: string, queryParams: IUnloadPlatformFilterData ): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/unloadingPlatform/dataCenter/dataRecords`, queryParams ); return result; } /** * 导出卸料平台页面Excel数据 * @param projectId 项目Id * @param queryParams 过滤条件 * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 */ exportUnloadPlatformToExcel(projectId: string, queryParams: IUnloadPlatformFilterData) { this.factory.entity.exportFile( `/api/open/web/projects/${projectId}/unloadingPlatform/dataCenter/excelRecords`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } /** * 查询卸料平台-预警数据表格数据 * @param projectId 项目Id * @param queryParams 过滤条件 */ async loadUnloadPlatformWarningTableData( projectId: string, queryParams: IUnloadPlatformFilterData ): Promise { const result = await this.factory.entity.get( `/api/open/web/projects/${projectId}/unloadingPlatform/dataCenter/alarm/excelRecords`, queryParams ); return result; } /** * 导出卸料平台-预警数据页面Excel数据 * @param projectId 项目Id * @param queryParams 过滤条件 * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 */ exportUnloadPlatformWarningToExcel(projectId: string, queryParams: IUnloadPlatformFilterData) { this.factory.entity.exportFile( `/api/open/web/projects/${projectId}/unloadingPlatform/dataCenter/alarm/excelRecords`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } /****************** 高支模 ******************/ /** * 查询高支模表格数据 * @param projectId 项目Id * @param queryParams 过滤条件 */ async loadHighFormworkTableData( projectId: string, queryParams: IHighFormworkFilterDataByProgramId ): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/dataCenter/highModulus/dataRecords`, queryParams ); return result; } /** * 查询高支模所有监测点名称 * @param projectId 项目Id */ async loadHighFormworkMonitorNames(projectId: string): Promise { const result = await this.factory.entity.get(`/api/web/projects/${projectId}/highformwork/monitorNames`); return result; } /** * 导出高支模页面Excel数据 * @param projectId 项目Id * @param queryParams 过滤条件 * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 */ exportHighFormworkToExcel(projectId: string, queryParams: IHighFormworkFilterData) { this.factory.entity.exportFile( `/api/open/web/projects/${projectId}/dataCenter/highModulus/excelRecords`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } /** * 查询高支模-预警数据表格数据 * @param projectId 项目Id * @param queryParams 过滤条件 */ async loadHighFormworkWarningTableData( projectId: string, queryParams: IHighFormworkFilterData ): Promise { const result = await this.factory.entity.get( `/api/open/web/projects/${projectId}/dataCenter/highModulus/alarmDataRecords`, queryParams ); return result; } /** * 导出高支模-预警数据页面Excel数据 * @param projectId 项目Id * @param queryParams 过滤条件 * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 */ exportHighFormworkWarningToExcel(projectId: string, queryParams: IHighFormworkFilterData) { this.factory.entity.exportFile( `/api/open/web/projects/${projectId}/dataCenter/highModulus/alarmDataRecords`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } /****************** 临边防护 ******************/ /** * 查询临边防护表格数据 * @param projectId 项目Id * @param queryParams 过滤条件 */ async loadGuardFenceTableData(projectId: string, queryParams: IGuardFenceFilterData): Promise { const result = await this.factory.entity.get( `/api/open/web/projects/${projectId}/guardFence/dataCenter`, queryParams ); return result; } /** * 导出临边防护页面Excel数据 * @param projectId 项目Id * @param queryParams 过滤条件 * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 */ exportGuardFenceToExcel(projectId: string, queryParams: IGuardFenceFilterData) { this.factory.entity.exportFile( `/api/open/web/projects/${projectId}/guardFence/dataCenter`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } /****************** 配电箱 ******************/ /** * 查询配电箱表格数据 * @param projectId 项目Id * @param queryParams 过滤条件 */ async loadSubstationTableData(projectId: string, queryParams: ISubstationFilterData): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/dataCenter/substations/dataRecords/v2`, queryParams ); return result; } /** * 查询配电箱位置数据 * @param projectId 项目Id * @param queryParams 过滤条件 */ async loadSubstationPosition(projectId: string): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/dataCenter/substations/positinList` ); return result; } /** * 导出配电箱页面Excel数据 * @param projectId 项目Id * @param queryParams 过滤条件 * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 */ exportSubstationToExcel(projectId: string, queryParams: ISubstationFilterData) { this.factory.entity.exportFile( `/api/open/web/projects/${projectId}/dataCenter/substations/excelRecords/v2`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } /****************** 水表 ******************/ /** * 查询水表表格数据 * @param projectId 项目Id * @param queryParams 过滤条件 */ async loadWaterMeterTableData(projectId: string, queryParams: IWaterMeterFilterData): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/dataCenter/waterMeter/dataRecords/v2`, queryParams ); return result; } /** * 查询水表位置数据 * @param projectId 项目Id * @param queryParams 过滤条件 */ async loadWaterMeterPosition(projectId: string): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/dataCenter/waterMeter/positinList` ); return result; } /** * 导出水表页面Excel数据 * @param projectId 项目Id * @param queryParams 过滤条件 * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 */ exportWaterMeterToExcel(projectId: string, queryParams: IWaterMeterFilterData) { this.factory.entity.exportFile( `/api/open/web/projects/${projectId}/dataCenter/waterMeter/excelRecords/v2`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } /****************** 混凝土工程 ******************/ /** * 查询混凝土工程表格数据 * @param projectId 项目Id * @param queryParams 过滤条件 */ async loadBetonProjectTableData( projectId: string, queryParams: IBetonProjectFilterData ): Promise { const result = await this.factory.entity.get( `/api/open/web/projects/${projectId}/concrete/dataCenter/dataRecords`, queryParams ); return result; } /** * 查询混凝土工程报警表格数据 * @param projectId 项目Id * @param queryParams 过滤条件 */ async loadBetonProjectAlarmTableData( projectId: string, queryParams: IBetonProjectFilterData ): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/concrete/getAlarmDataRecordsByPage`, queryParams ); return result; } /** * 导出混凝土工程页面Excel数据 * @param projectId 项目Id * @param queryParams 过滤条件 * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 */ exportBetonProjectToExcel(projectId: string, queryParams: IBetonProjectFilterData) { this.factory.entity.exportFile( `/api/open/web/projects/${projectId}/concrete/dataCenter/dataRecords`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } /** * 导出混凝土工程报警页面Excel数据 * @param projectId 项目Id * @param queryParams 过滤条件 * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 */ exportBetonProjectAlarmToExcel(projectId: string, queryParams: IBetonProjectFilterData) { this.factory.entity.exportFile( `/api/open/web/projects/${projectId}/concrete/getAlarmDataRecordsByPage`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } /****************** 安全 ******************/ /** * 查询安全表格数据 * @param projectId 项目Id * @param queryParams 过滤条件 */ async loadSecurityTableData(projectId: string, queryParams: SecurityFilterData): Promise { const result = await this.factory.gssApi.get( `/web/projects/${projectId}/dataCenter/safety/records`, queryParams ); return result; } /** * 导出安全页面Excel数据 * @param projectId 项目Id * @param queryParams 过滤条件 * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 */ exportSecurityToExcel(projectId: string, queryParams: SecurityFilterData) { this.factory.gssApi.exportFile( `/open/web/projects/${projectId}/dataCenter/safety/excelRecords`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } /** * 获取安全页面查询条件 * @param projectId 项目Id * @param queryParams 过滤条件 * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 */ async getSecurityQueryCondition(projectId: string): Promise { const result = await this.factory.gssApi.get( `/web/projects/${projectId}/dataCenter/safety/options` ); return result; } /****************** 质量 ******************/ /** * 查询质量表格数据 * @param projectId 项目Id * @param queryParams 过滤条件 */ async loadQualityTableData(projectId: string, queryParams: SecurityFilterData): Promise { const result = await this.factory.gssApi.get( `/web/projects/${projectId}/dataCenter/quality/records`, queryParams ); return result; } /** * 导出质量页面Excel数据 * @param projectId 项目Id * @param queryParams 过滤条件 * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 */ exportQualityToExcel(projectId: string, queryParams: SecurityFilterData) { this.factory.gssApi.exportFile( `/open/web/projects/${projectId}/dataCenter/quality/excelRecords`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } /** * 获取质量页面查询条件 * @param projectId 项目Id * @param queryParams 过滤条件 * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 */ async getQualityQueryCondition(projectId: string): Promise { const result = await this.factory.gssApi.get( `/web/projects/${projectId}/dataCenter/quality/options` ); return result; } /****************** 环境监测 - 报警记录 ******************/ /** * 查询报警记录表格数据 * @param projectId 项目Id * @param queryParams 过滤条件 api//web/projects/{projectId}/environments/pmAlarms/byDate/outOfLimitDetails */ async loadAlarmRecordTableData(projectId: string, queryParams: AlarmRecordFilterData): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/environments/pmAlarms/byDate/outOfLimitDetails`, queryParams ); return result; } /** * 导出报警记录页面Excel数据 * @param projectId 项目Id * @param queryParams 过滤条件 * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 */ exportAlarmRecordToExcel(projectId: string, queryParams: AlarmRecordFilterData) { this.factory.entity.exportFile( `/api/open/web/projects/${projectId}/environments/pmAlarms/byDate/outOfLimitDetails`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } /****************** 环境监测 - 历史数据 ******************/ /** * 查询历史数据表格数据 * @param projectId 项目Id * @param queryParams 过滤条件 */ async loadHistoryDataTableData( projectId: string, queryParams: IHistoryDataFilterData ): Promise { const result = await this.factory.entity.get( `/api/open/web/projects/${projectId}/environments/dataList`, queryParams ); return result; } /** * 导出历史数据页面Excel数据 * @param projectId 项目Id * @param queryParams 过滤条件 * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 */ exportHistoryDataToExcel(projectId: string, queryParams: IHistoryDataFilterData) { this.factory.entity.exportFile( `/api/open/web/projects/${projectId}/environments/dataList`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } /****************** 和风天气 ******************/ /** * 查询和风天气表格数据 * @param projectId 项目Id * @param queryParams 过滤条件 */ async loadHeWeatherTableData(projectId: string, queryParams: HeWeatherFilterData): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/dataCenter/softBreeze/dataRecords`, queryParams ); return result; } /** * 导出和风天气页面Excel数据 * @param projectId 项目Id * @param queryParams 过滤条件 * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 */ exportHeWeatherToExcel(projectId: string, queryParams: HeWeatherFilterData) { this.factory.entity.exportFile( `/api/open/web/projects/${projectId}/dataCenter/softBreeze/excelRecords`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } /****************** 周界防护 ******************/ /** * 查询周界防护表格数据 * @param projectId 项目Id * @param queryParams 过滤条件 */ async loadBorderGuardTableData( projectId: string, queryParams: IBorderGuardFilterData ): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/dataCenter/aroundProtect/dataRecords`, queryParams ); return result; } /** * 导出周界防护页面Excel数据 * @param projectId 项目Id * @param queryParams 过滤条件 * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 */ exportBorderGuardToExcel(projectId: string, queryParams: IBorderGuardFilterData) { this.factory.entity.exportFile( `/api/open/web/projects/${projectId}/dataCenter/aroundProtect/excelRecords`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } /****************** 车辆识别 ******************/ /** * 查询车辆识别表格数据 * @param projectId 项目Id * @param queryParams 过滤条件 */ async VehicleTableData(projectId: string, queryParams: VehicleData): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/vehiclegates/getInOutCarInfosByCondition`, queryParams ); return result; } /** * 导出车辆识别页面Excel数据 * @param projectId 项目Id * @param queryParams 过滤条件 * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 * 等接口 内容与 exportBorderGuardToExcel类似 */ exportVehicleToExcel(projectId: string, queryParams: IBorderGuardFilterData) { this.factory.entity.exportFile( `/api/web/projects/${projectId}/vehiclegates/excelRecords`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } /****************** 通行记录 ******************/ /** * 查询车辆识别表格数据 * @param projectId 项目Id * @param queryParams 过滤条件 */ async AccessRecordsData(projectId: string, queryParams: any): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/vehiclegates/dataCenter/records`, queryParams ); return result; } /** * 导出车辆识别页面Excel数据 * @param projectId 项目Id * @param queryParams 过滤条件 * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 * 等接口 内容与 exportBorderGuardToExcel类似 */ exportAccessRecordsToExcel(projectId: string, queryParams: IBorderGuardFilterData) { this.factory.entity.exportFile( `/api/web/projects/${projectId}/vehiclegates/dataCenter/records`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } /****************** 生产台账 ******************/ /** * 查询生产台账表格数据 * @param projectId 项目Id * @param queryParams 过滤条件 */ async loadProductionLedgerData( projectId: string, queryParams: IProductionLedgerFilterData ): Promise { const result = await this.factory.gssApi.get( `/projects/${projectId}/inspection/machine/productionLedger`, queryParams ); return result; } /** * 查询拌合站列表 * @param projectId 项目Id */ async loadMachineProjectInfos(projectId: string): Promise { const result = await this.factory.gssApi.get( `/projects/${projectId}/inspection/machine/getMachineProjectInfos` ); return result; } /** * 查询生产台账条件数据 * @param projectId 项目Id * @param machineProjectId 拌合站id */ async loadProductionLedgerConditionData( projectId: string, machineProjectId: string ): Promise { const result = await this.factory.gssApi.get( `/projects/${projectId}/inspection/machine/getDataCenterCondition?machineProjectId=${machineProjectId}` ); return result; } /** * 导出生产台账页面Excel数据 * @param projectId 项目Id * @param queryParams 过滤条件 * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 */ exportProductionLedgerToExcel(projectId: string, queryParams: IProductionLedgerFilterData) { this.factory.gssApi.exportFile( `/projects/${projectId}/inspection/machine/productionLedger`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } /****************** 基坑数据 ******************/ /** * 历史记录下拉框条件 * @param projectId 项目Id * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 */ async loadFoundationPitSelectData(projectId: string): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/foundation/dataCenter/conditions` ); return result; } /** * 历史记录查询条件 * @param projectId 项目Id * * @param queryParams 过滤条件 * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 */ async loadFoundationPitHistorySearchData(projectId: string, queryParams: any): Promise { const result = await this.factory.entity.get( `/api/open/web/projects/${projectId}/foundation/dataCenter/excelRecords`, queryParams ); return result; } /** * 导出历史数据页面Excel数据 * @param projectId 项目Id * @param queryParams 过滤条件 * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 */ exportFoundationPitHistorySearchData(projectId: string, queryParams: any) { this.factory.entity.exportFile( `/api/open/web/projects/${projectId}/foundation/dataCenter/excelRecords`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } /** * 基坑警告查询条件 * @param projectId 项目Id * * @param queryParams 过滤条件 * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 */ async loadFoundationPitAlarmRecordData(projectId: string, queryParams: any): Promise { const result = await this.factory.entity.get( `/api/open/web/projects/${projectId}/foundation/dataCenter/alarm/excelRecords`, queryParams ); return result; } /** * 导出基坑警告页面Excel数据 * @param projectId 项目Id * @param queryParams 过滤条件 * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 */ exportFoundationPitAlarmRecordData(projectId: string, queryParams: any) { this.factory.entity.exportFile( `/api/open/web/projects/${projectId}/foundation/dataCenter/alarm/excelRecords`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } /****************** 库房监测 ******************/ /** * 查询库房监测表格数据 * @param projectId 项目Id * @param queryParams 过滤条件 */ async loadTreasuryTableData(projectId: string, queryParams: TreasuryFormData): Promise { const result = await this.factory.entity.get( `/api/open/web/projects/${projectId}/treasury/dataCenter/excelRecords`, queryParams ); return result; } /** * 查询库房报警记录数据 * @param projectId 项目Id * @param queryParams 过滤条件 */ async loadTreasuryTableAlarmData(projectId: string, queryParams: TreasuryFormData): Promise { const result = await this.factory.entity.get( `/api/open/web/projects/${projectId}/treasury/dataCenter/excelAlarmRecords`, queryParams ); return result; } /** * 导出基坑警告页面Excel数据 * @param projectId 项目Id * @param queryParams 过滤条件 * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 */ exportTreasuryMonitorData(projectId: string, queryParams: any) { this.factory.entity.exportFile( `/api/open/web/projects/${projectId}/treasury/dataCenter/excelRecords`, queryParams ); } exportTreasuryMonitorAlarmData(projectId: string, queryParams: any) { this.factory.entity.exportFile( `/api/open/web/projects/${projectId}/treasury/dataCenter/excelAlarmRecords`, queryParams ); } /****************** 养护室监测 ******************/ /** * 查询养护室监测表格数据 * @param projectId 项目Id * @param queryParams 过滤条件 */ async loadCuringRoomTableData(projectId: string, queryParams: CuringRoomFormData): Promise { const result = await this.factory.entity.get( `/api/open/web/projects/${projectId}/curingRoom/dataCenter/excelRecords`, queryParams ); return result; } /** * 查询养护室报警记录数据 * @param projectId 项目Id * @param queryParams 过滤条件 */ async loadCuringRoomTableAlarmData(projectId: string, queryParams: TreasuryFormData): Promise { const result = await this.factory.entity.get( `/api/open/web/projects/${projectId}/curingRoom/dataCenter/excelAlarmRecords`, queryParams ); return result; } /** * 导出基坑警告页面Excel数据 * @param projectId 项目Id * @param queryParams 过滤条件 * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 */ exportCuringRoomMonitorData(projectId: string, queryParams: any) { this.factory.entity.exportFile( `/api/open/web/projects/${projectId}/curingRoom/dataCenter/excelRecords`, queryParams ); } exportCuringRoomMonitorAlarmData(projectId: string, queryParams: any) { this.factory.entity.exportFile( `/api/open/web/projects/${projectId}/curingRoom/dataCenter/excelAlarmRecords`, queryParams ); } /****************** 架桥机-报警数据 ******************/ /** * 查询报警记录表格数据 * @param projectId 项目Id * @param queryParams 过滤条件 */ async loadBridgeWarningTableData( projectId: string, queryParams: BridgeWarningFilterList ): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/launchingGantry/alarmRecords`, queryParams ); return result; } /** * 查询电梯施工电梯-预警数据表格数据 * @param projectId 项目Id * @param queryParams 过滤条件 */ async loadElevatorWarningTableData( projectId: string, queryParams: ElevatorWarningFilterData ): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/elevator/alarmRecords`, queryParams ); return result; } /** * 报警记录表格导出 * @param projectId 项目Id * @param queryParams 过滤条件 */ exportBridgeWarningToExcel(projectId: string, queryParams: BridgeWarningFilterList) { this.factory.entity.exportFile( `/api/open/web/projects/${projectId}/launchingGantry/alarmRecords/excelRecords`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } /****************** 架桥机-工作循环 ******************/ /** * 查询工作循环表格数据 * @param projectId 项目Id * @param queryParams 过滤条件 */ async loadBridgeWorkCycleTableData( projectId: string, queryParams: BridgeWarningFilterList ): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/launchingGantry/workInfoRecords`, queryParams ); return result; } /** * 工作循环表格导出 * @param projectId 项目Id * @param queryParams 过滤条件 */ exportBridgeWorkCycleToExcel(projectId: string, queryParams: BridgeWarningFilterList) { this.factory.entity.exportFile( `/api/open/web/projects/${projectId}/launchingGantry/workInfoRecords`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } /** * 导出施工电梯-预警数据页面Excel数据 * @param projectId 项目Id * @param queryParams 过滤条件 * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 */ exportElevatorWarningToExcel(projectId: string, queryParams: ElevatorWarningFilterData) { this.factory.entity.exportFile( `/api/open/web/projects/${projectId}/elevator/alarmRecords`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } /****************** 盾构机 ******************/ /** * 查询盾构机历史记录 * @param projectId 项目Id * @param queryParams 过滤条件 */ async loadShieldMachineTableData( projectId: string, queryParams: IShieldMachineFilterData ): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/dataCenter/shieldmachine/his/alarmRecords?`, queryParams ); return result; } /** * 导出盾构机-历史记录页面Excel数据 * @param projectId 项目Id * @param queryParams 过滤条件 * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 */ exportShieldMachineToExcel(projectId: string, queryParams: IShieldMachineFilterData) { this.factory.entity.exportFile( `/api/open/web/projects/${projectId}/dataCenter/shieldmachine/his/exportAlarmRecords`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } /** * 查询盾构机-报警记录 * @param projectId 项目Id * @param queryParams 过滤条件 */ async loadShieldMachineWarningTableData( projectId: string, queryParams: IShieldMachineFilterData ): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/dataCenter/shieldmachine/alarmRecords`, queryParams ); return result; } /** * 导出盾构机-报警记录页面Excel数据 * @param projectId 项目Id * @param queryParams 过滤条件 * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 */ exportShieldMachineWarningToExcel(projectId: string, queryParams: IShieldMachineFilterData) { this.factory.entity.exportFile( `/api/open/web/projects/${projectId}/dataCenter/shieldmachine/exportAlarmRecords`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } /****************** 沥青拌合站 ******************/ /** * 查询沥青拌合站-历史记录 * @param projectId 项目Id * @param queryParams 过滤条件 */ async loadPitchHistory(projectId: string, queryParams: IPitchMixStationParams) { const result = await this.factory.entity.get( `/api/open/web/projects/${projectId}/pitchMixStation/dataCenter/excelRecords`, queryParams ); return result; } /** * 查询沥青拌合站-历史记录-导出 * @param projectId 项目Id * @param queryParams 过滤条件 */ exportPitchHistory(projectId: string, queryParams: IPitchMixStationParams) { this.factory.entity.exportFile( `/api/open/web/projects/${projectId}/pitchMixStation/dataCenter/excelRecords`, queryParams ); } /** * 查询沥青拌合站-报警记录 * @param projectId 项目Id * @param queryParams 过滤条件 */ async loadPitchWarning(projectId: string, queryParams: IPitchMixStationParams) { const result = await this.factory.entity.get( `/api/open/web/projects/${projectId}/pitchMixStation/dataCenter/excelAlarmRecords`, queryParams ); return result; } /** * 查询沥青拌合站-报警记录-导出 * @param projectId 项目Id * @param queryParams 过滤条件 */ exportPitchWarning(projectId: string, queryParams: IPitchMixStationParams) { this.factory.entity.exportFile( `/api/open/web/projects/${projectId}/pitchMixStation/dataCenter/excelAlarmRecords`, queryParams ); } /****************** 摊铺机 ******************/ /** * 查询摊铺机-历史记录 * @param projectId 项目Id * @param queryParams 过滤条件 */ async loadPaverHistory(projectId: string, queryParams: IPitchMixStationParams) { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/paverCompactor/paver/listPaverJobRecords`, queryParams ); return result; } /** * 查询摊铺机-历史记录-导出 * @param projectId 项目Id * @param queryParams 过滤条件 */ exportPaverHistory(projectId: string, queryParams: IPitchMixStationParams) { this.factory.entity.exportFile( `/api/open/web/projects/${projectId}/paverCompactor/paver/exportPaverJobRecords`, queryParams ); } /****************** 压实机 ******************/ /** * 查询压实机-历史记录 * @param projectId 项目Id * @param queryParams 过滤条件 */ async loadCompactorHistory(projectId: string, queryParams: IPitchMixStationParams) { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/paverCompactor/compactor/listCompactorJobRecords`, queryParams ); return result; } /** * 查询压实机-历史记录-导出 * @param projectId 项目Id * @param queryParams 过滤条件 */ exportCompactorHistory(projectId: string, queryParams: IPitchMixStationParams) { this.factory.entity.exportFile( `/api/open/web/projects/${projectId}/paverCompactor/compactor/exportCompactorJobRecords`, queryParams ); } /****************** 龙门吊-预警数据 ******************/ /** * 查询龙门吊-预警数据表格数据 * @param projectId 项目Id * @param queryParams 过滤条件 */ async loadGantryCraneWarningTableData( projectId: string, queryParams: IGantryCraneFilterData ): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/gantrycrane/alarmRecords`, queryParams ); return result; } /** * 导出龙门吊-预警数据页面Excel数据 * @param projectId 项目Id * @param queryParams 过滤条件 * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 */ exportGantryCraneWarningToExcel(projectId: string, queryParams: IGantryCraneFilterData) { this.factory.entity.exportFile( `/api/open/web/projects/${projectId}/gantrycrane/alarmRecords`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } /****************** 龙门吊-工作循环 ******************/ /** * 查询龙门吊-工作循环表格数据 * @param projectId 项目Id * @param queryParams 过滤条件 */ async loadGantryCraneTableData(projectId: string, queryParams: IGantryCraneFilterData): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/gantrycrane/workInfoRecords`, queryParams ); return result; } /** * 导出龙门吊-工作循环页面Excel数据 * @param projectId 项目Id * @param queryParams 过滤条件 * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 */ exportGantryCraneToExcel(projectId: string, queryParams: IGantryCraneFilterData) { this.factory.entity.exportFile( `/api/open/web/projects/${projectId}/gantrycrane/workInfoRecords`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } /****************** 劳务 ******************/ /** * 查询劳务表格数据 * @param queryParams 过滤条件 */ async loadLaborTableData(queryParams: LaborFilterData): Promise { const result = await this.factory.gssApi.get(`/projects/labor/data/center`, queryParams); return result; } /****************** 劳务 ******************/ /** * 导出劳务页面Excel数据 * @param queryParams 过滤条件 */ exportLaborToExcel(queryParams: LaborFilterData) { this.factory.gssApi.exportFile( `/projects/labor/data/center`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } /****************** 污水监测 - 历史数据 ******************/ /** * 查询历史数据表格数据 * @param projectId 项目Id * @param queryParams 过滤条件 */ async loadSewageTableData(projectId: string, queryParams: IloadSewageTableData): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/sewage/dataCenter/excelRecords`, queryParams ); return result; } /** * 查询报警表格数据 * @param projectId 项目Id * @param queryParams 过滤条件 */ async loadSewageAlarmData( projectId: string, queryParams: IloadSewagealarmTableData ): Promise { const result = await this.factory.entity.get( `api/web/projects/${projectId}/sewage/dataCenter/excelAlarmRecords`, queryParams ); return result; } // 获取污水设备 async searchDevicSelectList(projectId: string, type: any): Promise { const result = await this.factory.entity.get( `/api/open/web/projects/${projectId}/entities/simpleDevices?deviceType=${type}` ); return result; } /** * 导出污水监测-报警记录页面Excel数据 * @param projectId 项目Id * @param queryParams 过滤条件 * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 */ exportSewageAlarmToExcel(projectId: string, queryParams: LaborFilterData) { this.factory.entity.exportFile( `/api/open/web/projects/${projectId}/sewage/dataCenter/excelAlarmRecords`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } /** * 导出污水监测-历史记录页面Excel数据 * @param projectId 项目Id * @param queryParams 过滤条件 * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 */ exportSewageHistoryToExcel(projectId: string, queryParams: LaborFilterData) { this.factory.entity.exportFile( `/api/open/web/projects/${projectId}/sewage/dataCenter/excelRecords`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } /****************** 气体监测 - 历史数据 ******************/ /** */ async loadGasTableData(projectId: string, queryParams: any): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/harmfulgas/dataCenter/excelRecords`, queryParams ); return result; } // 气体报警记录 async loadGasAlarmData(projectId: string, queryParams: any): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/harmfulgas/dataCenter/excelAlarmRecords`, queryParams ); return result; } /** * 导出气体监测-报警记录页面Excel数据 * @param projectId 项目Id * @param queryParams 过滤条件 * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 */ exportGasAlarmToExcel(projectId: string, queryParams: any) { this.factory.entity.exportFile( `/api/open/web/projects/${projectId}/harmfulgas/dataCenter/excelAlarmRecords`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } /** * 导出气体监测-历史记录页面Excel数据 * @param projectId 项目Id * @param queryParams 过滤条件 * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 */ exportGasHistoryToExcel(projectId: string, queryParams: any) { this.factory.entity.exportFile( `/api/open/web/projects/${projectId}/harmfulgas/dataCenter/excelRecords`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } /****************** 吊篮监测 - 历史数据 ******************/ /** */ async hangBasketHistoryData(projectId: string, queryParams: any): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/hangbasket/dataCenter/excelRecords`, queryParams ); return result; } // 吊篮报警记录 async hangBasketAlarmData(projectId: string, queryParams: any): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/hangbasket/dataCenter/excelAlarmRecords`, queryParams ); return result; } /** * 导出吊篮监测-报警记录页面Excel数据 * @param projectId 项目Id * @param queryParams 过滤条件 * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 */ exportHangBasketAlarm(projectId: string, queryParams: any) { this.factory.entity.exportFile( `/api/open/web/projects/${projectId}/hangbasket/dataCenter/excelAlarmRecords`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } /** * 导出吊篮监测-历史记录页面Excel数据 * @param projectId 项目Id * @param queryParams 过滤条件 * 注: 为用户体验,下载过程不可阻止页面体验,异步进行即可 */ exportHangBasketHistory(projectId: string, queryParams: any) { this.factory.entity.exportFile( `/api/open/web/projects/${projectId}/hangbasket/dataCenter/excelRecords`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } /****************** 电子巡更 ******************/ /** * 电子巡更-历史记录 * @param projectId 项目Id * @param queryParams 过滤条件 */ async electronicPatrolHistoryData(projectId: string, queryParams: any): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/electronicPatrol/dataCenter/history/getHistoryInfoListByPage`, queryParams ); return result; } /** * 电子巡更-历史查询条件 * @param projectId 项目Id */ async getHistoryRecordQueryConditon(projectId: string): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/electronicPatrol/dataCenter/history/getHistoryRecordQueryConditon` ); return result; } /** * 导出电子巡更历史数据 * @param queryParams 过滤条件 */ exportElectronicPatrolHistoryData(projectId: string, queryParams: any) { this.factory.entity.exportFile( `/api/web/projects/${projectId}/electronicPatrol/dataCenter/history/getHistoryInfoListByPage`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } /** * 电子巡更-巡检计划查询条件 * @param projectId 项目Id */ async getInspectionReportQueryConditon(projectId: string): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/electronicPatrol/dataCenter/inspection/getInspectionReportQueryConditon` ); return result; } /** * 电子巡更-巡检计划数据 * @param projectId 项目Id * @param queryParams 过滤条件 */ async getInspectionInfoListByPage(projectId: string, queryParams: any): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/electronicPatrol/dataCenter/inspection/getInspectionInfoListByPage`, queryParams ); return result; } /** * 电子巡更-巡检计划数据明细 * @param projectId 项目Id * @param queryParams 过滤条件 */ async getInspectionInfoListByPageDetail(projectId: string, reportId: string, queryParams: any): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/electronicPatrol/dataCenter/inspection/getInspectionDetailsByReportId/${reportId}`, queryParams ); return result; } /** * 导出电子巡更巡检计划 * @param queryParams 过滤条件 */ exportInspectionInfoListByPage(projectId: string, queryParams: any) { this.factory.entity.exportFile( `/api/web/projects/${projectId}/electronicPatrol/dataCenter/inspection/getInspectionInfoListByPage`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } // 电子锁 数据中心 // 电子锁 数据中心 async lockTableDatas(projectId: string, queryParams: any): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/electronicLock/dataCenter/electronicLock/dataRecords`, queryParams ); return result; } /** * 电子锁 导出 * @param queryParams 过滤条件 */ exportLockData(projectId: string, queryParams: any) { this.factory.entity.exportFile( `/api/web/projects/${projectId}/electronicLock/dataCenter/electronicLock/dataRecords/export`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } // 数据中心-钢丝绳损伤-损伤记录 async getSteelWireAlarmData(projectId: string, queryParams: SteelWireFilterData) { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/wireRope/dataCenter/queryWireRopeDamageRecordsByPage`, queryParams ); return result; } // 数据中心-钢丝绳损伤-损伤记录下载 exportSteelWireAlarmData(projectId: string, queryParams: SteelWireFilterData) { this.factory.entity.exportFile( `/api/web/projects/${projectId}/wireRope/dataCenter/queryWireRopeDamageRecordsByPage`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } // 数据中心-钢丝绳损伤-历史记录 async getSteelWireHistoryData(projectId: string, queryParams: SteelWireFilterData) { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/wireRope/dataCenter/queryWireRopeMonitorRecordsByPage`, queryParams ); return result; } // 数据中心-钢丝绳损伤-历史记录下载 exportSteelWireHistoryData(projectId: string, queryParams: SteelWireFilterData) { this.factory.entity.exportFile( `/api/web/projects/${projectId}/wireRope/dataCenter/queryWireRopeMonitorRecordsByPage`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } // 桩机 历史记录 async pileTableDatas(projectId: string, queryParams: any): Promise { const result = await this.factory.entity.post( `/api/web/projects/${projectId}/pileMachine/getPileMachinesPage`, queryParams ); return result; } // 桩机 数据 async pileOverData(projectId: string, deviceId: string): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/pileMachine/getPileMachine/${deviceId}` ); return result; } /** * 桩机 导出 * @param queryParams 过滤条件 */ exportPileData(projectId: string, queryParams: any) { this.factory.entity.exportFile( `/api/web/projects/${projectId}/pileMachine/exportPileMachines`, queryParams, { ignoreHeaders: false, }, 'gssToken' ); } }