콘텐츠별 누적 현황 페이지 - 총 콘텐츠 개수 표시

This commit is contained in:
Yu Sung 2023-11-13 23:05:56 +09:00
parent df893ab795
commit 710f6f5a49
1 changed files with 9 additions and 0 deletions

View File

@ -9,6 +9,13 @@
<br> <br>
<v-container> <v-container>
<v-row>
<v-col cols="2">
콘텐츠 개수 : {{ total_count }}
</v-col>
<v-spacer />
</v-row>
<v-row> <v-row>
<v-col> <v-col>
<v-data-table <v-data-table
@ -75,6 +82,7 @@ export default {
page: 1, page: 1,
page_size: 20, page_size: 20,
total_page: 0, total_page: 0,
total_count: 0,
items: [], items: [],
headers: [ headers: [
{ {
@ -179,6 +187,7 @@ export default {
const totalPage = Math.ceil(data.totalCount / this.page_size) const totalPage = Math.ceil(data.totalCount / this.page_size)
this.items = data.items this.items = data.items
this.total_count = data.totalCount
if (totalPage <= 0) if (totalPage <= 0)
this.total_page = 1 this.total_page = 1