@simitgroup/simpleapp-generator 2.0.1-s-alpha → 2.0.1-u-alpha
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/ReleaseNote.md +9 -0
- package/package.json +1 -1
- package/templates/nest/src/simple-app/_core/features/queue/queue-base/queue-base.consumer.ts.eta +7 -3
- package/templates/nest/src/simple-app/_core/features/queue/queue.type.ts.eta +6 -7
- package/templates/nuxt/components/simpleApp/SimpleAppInput.vue.eta +14 -8
- package/templates/nuxt/plugins/10.simpleapp-event.ts.eta +1 -1
- package/templates/nuxt/simpleapp/generate/features/customField/components/CustomFieldFormFieldInput.vue.eta +4 -1
package/ReleaseNote.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
[2.0.1u-alpha]
|
|
2
|
+
|
|
3
|
+
1. Allow array string custom field to set input type
|
|
4
|
+
2. Fix multi select input size diff
|
|
5
|
+
|
|
6
|
+
[2.0.1t-alpha]
|
|
7
|
+
|
|
8
|
+
1. add more field into queue for track execution time
|
|
9
|
+
|
|
1
10
|
[2.0.1s-alpha]
|
|
2
11
|
|
|
3
12
|
1. Fix cron set xorg failed. undefined-undefined-undefined
|
package/package.json
CHANGED
package/templates/nest/src/simple-app/_core/features/queue/queue-base/queue-base.consumer.ts.eta
CHANGED
|
@@ -74,7 +74,8 @@ export abstract class BaseQueueConsumer extends WorkerHost {
|
|
|
74
74
|
await handler.call(this, appUser, job, payload);
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
protected async updateQueueJobRecord(job: Job, status: 'completed' | 'failed', result: any) {
|
|
77
|
+
protected async updateQueueJobRecord(job: Job, status: 'completed' | 'failed', result: any) {
|
|
78
|
+
|
|
78
79
|
await this.queueJobModel.updateOne(
|
|
79
80
|
{
|
|
80
81
|
'job.id': job.id,
|
|
@@ -82,8 +83,11 @@ export abstract class BaseQueueConsumer extends WorkerHost {
|
|
|
82
83
|
'job.processor': this.processor,
|
|
83
84
|
},
|
|
84
85
|
{
|
|
85
|
-
|
|
86
|
-
|
|
86
|
+
|
|
87
|
+
'job.status': status,
|
|
88
|
+
initTime: new Date(job.timestamp).toISOString(),
|
|
89
|
+
startTime: new Date(job.processedOn).toISOString(),
|
|
90
|
+
endTime: new Date(job.finishedOn).toISOString(),
|
|
87
91
|
result: status === 'completed' ? result : undefined,
|
|
88
92
|
error: status === 'failed' ? result : undefined,
|
|
89
93
|
},
|
|
@@ -10,9 +10,9 @@ export namespace QueuePayload {
|
|
|
10
10
|
currency: string;
|
|
11
11
|
country: string;
|
|
12
12
|
offsetMinute: number;
|
|
13
|
-
tenantId:number;
|
|
14
|
-
orgId:number;
|
|
15
|
-
branchId:number;
|
|
13
|
+
tenantId: number;
|
|
14
|
+
orgId: number;
|
|
15
|
+
branchId: number;
|
|
16
16
|
};
|
|
17
17
|
xOrg: string;
|
|
18
18
|
};
|
|
@@ -23,8 +23,6 @@ export namespace QueuePayload {
|
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
28
26
|
export type QueuejobJob = {
|
|
29
27
|
id: string; // {"type":"string","required":true,"default":""}
|
|
30
28
|
processor: string; // {"type":"string","required":true,"default":""}
|
|
@@ -57,7 +55,9 @@ export type Queuejob = {
|
|
|
57
55
|
orgId?: number; // {"type":"number","required":false,"default":1}
|
|
58
56
|
branchId?: number; // {"type":"number","required":false,"default":1}
|
|
59
57
|
job: QueuejobJob; //child object
|
|
60
|
-
|
|
58
|
+
initTime?: string;
|
|
59
|
+
startTime?: string;
|
|
60
|
+
endTime?: string;
|
|
61
61
|
payload?: QueuejobPayload; //child object
|
|
62
62
|
|
|
63
63
|
result?: QueuejobResult; //child object
|
|
@@ -65,7 +65,6 @@ export type Queuejob = {
|
|
|
65
65
|
error?: QueuejobError; //child object
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
-
|
|
69
68
|
/***************************************** Start Auto Complete *****************************************/
|
|
70
69
|
export type QueuejobAutoComplete = {
|
|
71
70
|
_id: string;
|
|
@@ -117,7 +117,13 @@
|
|
|
117
117
|
<MultiSelect
|
|
118
118
|
v-else-if="SimpleAppInputType.selectmultiple == inputType"
|
|
119
119
|
v-model="modelValue"
|
|
120
|
-
:pt="
|
|
120
|
+
:pt="
|
|
121
|
+
pt ?? {
|
|
122
|
+
label: {
|
|
123
|
+
class: '!text-sm !py-1.5',
|
|
124
|
+
},
|
|
125
|
+
}
|
|
126
|
+
"
|
|
121
127
|
:input-id="slotprops.uuid"
|
|
122
128
|
:path="setting.instancepath"
|
|
123
129
|
:readonly="isReadonly"
|
|
@@ -162,13 +168,13 @@
|
|
|
162
168
|
@change="onChange"
|
|
163
169
|
>
|
|
164
170
|
<template #header>
|
|
165
|
-
<slot name="header"/>
|
|
171
|
+
<slot name="header" />
|
|
166
172
|
</template>
|
|
167
173
|
<template #content>
|
|
168
|
-
<slot name="content"/>
|
|
174
|
+
<slot name="content" />
|
|
169
175
|
</template>
|
|
170
176
|
<template #option="{ index, option }">
|
|
171
|
-
<slot name="option" :index="index" :option="option"/>
|
|
177
|
+
<slot name="option" :index="index" :option="option" />
|
|
172
178
|
</template>
|
|
173
179
|
</SimpleAppUserPicker>
|
|
174
180
|
|
|
@@ -188,13 +194,13 @@
|
|
|
188
194
|
@change="onChange"
|
|
189
195
|
>
|
|
190
196
|
<template #header>
|
|
191
|
-
<slot name="header"/>
|
|
197
|
+
<slot name="header" />
|
|
192
198
|
</template>
|
|
193
199
|
<template #content>
|
|
194
|
-
<slot name="content"/>
|
|
200
|
+
<slot name="content" />
|
|
195
201
|
</template>
|
|
196
202
|
<template #option="{ index, option }">
|
|
197
|
-
<slot name="option" :index="index" :option="option"/>
|
|
203
|
+
<slot name="option" :index="index" :option="option" />
|
|
198
204
|
</template>
|
|
199
205
|
</SimpleAppAutocomplete>
|
|
200
206
|
<!-- v-bind:attributes="componentProps" -->
|
|
@@ -346,7 +352,7 @@
|
|
|
346
352
|
/>
|
|
347
353
|
<!-- component require special treatment -->
|
|
348
354
|
|
|
349
|
-
<slot name="footer"/>
|
|
355
|
+
<slot name="footer" />
|
|
350
356
|
</SimpleAppFieldContainer>
|
|
351
357
|
</template>
|
|
352
358
|
|
|
@@ -25,7 +25,7 @@ export default defineNuxtPlugin( async(nuxtApp) => {
|
|
|
25
25
|
// useNuxtApp().vueApp.use(DialogService)
|
|
26
26
|
//const { csrf } = useCsrf()
|
|
27
27
|
//axios.defaults.headers.common = {"CSRF-TOKEN": csrf};
|
|
28
|
-
const myaxios = axios.create({timeout:
|
|
28
|
+
const myaxios = axios.create({timeout:10000})
|
|
29
29
|
myaxios.interceptors.response.use(
|
|
30
30
|
(response) => {
|
|
31
31
|
return response
|
|
@@ -66,7 +66,10 @@
|
|
|
66
66
|
<SimpleAppInput
|
|
67
67
|
v-if="fieldPath"
|
|
68
68
|
:setting="handleGetField(fieldPath)"
|
|
69
|
-
:inputType="
|
|
69
|
+
:inputType="
|
|
70
|
+
(jsonSchema?.inputType as SimpleAppInputType) ??
|
|
71
|
+
SimpleAppInputType.chip
|
|
72
|
+
"
|
|
70
73
|
:hidelabel="isParentIsArray"
|
|
71
74
|
v-model="model"
|
|
72
75
|
/>
|