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