ส่ง rootID
This commit is contained in:
parent
4ae899a2c7
commit
428999ff21
4 changed files with 6 additions and 3 deletions
|
|
@ -166,7 +166,8 @@ function createCommand(isRedirect: boolean) {
|
|||
lastName: e.lastName,
|
||||
citizenId: e.citizenId,
|
||||
profileId: e.profileId,
|
||||
remarkVertical: e.remarkVertical,
|
||||
rootId: e.rootId,
|
||||
...(e.remarkVertical ? { remarkVertical: e.remarkVertical } : {}),
|
||||
...(e.remarkHorizontal ? { remarkHorizontal: e.remarkHorizontal } : {}),
|
||||
}));
|
||||
|
||||
|
|
@ -176,8 +177,6 @@ function createCommand(isRedirect: boolean) {
|
|||
commandTypeId: commandType.value,
|
||||
persons: !props.notPerson ? data : [],
|
||||
};
|
||||
|
||||
console.log(body);
|
||||
await http
|
||||
.post(config.API.command + `/person`, body)
|
||||
.then(async (res) => {
|
||||
|
|
@ -210,6 +209,7 @@ function addPersonalToCommand(isRedirect: boolean) {
|
|||
firstName: e.firstName,
|
||||
lastName: e.lastName,
|
||||
citizenId: e.citizenId,
|
||||
rootId: e.rootId,
|
||||
}));
|
||||
const body = {
|
||||
commandId: selected.value[0].id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue