emp
This commit is contained in:
parent
7a25e8feda
commit
b5823fdf28
1 changed files with 46 additions and 10 deletions
|
|
@ -5101,12 +5101,13 @@ export class OrganizationDotnetController extends Controller {
|
||||||
role: string;
|
role: string;
|
||||||
isRetirement?: boolean;
|
isRetirement?: boolean;
|
||||||
revisionId?: string;
|
revisionId?: string;
|
||||||
|
reqNode?: number;
|
||||||
|
reqNodeId?: string;
|
||||||
},
|
},
|
||||||
) {
|
) {
|
||||||
let typeCondition: any = {};
|
let typeCondition: any = {};
|
||||||
const node = body.role === "OWNER" ? null : body.node;
|
if (body.role === "CHILD") {
|
||||||
if (body.role === "OWNER" || body.role === "CHILD") {
|
switch (body.node) {
|
||||||
switch (node) {
|
|
||||||
case 0:
|
case 0:
|
||||||
typeCondition = {
|
typeCondition = {
|
||||||
orgRoot: {
|
orgRoot: {
|
||||||
|
|
@ -5149,14 +5150,49 @@ export class OrganizationDotnetController extends Controller {
|
||||||
typeCondition = {};
|
typeCondition = {};
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else if (body.role === "ROOT") {
|
} else if (body.role === "ROOT" || body.role === "OWNER") {
|
||||||
typeCondition = {
|
switch (body.reqNode) {
|
||||||
orgRoot: {
|
case 0:
|
||||||
ancestorDNA: body.nodeId
|
typeCondition = {
|
||||||
},
|
orgRoot: {
|
||||||
};
|
id: body.reqNodeId
|
||||||
|
}
|
||||||
|
};
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
typeCondition = {
|
||||||
|
orgChild1: {
|
||||||
|
id: body.reqNodeId
|
||||||
|
}
|
||||||
|
};
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
typeCondition = {
|
||||||
|
orgChild2: {
|
||||||
|
id: body.reqNodeId
|
||||||
|
}
|
||||||
|
};
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
typeCondition = {
|
||||||
|
orgChild3: {
|
||||||
|
id: body.reqNodeId
|
||||||
|
}
|
||||||
|
};
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
typeCondition = {
|
||||||
|
orgChild4: {
|
||||||
|
id: body.reqNodeId
|
||||||
|
}
|
||||||
|
};
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
typeCondition = {};
|
||||||
|
break;
|
||||||
|
}
|
||||||
} else if (body.role === "NORMAL") {
|
} else if (body.role === "NORMAL") {
|
||||||
switch (node) {
|
switch (body.node) {
|
||||||
case 0:
|
case 0:
|
||||||
typeCondition = {
|
typeCondition = {
|
||||||
orgRoot: {
|
orgRoot: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue