xsy-breeze-ui-rpa > FormSubEntityTableExtensionPointBatch
FormSubEntityTableExtensionPointBatch class
批量子实体表格扩展点
Signature:
export declare class FormSubEntityTableExtensionPointBatch extends ExtensionPointSDKBatchBase<FormSubEntityTableExtensionPointInterface>
Constructors
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(ids) | Constructs a new instance of the FormSubEntityTableExtensionPointBatch class |
Properties
| Property | Modifiers | Type | Description | ||
|---|---|---|---|---|---|
| addDataSourceDetail | (value: any) => Promise<any> | 批量添加数据 | |||
| addRowData | (value: { rowIndex: number; data: any; }) => Promise<any> | 添加一行数据 | |||
| afterPickerSelected | (value: { ids: string[]; }) => Promise<any> | 从Picker添加明细数据数据 | |||
| allowEmptyDetailData | (value: { entityApiKey: string; enabled: boolean; }) => Promise<any> | 开启/禁用明细实体必须至少存在一条数据 | |||
| clearDetails | (value: boolean) => Promise<any> | 清空明细数据 param: true | |||
| deleteDetail | (value: { id?: number | undefined; rowIndex?: number | undefined; hide?: boolean | undefined; }) => Promise<any> | 删除/隐藏行数据 id,是指实体数据的id,假如使用了id,只通过id查找数据,否则就用rowIndex查找,新表单中才支持 rowIndex,是指表格数据源中的索引,新表单中表格数据源是全量,旧表单中表格的数据源是当前页的数据 | |||
| detailCalculate | (value: { rowIndex: number; cellIndex: number; itemApiKey: string; newValue?: any; }) => Promise<any> | 单条明细执行计算 | |||
| getDetailData | (value: { fullData?: boolean | undefined; }) => Promise<any> | 获取明细数据 | |||
| paginationVisible | (value: boolean) => Promise<any> | 是否显示主子明细的分页。 | |||
| setCellEditable | (value: { rowIndex: number; itemApiKey: string; editable: boolean; }) => Promise<any> | 设置单元格是否可编辑 | |||
| setCellError | (value: { rowIndex: number; apiKey: string; messages: string[]; }) => Promise<any> | 设置单元格错误信息 | |||
| setCellInvisibleRule | (value: { itemApiKey: string; rule: string; }[]) => Promise<any> | 设置单元格不显示规则,因为默认显示。 itemApiKey: 字段的apiKey rule: 字段不显示规则。 例如:[{itemApiKey: 'customItem1__c', rule: "$data.name === 'test'"}]。$data: 当前行数据, name: 列apiKey. 这个规则意义:行数据的name字段等于 'test' 时, customItem1__c 字段不显示。 | |||
| setCellReadonly | (value: { rowIndex: number; itemApiKey: string; readonly: boolean; }) => Promise<any> | 设置单元格只读 | |||
| setCellReadonlyRule | (value: { itemApiKey: string; rule: string; }[]) => Promise<any> | 设置单元格只读规则 itemApiKey: 字段的apiKey rule: 只读规则。 例如:[{itemApiKey: 'customItem1__c', rule: "$data.name === 'test'"}]。$data: 当前行数据, name: 列apiKey. 这个规则意义:行数据的name字段等于 'test' 时, customItem1__c 字段只读。 | |||
| setCellRequired | (value: { rowIndex: number; itemApiKey: string; required: boolean; }) => Promise<any> | 设置单元格是否可见 | |||
| setCellRequireRule | (value: { itemApiKey: string; rule: string; }[]) => Promise<any> | 设置单元格必填规则, itemApiKey: 字段的apiKey rule: 字段必填规则。 例如:[{itemApiKey: 'customItem1__c', rule: "$data.name === 'test'"}]。$data: 当前行数据, name: 列apiKey. 这个规则意义:行数据的name字段等于 'test' 时, customItem1__c 字段必填。 | |||
| setCellStyle | (value: { rowIndex: number; cellIndex: number; backgroundColor?: string | undefined; fontColor?: string | undefined; borderColor?: string | undefined; }) => Promise<any> | 设置单元格样式 | |||
| setCellValue | (value: { rowIndex: number; itemApiKey: string; value: any; }) => Promise<any> | 设置单元格值。自定义实体的表格中关联关系字段需要设置为 {id: xxxxx} 清空的时候,将value 设置为null, 关联关系字段设置为: {id: null} | |||
| setCellVisible | (value: { rowIndex: number; itemApiKey: string; visible: boolean; }) => Promise<any> | 设置单元格是否可见 | |||
| setColPropByName | (value: { itemApiKey: string; name: string; value: any; }) => Promise<any> | 根据属性名称设置列属性 itemApiKey: 列apiKey name: 列属性名称 value: 需要设置的值 | |||
| setDetailExpand | (value: { expand: boolean; }) => Promise<any> | 设置明细是否展开 | |||
| setDetailTabeVisible | (value: { objectId: any; visible: boolean; }) => Promise<any> | 设置明细表格是否可见 | |||
| setFooterText | (value: { text: string; }) => Promise<any> | 设置表尾文本 | |||
| setOperateButtonInvisibleRule | (value: { buttonType: "edit" | "delete" | "copy"; rule: string; }[]) => Promise<any> | 设置子实体操作按钮不显示规则 buttonType: 按钮类型 "edit" \ | "delete" \ | "copy" rule: 不显示规则。 例如:[{buttonType: 'edit', rule: "$data.name === 'test'"}]。$data: 当前行数据, name: 列apiKey. 这个规则意义:行数据的name字段等于 'test' 时, 编辑按钮不显示。 | |
| setOperateButtonVisible | (value: { buttonType: "edit" | "delete" | "copy"; visible: boolean; rowIndex?: number | undefined; id?: number | undefined; }) => Promise<any> | 隐藏操作按钮 id,是指实体数据的id,假如使用了id,只通过id查找数据,否则就用rowIndex查找,新表单中才支持 rowIndex,是指表格数据源中的索引,新表单中表格数据源是全量,旧表单中表格的数据源是当前页的数据 | |||
| setPropByName | (value: { name: string; value: any; }) => Promise<any> | 根据属性名称修改子实体的参数 | |||
| setRowError | (value: { index: number; messages: string[]; }) => Promise<any> | 设置行错误信息 | |||
| updateDataSourceDetail | (value: any) => Promise<any> | 批量编辑数据 | |||
| updateRowData | (value: { rowIndex: number; data: any; }) => Promise<any> | 编辑一行数据 |
