โครงสร้างอัตรากำลัง
This commit is contained in:
parent
3e59d5489b
commit
64bb5a2749
4 changed files with 14 additions and 13 deletions
|
|
@ -101,7 +101,7 @@ async function fetchDataTable(id: string, level: number, action: boolean) {
|
|||
}
|
||||
await http
|
||||
.post(config.API.orgPosMasterListEmp, reqMaster)
|
||||
.then((res) => {
|
||||
.then(async (res) => {
|
||||
posMaster.value = [];
|
||||
const dataMain: PosMaster[] = [];
|
||||
totalPage.value = Math.ceil(res.data.result.total / reqMaster.pageSize);
|
||||
|
|
@ -114,7 +114,7 @@ async function fetchDataTable(id: string, level: number, action: boolean) {
|
|||
dataMain.push(test);
|
||||
}
|
||||
});
|
||||
posMaster.value = store.fetchPosMaster(dataMain);
|
||||
posMaster.value = await store.fetchPosMaster(dataMain);
|
||||
})
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue