@processmaker/screen-builder 2.83.10 → 2.83.12
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
package/src/components/task.vue
CHANGED
|
@@ -480,10 +480,7 @@ export default {
|
|
|
480
480
|
return allowed ? this.parentRequest : this.requestId
|
|
481
481
|
},
|
|
482
482
|
processUpdated: _.debounce(function(data) {
|
|
483
|
-
if (
|
|
484
|
-
data.event === 'ACTIVITY_COMPLETED' ||
|
|
485
|
-
data.event === 'ACTIVITY_ACTIVATED'
|
|
486
|
-
) {
|
|
483
|
+
if (data.event === 'ACTIVITY_ACTIVATED') {
|
|
487
484
|
this.reload();
|
|
488
485
|
}
|
|
489
486
|
if (data.event === 'ACTIVITY_EXCEPTION') {
|
|
@@ -515,6 +512,13 @@ export default {
|
|
|
515
512
|
this.reload();
|
|
516
513
|
}
|
|
517
514
|
},
|
|
515
|
+
existsEventMessage(id, data) {
|
|
516
|
+
if (sessionStorage.getItem(id)) {
|
|
517
|
+
return true;
|
|
518
|
+
}
|
|
519
|
+
sessionStorage.setItem(id, data);
|
|
520
|
+
return false;
|
|
521
|
+
},
|
|
518
522
|
listenForParentChanges() {
|
|
519
523
|
if (!this.parentRequest) {
|
|
520
524
|
return;
|
|
@@ -524,10 +528,16 @@ export default {
|
|
|
524
528
|
`ProcessMaker.Models.ProcessRequest.${this.parentRequest}`,
|
|
525
529
|
'.ProcessUpdated',
|
|
526
530
|
(data) => {
|
|
527
|
-
if (
|
|
531
|
+
if (
|
|
532
|
+
['ACTIVITY_ACTIVATED'].includes(data.event) &&
|
|
533
|
+
!this.existsEventMessage(`${data.event}-${this.userId}-${this.taskId}`)
|
|
534
|
+
) {
|
|
528
535
|
this.closeTask(this.parentRequest);
|
|
529
536
|
}
|
|
530
|
-
if (
|
|
537
|
+
if (
|
|
538
|
+
["ACTIVITY_COMPLETED"].includes(data.event) &&
|
|
539
|
+
!this.existsEventMessage(`${data.event}-${this.userId}-${this.taskId}`)
|
|
540
|
+
) {
|
|
531
541
|
if (this.task.process_request.status === 'COMPLETED') {
|
|
532
542
|
this.processCompleted();
|
|
533
543
|
}
|