morningfast-plus 1.1.21 → 1.1.23

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.
@@ -22,6 +22,58 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
22
22
  readonly type: BooleanConstructor;
23
23
  readonly default: true;
24
24
  };
25
+ readonly taskServiceEnabled: {
26
+ readonly type: BooleanConstructor;
27
+ readonly default: true;
28
+ };
29
+ readonly payloadFormat: {
30
+ readonly type: import('vue').PropType<import('./types').MpExportPayloadFormat>;
31
+ readonly default: "task";
32
+ };
33
+ readonly moduleType: {
34
+ readonly type: import('vue').PropType<string | number>;
35
+ readonly default: undefined;
36
+ };
37
+ readonly module_type: {
38
+ readonly type: import('vue').PropType<string | number>;
39
+ readonly default: undefined;
40
+ };
41
+ readonly name: {
42
+ readonly type: StringConstructor;
43
+ readonly default: undefined;
44
+ };
45
+ readonly priority: {
46
+ readonly type: NumberConstructor;
47
+ readonly default: undefined;
48
+ };
49
+ readonly conditions: {
50
+ readonly type: import('vue').PropType<import('./types').MpExportTaskPayload["conditions"]>;
51
+ readonly default: undefined;
52
+ };
53
+ readonly conditionsCn: {
54
+ readonly type: StringConstructor;
55
+ readonly default: undefined;
56
+ };
57
+ readonly conditions_cn: {
58
+ readonly type: StringConstructor;
59
+ readonly default: undefined;
60
+ };
61
+ readonly selectedConditionField: {
62
+ readonly type: StringConstructor;
63
+ readonly default: undefined;
64
+ };
65
+ readonly operatorFields: {
66
+ readonly type: import('vue').PropType<string[]>;
67
+ readonly default: undefined;
68
+ };
69
+ readonly operatorMap: {
70
+ readonly type: import('vue').PropType<Map<string, string | number> | Record<string, string | number>>;
71
+ readonly default: undefined;
72
+ };
73
+ readonly request: {
74
+ readonly type: import('vue').PropType<(payload: import('./types').MpExportTaskPayload) => Promise<unknown> | unknown>;
75
+ readonly default: undefined;
76
+ };
25
77
  readonly loading: {
26
78
  readonly type: BooleanConstructor;
27
79
  readonly default: false;
@@ -74,10 +126,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
74
126
  readonly type: BooleanConstructor;
75
127
  readonly default: false;
76
128
  };
129
+ readonly successMessage: {
130
+ readonly type: StringConstructor;
131
+ readonly default: "导出任务已提交,请前往下载中心查看";
132
+ };
77
133
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
78
134
  reset: () => void;
79
135
  "update:modelValue": (value: boolean) => void;
80
- confirm: (payload: import('./types').MpExportSettingPayload) => void;
136
+ confirm: (payload: unknown) => void;
81
137
  "update:formModel": (value: import('../../form/src/field-renderer').MpFieldModel) => void;
82
138
  "open-task-center": () => void;
83
139
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
@@ -101,6 +157,58 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
101
157
  readonly type: BooleanConstructor;
102
158
  readonly default: true;
103
159
  };
160
+ readonly taskServiceEnabled: {
161
+ readonly type: BooleanConstructor;
162
+ readonly default: true;
163
+ };
164
+ readonly payloadFormat: {
165
+ readonly type: import('vue').PropType<import('./types').MpExportPayloadFormat>;
166
+ readonly default: "task";
167
+ };
168
+ readonly moduleType: {
169
+ readonly type: import('vue').PropType<string | number>;
170
+ readonly default: undefined;
171
+ };
172
+ readonly module_type: {
173
+ readonly type: import('vue').PropType<string | number>;
174
+ readonly default: undefined;
175
+ };
176
+ readonly name: {
177
+ readonly type: StringConstructor;
178
+ readonly default: undefined;
179
+ };
180
+ readonly priority: {
181
+ readonly type: NumberConstructor;
182
+ readonly default: undefined;
183
+ };
184
+ readonly conditions: {
185
+ readonly type: import('vue').PropType<import('./types').MpExportTaskPayload["conditions"]>;
186
+ readonly default: undefined;
187
+ };
188
+ readonly conditionsCn: {
189
+ readonly type: StringConstructor;
190
+ readonly default: undefined;
191
+ };
192
+ readonly conditions_cn: {
193
+ readonly type: StringConstructor;
194
+ readonly default: undefined;
195
+ };
196
+ readonly selectedConditionField: {
197
+ readonly type: StringConstructor;
198
+ readonly default: undefined;
199
+ };
200
+ readonly operatorFields: {
201
+ readonly type: import('vue').PropType<string[]>;
202
+ readonly default: undefined;
203
+ };
204
+ readonly operatorMap: {
205
+ readonly type: import('vue').PropType<Map<string, string | number> | Record<string, string | number>>;
206
+ readonly default: undefined;
207
+ };
208
+ readonly request: {
209
+ readonly type: import('vue').PropType<(payload: import('./types').MpExportTaskPayload) => Promise<unknown> | unknown>;
210
+ readonly default: undefined;
211
+ };
104
212
  readonly loading: {
105
213
  readonly type: BooleanConstructor;
106
214
  readonly default: false;
@@ -153,14 +261,19 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
153
261
  readonly type: BooleanConstructor;
154
262
  readonly default: false;
155
263
  };
264
+ readonly successMessage: {
265
+ readonly type: StringConstructor;
266
+ readonly default: "导出任务已提交,请前往下载中心查看";
267
+ };
156
268
  }>> & Readonly<{
157
269
  onReset?: (() => any) | undefined;
158
270
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
159
- onConfirm?: ((payload: import('./types').MpExportSettingPayload) => any) | undefined;
271
+ onConfirm?: ((payload: unknown) => any) | undefined;
160
272
  "onUpdate:formModel"?: ((value: import('../../form/src/field-renderer').MpFieldModel) => any) | undefined;
161
273
  "onOpen-task-center"?: (() => any) | undefined;
162
274
  }>, {
163
275
  readonly title: string;
276
+ readonly name: string;
164
277
  readonly width: string | number;
165
278
  readonly loading: boolean;
166
279
  readonly modelValue: boolean;
@@ -170,14 +283,27 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
170
283
  readonly labelWidth: string | number;
171
284
  readonly selectedRows: unknown[];
172
285
  readonly schemas: import('../..').MpFormSchema[];
286
+ readonly formModel: import('../../form/src/field-renderer').MpFieldModel;
287
+ readonly initialFormModel: import('../../form/src/field-renderer').MpFieldModel;
288
+ readonly module_type: string | number;
289
+ readonly conditions: import('./types').MpExportTaskCondition[];
290
+ readonly taskServiceEnabled: boolean;
291
+ readonly payloadFormat: import('./types').MpExportPayloadFormat;
292
+ readonly moduleType: string | number;
293
+ readonly priority: number;
294
+ readonly conditionsCn: string;
295
+ readonly conditions_cn: string;
296
+ readonly selectedConditionField: string;
297
+ readonly operatorFields: string[];
298
+ readonly operatorMap: Map<string, string | number> | Record<string, string | number>;
299
+ readonly request: (payload: import('./types').MpExportTaskPayload) => Promise<unknown> | unknown;
173
300
  readonly querySummary: string[];
174
301
  readonly selectedCount: number;
175
302
  readonly params: import('../../form/src/field-renderer').MpFieldModel;
176
- readonly formModel: import('../../form/src/field-renderer').MpFieldModel;
177
- readonly initialFormModel: import('../../form/src/field-renderer').MpFieldModel;
178
303
  readonly selectedRowKeys: (string | number)[];
179
304
  readonly defaultScope: MpExportSettingScope;
180
305
  readonly taskCenterEnabled: boolean;
306
+ readonly successMessage: string;
181
307
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
182
308
  exportFormRef: ({
183
309
  $: import('vue').ComponentInternalInstance;
@@ -0,0 +1,3 @@
1
+ import { MpExportSettingPayload, MpExportTaskCondition, MpExportTaskPayload, MpExportTaskPayloadOptions } from './types';
2
+ export declare function buildMpExportTaskConditions(payload: MpExportSettingPayload, options?: MpExportTaskPayloadOptions): MpExportTaskCondition[];
3
+ export declare function buildMpExportTaskPayload(payload: MpExportSettingPayload, options?: MpExportTaskPayloadOptions): MpExportTaskPayload;
@@ -16,6 +16,33 @@ export interface MpExportSettingPayload {
16
16
  selectedRows: unknown[];
17
17
  selectedRowKeys: Array<string | number>;
18
18
  }
19
+ export type MpExportPayloadFormat = 'raw' | 'task';
20
+ export interface MpExportTaskCondition {
21
+ field: string;
22
+ value: unknown;
23
+ op?: string | number;
24
+ }
25
+ export interface MpExportTaskPayload {
26
+ module_type?: string | number;
27
+ name?: string;
28
+ priority?: number;
29
+ conditions: MpExportTaskCondition[];
30
+ columns: string[];
31
+ conditions_cn?: string;
32
+ }
33
+ export interface MpExportTaskPayloadOptions {
34
+ moduleType?: string | number;
35
+ module_type?: string | number;
36
+ name?: string;
37
+ priority?: number;
38
+ conditions?: MpExportTaskCondition[];
39
+ conditionsCn?: string;
40
+ conditions_cn?: string;
41
+ selectedConditionField?: string;
42
+ ignoredConditionFields?: string[];
43
+ operatorMap?: Map<string, string | number> | Record<string, string | number>;
44
+ operatorFields?: Set<string> | string[];
45
+ }
19
46
  export interface MpExportSettingFormProps {
20
47
  schemas?: MpFormSchema[];
21
48
  formModel?: MpFormModel;
@@ -4,4 +4,5 @@ export declare const MpImportSetting: SFCWithInstall<typeof ImportSetting>;
4
4
  export default MpImportSetting;
5
5
  export * from './src/import-setting';
6
6
  export * from './src/download';
7
+ export * from './src/payload';
7
8
  export type * from './src/types';
@@ -1,7 +1,7 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
2
  import { MpFormModel, MpFormSchema } from '../../form';
3
3
  import { MpTableColumn } from '../../table';
4
- import { MpImportRecord, MpImportRecordPagination, MpImportSubmitPayload } from './types';
4
+ import { MpImportPayloadFormat, MpImportRecord, MpImportRecordPagination } from './types';
5
5
  export declare const mpImportSettingProps: {
6
6
  readonly modelValue: {
7
7
  readonly type: BooleanConstructor;
@@ -19,6 +19,22 @@ export declare const mpImportSettingProps: {
19
19
  readonly type: BooleanConstructor;
20
20
  readonly default: true;
21
21
  };
22
+ readonly taskServiceEnabled: {
23
+ readonly type: BooleanConstructor;
24
+ readonly default: true;
25
+ };
26
+ readonly payloadFormat: {
27
+ readonly type: PropType<MpImportPayloadFormat>;
28
+ readonly default: "task";
29
+ };
30
+ readonly moduleType: {
31
+ readonly type: PropType<string | number>;
32
+ readonly default: undefined;
33
+ };
34
+ readonly module_type: {
35
+ readonly type: PropType<string | number>;
36
+ readonly default: undefined;
37
+ };
22
38
  readonly schemas: {
23
39
  readonly type: PropType<MpFormSchema[]>;
24
40
  readonly default: () => never[];
@@ -67,11 +83,43 @@ export declare const mpImportSettingProps: {
67
83
  readonly type: StringConstructor;
68
84
  readonly default: "";
69
85
  };
86
+ readonly submitRequest: {
87
+ readonly type: PropType<(payload: FormData) => Promise<unknown> | unknown>;
88
+ readonly default: undefined;
89
+ };
90
+ readonly loadRecords: {
91
+ readonly type: PropType<(pagination: {
92
+ page: number;
93
+ pageSize: number;
94
+ module_type?: string | number;
95
+ task_status?: string;
96
+ is_error?: number;
97
+ }) => Promise<{
98
+ records: MpImportRecord[];
99
+ total: number;
100
+ }> | {
101
+ records: MpImportRecord[];
102
+ total: number;
103
+ }>;
104
+ readonly default: undefined;
105
+ };
106
+ readonly downloadTemplate: {
107
+ readonly type: PropType<() => Promise<void> | void>;
108
+ readonly default: undefined;
109
+ };
110
+ readonly downloadFile: {
111
+ readonly type: PropType<(record: MpImportRecord) => Promise<void> | void>;
112
+ readonly default: undefined;
113
+ };
114
+ readonly successMessage: {
115
+ readonly type: StringConstructor;
116
+ readonly default: "导入任务已提交";
117
+ };
70
118
  };
71
119
  export declare const mpImportSettingEmits: {
72
120
  'update:modelValue': (value: boolean) => boolean;
73
121
  'update:formModel': (value: MpFormModel) => boolean;
74
- submit: (payload: MpImportSubmitPayload) => boolean;
122
+ submit: (payload: unknown) => boolean;
75
123
  'download-template': () => boolean;
76
124
  'refresh-records': () => boolean;
77
125
  'record-page-change': (page: number) => boolean;
@@ -19,6 +19,22 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
19
19
  readonly type: BooleanConstructor;
20
20
  readonly default: true;
21
21
  };
22
+ readonly taskServiceEnabled: {
23
+ readonly type: BooleanConstructor;
24
+ readonly default: true;
25
+ };
26
+ readonly payloadFormat: {
27
+ readonly type: import('vue').PropType<import('./types').MpImportPayloadFormat>;
28
+ readonly default: "task";
29
+ };
30
+ readonly moduleType: {
31
+ readonly type: import('vue').PropType<string | number>;
32
+ readonly default: undefined;
33
+ };
34
+ readonly module_type: {
35
+ readonly type: import('vue').PropType<string | number>;
36
+ readonly default: undefined;
37
+ };
22
38
  readonly schemas: {
23
39
  readonly type: import('vue').PropType<import('../..').MpFormSchema[]>;
24
40
  readonly default: () => never[];
@@ -67,8 +83,40 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
67
83
  readonly type: StringConstructor;
68
84
  readonly default: "";
69
85
  };
86
+ readonly submitRequest: {
87
+ readonly type: import('vue').PropType<(payload: FormData) => Promise<unknown> | unknown>;
88
+ readonly default: undefined;
89
+ };
90
+ readonly loadRecords: {
91
+ readonly type: import('vue').PropType<(pagination: {
92
+ page: number;
93
+ pageSize: number;
94
+ module_type?: string | number;
95
+ task_status?: string;
96
+ is_error?: number;
97
+ }) => Promise<{
98
+ records: MpImportRecord[];
99
+ total: number;
100
+ }> | {
101
+ records: MpImportRecord[];
102
+ total: number;
103
+ }>;
104
+ readonly default: undefined;
105
+ };
106
+ readonly downloadTemplate: {
107
+ readonly type: import('vue').PropType<() => Promise<void> | void>;
108
+ readonly default: undefined;
109
+ };
110
+ readonly downloadFile: {
111
+ readonly type: import('vue').PropType<(record: MpImportRecord) => Promise<void> | void>;
112
+ readonly default: undefined;
113
+ };
114
+ readonly successMessage: {
115
+ readonly type: StringConstructor;
116
+ readonly default: "导入任务已提交";
117
+ };
70
118
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
71
- submit: (payload: import('./types').MpImportSubmitPayload) => void;
119
+ submit: (payload: unknown) => void;
72
120
  "update:modelValue": (value: boolean) => void;
73
121
  "update:formModel": (value: import('../../form/src/field-renderer').MpFieldModel) => void;
74
122
  "download-template": () => void;
@@ -93,6 +141,22 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
93
141
  readonly type: BooleanConstructor;
94
142
  readonly default: true;
95
143
  };
144
+ readonly taskServiceEnabled: {
145
+ readonly type: BooleanConstructor;
146
+ readonly default: true;
147
+ };
148
+ readonly payloadFormat: {
149
+ readonly type: import('vue').PropType<import('./types').MpImportPayloadFormat>;
150
+ readonly default: "task";
151
+ };
152
+ readonly moduleType: {
153
+ readonly type: import('vue').PropType<string | number>;
154
+ readonly default: undefined;
155
+ };
156
+ readonly module_type: {
157
+ readonly type: import('vue').PropType<string | number>;
158
+ readonly default: undefined;
159
+ };
96
160
  readonly schemas: {
97
161
  readonly type: import('vue').PropType<import('../..').MpFormSchema[]>;
98
162
  readonly default: () => never[];
@@ -141,8 +205,40 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
141
205
  readonly type: StringConstructor;
142
206
  readonly default: "";
143
207
  };
208
+ readonly submitRequest: {
209
+ readonly type: import('vue').PropType<(payload: FormData) => Promise<unknown> | unknown>;
210
+ readonly default: undefined;
211
+ };
212
+ readonly loadRecords: {
213
+ readonly type: import('vue').PropType<(pagination: {
214
+ page: number;
215
+ pageSize: number;
216
+ module_type?: string | number;
217
+ task_status?: string;
218
+ is_error?: number;
219
+ }) => Promise<{
220
+ records: MpImportRecord[];
221
+ total: number;
222
+ }> | {
223
+ records: MpImportRecord[];
224
+ total: number;
225
+ }>;
226
+ readonly default: undefined;
227
+ };
228
+ readonly downloadTemplate: {
229
+ readonly type: import('vue').PropType<() => Promise<void> | void>;
230
+ readonly default: undefined;
231
+ };
232
+ readonly downloadFile: {
233
+ readonly type: import('vue').PropType<(record: MpImportRecord) => Promise<void> | void>;
234
+ readonly default: undefined;
235
+ };
236
+ readonly successMessage: {
237
+ readonly type: StringConstructor;
238
+ readonly default: "导入任务已提交";
239
+ };
144
240
  }>> & Readonly<{
145
- onSubmit?: ((payload: import('./types').MpImportSubmitPayload) => any) | undefined;
241
+ onSubmit?: ((payload: unknown) => any) | undefined;
146
242
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
147
243
  "onUpdate:formModel"?: ((value: import('../../form/src/field-renderer').MpFieldModel) => any) | undefined;
148
244
  "onDownload-template"?: (() => any) | undefined;
@@ -159,6 +255,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
159
255
  readonly labelWidth: string | number;
160
256
  readonly schemas: import('../..').MpFormSchema[];
161
257
  readonly formModel: import('../../form/src/field-renderer').MpFieldModel;
258
+ readonly module_type: string | number;
259
+ readonly taskServiceEnabled: boolean;
260
+ readonly payloadFormat: import('./types').MpImportPayloadFormat;
261
+ readonly moduleType: string | number;
262
+ readonly successMessage: string;
162
263
  readonly accept: string;
163
264
  readonly maxSize: number;
164
265
  readonly records: MpImportRecord[];
@@ -167,7 +268,25 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
167
268
  readonly recordsLoading: boolean;
168
269
  readonly templateEnabled: boolean;
169
270
  readonly templateUrl: string;
271
+ readonly submitRequest: (payload: FormData) => Promise<unknown> | unknown;
272
+ readonly loadRecords: (pagination: {
273
+ page: number;
274
+ pageSize: number;
275
+ module_type?: string | number;
276
+ task_status?: string;
277
+ is_error?: number;
278
+ }) => Promise<{
279
+ records: MpImportRecord[];
280
+ total: number;
281
+ }> | {
282
+ records: MpImportRecord[];
283
+ total: number;
284
+ };
285
+ readonly downloadTemplate: () => Promise<void> | void;
286
+ readonly downloadFile: (record: MpImportRecord) => Promise<void> | void;
170
287
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
288
+ bodyRef: HTMLDivElement;
289
+ configSectionRef: HTMLElement;
171
290
  uploadRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
172
291
  type: {
173
292
  type: import('vue').PropType<typeof import('../..').MpUploadTypes[number]>;
@@ -725,5 +844,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
725
844
  provider: string | import('../..').MpUploadProvider<unknown, Record<string, unknown>>;
726
845
  providerOptions: Record<string, unknown>;
727
846
  }> | null;
847
+ recordsSectionRef: HTMLElement;
848
+ recordsHeadRef: HTMLDivElement;
728
849
  }, any>;
729
850
  export default _default;
@@ -0,0 +1,2 @@
1
+ import { MpImportSubmitPayload, MpImportTaskPayloadOptions } from './types';
2
+ export declare function buildMpImportTaskPayload(payload: MpImportSubmitPayload, options?: MpImportTaskPayloadOptions): FormData;
@@ -37,3 +37,9 @@ export interface MpImportSubmitPayload {
37
37
  file: File;
38
38
  form: MpFormModel;
39
39
  }
40
+ export type MpImportPayloadFormat = 'raw' | 'task';
41
+ export interface MpImportTaskPayloadOptions {
42
+ moduleType?: string | number;
43
+ module_type?: string | number;
44
+ }
45
+ export type MpImportTaskPayload = FormData;