ออกคำสั่ง ==> รายละเอียด API Tab 3
This commit is contained in:
parent
4ef591fd72
commit
8336ba3051
9 changed files with 388 additions and 208 deletions
|
|
@ -143,7 +143,21 @@ function onCancel(id: string) {
|
|||
function onReCommand(id: string) {
|
||||
dialogConfirm(
|
||||
$q,
|
||||
() => {},
|
||||
async () => {
|
||||
showLoader();
|
||||
await http
|
||||
.put(config.API.commandAction(id, "resume"))
|
||||
.then(async () => {
|
||||
await fetchListCommand();
|
||||
success($q, "ดึงไปทำคำสั่งใหม่สำเร็จ");
|
||||
})
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
})
|
||||
.finally(() => {
|
||||
hideLoader();
|
||||
});
|
||||
},
|
||||
"ยืนยันการดึงไปทำคำสั่งใหม่",
|
||||
"ต้องการยืนยืนยันการดึงไปทำคำสั่งใหม่ใช่หรือไม่ ?"
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue