Vue2_Frontend 수정1...
This commit is contained in:
parent
51b6cf9608
commit
5d437af17f
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user