From 512ae21a480ff51c3725dc7c66305590b6d18565 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Wed, 29 May 2024 01:02:17 +0900 Subject: [PATCH] =?UTF-8?q?=EC=BB=A4=EB=AE=A4=EB=8B=88=ED=8B=B0=20?= =?UTF-8?q?=EC=A0=95=EC=82=B0=20=ED=8E=98=EC=9D=B4=EC=A7=80=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/calculate.js | 15 +- src/router/index.js | 5 + .../Calculate/CalculateCommunityPost.vue | 245 ++++++++++++++++++ 3 files changed, 264 insertions(+), 1 deletion(-) create mode 100644 src/views/Calculate/CalculateCommunityPost.vue 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 @@ + + + -- 2.40.1