콘텐츠별 누적 현황 페이지 - 총 콘텐츠 개수 표시 #10
|
@ -9,6 +9,13 @@
|
|||
<br>
|
||||
|
||||
<v-container>
|
||||
<v-row>
|
||||
<v-col cols="2">
|
||||
총 콘텐츠 개수 : {{ total_count }} 개
|
||||
</v-col>
|
||||
|
||||
<v-spacer />
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col>
|
||||
<v-data-table
|
||||
|
@ -75,6 +82,7 @@ export default {
|
|||
page: 1,
|
||||
page_size: 20,
|
||||
total_page: 0,
|
||||
total_count: 0,
|
||||
items: [],
|
||||
headers: [
|
||||
{
|
||||
|
@ -179,6 +187,7 @@ export default {
|
|||
|
||||
const totalPage = Math.ceil(data.totalCount / this.page_size)
|
||||
this.items = data.items
|
||||
this.total_count = data.totalCount
|
||||
|
||||
if (totalPage <= 0)
|
||||
this.total_page = 1
|
||||
|
|
Loading…
Reference in New Issue