โครงสร้างทะเบียนประวัติ
This commit is contained in:
parent
3666cd61a9
commit
b5f7d75599
5 changed files with 92 additions and 54 deletions
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue