크리에이터 라이브 정산 페이지 추가

This commit is contained in:
Yu Sung 2023-10-03 18:19:15 +09:00
parent a22fbca9fd
commit 9464bf55e0
3 changed files with 11 additions and 11 deletions

View File

@ -1,7 +1,7 @@
import Vue from 'vue';
async function getCalculateCreator(startDate, endDate) {
return Vue.axios.get('/admin/calculate/creator?startDateStr=' + startDate + '&endDateStr=' + endDate);
async function getCalculateLive(startDate, endDate) {
return Vue.axios.get('/admin/calculate/live?startDateStr=' + startDate + '&endDateStr=' + endDate);
}
export { getCalculateCreator }
export { getCalculateLive }

View File

@ -111,9 +111,9 @@ const routes = [
component: () => import(/* webpackChunkName: "coin" */ '../views/Can/CanStatus.vue')
},
{
path: '/calculate/creator',
name: 'CalculateCreator',
component: () => import(/* webpackChunkName: "calculate" */ '../views/Calculate/CalculateCreator.vue')
path: '/calculate/live',
name: 'CalculateLive',
component: () => import(/* webpackChunkName: "calculate" */ '../views/Calculate/CalculateLive.vue')
},
{
path: '/calculate/content',

View File

@ -2,7 +2,7 @@
<div>
<v-toolbar dark>
<v-spacer />
<v-toolbar-title>크리에이터 정산</v-toolbar-title>
<v-toolbar-title>크리에이터 라이브 정산</v-toolbar-title>
<v-spacer />
</v-toolbar>
@ -38,7 +38,7 @@
color="#9970ff"
dark
depressed
@click="getCalculateCreator"
@click="getCalculateLive"
>
조회
</v-btn>
@ -289,7 +289,7 @@ export default {
this.start_date = firstDate.getFullYear() + '-' + firstDateMonth + '-0' + firstDate.getDate()
this.end_date = lastDate.getFullYear() + '-' + lastDateMonth + '-' + lastDate.getDate()
await this.getCalculateCreator()
await this.getCalculateLive()
},
methods: {
@ -301,11 +301,11 @@ export default {
this.$dialog.notify.success(message)
},
async getCalculateCreator() {
async getCalculateLive() {
this.is_loading = true
try {
const res = await api.getCalculateCreator(this.start_date, this.end_date)
const res = await api.getCalculateLive(this.start_date, this.end_date)
if (res.status === 200 && res.data.success === true) {
this.items = res.data.data
} else {