import { ApiClientFactory } from '../core/api.client.factory'; import { ElectricityDeviceIdModel, ElectricitModel, CraneParamModel, ILocationTableItem, IAddLocationItem, IEditLocationItem, ILevelTableItem, IAddLevelItem, IEditLevelItem, IGantryCraneParamModel, IloadWaterSavingInfo, IAnnouncementList, IAddAnnouncementData, ILoadAnnouncementListParams, IWaterDeviceUpdateRulesTable, IWaterDeviceFormRules, IWaterDeviceItem, IWaterDeviceUpdateRulesItem, ISubstationDeviceUpdateRulesItem, ISubstationDeviceUpdateRulesTable, ISubstationDeviceFormRules, ISubstationDeviceItem, IWaterPower, IWaterMeterPosition, ISubstationPositionQueryValueAllot, } from '../model/configGlobal.model'; export class ConfigGlobal { constructor(private factory: ApiClientFactory) {} // 获取用电设备Id async loadElectricityDeviceId(projectId: string): Promise { const url = `/api/web/projects/${projectId}/electric/deviceId`; const deviceId = await this.factory.entity.get(url); return deviceId; } // 设置用电设备用电量 async loadElectricity(projectId: string, elecDeviceId: string, elecInitQuantity: number): Promise { const url = `/api/web/projects/${projectId}/electric/admin/init/configuration`; const result = await this.factory.entity.post(url, { elecDeviceId, elecInitQuantity, }); return result; } // 是否设置过电量,及获取初始值 async loadElectricityInit(projectId: string, elecDeviceId: string): Promise { const url = `/api/web/projects/${projectId}/electric/admin/init/configuration`; const result = await this.factory.entity.get(url, { elecDeviceId }); return result; } // 位置--获取用电箱对应的表格 async loadElectricityBoxLocationTable(projectId: string): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/substationPositionInfos` ); return result; } // 位置--增加用电箱对应的表格 async addElectricityBoxLocationTableRecord(projectId: string, paramsData: IAddLocationItem): Promise { const result = await this.factory.entity.post( `/api/web/projects/${projectId}/substationPositionInfos`, paramsData ); return result; } // 位置--删除用电箱对应的表格 async deleteElectricityBoxLocationTableRecord(projectId: string, id: string): Promise { const result = await this.factory.entity.delete( `/api/web/projects/${projectId}/substationPositionInfos/${id}` ); return result; } // 位置--编辑用电箱对应的表格 async editElectricityBoxLocationTableRecord( projectId: string, id: string, paramsData: IEditLocationItem ): Promise { const result = await this.factory.entity.put( `/api/web/projects/${projectId}/substationPositionInfos/${id}`, paramsData ); return result; } // 等级--获取用电箱对应的表格 async loadElectricityBoxLevelTable(projectId: string): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/substationLevel/admin/queryConfigure` ); return result; } // 等级--增加用电箱对应的表格 async addElectricityBoxLevelTableRecord(projectId: string, paramsData: IAddLevelItem): Promise { const result = await this.factory.entity.post( `/api/web/projects/${projectId}/substationLevel/admin/addConfigure`, paramsData ); return result; } // 等级--删除用电箱对应的表格 async deleteElectricityBoxLevelTableRecord(projectId: string, id: string): Promise { const result = await this.factory.entity.delete( `/api/web/projects/${projectId}/substationLevel/admin/deleteConfigure/${id}` ); return result; } // 等级--编辑用电箱对应的表格 async editElectricityBoxLevelTableRecord( projectId: string, id: string, paramsData: IEditLevelItem ): Promise { const result = await this.factory.entity.post( `/api/web/projects/${projectId}/substationLevel/admin/updateConfigure /${id}`, paramsData ); return result; } // 水表初始值查询 async loadWaterMeterInitValue(projectId: string): Promise<{ value: number, unAllotvalue: number }> { const result = await this.factory.entity.get<{ value: number, unAllotvalue: number }>( `/api/web/projects/${projectId}/waterMeter/admin/init/configuration` ); return result; } // 保存水表初始值 async saveWaterMeterInitValue(projectId: string, value: string = ''): Promise { const result = await this.factory.entity.post( `/api/web/projects/${projectId}/waterMeter/admin/init/configuration`, { value, } ); return result; } // 位置--获取水表对应的表格 async loadWaterMeterLocationTable(projectId: string): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/waterMeterPositionInfos` ); return result; } // 位置--增加水表对应的表格 async addWaterMeterLocationTableRecord(projectId: string, paramsData: IAddLocationItem): Promise { const result = await this.factory.entity.post( `/api/web/projects/${projectId}/waterMeterPositionInfos`, paramsData ); return result; } // 位置--删除水表对应的表格 async deleteWaterMeterLocationTableRecord(projectId: string, id: string): Promise { const result = await this.factory.entity.delete( `/api/web/projects/${projectId}/waterMeterPositionInfos/${id}` ); return result; } // 位置--编辑水表对应的表格 async editWaterMeterLocationTableRecord( projectId: string, id: string, paramsData: IEditLocationItem ): Promise { const result = await this.factory.entity.put( `/api/web/projects/${projectId}/waterMeterPositionInfos/${id}`, paramsData ); return result; } // 等级--获取水表对应的表格 async loadWaterMeterLevelTable(projectId: string): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/waterMeterLevel/admin/queryConfigure` ); return result; } // 等级--增加水表对应的表格 async addWaterMeterLevelTableRecord(projectId: string, paramsData: IAddLevelItem): Promise { const result = await this.factory.entity.post( `/api/web/projects/${projectId}/waterMeterLevel/admin/addConfigure`, paramsData ); return result; } // 等级--删除水表对应的表格 async deleteWaterMeterLevelTableRecord(projectId: string, id: string): Promise { const result = await this.factory.entity.delete( `/api/web/projects/${projectId}/waterMeterLevel/admin/deleteConfigure/${id}` ); return result; } // 等级--编辑水表对应的表格 async editWaterMeterLevelTableRecord(projectId: string, id: string, paramsData: IEditLevelItem): Promise { const result = await this.factory.entity.post( `/api/web/projects/${projectId}/waterMeterLevel/admin/updateConfigure /${id}`, paramsData ); return result; } // 获取用水量 async loadGetWaterMeter(projectId: string, deviceId: string): Promise { const url = `/api/web/projects/${projectId}/waterMeter/${deviceId}`; const result = await this.factory.entity.get(url); return result; } // 等级--获取塔吊参数 async loadCraneParam(projectId: string): Promise { const url = `/api/web/projects/${projectId}/cranes/ratio`; const result = await this.factory.entity.get(url); return result; } // 保存塔吊参数 async postCraneParam(projectId: string, ratio: number): Promise { const url = `/api/web/projects/${projectId}/cranes/ratio`; const result = await this.factory.entity.post(url, { ratio }); return result; } // 等级--获取龙门吊参数 async loadGantryCraneParam(projectId: string): Promise { const url = `/api/web/projects/${projectId}/cranes/ratio`; const result = await this.factory.entity.get(url); return result; } // 水表目标信息展示 async loadWaterSavingInfo(projectId: string, phaseEnum?: string): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/water/saving/info`, { phaseEnum } ); return result; } // 时间校验 async loadPhaseCheckDate( projectId: string, data: any ): Promise { const result = await this.factory.entity.post( `/api/web/projects/${projectId}/power/saving/v2/checkDate`, data ); return result; } // 水表目标信息保存 async loadWaterSavingEdit(projectId: string, params: IloadWaterSavingInfo): Promise { const result = await this.factory.entity.post(`/api/web/projects/${projectId}/water/saving/edit`, params); return result; } // 水表目标信息删除 async loadWaterSavingDelete(projectId: string, id: string): Promise { const result = await this.factory.entity.delete( `/api/web/projects/${projectId}/target/value/delete/${id}` ); return result; } // 电表目标信息展示 async loadPowerSavingInfo(projectId: string, phaseEnum?: string): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/power/saving/info`, { phaseEnum } ); return result; } // 电表目标信息保存 async loadPowerSavingEdit(projectId: string, params: IloadWaterSavingInfo): Promise { const result = await this.factory.entity.post(`/api/web/projects/${projectId}/power/saving/edit`, params); return result; } // ======项目公告====== // 获取公告列表 async loadAnnouncementList(projectId: string, params: ILoadAnnouncementListParams): Promise { const result = await this.factory.gssApi.get( `/web/projects/${projectId}/projectNotice/getProjectNoticeList`, params ); return result; } // 删除公告 async deleteAnnouncementItem(projectId: string, noticeId: string): Promise { const result = await this.factory.gssApi.delete( `/web/projects/${projectId}/projectNotice/removeProjectNotice/noticeId/${noticeId}` ); return result; } // 增加公告 async addAnnouncementItem(projectId: string, params: IAddAnnouncementData): Promise { const result = await this.factory.gssApi.post( `/web/projects/${projectId}/projectNotice/addNotice`, params ); return result; } // 切换公告状态 async exchangeAnnouncementStatus(projectId: string, noticeId: string, status: number): Promise { const result = await this.factory.gssApi.get( `/web/projects/${projectId}/projectNotice/switchProjectNoticeStatus/noticeId/${noticeId}`, { status, } ); return result; } // 编辑公告内容 async updateAnnouncementItem(projectId: string, noticeId: string, params: IAddAnnouncementData): Promise { const result = await this.factory.gssApi.post( `/web/projects/${projectId}/projectNotice/editProjectNotice/noticeId/${noticeId}`, params ); return result; } // 获取规则后的水设备列表 async loadNoRuleWaterDeviceList(projectId: string): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/waterMeters/waterMeterLimit/getFreshDeviceList` ); return result; } // 水表限量规则添加 async addWaterDeviceRules(projectId: string, formData: IWaterDeviceFormRules): Promise { const result = await this.factory.entity.post( `/api/web/projects/${projectId}/waterMeters/waterMeterLimit/save`, formData ); return result; } // 水表限量规则获取 async getWaterDeviceRules(projectId: string, id: string): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/waterMeters/waterMeterLimit/getById/${id}` ); return result; } // 水表限量规则更新 async updateWaterDeviceRules(projectId: string, id: string, formData: IWaterDeviceFormRules): Promise { const result = await this.factory.entity.post( `/api/web/projects/${projectId}/waterMeters/waterMeterLimit/update/${id}`, formData ); return result; } // 水表限量规则删除 async deleteWaterDeviceRules(projectId: string, id: string): Promise { const result = await this.factory.entity.delete( `/api/web/projects/${projectId}/waterMeters/waterMeterLimit/delete/${id}` ); return result; } // 水表限量规则列表 async loadWaterDeviceTableRules( projectId: string, pageIndex: number, pageSize: number ): Promise { const paramsData = { pageIndex, pageSize }; const result = await this.factory.entity.get( `/api/web/projects/${projectId}/waterMeters/waterMeterLimit/getListByPage`, paramsData ); return result; } // 获取规则后的水设备列表 async loadNoRuleSubstationDeviceList(projectId: string): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/substations/substationLimit/getFreshDeviceList` ); return result; } // 电表限量规则添加 async addSubstationDeviceRules(projectId: string, formData: ISubstationDeviceFormRules): Promise { const result = await this.factory.entity.post( `/api/web/projects/${projectId}/substations/substationLimit/save`, formData ); return result; } // 电表限量规则获取 async getSubstationDeviceRules(projectId: string, id: string): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/substations/substationLimit/getById/${id}` ); return result; } // 电表限量规则更新 async updateSubstationDeviceRules( projectId: string, id: string, formData: ISubstationDeviceFormRules ): Promise { const result = await this.factory.entity.post( `/api/web/projects/${projectId}/substations/substationLimit/update/${id}`, formData ); return result; } // 电表限量规则删除 async deleteSubstationDeviceRules(projectId: string, id: string): Promise { const result = await this.factory.entity.delete( `/api/web/projects/${projectId}/substations/substationLimit/delete/${id}` ); return result; } // 电表限量规则列表 async loadSubstationDeviceTableRules( projectId: string, pageIndex: number, pageSize: number ): Promise { const paramsData = { pageIndex, pageSize }; const result = await this.factory.entity.get( `/api/web/projects/${projectId}/substations/substationLimit/getListByPage`, paramsData ); return result; } // 广播联动规则列表 async loadBroadcastTableRules(projectId: string, pageIndex: number, pageSize: number): Promise { const paramsData = { pageIndex, pageSize }; const result = await this.factory.entity.get( `/api/web/projects/${projectId}/iod/broadcast/listByPage`, paramsData ); return result; } // 获取广播设备列表 async loadBroadcastDeviceList(projectId: string): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/iod/broadcast/device/listBroadcasts` ); return result; } // 获取广播联动设备列表 async loadLinkageDeviceList(projectId: string): Promise { const result = await this.factory.entity.get(`/api/web/projects/${projectId}/iod/broadcast/device/list`); return result; } // 获取联动信息模板 async getLinkList(projectId: string, deviceType: string): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/iod/broadcast/template/${deviceType}` ); return result; } // 获取广播详细信息 async getBroadcastInfo(projectId: string, id: string): Promise { const result = await this.factory.entity.get(`/api/web/projects/${projectId}/iod/broadcast/get/${id}`); return result; } // 删除广播记录 async deleteBroadcast(projectId: string, id: string): Promise { const result = await this.factory.entity.delete(`/api/web/projects/${projectId}/iod/broadcast/delete/${id}`); return result; } // 广播开启关闭 async toggleBroadcastStatus(projectId: string, id: string, status: number): Promise { const result = await this.factory.entity.put( `/api/web/projects/${projectId}/iod/broadcast/status/${id}/${status}` ); return result; } // 新增 修改广播规则 async editBroadcast(projectId: string, id: string, paramsData: object): Promise { const result = await this.factory.entity.post(`/api/web/projects/${projectId}/iod/broadcast/save`, paramsData); return result; } // 视频联动规则列表 async loadVideoRulesList(projectId: string, pageIndex: number, pageSize: number): Promise { const paramsData = { pageIndex, pageSize }; const result = await this.factory.entity.get( `/api/web/projects/${projectId}/iod/video/listByPage`, paramsData ); return result; } // 视频列表 async loadVideoList(projectId: string): Promise { const result = await this.factory.entity.get(`/api/web/projects/${projectId}/iod/video/device/listCameras`); return result; } // 视频设备列表 async loadVideoDeviceList(projectId: string): Promise { const result = await this.factory.entity.get(`/api/web/projects/${projectId}/iod/video/device/list`); return result; } // 获取视频联动信息模板 async getVideoTemplateList(projectId: string, deviceType: string): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/iod/video/template/${deviceType}` ); return result; } // 删除视频规则记录 async deleteVideoRule(projectId: string, id: string): Promise { const result = await this.factory.entity.delete(`/api/web/projects/${projectId}/iod/video/delete/${id}`); return result; } // 广播开启关闭 async toggleVideoStatus(projectId: string, id: string, status: number): Promise { const result = await this.factory.entity.put( `/api/web/projects/${projectId}/iod/video/status/${id}/${status}` ); return result; } // 新增 修改视频规则 async editVideoRule(projectId: string, id: string, paramsData: object): Promise { const result = await this.factory.entity.post(`/api/web/projects/${projectId}/iod/video/save`, paramsData); return result; } // 用水用电单体设置 // 用电单体查看 async loadNewPowerSavingInfo(projectId: String, params: any): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/power/saving/v2/info`, params ); return result; } // 用电单体父删除 async deleteNewPowerSavingInfo(projectId: string, positionId: string): Promise { const result = await this.factory.entity.delete( `/api/web/projects/${projectId}/power/saving/v2/delete`, { positionId } ); return result; } // 用电单体子删除 async deleteNewChildPowerSavingInfo(projectId: string, id: string): Promise { const result = await this.factory.entity.delete( `/api/web/projects/${projectId}/power/saving/v2/delete/${id}` ); return result; } // 用电单体保存 async loadNewPowerSavingEdit(projectId: string, data: IWaterPower[], level?: number): Promise { const result = await this.factory.entity.post( `/api/web/projects/${projectId}/power/saving/v2/edit?level=${level}`, data ); return result; } // 用水单体查看 async loadNewWaterSavingInfo(projectId: string, params: any): Promise { const result = await this.factory.entity.get( `/api/web/projects/${projectId}/water/saving/v2/info`, params ); return result; } // 用水单体父删除 async deleteNewWaterSavingInfo(projectId: string, positionId: string): Promise { const result = await this.factory.entity.delete( `/api/web/projects/${projectId}/water/saving/v2/delete`, { positionId } ); return result; } // 用水单体子删除 async deleteNewChildWaterSavingInfo(projectId: string, id: string): Promise { const result = await this.factory.entity.delete( `/api/web/projects/${projectId}/water/saving/v2/delete/${id}` ); return result; } // 用水单体保存 async loadNewWaterSavingEdit(projectId: string, data: IWaterPower[], level?: number): Promise { const result = await this.factory.entity.post( `/api/web/projects/${projectId}/water/saving/v2/edit?level=${level}`, data ); return result; } // 水电表优化-水表查询水表位置列表 async getWaterMeterPosition( projectId: string ): Promise { const result = await this.factory.entity.get( `api/web/projects/${projectId}/waterMeterPosition/v2/admin` ); return result; } // 水电表优化-水表查询增加水表位置 async getAddWaterMeterPosition( projectId: string, params: any ): Promise { const result = await this.factory.entity.post( `api/web/projects/${projectId}/waterMeterPosition/v2/admin`,params ); return result; } // 水电表优化-水表查询修改水表位置 async getEditWaterMeterPosition( projectId: string, id: string, params: any ): Promise { const result = await this.factory.entity.put( `api/web/projects/${projectId}/waterMeterPosition/v2/admin/${id}`,params ); return result; } // 水电表优化-水表解绑分区 async getUnlinkWaterMeterPosition( projectId: string, params: any ): Promise { const result = await this.factory.entity.get( `api/web/projects/${projectId}/waterMeterPosition/v2/admin/unlink`,params ); return result; } // 水电表优化-水表重新绑定分区 async getbindWaterMeterPosition( projectId: string, params: any ): Promise { const result = await this.factory.entity.get( `api/web/projects/${projectId}/waterMeterPosition/v2/admin/binding`, params ); return result; } // 水电表优化-水表删除 async getDeleteWaterMeterPosition( projectId: string, id: string ): Promise { const result = await this.factory.entity.delete( `api/web/projects/${projectId}/waterMeterPosition/v2/admin/${id}` ); return result; } // 水电表优化-数据迁移 async getUnlinkQueryWaterMeterPosition( projectId: string, params: any ): Promise { const result = await this.factory.entity.get( `api/web/projects/${projectId}/waterMeterPosition/v2/admin/unlinkQuery`, params ); return result; } // 水电表优化-数据迁移具体内容 async getdataMigrateQueryWaterMeterPosition( projectId: string, params: any ): Promise { const result = await this.factory.entity.get( `api/web/projects/${projectId}/waterMeterPosition/v2/admin/dataMigrate`, params ); return result; } // 配电箱优化-配电箱查询配电箱位置列表 async getSubstationPositionPosition( projectId: string ): Promise { const result = await this.factory.entity.get( `api/web/projects/${projectId}/substationPosition/v2/admin` ); return result; } // 配电箱优化-配电箱查询增加配电箱位置 async getAddSubstationPosition( projectId: string, params: any ): Promise { const result = await this.factory.entity.post( `api/web/projects/${projectId}/substationPosition/v2/admin`,params ); return result; } // 配电箱优化-配电箱查询修改配电箱位置 async getEditSubstationPosition( projectId: string, id: string, params: any ): Promise { const result = await this.factory.entity.put( `api/web/projects/${projectId}/substationPosition/v2/admin/${id}`,params ); return result; } // 配电箱优化-配电箱解绑分区 async getUnlinkSubstationPosition( projectId: string, params: any ): Promise { const result = await this.factory.entity.get( `api/web/projects/${projectId}/substationPosition/v2/admin/unlink`,params ); return result; } // 水电表优化-配电箱重新绑定分区 async getbindSubstation( projectId: string, params: any ): Promise { const result = await this.factory.entity.get( `api/web/projects/${projectId}/substationPosition/v2/admin/binding`, params ); return result; } // 水电表优化-配电箱删除 async getDeleteSubstationPosition( projectId: string, id: string ): Promise { const result = await this.factory.entity.delete( `api/web/projects/${projectId}/substationPosition/v2/admin/${id}` ); return result; } // 水电表优化-配电箱数据迁移 async getUnlinkQuerySubstationPosition( projectId: string, params: any ): Promise { const result = await this.factory.entity.get( `api/web/projects/${projectId}/substationPosition/v2/admin/unlinkQuery`, params ); return result; } // 水电表优化-配电箱数据迁移具体内容 async getdataMigrateQuerySubstationPosition( projectId: string, params: any ): Promise { const result = await this.factory.entity.get( `api/web/projects/${projectId}/substationPosition/v2/admin/dataMigrate`, params ); return result; } // 水电表优化-水表获取设备列表 async getWaterMeterPositionDevices( projectId: string, params: any ): Promise { const result = await this.factory.entity.get( `api/web/projects/${projectId}/waterMeterPosition/v2/admin/devices`, params ); return result; } // 水电表优化-配电箱获取设备列表 async getSubstationPositionDevices( projectId: string, params: any ): Promise { const result = await this.factory.entity.get( `api/web/projects/${projectId}/substationPosition/v2/admin/devices`, params ); return result; } // 水电表优化-配电箱待分配列表 async getSubstationPositionQueryValueAllot( projectId: string ): Promise { const result = await this.factory.entity.get( `api/web/projects/${projectId}/substationPosition/v2/admin/queryValueAllot` ); return result; } // 水电表优化-配电箱保存待分配列表 async getSubstationPositionSaveValueAllot( projectId: string, params: any ): Promise { const result = await this.factory.entity.put( `api/web/projects/${projectId}/substationPosition/v2/admin/saveValueAllot`, params ); return result; } // 水电表优化-水表待分配列表 async getWaterMeterPositionQueryValueAllot( projectId: string ): Promise { const result = await this.factory.entity.get( `api/web/projects/${projectId}/waterMeterPosition/v2/admin/queryValueAllot` ); return result; } // 水电表优化-水表保存待分配列表 async getWaterMeterPositionSaveValueAllot( projectId: string, params: any ): Promise { const result = await this.factory.entity.put( `api/web/projects/${projectId}/waterMeterPosition/v2/admin/saveValueAllot`, params ); return result; } // 水电表优化-配电箱迁移记录 async getSubstationPositionMigrates( projectId: string, params: any ): Promise { const result = await this.factory.entity.get( `api/web/projects/${projectId}/substationPosition/v2/admin/migrates`, params ); return result; } // 水电表优化-水表迁移记录 async getWaterMeterPositionMigrates( projectId: string, params: any ): Promise { const result = await this.factory.entity.get( `api/web/projects/${projectId}/waterMeterPosition/v2/admin/migrates`, params ); return result; } // 水电表优化-删除配电箱迁移记录 async getSubstationPositionDeleteMigrates( projectId: string, id: string ): Promise { const result = await this.factory.entity.delete( `api/web/projects/${projectId}/waterMeterPosition/v2/admin/migrates/${id}` ); return result; } // 水电表优化-删除水表迁移记录 async getWaterMeterPositionDeleteMigrates( projectId: string, id: string ): Promise { const result = await this.factory.entity.delete( `api/web/projects/${projectId}/waterMeterPosition/v2/admin/migrates/${id}` ); return result; } // 水电表优化-配电箱获取分区 async getSubstationPositionSimplePosition( projectId: string, params: any ): Promise { const result = await this.factory.entity.get( `api/web/projects/${projectId}/substationPosition/v2/admin/simplePosition`, params ); return result; } // 水电表优化-水表获取分区 async getWaterMeterPositionSimplePosition( projectId: string, params: any ): Promise { const result = await this.factory.entity.get( `api/web/projects/${projectId}/waterMeterPosition/v2/admin/simplePosition`, params ); return result; } // 水电表优化-配电箱数据迁移提交 async getSubstationPositionSimpleDataMigrate( projectId: string, params: any ): Promise { const result = await this.factory.entity.get( `api/web/projects/${projectId}/substationPosition/v2/admin/dataMigrate`, params ); return result; } // 水电表优化-水表数据迁移提交 async getWaterMeterPositionSimpleDataMigrate( projectId: string, params: any ): Promise { const result = await this.factory.entity.get( `api/web/projects/${projectId}/waterMeterPosition/v2/admin/dataMigrate`, params ); return result; } // 水电表优化-配电箱绑定记录删除 async getSubstationPositionDeleteBinding( projectId: string, id: string ): Promise { const result = await this.factory.entity.delete( `api/web/projects/${projectId}/substationPosition/v2/admin/binding/${id}` ); return result; } // 水电表优化-水表绑定记录删除 async getWaterMeterPositionDeleteBinding( projectId: string, id: string ): Promise { const result = await this.factory.entity.delete( `api/web/projects/${projectId}/waterMeterPosition/v2/admin/binding/${id}` ); return result; } }