@mldong/jeeflow 1.8.46 → 1.8.47
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/facade.js +11 -2
- package/package.json +1 -1
package/dist/facade.js
CHANGED
|
@@ -1229,7 +1229,16 @@ export class JeeflowFacade {
|
|
|
1229
1229
|
const result = [];
|
|
1230
1230
|
const visited = new Set();
|
|
1231
1231
|
const collect = async (node) => {
|
|
1232
|
-
|
|
1232
|
+
// issues/177 R11:顶层优先、`field` 子对象兜底(形状对齐 163 会签条件腿)
|
|
1233
|
+
const props = node.properties ?? {};
|
|
1234
|
+
const fld = props.field ?? {};
|
|
1235
|
+
const propStr = (key) => {
|
|
1236
|
+
const top = props[key];
|
|
1237
|
+
if (top)
|
|
1238
|
+
return top;
|
|
1239
|
+
return fld[key];
|
|
1240
|
+
};
|
|
1241
|
+
const v = propStr('candidateUsers');
|
|
1233
1242
|
if (v) {
|
|
1234
1243
|
for (const s of String(v).split(',')) {
|
|
1235
1244
|
const t = s.trim();
|
|
@@ -1238,7 +1247,7 @@ export class JeeflowFacade {
|
|
|
1238
1247
|
}
|
|
1239
1248
|
}
|
|
1240
1249
|
// candidateGroups:按角色取人(v1.6.0,对齐 boot4 GlobalCandidateHandler)
|
|
1241
|
-
const g =
|
|
1250
|
+
const g = propStr('candidateGroups');
|
|
1242
1251
|
if (g && this.orgProv) {
|
|
1243
1252
|
for (const rc of String(g).split(',')) {
|
|
1244
1253
|
const role = rc.trim();
|