แก้ไขวินัย

This commit is contained in:
Warunee Tamkoo 2023-12-22 10:15:14 +07:00
parent be098be411
commit 99b1148d31
10 changed files with 34 additions and 21 deletions

View file

@ -80,16 +80,16 @@ const saveOrder = () => {
};
//
const Ordersave = async () => {
const id = selected.value.map((r) => r.id);
// const id = selected.value.map((r) => r.id);
const persons = selected.value.map((r) => r.id);
if (props.title == "ส่งไปออกคำสั่งลงโทษทางวินัย") {
const body = {
id,
persons,
};
showLoader();
await http
.put(config.API.reportresult(type.value as string), body)
.put(config.API.reportresult(idPath.value, type.value as string), body)
.then((res: any) => {
success($q, `${props.title}สำเร็จ`);
props.closeModal?.();