diff --git a/src/api/calculate.js b/src/api/calculate.js new file mode 100644 index 0000000..ff7d9b6 --- /dev/null +++ b/src/api/calculate.js @@ -0,0 +1,7 @@ +import Vue from 'vue'; + +async function getCalculateLive(startDate, endDate) { + return Vue.axios.get('/creator-admin/calculate/live?startDateStr=' + startDate + '&endDateStr=' + endDate); +} + +export { getCalculateLive } diff --git a/src/router/index.js b/src/router/index.js index dc74484..ddbf7da 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -19,7 +19,12 @@ const routes = [ path: '/content/list', name: 'ContentList', component: () => import(/* webpackChunkName: "content" */ '../views/Content/ContentList.vue') - } + }, + { + path: '/calculate/live', + name: 'CalculateLive', + component: () => import(/* webpackChunkName: "calculate" */ '../views/Calculate/CalculateLive.vue') + }, ] }, { diff --git a/src/views/Calculate/CalculateLive.vue b/src/views/Calculate/CalculateLive.vue new file mode 100644 index 0000000..68a620c --- /dev/null +++ b/src/views/Calculate/CalculateLive.vue @@ -0,0 +1,323 @@ + + +