diff --git a/ruoyi-ui/src/views/dashboard/PanelGroup.vue b/ruoyi-ui/src/views/dashboard/PanelGroup.vue index 8d3a73bc..59a28808 100644 --- a/ruoyi-ui/src/views/dashboard/PanelGroup.vue +++ b/ruoyi-ui/src/views/dashboard/PanelGroup.vue @@ -9,7 +9,7 @@
访客
- + @@ -22,7 +22,7 @@
消息
- + @@ -35,7 +35,7 @@
金额
- + @@ -48,7 +48,7 @@
订单
- + @@ -59,6 +59,19 @@ import CountTo from 'vue-count-to' export default { + props: ['peoples', 'message', 'money', 'shopping'], + data() { + let obj = { + maxNum : { + peoples : this.peoples==undefined? 0 : this.peoples,// 把传过来的值赋值给新的变量 + message : this.message==undefined? 0 : this.message,// 把传过来的值赋值给新的变量 + money : this.money==undefined? 0 : this.money,// 把传过来的值赋值给新的变量 + shopping : this.shopping==undefined? 0 : this.shopping // 把传过来的值赋值给新的变量 + } + } + // console.log(obj.maxNum.peoples); + return obj; + }, components: { CountTo }, diff --git a/ruoyi-ui/src/views/index_v1.vue b/ruoyi-ui/src/views/index_v1.vue index 4828d880..b4b8f0c5 100644 --- a/ruoyi-ui/src/views/index_v1.vue +++ b/ruoyi-ui/src/views/index_v1.vue @@ -1,7 +1,7 @@