โครงสร้างทะเบียนประวัติ

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-09-05 10:54:04 +07:00
parent 3666cd61a9
commit b5f7d75599
5 changed files with 92 additions and 54 deletions

View file

@ -215,14 +215,14 @@ watch(
}
);
function fetchList() {
async function fetchList() {
showLoader();
http
.get(config.API.registryNew("-temp"), { params: queryParams })
.then((res) => {
.then(async (res) => {
rows.value = await res.data.result.data;
maxPage.value = Math.ceil(res.data.result.total / queryParams.pageSize);
total.value = res.data.result.total;
rows.value = res.data.result.data;
})
.catch((err) => {
messageError($q, err);
@ -273,8 +273,8 @@ function onClickSendOrder() {
modalSendOrder.value = true;
}
onMounted(() => {
fetchList();
onMounted(async () => {
await fetchList();
});
</script>