@giteeteam/apps-team-components 1.2.2-alpha.1 → 1.2.2-alpha.3
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/dist/lib/workflow.js +9 -3
- package/package.json +1 -1
package/dist/lib/workflow.js
CHANGED
|
@@ -339,6 +339,7 @@ export function checkItemCondition(transition, item) {
|
|
|
339
339
|
};
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
|
+
break;
|
|
342
343
|
case CustomFieldComponentTypes.User:
|
|
343
344
|
case CustomFieldComponentTypes.Dropdown:
|
|
344
345
|
case CustomFieldComponentTypes.File:
|
|
@@ -383,6 +384,7 @@ export function checkItemCondition(transition, item) {
|
|
|
383
384
|
};
|
|
384
385
|
}
|
|
385
386
|
}
|
|
387
|
+
break;
|
|
386
388
|
}
|
|
387
389
|
}
|
|
388
390
|
return { result: true };
|
|
@@ -424,9 +426,13 @@ export function checkTransition(item, transition, permissions, flowHandlerActive
|
|
|
424
426
|
const conditionList = [roleCheck, conditionCheck];
|
|
425
427
|
const notEmpty = conditionList.filter(item => !item.isEmpty);
|
|
426
428
|
if ((notEmpty === null || notEmpty === void 0 ? void 0 : notEmpty.length) > 0) {
|
|
427
|
-
const
|
|
428
|
-
if (
|
|
429
|
-
return
|
|
429
|
+
const hasPass = notEmpty.find(item => item.result);
|
|
430
|
+
if (hasPass) {
|
|
431
|
+
return { result: true };
|
|
432
|
+
}
|
|
433
|
+
else {
|
|
434
|
+
const notPass = notEmpty.find(item => !item.result);
|
|
435
|
+
return notPass;
|
|
430
436
|
}
|
|
431
437
|
}
|
|
432
438
|
else {
|