Vue2_Frontend 수정1...

This commit is contained in:
최준흠 2022-08-30 16:39:15 +09:00
parent 51b6cf9608
commit 5d437af17f

View File

@ -82,7 +82,7 @@
<!-- Row의 Index를 이용한 번호 출력 -->
<template #cell(id)="row">
<b-link ref="edit/{{row.item.id}}">
{{ total - (currentPage * perPage + row.index) + perPage }} :
{{ total - (currentPage * perPage + row.index) + perPage }}
</b-link>
</template>
<!-- 제목부분 출력용 -->
@ -229,11 +229,11 @@ export default {
setup: function () {},
created: function () {},
mounted: function () {
this.getDatas(1)
this.getDatas()
},
unmounted() {},
methods: {
async getDatas(page) {
async getDatas(page = 1) {
this.isBusy = true
const results = await this.callAPI('/todo', {
params: {
@ -254,7 +254,7 @@ export default {
this.isBusy = false
},
searchClick() {
this.getDatas(1)
this.getDatas()
},
pageClick(bvEvent, page) {
console.log(bvEvent)
@ -265,7 +265,7 @@ export default {
perPageClick(perPage) {
this.perPage = perPage
console.log(this.perPage)
this.getDatas(1)
this.getDatas()
},
busyToggle() {
this.isBusy = !this.isBusy