@giteeteam/apps-team-components 1.2.2-alpha.2 → 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 +7 -3
- package/package.json +1 -1
package/dist/lib/workflow.js
CHANGED
|
@@ -426,9 +426,13 @@ export function checkTransition(item, transition, permissions, flowHandlerActive
|
|
|
426
426
|
const conditionList = [roleCheck, conditionCheck];
|
|
427
427
|
const notEmpty = conditionList.filter(item => !item.isEmpty);
|
|
428
428
|
if ((notEmpty === null || notEmpty === void 0 ? void 0 : notEmpty.length) > 0) {
|
|
429
|
-
const
|
|
430
|
-
if (
|
|
431
|
-
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;
|
|
432
436
|
}
|
|
433
437
|
}
|
|
434
438
|
else {
|