From 7821f766e65da0e8645d1484d73750e18a4e029e Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Wed, 23 Apr 2025 17:35:09 +0900 Subject: [PATCH] =?UTF-8?q?=ED=8F=AC=EC=9D=B8=ED=8A=B8=20=EC=A0=95?= =?UTF-8?q?=EC=B1=85=20=EB=93=B1=EB=A1=9D/=EC=88=98=EC=A0=95=20=ED=8E=98?= =?UTF-8?q?=EC=9D=B4=EC=A7=80=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/point_policy.js | 19 + src/router/index.js | 5 + src/views/Promotion/ChargeEvent.vue | 2 +- src/views/Promotion/PointPolicyView.vue | 502 ++++++++++++++++++++++++ 4 files changed, 527 insertions(+), 1 deletion(-) create mode 100644 src/api/point_policy.js create mode 100644 src/views/Promotion/PointPolicyView.vue diff --git a/src/api/point_policy.js b/src/api/point_policy.js new file mode 100644 index 0000000..2c03df5 --- /dev/null +++ b/src/api/point_policy.js @@ -0,0 +1,19 @@ +import Vue from 'vue'; + +async function getPointPolicyList(page) { + return Vue.axios.get("/admin/point-policies?page=" + page + "&page_size=20") +} + +async function createPointPolicyList(request) { + return Vue.axios.post("/admin/point-policies", request) +} + +async function updatePointPolicyList(id, request) { + return Vue.axios.put("/admin/point-policies/" + id, request) +} + +export { + getPointPolicyList, + createPointPolicyList, + updatePointPolicyList +} diff --git a/src/router/index.js b/src/router/index.js index b90c858..4b2f7fa 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -135,6 +135,11 @@ const routes = [ name: 'ChargeEvent', component: () => import(/* webpackChunkName: "promotion" */ '../views/Promotion/ChargeEvent.vue') }, + { + path: '/promotion/point-policy', + name: 'PointPolicyView', + component: () => import(/* webpackChunkName: "promotion" */ '../views/Promotion/PointPolicyView.vue') + }, { path: '/can/management', name: 'CoinView', diff --git a/src/views/Promotion/ChargeEvent.vue b/src/views/Promotion/ChargeEvent.vue index b6c9a82..905536a 100644 --- a/src/views/Promotion/ChargeEvent.vue +++ b/src/views/Promotion/ChargeEvent.vue @@ -14,7 +14,7 @@ +
+ + + 포인트 정책 + + + +
+ + + + + + + 포인트 정책 등록 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 포인트 정책 등록 + + + + + + + + + + + + + + + + + + 기간 + + + +
~
+ +
+
+
+ + + + 활성화 + + + + + + + + + + 취소 + + + 수정 + + + 등록 + + +
+
+
+
+ + + + + -- 2.40.1