크리에이터 라이브 정산 페이지 추가
This commit is contained in:
		| @@ -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 } | ||||
|   | ||||
| @@ -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', | ||||
|   | ||||
| @@ -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 { | ||||
		Reference in New Issue
	
	Block a user
	 Yu Sung
					Yu Sung