mooho-base-admin-plus 0.4.44 → 0.4.45
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/package.json
CHANGED
|
@@ -251,6 +251,10 @@
|
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
+
if (this.isCustom && typeof this.$refs.customComponent.onAction === 'function') {
|
|
255
|
+
await this.$refs.customComponent.onAction(outcome);
|
|
256
|
+
}
|
|
257
|
+
|
|
254
258
|
await taskApi.do(this.task.id, outcome.id, data, this.comment);
|
|
255
259
|
this.success('Front_Msg_Success');
|
|
256
260
|
this.resetNotice();
|
|
@@ -270,6 +274,10 @@
|
|
|
270
274
|
'Front_Msg_Sure_To_Reject_Application',
|
|
271
275
|
this.$t('Front_Label_Comment'),
|
|
272
276
|
async () => {
|
|
277
|
+
if (this.isCustom && typeof this.$refs.customComponent.onReject === 'function') {
|
|
278
|
+
await this.$refs.customComponent.onReject(this.comment);
|
|
279
|
+
}
|
|
280
|
+
|
|
273
281
|
await taskApi.reject(this.task.id, this.comment);
|
|
274
282
|
this.success('Front_Msg_Success');
|
|
275
283
|
this.resetNotice();
|
|
@@ -293,6 +301,10 @@
|
|
|
293
301
|
'Front_Msg_Sure_To_Back_Application',
|
|
294
302
|
this.$t('Front_Label_Comment'),
|
|
295
303
|
async () => {
|
|
304
|
+
if (this.isCustom && typeof this.$refs.customComponent.onBack === 'function') {
|
|
305
|
+
await this.$refs.customComponent.onBack(this.comment);
|
|
306
|
+
}
|
|
307
|
+
|
|
296
308
|
await taskApi.back(this.task.id, this.comment);
|
|
297
309
|
this.success('Front_Msg_Success');
|
|
298
310
|
this.resetNotice();
|