diff --git a/yudao-ui-admin/src/api/index.js b/yudao-ui-admin/src/api/index.js new file mode 100644 index 000000000..4bc2b684b --- /dev/null +++ b/yudao-ui-admin/src/api/index.js @@ -0,0 +1,12 @@ +import request from '@/utils/request' + +// 数据统计(全部) +export function statisticsAll(query) { + return request({ + url: '/system/statement/statisticsAll', + method: 'get', + params: query + }) +} + + diff --git a/yudao-ui-admin/src/api/statistics/merchantData.js b/yudao-ui-admin/src/api/statistics/merchantData.js new file mode 100644 index 000000000..702a3a5c9 --- /dev/null +++ b/yudao-ui-admin/src/api/statistics/merchantData.js @@ -0,0 +1,20 @@ +import request from '@/utils/request' + +// 数据统计(根据租户统计) +export function statisticsData(query) { + return request({ + url: '/system/statement/statistics', + method: 'get', + params: query + }) +} + +// 导出数据统计(根据租户统计) Excel +export function statement(query) { + return request({ + url: '/system/statement/statement-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/yudao-ui-admin/src/views/index.vue b/yudao-ui-admin/src/views/index.vue index ad2206846..24a1da9da 100644 --- a/yudao-ui-admin/src/views/index.vue +++ b/yudao-ui-admin/src/views/index.vue @@ -1,5 +1,30 @@ - + + + + + {{item.name}} + + + + + + + 搜索 + 重置 + + + + + + {{item.name}} + ¥{{item.value}} + {{item.value}} 单 + + + + @@ -26,7 +51,7 @@ - +