diff --git a/src/api/calculate.js b/src/api/calculate.js index 1718140..e79621a 100644 --- a/src/api/calculate.js +++ b/src/api/calculate.js @@ -16,4 +16,17 @@ async function getCalculateContentDonation(startDate, endDate) { return Vue.axios.get('/admin/calculate/content-donation-list?startDateStr=' + startDate + '&endDateStr=' + endDate); } -export { getCalculateLive, getCalculateContent, getCumulativeSalesByContent, getCalculateContentDonation } +async function getCalculateCommunityPost(startDate, endDate, page, size) { + return Vue.axios.get( + '/admin/calculate/community-post?startDateStr=' + + startDate + '&endDateStr=' + endDate + "&page=" + (page - 1) + "&size=" + size + ); +} + +export { + getCalculateLive, + getCalculateContent, + getCumulativeSalesByContent, + getCalculateContentDonation, + getCalculateCommunityPost +} diff --git a/src/router/index.js b/src/router/index.js index 3359db0..828b00b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -145,6 +145,11 @@ const routes = [ name: 'CalculateContentDonation', component: () => import(/* webpackChunkName: "calculate" */ '../views/Calculate/CalculateContentDonation.vue') }, + { + path: '/calculate/community-post', + name: 'CalculateCommunityPost', + component: () => import(/* webpackChunkName: "calculate" */ '../views/Calculate/CalculateCommunityPost.vue') + }, { path: '/notice', name: 'NoticeView', diff --git a/src/views/Calculate/CalculateCommunityPost.vue b/src/views/Calculate/CalculateCommunityPost.vue new file mode 100644 index 0000000..24700c0 --- /dev/null +++ b/src/views/Calculate/CalculateCommunityPost.vue @@ -0,0 +1,245 @@ + + +