@baosight/er4j 0.0.16 → 0.0.18
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 +1941 -1857
- package/er4j-dist/er4j.es.js.map +1 -1
- package/er4j-dist/er4j.umd.js +12 -12
- package/er4j-dist/er4j.umd.js.map +1 -1
- package/er4j-dist/types/components/ErGridCellRender/ButtonGroup.vue.d.ts +1 -0
- package/er4j-dist/types/type/er-type.d.ts +6 -4
- package/er4j-dist/types/utils/er.d.ts +40 -13
- package/package.json +1 -1
|
@@ -786,6 +786,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
786
786
|
};
|
|
787
787
|
};
|
|
788
788
|
}>;
|
|
789
|
+
columnConfig: any;
|
|
789
790
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
790
791
|
params?: any;
|
|
791
792
|
}> & Readonly<{}>, {}, {}, {
|
|
@@ -2,11 +2,13 @@ export interface DialogResult {
|
|
|
2
2
|
result: 'ok' | 'cancel' | 'yes' | 'no' | 'none';
|
|
3
3
|
context?: any;
|
|
4
4
|
}
|
|
5
|
+
/**
|
|
6
|
+
* 加载提示框选项
|
|
7
|
+
*/
|
|
5
8
|
export interface LoadingOptions {
|
|
6
|
-
show
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
ms?: number;
|
|
9
|
+
show?: boolean;
|
|
10
|
+
tip?: string;
|
|
11
|
+
delay?: number;
|
|
10
12
|
}
|
|
11
13
|
/**
|
|
12
14
|
* ErPopFree组件返回参数
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ResponseType } from 'axios';
|
|
2
|
-
import { DataTableOptions, DataTableSchemaFields, DataTableSchemaField, DialogResult, PopQueryReturnInfo, PopFreeReturnInfo, PopWindowReturnInfo, PopTreeReturnInfo, PopFormReturnInfo, GetGridRowsType } from '../type/er-type';
|
|
2
|
+
import { DataTableOptions, DataTableSchemaFields, DataTableSchemaField, DialogResult, PopQueryReturnInfo, PopFreeReturnInfo, PopWindowReturnInfo, PopTreeReturnInfo, PopFormReturnInfo, LoadingOptions, GetGridRowsType } from '../type/er-type';
|
|
3
3
|
import { EiInfo, EiBlock } from '@eplat/ei';
|
|
4
4
|
import { ColDef, ColumnApi, GridApi, RowPinnedType } from '@ag-grid-community/core';
|
|
5
5
|
import { Dayjs } from 'dayjs';
|
|
@@ -1148,7 +1148,7 @@ export declare namespace ER {
|
|
|
1148
1148
|
* @param tableName 相关表
|
|
1149
1149
|
* @returns Promise EiInfo
|
|
1150
1150
|
*/
|
|
1151
|
-
static queryDataByService(
|
|
1151
|
+
static queryDataByService(svcName: string, paras?: {
|
|
1152
1152
|
queryFilter?: {
|
|
1153
1153
|
ITEM_CODE: string;
|
|
1154
1154
|
FIELD_NAME: string;
|
|
@@ -1332,11 +1332,7 @@ export declare namespace ER {
|
|
|
1332
1332
|
* @param serviceTransformer 请求/响应数据处理回调函数
|
|
1333
1333
|
* @returns Promise EiInfo
|
|
1334
1334
|
*/
|
|
1335
|
-
static callService(svcName: string, data: EiInfo, loadingOptions?:
|
|
1336
|
-
show?: boolean;
|
|
1337
|
-
tip?: string;
|
|
1338
|
-
delay?: number;
|
|
1339
|
-
}, options?: CallServiceOptions): Promise<EiInfo>;
|
|
1335
|
+
static callService(svcName: string, data: EiInfo, loadingOptions?: LoadingOptions, options?: CallServiceOptions): Promise<EiInfo>;
|
|
1340
1336
|
}
|
|
1341
1337
|
class SysInfo {
|
|
1342
1338
|
/**
|
|
@@ -3101,6 +3097,41 @@ export declare namespace ER {
|
|
|
3101
3097
|
clearTable?: true;
|
|
3102
3098
|
showLoading?: boolean;
|
|
3103
3099
|
}, serviceName?: string): Promise<EiInfo>;
|
|
3100
|
+
/**
|
|
3101
|
+
* 查询数据并合并到Grid
|
|
3102
|
+
* @param serviceName 服务名称
|
|
3103
|
+
* @param filterConfId 过滤配置ID
|
|
3104
|
+
* @param gridConfId Grid配置ID
|
|
3105
|
+
* @param options 选项
|
|
3106
|
+
*/
|
|
3107
|
+
queryDataToGrid(serviceName: string, filterConfId: string, gridConfId: string, options?: {
|
|
3108
|
+
processInInfo?: (inInfo: EiInfo) => EiInfo;
|
|
3109
|
+
mergeToGrid?: (outInfo: EiInfo) => void;
|
|
3110
|
+
loadingOptions?: LoadingOptions;
|
|
3111
|
+
callServiceOptions?: CallServiceOptions;
|
|
3112
|
+
filterBlockId?: string;
|
|
3113
|
+
gridBlockId?: string;
|
|
3114
|
+
}): Promise<void>;
|
|
3115
|
+
/**
|
|
3116
|
+
* 保存Grid数据
|
|
3117
|
+
* @param saveSerivce 保存服务
|
|
3118
|
+
* @param filterConfId 过滤配置ID
|
|
3119
|
+
* @param gridConfId Grid配置ID
|
|
3120
|
+
* @param options 选项
|
|
3121
|
+
*/
|
|
3122
|
+
saveGridData(saveSerivce: string | {
|
|
3123
|
+
insertService: string;
|
|
3124
|
+
updateService: string;
|
|
3125
|
+
deleteService: string;
|
|
3126
|
+
}, filterConfId: string, gridConfId: string, options?: {
|
|
3127
|
+
processInInfo?: (inInfo: EiInfo) => EiInfo;
|
|
3128
|
+
messageConfirm?: boolean | string;
|
|
3129
|
+
loadingOptions?: LoadingOptions;
|
|
3130
|
+
callServiceOptions?: CallServiceOptions;
|
|
3131
|
+
queryService?: string;
|
|
3132
|
+
filterBlockId?: string;
|
|
3133
|
+
gridBlockId?: string;
|
|
3134
|
+
}): Promise<unknown>;
|
|
3104
3135
|
/**
|
|
3105
3136
|
* 获取画面配置代码对应的SQL条件脚本
|
|
3106
3137
|
* @param codeClass 代码定义
|
|
@@ -3568,11 +3599,7 @@ export declare namespace ER {
|
|
|
3568
3599
|
* @param partition 分区
|
|
3569
3600
|
* @returns Promise<EiInfo>
|
|
3570
3601
|
*/
|
|
3571
|
-
callService(svcName: string, data: EiInfo, loadingOptions?:
|
|
3572
|
-
show?: boolean;
|
|
3573
|
-
tip?: string;
|
|
3574
|
-
delay?: number;
|
|
3575
|
-
}, options?: CallServiceOptions): Promise<EiInfo>;
|
|
3602
|
+
callService(svcName: string, data: EiInfo, loadingOptions?: LoadingOptions, options?: CallServiceOptions): Promise<EiInfo>;
|
|
3576
3603
|
/**
|
|
3577
3604
|
* 动态SQL查询
|
|
3578
3605
|
* @param svcName 自定义服务名称,传空时默认系统服务
|
|
@@ -3932,7 +3959,7 @@ export declare namespace ER {
|
|
|
3932
3959
|
*/
|
|
3933
3960
|
initialGridToolbar(configId: string, buttonOptions: {
|
|
3934
3961
|
[key: string]: {
|
|
3935
|
-
visible
|
|
3962
|
+
visible?: boolean;
|
|
3936
3963
|
caption?: string;
|
|
3937
3964
|
ico?: any;
|
|
3938
3965
|
action?: Function;
|