closed: edit positions in current org structure (#1418)

This commit is contained in:
Warunee Tamkoo 2025-08-21 10:36:16 +07:00
parent 8e56123e12
commit 7cb580060b
9 changed files with 85 additions and 31 deletions

View file

@ -119,7 +119,11 @@ function onClickMovePos() {
await http
.post(config.API.orgPosMove, body)
.then(async () => {
await props.fetchDataTree?.(store.draftId);
await props.fetchDataTree?.(
store.typeOrganizational === "draft"
? store.draftId
: store.activeId
);
await success($q, "ย้ายตำแหน่งสำเร็จ");
modal.value = false;
})