import { OnInit, Injector } from '@angular/core'; import { HttpService } from '../services/http/http-service.service'; import { NzMessageService, NzModalService } from 'ng-zorro-antd'; import { SFormService } from '../components/s-form/s-form.service'; import { BaseService } from '../services/base/base.service'; import { STableService } from '../components/s-table/s-table.service'; import { CommonService } from '../services/common/common.service'; export declare class MultipleComponent implements OnInit { baseService: BaseService; httpService: HttpService; message: NzMessageService; formService: SFormService; modal: NzModalService; tableService: STableService; commonService: CommonService; constructor(injector: Injector); componentConfigList: any[]; subParams: any; formLoading: boolean; detailId: string; validate: boolean; submitLoading: boolean; projectCode: string; qrInfo: string; locationsCacheData: any[]; detailData: any; coordinateValue: Array>; isUpdateMem: boolean; ngOnInit(): void; /** * 从注入器中获取对象 * @param injector 注入器 */ getInjector(injector: any): void; /** * 获取所有表单mapper数据,并赋值 */ initConfigDataOfMapper(mapperUrl?: any): void; /** * 初始化所有静态表单配置 */ initStaticFormConfig(): void; getMapperFormConfig(mapperUrl: any): void; renderFormAfter(): void; /** * * @param componentConfig 为弹框新增表单/表格/上传组件 */ addComponentConfig(componentConfig: any): void; /** * 返回所有的组件 */ getComponentConfigList(id: any): any[]; /** * 获取所有需要提交的参数 */ getSubParams(): any; /** * 设置所有需要提交的参数 */ setSubParams(): void; /** * 弹框所有数据提交之前 */ submitBefore(): void; reRenderValues(item: any): void; /** * * @param url 提交弹框里所有数据 */ submit(url: any): void; submitAfter(): void; /** * 清除地图 */ clearMap(): void; /** * 重置所有表单 */ reset(): void; /** * 重置其他组件 */ resetOthersComponent(): void; /** * 重置单个表单,恢复表单默认值 */ singleReset(componentConfig: any): void; /** * 提交单个表单 */ singleSubmit(componentConfig: any): void; /** * 提交其他数据 */ submitOthers(componentConfig: any): void; singleSubmitAfter(componentConfig: any, data: any): void; singleSubmitBefore(componentConfig: any): void; submitSingleForm(componentConfig: any): void; renderForm(data: any): void; submitFormAfter(componentConfig: any, data: any): void; submitFile(componentConfig: any): void; submitFileAfter(componentConfig: any, data: any): void; subSingleTableConfig(componentConfig: any): void; subSingleTableConfigAfter(data: any): void; submitLocations(componentConfig: any): void; /** * 根据id获取单条数据详情 * @param id 单条数据id * @param url 获取单条数据的接口地址 */ getDetailById(id: any, url: any): void; /** * 设置表单详情数据 */ setDetailDataToFormConfig(data: any): void; getDetailAfter(data: any): void; getDetailDatas(data: any): any; /** * 获取工程代码 */ getProjectCode(code: any): void; /** * * @param id 根据是否有id判断当前是新增还是编辑,设置表单项状态 */ resetComponentStatus(id: any): void; /** * 编辑时,显示所有表单项,并且时编辑状态,不可编辑 */ showAllComponent(): void; showOrHiddenUploadBtn(id: any): void; /** * 新增时,显示第一个表单项,并且时添加状态,可编辑,且清空文件列表 */ showFirstComponent(): void; /** * 将表单项设置为可编辑状态 * @param config 表单项 */ setComponentToEdit(componentConfig: any, index: any): void; /** * 获取详情数据后,为表单基本信息赋值 */ initFormData(data: any, config: any): void; resetValueForInt(data: any, config: any): any; getGroup(data: any, config: any): void; setFormValue(data: any, config: any): void; /** * 获取详情数据后,为表单gis赋值 */ initLocationsFormData(locations: any, config: any): void; /** * 缓存gis的详情数据 */ getLocationCacheData(): any[]; initFileFormData(data: any, config: any): void; /** * 渲染表格数据 */ initTableConfigData(data: any, config: any): void; /** * 获取详情数据后,为表单工程面貌赋值 * @param features 工程面貌项name * @param config 工程面貌config */ initFeaturesFormData(features: any, config: any): void; /** * 删除表格行数据(前端删除) * @param componentConfig 带表单、上传和表格的清空,表格当前项 * @param index 当前表格rowIndex */ removeRowData(componentConfig: any, index: any): void; /** * 删除当前表格行数据 */ showDeleteModal(tableCOnfig: any, index: any): void; /** * 添加表格行数据 * @param formConfig 表单对象 */ insertRowData(componentConfig: any): void; /** * 查看大事记图片 */ showImgs(rowData: any): void; scrollToElement(anchorConfig: any): void; downLoadByGet(url: any): void; downLoadByPost(url: any, params?: any): void; }