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 @@ +
+ + + 포인트 정책 + + + +
+ + + + + + + 포인트 정책 등록 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 포인트 정책 등록 + + + + + + + + + + + + + + + + + + 기간 + + + +
~
+ +
+
+
+ + + + 활성화 + + + + + + + + + + 취소 + + + 수정 + + + 등록 + + +
+
+
+
+ + + + +