fix bug
This commit is contained in:
parent
51707646e7
commit
df481043b1
9 changed files with 138 additions and 91 deletions
|
|
@ -67,8 +67,13 @@ function fetchOrganization(id: string) {
|
|||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* function เลือกตำแหน่งที่จะให่รักษาการ
|
||||
* @param data ข้อมูลตำแหน่ง
|
||||
*/
|
||||
async function updateSelected(data: PosMaster) {
|
||||
posmasterId.value = data.posmasterId;
|
||||
// เรียกใช้ function fetch รายชื่อ ,fetch รายชื่อรักษาการ
|
||||
await Promise.all([fetchPosMaster(), fetchListAct()]);
|
||||
}
|
||||
|
||||
|
|
@ -165,6 +170,10 @@ function fetchPosMaster() {
|
|||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* function แสดงตำแหน่งทั้งหมด
|
||||
* @param val แสดงตำแหน่งทั้งหมด
|
||||
*/
|
||||
function updateIsAll(val: boolean) {
|
||||
isAll.value = val;
|
||||
fetchPosMaster();
|
||||
|
|
@ -241,6 +250,7 @@ function onDelete(id: string) {
|
|||
http
|
||||
.delete(config.API.orgPosAct + `/${id}`)
|
||||
.then(async () => {
|
||||
// เรียกใช้ function fetch รายชื่อ ,fetch รายชื่อรักษาการ
|
||||
await Promise.all([fetchPosMaster(), fetchListAct()]);
|
||||
})
|
||||
.catch((err) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue