Merge pull request '전체 개수 추가' (#45) from test into main

Reviewed-on: #45
This commit is contained in:
klaus 2024-10-15 04:18:01 +00:00
commit 0449bac8d5
1 changed files with 14 additions and 1 deletions

View File

@ -9,6 +9,11 @@
<br> <br>
<v-container> <v-container>
<v-row>
<v-col class="text-left total-count">
전체 <span>{{ total_count }}</span>
</v-col>
</v-row>
<v-row> <v-row>
<v-col> <v-col>
<v-simple-table class="elevation-10"> <v-simple-table class="elevation-10">
@ -124,6 +129,7 @@ export default {
is_loading: false, is_loading: false,
page: 1, page: 1,
total_page: 0, total_page: 0,
total_count: 0,
series_list: [] series_list: []
} }
}, },
@ -150,6 +156,7 @@ export default {
const data = res.data.data const data = res.data.data
const total_page = Math.ceil(data.totalCount / 10) const total_page = Math.ceil(data.totalCount / 10)
this.series_list = data.items this.series_list = data.items
this.total_count = data.totalCount
if (total_page <= 0) if (total_page <= 0)
this.total_page = 1 this.total_page = 1
@ -173,6 +180,12 @@ export default {
} }
</script> </script>
<style scoped> <style>
.total-count {
padding-bottom: 0;
}
.total-count > span {
color: #3bb9f1;
}
</style> </style>