แก้ไขวินัย
This commit is contained in:
parent
be098be411
commit
99b1148d31
10 changed files with 34 additions and 21 deletions
|
|
@ -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?.();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue