Vue2_Frontend 수정1...

This commit is contained in:
최준흠 2022-08-31 18:43:54 +09:00
parent 4cd8046b49
commit a2e9ab39c1
2 changed files with 8 additions and 4 deletions

4
.env
View File

@ -12,3 +12,7 @@ VUE_APP_BACKEND_HEADERS_Access_Control_Allow_Method="GET,PUT,POST,DELETE,PATCH,O
#LocalStorage는 Edge 브라우저의 개발툴 > 응용프로그램 > 로컬 저장소에서 확인가능
VUE_APP_LOCALSTORAGE_NAME="access_token"
VUE_APP_SESSIONSTORAGE_REDIRECT_NAME = "RedirectPATH"
VUE_APP_TABLE_DEFAULT_PERPAGE = 10
VUE_APP_TABLE_DEFAULT_TABLE_PAGE = 1

View File

@ -112,7 +112,7 @@
<!-- Row의 Index를 이용한 번호 출력 -->
<template #cell(id)="row">
<b-link ref="edit/{{row.item.id}}">
{{ total - (currentPage * perPage + row.index) + perPage }}
{{ total - (page * perPage + row.index) + perPage }}
</b-link>
</template>
<!-- 제목부분 출력용 -->
@ -222,8 +222,8 @@ export default {
}
],
total: 0,
currentPage: 1, //
perPage: 5, //
page: process.env.VUE_APP_TABLE_DEFAULT_PAGE, //
perPage: process.env.VUE_APP_TABLE_DEFAULT_PERPAGE, //
perPageOptions: [
{ text: '5줄', value: 5 },
{ text: '10줄', value: 10 },
@ -299,7 +299,7 @@ export default {
console.log(results)
this.total = results.total
this.perPage = results.perPage
this.currentPage = results.page
this.page = results.page
this.sortBy = results.sortBy
this.sortDesc = results.sortDesc === 'true' ? true : false
this.rows = results.rows