diff --git a/src/api/dashboard/dashboardOrder.js b/src/api/dashboard/dashboardOrder.js new file mode 100644 index 0000000..ea53779 --- /dev/null +++ b/src/api/dashboard/dashboardOrder.js @@ -0,0 +1,14 @@ +import request from '@/utils/request' + +/** + * 获取统计数据 + * @param {Object} query 查询参数 + * @returns {Promise} 返回统计数据 + */ +export function getOrderDailyAmount(query) { + return request({ + url: '/dashboard/order/dailyAmount', + method: 'get', + params: query + }) +} diff --git a/src/assets/icons/svg/down.svg b/src/assets/icons/svg/down.svg new file mode 100644 index 0000000..b0ce6ca --- /dev/null +++ b/src/assets/icons/svg/down.svg @@ -0,0 +1 @@ + diff --git a/src/assets/icons/svg/up.svg b/src/assets/icons/svg/up.svg new file mode 100644 index 0000000..6dc7d58 --- /dev/null +++ b/src/assets/icons/svg/up.svg @@ -0,0 +1 @@ + diff --git a/src/components/StatisticsCard/index.vue b/src/components/StatisticsCard/index.vue index 7579795..df8479f 100644 --- a/src/components/StatisticsCard/index.vue +++ b/src/components/StatisticsCard/index.vue @@ -2,9 +2,18 @@
-
{{ value }}
-
{{ label }}
-
{{ subtitle }}
+
{{ label | dv}}
+
+ +
+
+ {{ subLabel | dv}} + + + + + +
@@ -14,20 +23,28 @@ diff --git a/src/views/bst/index/components/OrderDailyStat.vue b/src/views/bst/index/components/OrderDailyStat.vue new file mode 100644 index 0000000..6e83123 --- /dev/null +++ b/src/views/bst/index/components/OrderDailyStat.vue @@ -0,0 +1,35 @@ + + + + + \ No newline at end of file diff --git a/src/views/bst/index/components/Stat.vue b/src/views/bst/index/components/Stat.vue new file mode 100644 index 0000000..af69456 --- /dev/null +++ b/src/views/bst/index/components/Stat.vue @@ -0,0 +1,80 @@ + + + + + \ No newline at end of file diff --git a/src/views/bst/index/components/TodoList.vue b/src/views/bst/index/components/TodoList.vue new file mode 100644 index 0000000..6c573fb --- /dev/null +++ b/src/views/bst/index/components/TodoList.vue @@ -0,0 +1,101 @@ + + + + + diff --git a/src/views/bst/index/index.vue b/src/views/bst/index/index.vue index 285e9ec..319a2d5 100644 --- a/src/views/bst/index/index.vue +++ b/src/views/bst/index/index.vue @@ -1,127 +1,32 @@