포인트 정책 - 페이징 처리
This commit is contained in:
parent
d8e75f299b
commit
d3f98ec9cb
|
@ -1,7 +1,7 @@
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
|
|
||||||
async function getPointPolicyList(page) {
|
async function getPointPolicyList(page) {
|
||||||
return Vue.axios.get("/admin/point-policies?page=" + page + "&page_size=20")
|
return Vue.axios.get("/admin/point-policies?page=" + (page - 1) + "&page_size=20")
|
||||||
}
|
}
|
||||||
|
|
||||||
async function createPointPolicyList(request) {
|
async function createPointPolicyList(request) {
|
||||||
|
|
|
@ -259,7 +259,7 @@ export default {
|
||||||
'USER_AUTHENTICATION': '본인인증',
|
'USER_AUTHENTICATION': '본인인증',
|
||||||
'CONTENT_COMMENT': '콘텐츠 댓글',
|
'CONTENT_COMMENT': '콘텐츠 댓글',
|
||||||
'ORDER_CONTENT_COMMENT': '구매한 콘텐츠 댓글',
|
'ORDER_CONTENT_COMMENT': '구매한 콘텐츠 댓글',
|
||||||
'LIVE_CONTINUOUS_LISTEN_30': 'LIVE_CONTINUOUS_LISTEN_30',
|
'LIVE_CONTINUOUS_LISTEN_30': '라이브 연속 청취 30분',
|
||||||
},
|
},
|
||||||
|
|
||||||
policy_type_list: [
|
policy_type_list: [
|
||||||
|
@ -530,7 +530,7 @@ export default {
|
||||||
this.is_loading = true
|
this.is_loading = true
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const res = await api.getPointPolicyList();
|
const res = await api.getPointPolicyList(this.page);
|
||||||
|
|
||||||
if (res.status === 200 && res.data.success === true) {
|
if (res.status === 200 && res.data.success === true) {
|
||||||
const data = res.data.data
|
const data = res.data.data
|
||||||
|
|
Loading…
Reference in New Issue