diff --git a/src/api/dashboard.js b/src/api/dashboard.js
new file mode 100644
index 0000000..8a7ce49
--- /dev/null
+++ b/src/api/dashboard.js
@@ -0,0 +1,35 @@
+import request from '@/utils/request'
+
+// 会员汇总数据
+export function getMemberSummary() {
+ return request({
+ url: '/system/manage/board/member-summary',
+ method: 'get'
+ })
+}
+
+// 日业绩数据
+export function getDailyPerformance(params) {
+ return request({
+ url: '/system/manage/board/day-achieve',
+ method: 'get',
+ params
+ })
+}
+
+// 月业绩数据
+export function getMonthlyPerformance() {
+ return request({
+ url: '/system/manage/board/month-achieve',
+ method: 'get'
+ })
+}
+
+// 充值汇总数据
+export function getRechargeSummary() {
+ return request({
+ url: '/system/manage/board/recharge-summary',
+ method: 'get'
+ })
+}
+
diff --git a/src/router/index.js b/src/router/index.js
index 152adc1..cad33f8 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -47,7 +47,7 @@ export const constantRoutes = [
{
path: '/',
component: Layout,
- redirect: '/dashboard',
+ redirect: '/summaryDashboard',
name: 'index',
// alwaysShow: true,
meta: { title: '首页', icon: 'firstPage', icon1: 'firstPageSel' },
@@ -58,6 +58,13 @@ export const constantRoutes = [
component: () => import('@/views/dashboard/index'),
meta: { title: '首页', icon: 'firstPage', icon1: 'firstPageSel' }
},
+ {
+ path: 'summaryDashboard',
+ name: 'SummaryDashboard',
+ component: () => import('@/views/dashboard/dashboard'),
+ meta: { title: '汇总', icon: 'dashboard' },
+ hidden: true
+ },
{
path: 'hasIndex',
name: 'HasIndex',
diff --git a/src/views/dashboard/dashboard.vue b/src/views/dashboard/dashboard.vue
new file mode 100644
index 0000000..6f79a5e
--- /dev/null
+++ b/src/views/dashboard/dashboard.vue
@@ -0,0 +1,1084 @@
+
+
+
+
+
+
+
+