diff --git a/src/views/dashboard/PanelGroup.vue b/src/views/dashboard/PanelGroup.vue index 1a1081f..3ff8993 100644 --- a/src/views/dashboard/PanelGroup.vue +++ b/src/views/dashboard/PanelGroup.vue @@ -3,52 +3,52 @@ - + - 访客 + 计划订单数量 - + - + - 消息 + 在制订单数量 - + - + - 金额 + 今日计划米数 - + - + - 订单 + 今日完成米数 - + @@ -62,6 +62,23 @@ export default { components: { CountTo }, + props: { + topData: { + type: Object, + default: + { + value1: 10, + value2: 2, + value3: 710, + value4: 230 + } + } + }, + data() { + return { + topData: this.topData + } + }, methods: { handleSetLineChartData(type) { this.$emit('handleSetLineChartData', type) @@ -160,7 +177,7 @@ export default { } } -@media (max-width:550px) { +@media (max-width: 550px) { .card-panel-description { display: none; } diff --git a/src/views/index.vue b/src/views/index.vue index f22b1d3..a3d4cfc 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -1,87 +1,98 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + - -