aldehyde 0.2.117 → 0.2.120
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/lib/form/criteria-form.js +1 -1
- package/lib/form/criteria-form.js.map +1 -1
- package/lib/layout/menu/block.d.ts +1 -0
- package/lib/layout/menu/block.d.ts.map +1 -1
- package/lib/layout/menu/block.js +14 -2
- package/lib/layout/menu/block.js.map +1 -1
- package/lib/layout/menu/menu-render.d.ts +3 -1
- package/lib/layout/menu/menu-render.d.ts.map +1 -1
- package/lib/layout/menu/menu-render.js +2 -0
- package/lib/layout/menu/menu-render.js.map +1 -1
- package/lib/table/act-table.d.ts.map +1 -1
- package/lib/table/act-table.js +1 -1
- package/lib/table/act-table.js.map +1 -1
- package/lib/table/query-table.d.ts +5 -0
- package/lib/table/query-table.d.ts.map +1 -1
- package/lib/table/query-table.js +70 -3
- package/lib/table/query-table.js.map +1 -1
- package/lib/tmpl/hcservice-v3.d.ts.map +1 -1
- package/lib/tmpl/hcservice-v3.js.map +1 -1
- package/lib/tmpl/interface.d.ts +31 -23
- package/lib/tmpl/interface.d.ts.map +1 -1
- package/lib/tmpl/interface.js +0 -3
- package/lib/tmpl/interface.js.map +1 -1
- package/package.json +2 -1
- package/src/aldehyde/form/criteria-form.tsx +1 -1
- package/src/aldehyde/layout/menu/block.tsx +28 -3
- package/src/aldehyde/layout/menu/menu-render.tsx +4 -2
- package/src/aldehyde/table/act-table.tsx +1 -0
- package/src/aldehyde/table/query-table.tsx +121 -3
- package/src/aldehyde/tmpl/hcservice-v3.tsx +7 -3
- package/src/aldehyde/tmpl/interface.tsx +340 -295
|
@@ -1,240 +1,287 @@
|
|
|
1
|
-
import {MenuProps} from "antd/lib/menu";
|
|
2
|
-
import {FormInstance} from "antd";
|
|
3
|
-
import React, {RefObject} from "react";
|
|
4
|
-
import {ButtonShape,ButtonType} from "antd/lib/button";
|
|
5
|
-
export type ViewOrEdit =
|
|
1
|
+
import { MenuProps } from "antd/lib/menu";
|
|
2
|
+
import { FormInstance } from "antd";
|
|
3
|
+
import React, { RefObject } from "react";
|
|
4
|
+
import { ButtonShape, ButtonType } from "antd/lib/button";
|
|
5
|
+
export type ViewOrEdit = "view" | "edit";
|
|
6
6
|
|
|
7
|
-
export type AddOrUpdate =
|
|
7
|
+
export type AddOrUpdate = "add" | "update" | "copy";
|
|
8
8
|
|
|
9
|
-
export
|
|
9
|
+
export type ConfigName = "statViewConfig" | "ltmplConfig";
|
|
10
10
|
|
|
11
|
-
export type BeforeExeConfirm =
|
|
11
|
+
export type BeforeExeConfirm = "default" | "danger" | "none";
|
|
12
12
|
|
|
13
|
-
export type StatColType =
|
|
13
|
+
export type StatColType = "fact" | "dimension";
|
|
14
14
|
|
|
15
|
-
export type ActTableViewModel =
|
|
15
|
+
export type ActTableViewModel = "table" | "verticalList" | "horizontalList";
|
|
16
16
|
|
|
17
|
-
export type ControlHolderType=
|
|
18
|
-
export type PageType=
|
|
17
|
+
export type ControlHolderType = "table" | "descriptions";
|
|
18
|
+
export type PageType = "modal" | "drawer" | "card";
|
|
19
19
|
export interface TmplBase {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
id: string;
|
|
21
|
+
title: string;
|
|
22
|
+
tip?: string;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
export interface OrderableTmplBase extends TmplBase {
|
|
26
|
-
|
|
26
|
+
order?: string | number;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
export interface FieldBase extends OrderableTmplBase {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
30
|
+
colNum?: number;
|
|
31
|
+
mstrucId?: string;
|
|
32
|
+
defaultValue?: string;
|
|
33
|
+
value?: string;
|
|
34
|
+
tip?: string;
|
|
35
|
+
controlType?: string;
|
|
36
|
+
extControlType?: string;
|
|
37
|
+
required?: boolean;
|
|
38
|
+
comparator?: Comparator;
|
|
39
|
+
dependencies?: string[];
|
|
40
|
+
shouldUpdate?: ((prevValue: object, curValue: object) => boolean) | boolean;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
export interface DtmplFormProps extends DtmplBaseProps {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
44
|
+
parentId: string;
|
|
45
|
+
dtmplConfig: DtmplConfig;
|
|
46
|
+
dtmplData?: DtmplData;
|
|
47
|
+
formRef: RefObject<FormInstance>;
|
|
48
|
+
showConfirm?: boolean;
|
|
49
|
+
showHeader?: boolean;
|
|
50
|
+
onFinish: (code: string) => void;
|
|
51
|
+
onValuesChange?: () => void;
|
|
52
|
+
}
|
|
53
53
|
|
|
54
54
|
export interface CQueryConfig extends OrderableTmplBase {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
path?: string;
|
|
56
|
+
mainCodeColId?: string;
|
|
57
|
+
type?: string;
|
|
58
58
|
}
|
|
59
|
-
export type ActTableMode =
|
|
59
|
+
export type ActTableMode = "simple" | "common" | "complete";
|
|
60
60
|
|
|
61
61
|
export interface ActionConfig extends OrderableTmplBase {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
62
|
+
multible: boolean;
|
|
63
|
+
icon: string;
|
|
64
|
+
beforeExeConfirm: string;
|
|
65
|
+
preposes: FieldConfig[];
|
|
66
|
+
writes: FieldConfig[];
|
|
67
|
+
tip: string;
|
|
68
|
+
buttonType?: ButtonType;
|
|
69
|
+
buttonShape?: ButtonShape;
|
|
70
|
+
danger?: boolean;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
export interface JumpConfig extends OrderableTmplBase {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
export interface ClassifiedAddConfig extends OrderableTmplBase {
|
|
81
|
-
|
|
74
|
+
multible: boolean;
|
|
75
|
+
path: string;
|
|
76
|
+
tokenName: string;
|
|
77
|
+
searchParams: FieldConfig[];
|
|
78
|
+
routeParams: FieldConfig[];
|
|
82
79
|
}
|
|
83
|
-
|
|
80
|
+
export interface ClassifiedAddConfig extends OrderableTmplBase {}
|
|
84
81
|
|
|
85
82
|
export interface Level2Menu extends MenuBase {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
83
|
+
items: (BlockMenu | Level2Menu)[];
|
|
84
|
+
customPath?: string;
|
|
85
|
+
displayTotal?: boolean;
|
|
86
|
+
count?: number;
|
|
87
|
+
disabled?: boolean;
|
|
88
|
+
hiddenOnDisabled?: boolean;
|
|
89
|
+
defaultCriteriaValue?: object;
|
|
90
|
+
pageType: "列表" | "详情" | "编辑" | "添加" | "编辑或添加" | "树";
|
|
94
91
|
}
|
|
95
92
|
|
|
96
93
|
export interface Level1Menu extends MenuBase {
|
|
97
|
-
|
|
94
|
+
l2Menus: Level2Menu[];
|
|
98
95
|
}
|
|
99
96
|
|
|
100
97
|
export interface MenuBase extends OrderableTmplBase {
|
|
101
|
-
|
|
98
|
+
tip: string;
|
|
102
99
|
}
|
|
103
100
|
|
|
104
101
|
export interface BlockMenu extends MenuBase {
|
|
105
|
-
|
|
106
|
-
|
|
102
|
+
l1Menus: Level1Menu[];
|
|
103
|
+
items: (BlockMenu | Level2Menu)[];
|
|
107
104
|
}
|
|
108
105
|
|
|
109
|
-
export interface CriteriaConfig extends FieldConfig {
|
|
110
|
-
|
|
111
|
-
}
|
|
106
|
+
export interface CriteriaConfig extends FieldConfig {}
|
|
112
107
|
|
|
113
108
|
export interface ColumnConfig extends FieldConfig {
|
|
114
|
-
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
export type CodeSource =
|
|
118
|
-
|
|
119
|
-
export type ButtonPosition =
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
export type
|
|
129
|
-
|
|
109
|
+
statColType?: StatColType;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export type CodeSource = "new" | "listop" | "listop-new" | undefined;
|
|
113
|
+
|
|
114
|
+
export type ButtonPosition =
|
|
115
|
+
| "fixedBottomRight"
|
|
116
|
+
| "bottomLeft"
|
|
117
|
+
| "bottomCenter"
|
|
118
|
+
| "bottomRight"
|
|
119
|
+
| undefined;
|
|
120
|
+
|
|
121
|
+
export type FieldGroupType = "relation" | "fieldGroup" | "embed";
|
|
122
|
+
|
|
123
|
+
export type ButtonName =
|
|
124
|
+
| "rowAdd"
|
|
125
|
+
| "rowEdit"
|
|
126
|
+
| "batchDelete"
|
|
127
|
+
| "singleDelete"
|
|
128
|
+
| "selectAdd"
|
|
129
|
+
| "dtmplAdd"
|
|
130
|
+
| "dtmplEdit"
|
|
131
|
+
| "copy"
|
|
132
|
+
| "exportDtmplExcel"
|
|
133
|
+
| "importDtmplExcel"
|
|
134
|
+
| "fusionMode"
|
|
135
|
+
| "history"
|
|
136
|
+
| "dtmplSave"
|
|
137
|
+
| "query"
|
|
138
|
+
| "detail"
|
|
139
|
+
| "exportLtmplExcel"
|
|
140
|
+
| "importLtmplExcel"
|
|
141
|
+
| "showChart"
|
|
142
|
+
| "dtmplCustomEdit"
|
|
143
|
+
| "dtmplCustomAdd"
|
|
144
|
+
| "customDetail"
|
|
145
|
+
| "statRefresh"
|
|
146
|
+
| "ltmplRefresh"
|
|
147
|
+
| "dtmplRefresh"
|
|
148
|
+
| "analysis"
|
|
149
|
+
| "ltmplSelectAdd"
|
|
150
|
+
| "reStat"
|
|
151
|
+
| "drilling";
|
|
152
|
+
|
|
153
|
+
export type ChartType = "line" | "pie" | "column";
|
|
154
|
+
export type GroupDisplayConfig =
|
|
155
|
+
| "nonDataNonDisplayed"
|
|
156
|
+
| "displayed"
|
|
157
|
+
| "folded"
|
|
158
|
+
| "unfold"
|
|
159
|
+
| "listview"
|
|
160
|
+
| "tableview";
|
|
130
161
|
export interface FieldGroupConfig extends OrderableTmplBase {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
export type SaveJumpType =
|
|
162
|
+
serverKey?: string;
|
|
163
|
+
type: FieldGroupType;
|
|
164
|
+
buttons: ButtonName[];
|
|
165
|
+
min: number;
|
|
166
|
+
max: number;
|
|
167
|
+
showRowNum?: boolean;
|
|
168
|
+
relationNames?: string[];
|
|
169
|
+
showRelationName?: boolean;
|
|
170
|
+
fields: FieldConfig[];
|
|
171
|
+
rowActions: ActionConfig[];
|
|
172
|
+
displayConfig: GroupDisplayConfig;
|
|
173
|
+
mainCode?: string;
|
|
174
|
+
disabled?: boolean;
|
|
175
|
+
readOnly?: boolean;
|
|
176
|
+
embedType?: "列表" | "详情" | "编辑" | "编辑或添加";
|
|
177
|
+
pageSourceFieldMstrucId: string;
|
|
178
|
+
codeSourceFieldMstrucId: string;
|
|
179
|
+
pointSourceId: string;
|
|
180
|
+
classifiedAddConfigs?: ClassifiedAddConfig[];
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export type SaveJumpType = "list" | "add" | "edit";
|
|
153
184
|
|
|
154
185
|
export interface DtmplConfig extends TmplBase {
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
186
|
+
autoSaveInterval?: number;
|
|
187
|
+
//exportExcel fusionMode history dtmplSave refresh
|
|
188
|
+
buttons: ButtonName[];
|
|
189
|
+
// list add edit
|
|
190
|
+
saveJumpTo: SaveJumpType[];
|
|
191
|
+
cQuerys: CQueryConfig[];
|
|
192
|
+
editAction: ActionConfig;
|
|
193
|
+
actions: ActionConfig[];
|
|
194
|
+
premises: FieldConfig[];
|
|
195
|
+
groups: FieldGroupConfig[];
|
|
196
|
+
buttonPosition: ButtonPosition;
|
|
197
|
+
buildInFuncFields: FieldConfig[];
|
|
198
|
+
onValuesChange: (
|
|
199
|
+
changedValues,
|
|
200
|
+
allValues: DtmplData,
|
|
201
|
+
formInstance: FormInstance
|
|
202
|
+
) => void;
|
|
203
|
+
entity: DtmplData;
|
|
204
|
+
dynamic: boolean;
|
|
205
|
+
hiddenFields?: FieldConfig[];
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
export type Comparator =
|
|
209
|
+
| "contain"
|
|
210
|
+
| "equal"
|
|
211
|
+
| "equals"
|
|
212
|
+
| "unequal"
|
|
213
|
+
| "unequals"
|
|
214
|
+
| "includeOne"
|
|
215
|
+
| "include_anyone"
|
|
216
|
+
| "noless"
|
|
217
|
+
| "nogreater"
|
|
218
|
+
| "exclude"
|
|
219
|
+
| "noLess"
|
|
220
|
+
| "noGreater";
|
|
221
|
+
|
|
222
|
+
export type FieldAction = "add" | "delete" | "edit" | "detail" | "table";
|
|
176
223
|
|
|
177
224
|
export interface FieldConfig extends FieldBase {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
225
|
+
disabled?: boolean;
|
|
226
|
+
max?: string;
|
|
227
|
+
min?: string;
|
|
228
|
+
ellipsisLength?: number;
|
|
229
|
+
buttons?: ButtonName[];
|
|
230
|
+
rules?: FileRule[];
|
|
231
|
+
mainCode?: ((form: FormInstance) => Function) | string;
|
|
232
|
+
updateSelf?: (form: FormInstance) => FieldConfig;
|
|
233
|
+
suppleOptions?: any[];
|
|
234
|
+
actions?: FieldAction[];
|
|
235
|
+
requiredRuleCriterias?: FieldConfig[];
|
|
236
|
+
usableRuleCriterias?: FieldConfig[];
|
|
237
|
+
hidden?: boolean;
|
|
238
|
+
serverKey?: string;
|
|
239
|
+
sourceId?: string;
|
|
240
|
+
baseCriteria?: object;
|
|
241
|
+
showDim?: boolean;
|
|
194
242
|
}
|
|
195
243
|
|
|
196
244
|
export interface FileRule {
|
|
197
|
-
|
|
198
|
-
|
|
245
|
+
pattern: string;
|
|
246
|
+
message: string;
|
|
199
247
|
}
|
|
200
248
|
|
|
201
249
|
export interface SelectConfig extends TmplBase {
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
250
|
+
defaultPageSize: number;
|
|
251
|
+
buttons: ButtonName[];
|
|
252
|
+
columns: ColumnConfig[];
|
|
253
|
+
criterias: CriteriaConfig[];
|
|
254
|
+
defaultCriteriaValue?: object;
|
|
255
|
+
primaryColumn?: ColumnConfig;
|
|
256
|
+
primaryCriteria: CriteriaConfig;
|
|
257
|
+
orderColumn: ColumnConfig;
|
|
258
|
+
totalColummConfigs?: ColumnConfig[];
|
|
259
|
+
showDim?: boolean;
|
|
210
260
|
}
|
|
211
261
|
|
|
212
262
|
export interface TtmplConfigRes {
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
export interface RActionConfig extends OrderableTmplBase {
|
|
219
|
-
|
|
263
|
+
sourceId: string;
|
|
264
|
+
ltmplConfig?: LtmplConfig;
|
|
265
|
+
parentLtmplConfig?: LtmplConfig;
|
|
220
266
|
}
|
|
221
267
|
|
|
268
|
+
export interface RActionConfig extends OrderableTmplBase {}
|
|
222
269
|
|
|
223
270
|
export interface LtmplConfigRes {
|
|
224
|
-
// configName: ConfigName;
|
|
225
|
-
|
|
226
|
-
// statViewConfig?:StatViewConfig;
|
|
227
|
-
|
|
271
|
+
// configName: ConfigName;
|
|
272
|
+
sourceId: string;
|
|
273
|
+
// statViewConfig?:StatViewConfig;
|
|
274
|
+
ltmplConfig?: LtmplConfig;
|
|
228
275
|
}
|
|
229
276
|
|
|
230
277
|
export interface TtmplConfig extends TmplBase {
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
278
|
+
type: "2M" | "1M" | "2MR";
|
|
279
|
+
leafTitle: string;
|
|
280
|
+
branchTitle: string;
|
|
281
|
+
rootGtmplId: string;
|
|
282
|
+
branchRatmplId: string;
|
|
283
|
+
leafRatmplId: string;
|
|
284
|
+
showLine: boolean;
|
|
238
285
|
}
|
|
239
286
|
|
|
240
287
|
// export interface StatViewConfig extends SelectConfig {
|
|
@@ -244,178 +291,176 @@ export interface TtmplConfig extends TmplBase {
|
|
|
244
291
|
// }
|
|
245
292
|
|
|
246
293
|
export interface LtmplConfig extends SelectConfig {
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
294
|
+
actions?: ActionConfig[];
|
|
295
|
+
rowActions: ActionConfig[];
|
|
296
|
+
ractions?: RActionConfig[];
|
|
297
|
+
jumps?: JumpConfig[];
|
|
298
|
+
rowJumps?: JumpConfig[];
|
|
299
|
+
cQuerys?: CQueryConfig[];
|
|
300
|
+
rowCQuerys?: CQueryConfig[];
|
|
301
|
+
chartType?: ChartType[];
|
|
302
|
+
editAction: ActionConfig;
|
|
303
|
+
deleteAction: ActionConfig;
|
|
304
|
+
reStatParams?: CriteriaConfig[];
|
|
305
|
+
customEditPagePath?: string;
|
|
306
|
+
customViewPagePath?: string;
|
|
307
|
+
classifiedAddConfigs?: ClassifiedAddConfig[];
|
|
308
|
+
drillingParams?: CriteriaConfig[];
|
|
309
|
+
footer?: string;
|
|
310
|
+
header?: string;
|
|
311
|
+
totalColummConfigs?: { id: string; aggFunc: "sum" | "avg"; title: string }[];
|
|
264
312
|
}
|
|
265
313
|
|
|
266
314
|
export interface EnumItem {
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
315
|
+
title: string;
|
|
316
|
+
value: string;
|
|
317
|
+
id: string;
|
|
318
|
+
color: string;
|
|
319
|
+
order: string;
|
|
320
|
+
subOptions?: EnumItem[];
|
|
273
321
|
}
|
|
274
322
|
|
|
275
|
-
export type EditStatus =
|
|
323
|
+
export type EditStatus = "new" | "changed" | "persisted";
|
|
276
324
|
|
|
277
325
|
export interface DtmplData {
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
326
|
+
code: string;
|
|
327
|
+
editStatus?: EditStatus;
|
|
328
|
+
title?: string;
|
|
329
|
+
relationLabel?: string;
|
|
330
|
+
fieldMap: object;
|
|
331
|
+
arrayMap?: object; //Map<number,DtmplData[]>
|
|
284
332
|
}
|
|
285
333
|
|
|
286
334
|
export interface PageInfo {
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
335
|
+
pageNo: number;
|
|
336
|
+
pageSize: number;
|
|
337
|
+
virtualEndPageNo?: number;
|
|
290
338
|
}
|
|
291
339
|
|
|
292
340
|
export interface LtmplData {
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
341
|
+
entities: DtmplData[];
|
|
342
|
+
pageInfo: PageInfo;
|
|
343
|
+
queryKey: string;
|
|
344
|
+
isEndList: boolean;
|
|
297
345
|
}
|
|
298
346
|
|
|
299
347
|
export interface UserInfo {
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
348
|
+
id: string;
|
|
349
|
+
name: string;
|
|
350
|
+
nickName?: string;
|
|
351
|
+
cleanCachable?: boolean;
|
|
352
|
+
gtmplSourceId?: string;
|
|
353
|
+
changePasswordable?: boolean;
|
|
354
|
+
changePersonalInfoable?: boolean;
|
|
355
|
+
viewPersonalInfoable?: boolean;
|
|
308
356
|
}
|
|
309
357
|
|
|
310
358
|
export interface QueryKey {
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
359
|
+
key: string;
|
|
360
|
+
criteriaValueMap: object;
|
|
361
|
+
hiddenColIds: number[];
|
|
362
|
+
sortColIds: number[];
|
|
315
363
|
}
|
|
316
364
|
|
|
317
365
|
export interface QueryData {
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
366
|
+
entities: DtmplData[];
|
|
367
|
+
touchEnd: boolean;
|
|
368
|
+
key: string;
|
|
369
|
+
pageInfo: PageInfo;
|
|
322
370
|
}
|
|
323
371
|
|
|
324
372
|
export interface EControlProps extends ControlBaseProps {
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
373
|
+
onChange?: (value: any) => void;
|
|
374
|
+
min?: string;
|
|
375
|
+
max?: string;
|
|
328
376
|
}
|
|
329
377
|
|
|
330
378
|
export interface VEControlProps extends EControlProps {
|
|
331
|
-
|
|
379
|
+
viewOrEdit?: ViewOrEdit;
|
|
332
380
|
}
|
|
333
381
|
|
|
334
|
-
export interface VControlProps extends ControlBaseProps {
|
|
335
|
-
}
|
|
382
|
+
export interface VControlProps extends ControlBaseProps {}
|
|
336
383
|
|
|
337
384
|
export interface ControlBaseProps {
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
385
|
+
id?: any;
|
|
386
|
+
value?: any;
|
|
387
|
+
fieldConfig?: FieldConfig;
|
|
388
|
+
serverKey?: string;
|
|
389
|
+
itemType?: string;
|
|
390
|
+
style?: object;
|
|
391
|
+
disabled?: boolean;
|
|
392
|
+
mainCode?: string;
|
|
346
393
|
}
|
|
347
394
|
|
|
348
395
|
export interface SelectedRow {
|
|
349
|
-
|
|
350
|
-
|
|
396
|
+
code: string;
|
|
397
|
+
title: string | string[];
|
|
351
398
|
}
|
|
352
399
|
|
|
353
400
|
export interface RouterCompProps {
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
401
|
+
basePath?: string;
|
|
402
|
+
match?: any;
|
|
403
|
+
history?: any;
|
|
404
|
+
location: any;
|
|
405
|
+
navigate?: any;
|
|
406
|
+
params: any;
|
|
407
|
+
searchParams: any;
|
|
361
408
|
}
|
|
362
409
|
|
|
363
410
|
export interface TmplBaseProps {
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
}
|
|
411
|
+
serverKey?: string;
|
|
412
|
+
sourceId: string;
|
|
413
|
+
mainCode?: string;
|
|
414
|
+
}
|
|
368
415
|
|
|
369
416
|
export interface DtmplBaseProps extends TmplBaseProps {
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
}
|
|
417
|
+
codeSource?: CodeSource;
|
|
418
|
+
showConfirm?: boolean;
|
|
419
|
+
code?: string;
|
|
420
|
+
defaultDtmplData?: DtmplData;
|
|
421
|
+
showRightNav?: boolean;
|
|
422
|
+
rightBarPositionRight?: number;
|
|
423
|
+
serialNumber?: number;
|
|
424
|
+
goDtmpl?: (code?: string) => void;
|
|
425
|
+
maxColsOnRow?: 1 | 2;
|
|
426
|
+
addTmplId?: string;
|
|
427
|
+
}
|
|
381
428
|
|
|
382
429
|
export interface ChartConfig {
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
430
|
+
xAxisTitle: string;
|
|
431
|
+
yAxisTitle: string;
|
|
432
|
+
xField: string;
|
|
433
|
+
yField: string;
|
|
387
434
|
}
|
|
388
435
|
|
|
389
436
|
export interface SubChartProps {
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
437
|
+
data: [];
|
|
438
|
+
config: ChartConfig;
|
|
439
|
+
groupName?: string;
|
|
393
440
|
}
|
|
394
441
|
|
|
395
|
-
export type FileValueValid = true |
|
|
442
|
+
export type FileValueValid = true | "new" | "delete";
|
|
396
443
|
|
|
397
444
|
export interface FileLoadInfo {
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
445
|
+
path: string;
|
|
446
|
+
fileName: string;
|
|
447
|
+
size?: string;
|
|
448
|
+
type?: string;
|
|
402
449
|
}
|
|
403
450
|
|
|
404
451
|
export interface FileValue {
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
}
|
|
414
|
-
export interface Menu2layersProps extends MenuProps{
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
452
|
+
valid: FileValueValid;
|
|
453
|
+
fileKey?: string;
|
|
454
|
+
fileName?: string;
|
|
455
|
+
suffix?: string;
|
|
456
|
+
body?: [];
|
|
457
|
+
icon?: FileLoadInfo;
|
|
458
|
+
thn?: FileLoadInfo;
|
|
459
|
+
base?: FileLoadInfo;
|
|
460
|
+
}
|
|
461
|
+
export interface Menu2layersProps extends MenuProps {
|
|
462
|
+
blockMenu: BlockMenu;
|
|
463
|
+
collapsed?: boolean;
|
|
464
|
+
currentL2MenuId?: string;
|
|
465
|
+
basePath?: string;
|
|
419
466
|
}
|
|
420
|
-
|
|
421
|
-
|