@kengic/vue 0.16.7 → 0.19.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +32 -16
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +5058 -4029
- package/dist/src/apis/WMS/Controllers/SysPermissionController/List.d.ts +73 -0
- package/dist/src/apis/WMS/Controllers/SysPermissionController/index.d.ts +1 -0
- package/dist/src/apis/WMS/Controllers/VarDdaController/Create.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarDdaController/GetResultSetMetadataFromSql.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarDdaController/ValidateCopySql.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarDdaController/ValidateCreateSql.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarDdaController/ValidateDeleteSql.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarDdaController/ValidateFrmId.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarDdaController/ValidateSearchSql.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarDdaController/ValidateUpdateSql.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarDdaController/index.d.ts +8 -0
- package/dist/src/apis/WMS/Controllers/index.d.ts +2 -0
- package/dist/src/apis/WMS/models.d.ts +206 -2
- package/dist/src/components/KgSubmit/index.hooks.d.ts +3 -3
- package/dist/src/components/KgSubmit/index.store.d.ts +11 -11
- package/dist/src/components/KgTable/index.hooks.d.ts +7 -7
- package/dist/src/components/KgTable/index.store.d.ts +485 -45
- package/dist/src/components/KgTable/index.vm.d.ts +3 -3
- package/dist/src/config/index.hooks.d.ts +76 -15
- package/dist/src/config/index.store.d.ts +2 -2
- package/dist/src/consts/i18n/en.d.ts +8 -5
- package/dist/src/consts/i18n/zh_CN.d.ts +8 -5
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Menu.d.ts +1 -1
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Submit.d.ts +1 -1
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.Table.d.ts +1 -1
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.d.ts +5 -1
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.store.d.ts +1643 -26
- package/dist/src/pages/KgPageDda/index.const.d.ts +1 -1
- package/dist/src/utils/kg-route.util.d.ts +1 -1
- package/package.json +2 -1
@@ -0,0 +1,73 @@
|
|
1
|
+
import { IRequestConfig, IRequestOptions } from '../../../../services';
|
2
|
+
import * as DEF from '../../../def';
|
3
|
+
/** 请求参数. */
|
4
|
+
export declare class ListQuery {
|
5
|
+
/** Always Show. */
|
6
|
+
alwaysShow?: boolean | null;
|
7
|
+
/** App. */
|
8
|
+
app?: string | null;
|
9
|
+
/** Component. */
|
10
|
+
component?: string | null;
|
11
|
+
/** Component Name. */
|
12
|
+
componentName?: string | null;
|
13
|
+
/** Create By. */
|
14
|
+
createBy?: string | null;
|
15
|
+
/** Create Time. */
|
16
|
+
createTime?: string | null;
|
17
|
+
/** Del Flag. */
|
18
|
+
delFlag?: number | null;
|
19
|
+
/** Description. */
|
20
|
+
description?: string | null;
|
21
|
+
/** Hidden. */
|
22
|
+
hidden?: boolean | null;
|
23
|
+
/** Hide Tab. */
|
24
|
+
hideTab?: boolean | null;
|
25
|
+
/** Icon. */
|
26
|
+
icon?: string | null;
|
27
|
+
/** Id. */
|
28
|
+
id?: string | null;
|
29
|
+
/** Internal Or External. */
|
30
|
+
internalOrExternal?: boolean | null;
|
31
|
+
/** Keep Alive. */
|
32
|
+
keepAlive?: boolean | null;
|
33
|
+
/** Leaf. */
|
34
|
+
leaf?: boolean | null;
|
35
|
+
/** Menu Type. */
|
36
|
+
menuType?: number | null;
|
37
|
+
/** Name. */
|
38
|
+
name?: string | null;
|
39
|
+
/** Parent Id. */
|
40
|
+
parentId?: string | null;
|
41
|
+
/** Perms. */
|
42
|
+
perms?: string | null;
|
43
|
+
/** Perms Type. */
|
44
|
+
permsType?: string | null;
|
45
|
+
/** Redirect. */
|
46
|
+
redirect?: string | null;
|
47
|
+
/** Route. */
|
48
|
+
route?: boolean | null;
|
49
|
+
/** Rule Flag. */
|
50
|
+
ruleFlag?: number | null;
|
51
|
+
/** Sort No. */
|
52
|
+
sortNo?: number | null;
|
53
|
+
/** Status. */
|
54
|
+
status?: string | null;
|
55
|
+
/** Update By. */
|
56
|
+
updateBy?: string | null;
|
57
|
+
/** Update Time. */
|
58
|
+
updateTime?: string | null;
|
59
|
+
/** Url. */
|
60
|
+
url?: string | null;
|
61
|
+
constructor(obj?: ListQuery);
|
62
|
+
}
|
63
|
+
/**
|
64
|
+
* 获取所有菜单.
|
65
|
+
*
|
66
|
+
* @param config 请求配置.
|
67
|
+
* @param option 请求选项.
|
68
|
+
*/
|
69
|
+
export declare function List(config?: IRequestConfig<ListQuery, {}>, option?: IRequestOptions): Promise<Array<DEF.WMS.SysPermissionTree>>;
|
70
|
+
export declare namespace List {
|
71
|
+
var method: "GET";
|
72
|
+
var url: string;
|
73
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { List, ListQuery } from './List';
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { IRequestConfig, IRequestOptions } from '../../../../services';
|
2
|
+
import * as DEF from '../../../def';
|
3
|
+
/** 请求参数. */
|
4
|
+
export declare class CreateQuery {
|
5
|
+
}
|
6
|
+
/**
|
7
|
+
* 创建 DDA.
|
8
|
+
*
|
9
|
+
* @param config 请求配置.
|
10
|
+
* @param option 请求选项.
|
11
|
+
*/
|
12
|
+
export declare function Create(config?: IRequestConfig<CreateQuery, DEF.WMS.CreateVarDdaQuery>, option?: IRequestOptions): Promise<string>;
|
13
|
+
export declare namespace Create {
|
14
|
+
var method: "POST";
|
15
|
+
var url: string;
|
16
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { IRequestConfig, IRequestOptions } from '../../../../services';
|
2
|
+
import * as DEF from '../../../def';
|
3
|
+
/** 请求参数. */
|
4
|
+
export declare class GetResultSetMetadataFromSqlQuery {
|
5
|
+
}
|
6
|
+
/**
|
7
|
+
* 获取 SQL 查询结果的元数据.
|
8
|
+
*
|
9
|
+
* @param config 请求配置.
|
10
|
+
* @param option 请求选项.
|
11
|
+
*/
|
12
|
+
export declare function GetResultSetMetadataFromSql(config?: IRequestConfig<GetResultSetMetadataFromSqlQuery, DEF.WMS.GetResultSetMetadataFromSqlQuery>, option?: IRequestOptions): Promise<DEF.WMS.ResultSetMetadataFromSqlDTO>;
|
13
|
+
export declare namespace GetResultSetMetadataFromSql {
|
14
|
+
var method: "POST";
|
15
|
+
var url: string;
|
16
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { IRequestConfig, IRequestOptions } from '../../../../services';
|
2
|
+
import * as DEF from '../../../def';
|
3
|
+
/** 请求参数. */
|
4
|
+
export declare class ValidateCopySqlQuery {
|
5
|
+
}
|
6
|
+
/**
|
7
|
+
* 校验 SQL 复制语句是否有效.
|
8
|
+
*
|
9
|
+
* @param config 请求配置.
|
10
|
+
* @param option 请求选项.
|
11
|
+
*/
|
12
|
+
export declare function ValidateCopySql(config?: IRequestConfig<ValidateCopySqlQuery, DEF.WMS.ValidateSqlQuery>, option?: IRequestOptions): Promise<string>;
|
13
|
+
export declare namespace ValidateCopySql {
|
14
|
+
var method: "POST";
|
15
|
+
var url: string;
|
16
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { IRequestConfig, IRequestOptions } from '../../../../services';
|
2
|
+
import * as DEF from '../../../def';
|
3
|
+
/** 请求参数. */
|
4
|
+
export declare class ValidateCreateSqlQuery {
|
5
|
+
}
|
6
|
+
/**
|
7
|
+
* 校验 SQL 创建语句是否有效.
|
8
|
+
*
|
9
|
+
* @param config 请求配置.
|
10
|
+
* @param option 请求选项.
|
11
|
+
*/
|
12
|
+
export declare function ValidateCreateSql(config?: IRequestConfig<ValidateCreateSqlQuery, DEF.WMS.ValidateSqlQuery>, option?: IRequestOptions): Promise<string>;
|
13
|
+
export declare namespace ValidateCreateSql {
|
14
|
+
var method: "POST";
|
15
|
+
var url: string;
|
16
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { IRequestConfig, IRequestOptions } from '../../../../services';
|
2
|
+
import * as DEF from '../../../def';
|
3
|
+
/** 请求参数. */
|
4
|
+
export declare class ValidateDeleteSqlQuery {
|
5
|
+
}
|
6
|
+
/**
|
7
|
+
* 校验 SQL 删除语句是否有效.
|
8
|
+
*
|
9
|
+
* @param config 请求配置.
|
10
|
+
* @param option 请求选项.
|
11
|
+
*/
|
12
|
+
export declare function ValidateDeleteSql(config?: IRequestConfig<ValidateDeleteSqlQuery, DEF.WMS.ValidateSqlQuery>, option?: IRequestOptions): Promise<string>;
|
13
|
+
export declare namespace ValidateDeleteSql {
|
14
|
+
var method: "POST";
|
15
|
+
var url: string;
|
16
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { IRequestConfig, IRequestOptions } from '../../../../services';
|
2
|
+
import * as DEF from '../../../def';
|
3
|
+
/** 请求参数. */
|
4
|
+
export declare class ValidateFrmIdQuery {
|
5
|
+
}
|
6
|
+
/**
|
7
|
+
* 校验界面标识是否有效.
|
8
|
+
*
|
9
|
+
* @param config 请求配置.
|
10
|
+
* @param option 请求选项.
|
11
|
+
*/
|
12
|
+
export declare function ValidateFrmId(config?: IRequestConfig<ValidateFrmIdQuery, DEF.WMS.ValidateFrmIdQuery>, option?: IRequestOptions): Promise<string>;
|
13
|
+
export declare namespace ValidateFrmId {
|
14
|
+
var method: "POST";
|
15
|
+
var url: string;
|
16
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { IRequestConfig, IRequestOptions } from '../../../../services';
|
2
|
+
import * as DEF from '../../../def';
|
3
|
+
/** 请求参数. */
|
4
|
+
export declare class ValidateSearchSqlQuery {
|
5
|
+
}
|
6
|
+
/**
|
7
|
+
* 校验 SQL 查询语句是否有效.
|
8
|
+
*
|
9
|
+
* @param config 请求配置.
|
10
|
+
* @param option 请求选项.
|
11
|
+
*/
|
12
|
+
export declare function ValidateSearchSql(config?: IRequestConfig<ValidateSearchSqlQuery, DEF.WMS.ValidateSqlQuery>, option?: IRequestOptions): Promise<string>;
|
13
|
+
export declare namespace ValidateSearchSql {
|
14
|
+
var method: "POST";
|
15
|
+
var url: string;
|
16
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { IRequestConfig, IRequestOptions } from '../../../../services';
|
2
|
+
import * as DEF from '../../../def';
|
3
|
+
/** 请求参数. */
|
4
|
+
export declare class ValidateUpdateSqlQuery {
|
5
|
+
}
|
6
|
+
/**
|
7
|
+
* 校验 SQL 更新语句是否有效.
|
8
|
+
*
|
9
|
+
* @param config 请求配置.
|
10
|
+
* @param option 请求选项.
|
11
|
+
*/
|
12
|
+
export declare function ValidateUpdateSql(config?: IRequestConfig<ValidateUpdateSqlQuery, DEF.WMS.ValidateSqlQuery>, option?: IRequestOptions): Promise<string>;
|
13
|
+
export declare namespace ValidateUpdateSql {
|
14
|
+
var method: "POST";
|
15
|
+
var url: string;
|
16
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
export { Create, CreateQuery } from './Create';
|
2
|
+
export { GetResultSetMetadataFromSql, GetResultSetMetadataFromSqlQuery } from './GetResultSetMetadataFromSql';
|
3
|
+
export { ValidateCopySql, ValidateCopySqlQuery } from './ValidateCopySql';
|
4
|
+
export { ValidateCreateSql, ValidateCreateSqlQuery } from './ValidateCreateSql';
|
5
|
+
export { ValidateDeleteSql, ValidateDeleteSqlQuery } from './ValidateDeleteSql';
|
6
|
+
export { ValidateFrmId, ValidateFrmIdQuery } from './ValidateFrmId';
|
7
|
+
export { ValidateSearchSql, ValidateSearchSqlQuery } from './ValidateSearchSql';
|
8
|
+
export { ValidateUpdateSql, ValidateUpdateSqlQuery } from './ValidateUpdateSql';
|
@@ -1,5 +1,7 @@
|
|
1
|
+
export * as SysPermissionController from './SysPermissionController';
|
1
2
|
export * as VarController from './VarController';
|
2
3
|
export * as VarContextController from './VarContextController';
|
4
|
+
export * as VarDdaController from './VarDdaController';
|
3
5
|
export * as VarGridMasterController from './VarGridMasterController';
|
4
6
|
export * as VarProfileMasterController from './VarProfileMasterController';
|
5
7
|
export * as VarVariableCatalogController from './VarVariableCatalogController';
|
@@ -1,3 +1,35 @@
|
|
1
|
+
/** 创建 DDA. */
|
2
|
+
export declare class CreateVarDdaQuery {
|
3
|
+
/** 界面标识(FormID). */
|
4
|
+
frmId?: string | null;
|
5
|
+
/** 菜单. */
|
6
|
+
sysPermission?: SysPermission | null;
|
7
|
+
/** 按钮. */
|
8
|
+
varButtons?: Array<VarButton> | null;
|
9
|
+
/** 所有变量. */
|
10
|
+
varContexts?: Array<VarContext> | null;
|
11
|
+
/** DDA. */
|
12
|
+
varDda?: VarDda | null;
|
13
|
+
/** 表格配置. */
|
14
|
+
varGridConfig?: VarGridConfig | null;
|
15
|
+
/** 表格视图明细 */
|
16
|
+
varGridDetails?: Array<VarGridDetail> | null;
|
17
|
+
/** 表格视图. */
|
18
|
+
varGridMaster?: VarGridMaster | null;
|
19
|
+
/** 查询条件配置. */
|
20
|
+
varProfileConfig?: VarProfileConfig | null;
|
21
|
+
/** 查询条件视图明细 */
|
22
|
+
varProfileDetails?: Array<VarProfileDetail> | null;
|
23
|
+
/** 查询条件视图. */
|
24
|
+
varProfileMaster?: VarProfileMaster | null;
|
25
|
+
/** 表单配置. */
|
26
|
+
varSubmitConfig?: VarSubmitConfig | null;
|
27
|
+
/** 表单字段 */
|
28
|
+
varSubmitFields?: Array<VarSubmitField> | null;
|
29
|
+
/** 变量翻译. */
|
30
|
+
varVariableCatalogs?: Array<VarVariableCatalog> | null;
|
31
|
+
constructor(obj?: CreateVarDdaQuery);
|
32
|
+
}
|
1
33
|
/** 创建表格视图. */
|
2
34
|
export declare class CreateVarGridMasterQuery {
|
3
35
|
/** 是否默认(DefaultFlag). */
|
@@ -36,6 +68,12 @@ export declare class CreateVarProfileMasterQuery {
|
|
36
68
|
varProfileDetails?: Array<VarProfileDetail> | null;
|
37
69
|
constructor(obj?: CreateVarProfileMasterQuery);
|
38
70
|
}
|
71
|
+
/** 获取 SQL 查询结果的元数据. */
|
72
|
+
export declare class GetResultSetMetadataFromSqlQuery {
|
73
|
+
/** SQL. */
|
74
|
+
sql?: string | null;
|
75
|
+
constructor(obj?: GetResultSetMetadataFromSqlQuery);
|
76
|
+
}
|
39
77
|
export declare class IPage<T0> {
|
40
78
|
/** Current. */
|
41
79
|
current?: number | null;
|
@@ -49,6 +87,150 @@ export declare class IPage<T0> {
|
|
49
87
|
total?: number | null;
|
50
88
|
constructor(obj?: IPage<T0>);
|
51
89
|
}
|
90
|
+
/** SQL 查询结果的列的元数据. */
|
91
|
+
export declare class ResultSetMetadataColumn {
|
92
|
+
/** 列的描述. */
|
93
|
+
columnDesc?: string | null;
|
94
|
+
/** 列的别名. */
|
95
|
+
columnLabel?: string | null;
|
96
|
+
/** 列名. */
|
97
|
+
columnName?: string | null;
|
98
|
+
/** 列的类型. */
|
99
|
+
columnType?: string | null;
|
100
|
+
/** 临时主键. */
|
101
|
+
id?: string | null;
|
102
|
+
/** 表名. */
|
103
|
+
tableName?: string | null;
|
104
|
+
constructor(obj?: ResultSetMetadataColumn);
|
105
|
+
}
|
106
|
+
/** SQL 查询结果的元数据. */
|
107
|
+
export declare class ResultSetMetadataFromSqlDTO {
|
108
|
+
/** 查询结果的所有列. */
|
109
|
+
columns?: Array<ResultSetMetadataColumn> | null;
|
110
|
+
constructor(obj?: ResultSetMetadataFromSqlDTO);
|
111
|
+
}
|
112
|
+
export declare class SysPermission {
|
113
|
+
/** Always Show. */
|
114
|
+
alwaysShow?: boolean | null;
|
115
|
+
/** App. */
|
116
|
+
app?: string | null;
|
117
|
+
/** Component. */
|
118
|
+
component?: string | null;
|
119
|
+
/** Component Name. */
|
120
|
+
componentName?: string | null;
|
121
|
+
/** Create By. */
|
122
|
+
createBy?: string | null;
|
123
|
+
/** Create Time. */
|
124
|
+
createTime?: string | null;
|
125
|
+
/** Del Flag. */
|
126
|
+
delFlag?: number | null;
|
127
|
+
/** Description. */
|
128
|
+
description?: string | null;
|
129
|
+
/** Hidden. */
|
130
|
+
hidden?: boolean | null;
|
131
|
+
/** Hide Tab. */
|
132
|
+
hideTab?: boolean | null;
|
133
|
+
/** Icon. */
|
134
|
+
icon?: string | null;
|
135
|
+
/** Id. */
|
136
|
+
id?: string | null;
|
137
|
+
/** Internal Or External. */
|
138
|
+
internalOrExternal?: boolean | null;
|
139
|
+
/** Keep Alive. */
|
140
|
+
keepAlive?: boolean | null;
|
141
|
+
/** Leaf. */
|
142
|
+
leaf?: boolean | null;
|
143
|
+
/** Menu Type. */
|
144
|
+
menuType?: number | null;
|
145
|
+
/** Name. */
|
146
|
+
name?: string | null;
|
147
|
+
/** Parent Id. */
|
148
|
+
parentId?: string | null;
|
149
|
+
/** Perms. */
|
150
|
+
perms?: string | null;
|
151
|
+
/** Perms Type. */
|
152
|
+
permsType?: string | null;
|
153
|
+
/** Redirect. */
|
154
|
+
redirect?: string | null;
|
155
|
+
/** Route. */
|
156
|
+
route?: boolean | null;
|
157
|
+
/** Rule Flag. */
|
158
|
+
ruleFlag?: number | null;
|
159
|
+
/** Sort No. */
|
160
|
+
sortNo?: number | null;
|
161
|
+
/** Status. */
|
162
|
+
status?: string | null;
|
163
|
+
/** Update By. */
|
164
|
+
updateBy?: string | null;
|
165
|
+
/** Update Time. */
|
166
|
+
updateTime?: string | null;
|
167
|
+
/** Url. */
|
168
|
+
url?: string | null;
|
169
|
+
constructor(obj?: SysPermission);
|
170
|
+
}
|
171
|
+
export declare class SysPermissionTree {
|
172
|
+
/** Always Show. */
|
173
|
+
alwaysShow?: boolean | null;
|
174
|
+
/** App. */
|
175
|
+
app?: string | null;
|
176
|
+
/** Children. */
|
177
|
+
children?: Array<SysPermissionTree> | null;
|
178
|
+
/** Component. */
|
179
|
+
component?: string | null;
|
180
|
+
/** Component Name. */
|
181
|
+
componentName?: string | null;
|
182
|
+
/** Create By. */
|
183
|
+
createBy?: string | null;
|
184
|
+
/** Create Time. */
|
185
|
+
createTime?: string | null;
|
186
|
+
/** Del Flag. */
|
187
|
+
delFlag?: number | null;
|
188
|
+
/** Description. */
|
189
|
+
description?: string | null;
|
190
|
+
/** Hidden. */
|
191
|
+
hidden?: boolean | null;
|
192
|
+
/** Icon. */
|
193
|
+
icon?: string | null;
|
194
|
+
/** Id. */
|
195
|
+
id?: string | null;
|
196
|
+
/** Internal Or External. */
|
197
|
+
internalOrExternal?: boolean | null;
|
198
|
+
/** Is Leaf. */
|
199
|
+
isLeaf?: boolean | null;
|
200
|
+
/** Keep Alive. */
|
201
|
+
keepAlive?: boolean | null;
|
202
|
+
/** Key. */
|
203
|
+
key?: string | null;
|
204
|
+
/** Leaf. */
|
205
|
+
leaf?: boolean | null;
|
206
|
+
/** Menu Type. */
|
207
|
+
menuType?: number | null;
|
208
|
+
/** Name. */
|
209
|
+
name?: string | null;
|
210
|
+
/** Parent Id. */
|
211
|
+
parentId?: string | null;
|
212
|
+
/** Perms. */
|
213
|
+
perms?: string | null;
|
214
|
+
/** Perms Type. */
|
215
|
+
permsType?: string | null;
|
216
|
+
/** Redirect. */
|
217
|
+
redirect?: string | null;
|
218
|
+
/** Route. */
|
219
|
+
route?: boolean | null;
|
220
|
+
/** Sort No. */
|
221
|
+
sortNo?: number | null;
|
222
|
+
/** Status. */
|
223
|
+
status?: string | null;
|
224
|
+
/** Title. */
|
225
|
+
title?: string | null;
|
226
|
+
/** Update By. */
|
227
|
+
updateBy?: string | null;
|
228
|
+
/** Update Time. */
|
229
|
+
updateTime?: string | null;
|
230
|
+
/** Url. */
|
231
|
+
url?: string | null;
|
232
|
+
constructor(obj?: SysPermissionTree);
|
233
|
+
}
|
52
234
|
/** 用户仓库. */
|
53
235
|
export declare class SysUserWarehouseDTO {
|
54
236
|
/** 是否是默认的仓库. */
|
@@ -91,6 +273,18 @@ export declare class UpdateVarGridMasterQuery {
|
|
91
273
|
varGridDetails?: Array<VarGridDetail> | null;
|
92
274
|
constructor(obj?: UpdateVarGridMasterQuery);
|
93
275
|
}
|
276
|
+
/** 校验界面标识是否有效. */
|
277
|
+
export declare class ValidateFrmIdQuery {
|
278
|
+
/** 界面标识. */
|
279
|
+
frmId?: string | null;
|
280
|
+
constructor(obj?: ValidateFrmIdQuery);
|
281
|
+
}
|
282
|
+
/** 校验 SQL 语句是否有效. */
|
283
|
+
export declare class ValidateSqlQuery {
|
284
|
+
/** SQL. */
|
285
|
+
sql?: string | null;
|
286
|
+
constructor(obj?: ValidateSqlQuery);
|
287
|
+
}
|
94
288
|
/** 按钮 */
|
95
289
|
export declare class VarButton {
|
96
290
|
/** 是否可用. */
|
@@ -199,6 +393,16 @@ export declare class VarDTO {
|
|
199
393
|
varVariableInputs?: Array<VarVariableInput> | null;
|
200
394
|
constructor(obj?: VarDTO);
|
201
395
|
}
|
396
|
+
/** DDA. */
|
397
|
+
export declare class VarDda {
|
398
|
+
/** 界面标识(FormID). */
|
399
|
+
frm_id?: string | null;
|
400
|
+
/** 界面名称(FormName). */
|
401
|
+
frm_nam?: string | null;
|
402
|
+
/** 主键. */
|
403
|
+
id?: string | null;
|
404
|
+
constructor(obj?: VarDda);
|
405
|
+
}
|
202
406
|
/** 表格配置. */
|
203
407
|
export declare class VarGridConfig {
|
204
408
|
/** 是否自动加载数据(AutoLoadFlag). */
|
@@ -335,7 +539,7 @@ export declare class VarProfileConfig {
|
|
335
539
|
vis_flg?: number | null;
|
336
540
|
constructor(obj?: VarProfileConfig);
|
337
541
|
}
|
338
|
-
/**
|
542
|
+
/** 查询条件视图明细. */
|
339
543
|
export declare class VarProfileDetail {
|
340
544
|
/** 默认的高级查询方式(DefaultDynamicQueryOperator). */
|
341
545
|
dft_dyn_op?: string | null;
|
@@ -369,7 +573,7 @@ export declare class VarProfileDetail {
|
|
369
573
|
width?: number | null;
|
370
574
|
constructor(obj?: VarProfileDetail);
|
371
575
|
}
|
372
|
-
/**
|
576
|
+
/** 查询条件视图. */
|
373
577
|
export declare class VarProfileMaster {
|
374
578
|
/** 定制级别(CustomLevel). */
|
375
579
|
cust_lvl?: number | null;
|
@@ -28,21 +28,21 @@ export declare type IUseKgSubmit = {
|
|
28
28
|
*/
|
29
29
|
onOpen(cb: IKgSubmitOpenCb, once?: boolean): IRemoveEventListenerHandler;
|
30
30
|
/**
|
31
|
-
* 事件:
|
31
|
+
* 事件: 点击确认按钮之后, 执行默认逻辑之前. 可以在此时修改表单的值; 可以在此时对表单的值进行验证.
|
32
32
|
* <p>回调函数如果返回 true, 不会再执行后面的代码.</p>
|
33
33
|
* @param cb 回调函数.
|
34
34
|
* @param once 是否只会触发一次. 默认为 undefined.
|
35
35
|
* @return {} 移除事件监听函数.
|
36
36
|
*/
|
37
37
|
onBeforeOk(cb: IKgSubmitBeforeOkCb, once?: boolean): IRemoveEventListenerHandler;
|
38
|
-
/** 事件:
|
38
|
+
/** 事件: 点击确认按钮之后, 表单验证完成.
|
39
39
|
* <p>回调函数如果返回 true, 不会再执行后面的代码.</p>
|
40
40
|
* @param cb 回调函数.
|
41
41
|
* @param once 是否只会触发一次. 默认为 undefined.
|
42
42
|
* @return {} 移除事件监听函数.
|
43
43
|
*/
|
44
44
|
onAfterValidate(cb: IKgSubmitAfterValidateCb, once?: boolean): IRemoveEventListenerHandler;
|
45
|
-
/** 事件:
|
45
|
+
/** 事件: 发起接口请求之前. 表单验证完成, 参数解析完成.
|
46
46
|
* <p>回调函数如果返回 true, 不会再执行后面的代码.</p>
|
47
47
|
* @param cb 回调函数.
|
48
48
|
* @param once 是否只会触发一次. 默认为 undefined.
|
@@ -8,9 +8,9 @@ import { IKgTableRow } from '../KgTable';
|
|
8
8
|
* 事件类型.
|
9
9
|
* 'beforeOpen': 打开提交弹窗之前
|
10
10
|
* 'open': 打开提交弹窗
|
11
|
-
* 'beforeOk':
|
12
|
-
* 'afterValidate':
|
13
|
-
* 'beforeRequest':
|
11
|
+
* 'beforeOk': 点击确认按钮之后, 执行默认逻辑之前
|
12
|
+
* 'afterValidate': 点击确认按钮之后, 表单验证完成,
|
13
|
+
* 'beforeRequest': 发起接口请求之前. 表单验证完成, 参数解析完成,
|
14
14
|
* 'ok': 请求成功, 即将关闭提交弹窗
|
15
15
|
* 'error': 请求失败. 请求失败了, 或者请求返回了错误消息
|
16
16
|
* 'close': 关闭提交弹窗
|
@@ -49,26 +49,26 @@ export declare type IKgSubmitBeforeOkCbParam = {
|
|
49
49
|
export declare type IKgSubmitBeforeOkCb = ((param: IKgSubmitBeforeOkCbParam) => Promise<boolean>) & IKgEventCb;
|
50
50
|
/** 事件监听函数: afterValidate. */
|
51
51
|
export declare type IKgSubmitAfterValidateCbParam = {
|
52
|
-
isCreating: boolean | null;
|
53
|
-
isUpdating: boolean | null;
|
54
52
|
isCopying: boolean | null;
|
53
|
+
isCreating: boolean | null;
|
55
54
|
isDeleting: boolean | null;
|
55
|
+
isUpdating: boolean | null;
|
56
|
+
model: Ref<Record<string, any>>;
|
56
57
|
row: IKgTableRow | null;
|
57
58
|
rows: Array<IKgTableRow> | null;
|
58
|
-
model: Ref<Record<string, any>>;
|
59
59
|
};
|
60
60
|
export declare type IKgSubmitAfterValidateCb = ((param: IKgSubmitAfterValidateCbParam) => Promise<boolean>) & IKgEventCb;
|
61
61
|
/** 事件监听函数: beforeRequest. */
|
62
62
|
export declare type IKgSubmitBeforeRequestCbParam = {
|
63
|
-
|
64
|
-
isUpdating: boolean | null;
|
63
|
+
data: Ref<Record<string, any> | Array<Record<string, any>>>;
|
65
64
|
isCopying: boolean | null;
|
65
|
+
isCreating: boolean | null;
|
66
66
|
isDeleting: boolean | null;
|
67
|
-
|
68
|
-
rows: Array<IKgTableRow> | null;
|
67
|
+
isUpdating: boolean | null;
|
69
68
|
model: Ref<Record<string, any>>;
|
70
69
|
params: Ref<Record<string, any>>;
|
71
|
-
|
70
|
+
row: IKgTableRow | null;
|
71
|
+
rows: Array<IKgTableRow> | null;
|
72
72
|
};
|
73
73
|
export declare type IKgSubmitBeforeRequestCb = ((param: IKgSubmitBeforeRequestCbParam) => Promise<boolean>) & IKgEventCb;
|
74
74
|
/** 事件监听函数: ok. */
|
@@ -1,20 +1,20 @@
|
|
1
1
|
import { ComputedRef, Ref } from 'vue';
|
2
2
|
import { IRemoveEventListenerHandler } from '../../consts';
|
3
|
-
import { IKgTableAfterSearchCb, IKgTableBeforeSearchCb, IKgTableBeforeSetDatasCb, IKgTableReadyCb, IKgTableRowDoubleClickCb,
|
3
|
+
import { IKgTableAfterSearchCb, IKgTableBeforeSearchCb, IKgTableBeforeSetDatasCb, IKgTableReadyCb, IKgTableRowDoubleClickCb, useKgTableStore } from './index.store';
|
4
4
|
export declare type IUseKgTable = {
|
5
5
|
formID: string;
|
6
6
|
/** 状态数据. */
|
7
|
-
store:
|
7
|
+
store: ReturnType<typeof useKgTableStore>;
|
8
8
|
/** 是否就绪: 配置初始完成, 组件渲染完成. */
|
9
|
-
isReady: ComputedRef<ReturnType<
|
9
|
+
isReady: ComputedRef<ReturnType<ReturnType<typeof useKgTableStore>['getIsReady']>>;
|
10
10
|
/** 是否正在查询. */
|
11
|
-
isRetrieving: ComputedRef<ReturnType<
|
11
|
+
isRetrieving: ComputedRef<ReturnType<ReturnType<typeof useKgTableStore>['getIsRetrieving']>>;
|
12
12
|
/** 当前勾选的第一行. */
|
13
|
-
selectedFirstRow: ComputedRef<ReturnType<
|
13
|
+
selectedFirstRow: ComputedRef<ReturnType<ReturnType<typeof useKgTableStore>['getSelectedFirstRow']>>;
|
14
14
|
/** 当前勾选的唯一行, 如果勾选了多行或者零行, 则为 null. */
|
15
|
-
selectedRow: ComputedRef<ReturnType<
|
15
|
+
selectedRow: ComputedRef<ReturnType<ReturnType<typeof useKgTableStore>['getSelectedRow']>>;
|
16
16
|
/** 当前勾选的所有行. */
|
17
|
-
selectedRows: ComputedRef<ReturnType<
|
17
|
+
selectedRows: ComputedRef<ReturnType<ReturnType<typeof useKgTableStore>['getSelectedRows']>>;
|
18
18
|
/** 是否支持多选. */
|
19
19
|
isMultiSelect: Ref<boolean>;
|
20
20
|
/** 是否自动查询. */
|