Merge pull request '크리에이터 라이브 정산 페이지 추가' (#3) from test into main

Reviewed-on: #3
This commit is contained in:
klaus 2023-10-03 09:25:39 +00:00
commit 9b168a6112
3 changed files with 11 additions and 11 deletions

View File

@ -1,7 +1,7 @@
import Vue from 'vue'; import Vue from 'vue';
async function getCalculateCreator(startDate, endDate) { async function getCalculateLive(startDate, endDate) {
return Vue.axios.get('/admin/calculate/creator?startDateStr=' + startDate + '&endDateStr=' + 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') component: () => import(/* webpackChunkName: "coin" */ '../views/Can/CanStatus.vue')
}, },
{ {
path: '/calculate/creator', path: '/calculate/live',
name: 'CalculateCreator', name: 'CalculateLive',
component: () => import(/* webpackChunkName: "calculate" */ '../views/Calculate/CalculateCreator.vue') component: () => import(/* webpackChunkName: "calculate" */ '../views/Calculate/CalculateLive.vue')
}, },
{ {
path: '/calculate/content', path: '/calculate/content',

View File

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