fix: body add-approver
All checks were successful
Build & Deploy on Dev / build (push) Successful in 3m9s
All checks were successful
Build & Deploy on Dev / build (push) Successful in 3m9s
This commit is contained in:
parent
1dc9693348
commit
6ebe2c4d4d
1 changed files with 16 additions and 0 deletions
|
|
@ -153,8 +153,24 @@ function onSubmit() {
|
|||
positionSign: items.positionSign ?? items.posExecutiveName,
|
||||
profileId: items.id,
|
||||
keycloakId: items.keycloakId,
|
||||
positionLeaveName:
|
||||
items.posType == "บริหาร" || items.posType == "อำนวยการ"
|
||||
? items.posType + items.posLevel
|
||||
: items.posLevel,
|
||||
posExecutiveName: items.posExecutiveName,
|
||||
organizationName: [
|
||||
items.orgChild4,
|
||||
items.orgChild3,
|
||||
items.orgChild2,
|
||||
items.orgChild1,
|
||||
items.orgRoot,
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join(" "),
|
||||
}));
|
||||
|
||||
console.log(body);
|
||||
|
||||
const hasCommander = selected.value.some((e) =>
|
||||
props.commandersList?.some((i: any) => i === e.id)
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue