@baosight/er4j 0.0.28 → 0.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/er4j-dist/er4j.es.js +3596 -3598
- package/er4j-dist/er4j.es.js.map +1 -1
- package/er4j-dist/er4j.umd.js +37 -37
- package/er4j-dist/er4j.umd.js.map +1 -1
- package/er4j-dist/types/utils/er.d.ts +10 -18
- package/package.json +1 -1
|
@@ -25,6 +25,7 @@ export declare namespace ER {
|
|
|
25
25
|
messageError?: boolean | 'modal';
|
|
26
26
|
toCamelCase?: boolean;
|
|
27
27
|
partition?: string;
|
|
28
|
+
loadingOptions?: LoadingOptions;
|
|
28
29
|
}
|
|
29
30
|
interface ErLayoutOptions {
|
|
30
31
|
context?: {
|
|
@@ -1399,16 +1400,12 @@ export declare namespace ER {
|
|
|
1399
1400
|
static readClipboardText(): Promise<string>;
|
|
1400
1401
|
/**
|
|
1401
1402
|
* 调用后台服务service
|
|
1402
|
-
* @param partition 服务分区
|
|
1403
1403
|
* @param svcName 服务名称
|
|
1404
1404
|
* @param data 传入数据
|
|
1405
|
-
* @param
|
|
1406
|
-
* @param messageError 错误时是否显示Error信息
|
|
1407
|
-
* @param showLoadingAnimotion 是否显示loading动画
|
|
1408
|
-
* @param serviceTransformer 请求/响应数据处理回调函数
|
|
1405
|
+
* @param options 调用服务参数
|
|
1409
1406
|
* @returns Promise EiInfo
|
|
1410
1407
|
*/
|
|
1411
|
-
static callService(svcName: string, data: EiInfo,
|
|
1408
|
+
static callService(svcName: string, data: EiInfo, options?: CallServiceOptions): Promise<EiInfo>;
|
|
1412
1409
|
}
|
|
1413
1410
|
class SysInfo {
|
|
1414
1411
|
/**
|
|
@@ -3184,7 +3181,6 @@ export declare namespace ER {
|
|
|
3184
3181
|
queryDataToGrid(serviceName: string, filterConfId: string, gridConfId: string, options?: {
|
|
3185
3182
|
processInInfo?: (inInfo: EiInfo) => EiInfo;
|
|
3186
3183
|
mergeToGrid?: (outInfo: EiInfo) => void;
|
|
3187
|
-
loadingOptions?: LoadingOptions;
|
|
3188
3184
|
callServiceOptions?: CallServiceOptions;
|
|
3189
3185
|
filterBlockId?: string;
|
|
3190
3186
|
gridBlockId?: string;
|
|
@@ -3203,7 +3199,6 @@ export declare namespace ER {
|
|
|
3203
3199
|
}, filterConfId: string, gridConfId: string, options?: {
|
|
3204
3200
|
processInInfo?: (inInfo: EiInfo, type: 'delete' | 'update' | 'insert' | 'save') => EiInfo;
|
|
3205
3201
|
messageConfirm?: boolean | string;
|
|
3206
|
-
loadingOptions?: LoadingOptions;
|
|
3207
3202
|
callServiceOptions?: CallServiceOptions;
|
|
3208
3203
|
queryService?: string;
|
|
3209
3204
|
filterBlockId?: string;
|
|
@@ -3677,13 +3672,10 @@ export declare namespace ER {
|
|
|
3677
3672
|
* 调用后台服务
|
|
3678
3673
|
* @param svcName 服务名称
|
|
3679
3674
|
* @param data 传入EIInfo
|
|
3680
|
-
* @param
|
|
3681
|
-
* @param messageError 调用后台报错时是否直接显示弹出错误信息
|
|
3682
|
-
* @param showLoadingAnimotion 是否显示loading动画
|
|
3683
|
-
* @param partition 分区
|
|
3675
|
+
* @param options 调用服务参数
|
|
3684
3676
|
* @returns Promise<EiInfo>
|
|
3685
3677
|
*/
|
|
3686
|
-
callService(svcName: string, data: EiInfo,
|
|
3678
|
+
callService(svcName: string, data: EiInfo, options?: CallServiceOptions): Promise<EiInfo>;
|
|
3687
3679
|
/**
|
|
3688
3680
|
* 动态SQL查询
|
|
3689
3681
|
* @param svcName 自定义服务名称,传空时默认系统服务
|
|
@@ -3705,8 +3697,8 @@ export declare namespace ER {
|
|
|
3705
3697
|
culture?: boolean;
|
|
3706
3698
|
}, confirmFunction?: Function, cancelFunction?: Function): Promise<boolean>;
|
|
3707
3699
|
/**
|
|
3708
|
-
*
|
|
3709
|
-
* @param
|
|
3700
|
+
* 在页面上侧中间显示成功信息栏
|
|
3701
|
+
* @param message 显示文本内容,默认为[操作成功]
|
|
3710
3702
|
*/
|
|
3711
3703
|
messageSuccess(message?: string | {
|
|
3712
3704
|
message: string;
|
|
@@ -3715,7 +3707,7 @@ export declare namespace ER {
|
|
|
3715
3707
|
}, ...args: any[]): void;
|
|
3716
3708
|
/**
|
|
3717
3709
|
* 在页面上侧中间显示提示信息栏
|
|
3718
|
-
* @param
|
|
3710
|
+
* @param message 显示文本内容
|
|
3719
3711
|
*/
|
|
3720
3712
|
messageInfo(message: string | {
|
|
3721
3713
|
message: string;
|
|
@@ -3724,7 +3716,7 @@ export declare namespace ER {
|
|
|
3724
3716
|
}, ...args: any[]): void;
|
|
3725
3717
|
/**
|
|
3726
3718
|
* 在页面上侧中间显示警告信息栏
|
|
3727
|
-
* @param
|
|
3719
|
+
* @param message 显示文本内容
|
|
3728
3720
|
*/
|
|
3729
3721
|
messageWarning(message: string | {
|
|
3730
3722
|
message: string;
|
|
@@ -3733,7 +3725,7 @@ export declare namespace ER {
|
|
|
3733
3725
|
}, ...args: any[]): void;
|
|
3734
3726
|
/**
|
|
3735
3727
|
* 在页面上侧中间显示错误信息栏
|
|
3736
|
-
* @param
|
|
3728
|
+
* @param message 显示文本内容
|
|
3737
3729
|
*/
|
|
3738
3730
|
messageError(message: string | {
|
|
3739
3731
|
message: string;
|