From cf147fe5deb9fa1b339f06d31b38f6e30d60812f Mon Sep 17 00:00:00 2001 From: "Ken(E3-1230v2)" Date: Mon, 8 Feb 2021 10:40:13 +0800 Subject: [PATCH] =?UTF-8?q?panelGroup=E7=BB=84=E4=BB=B6=E5=AE=8C=E5=96=84?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E4=BC=A0=E5=85=A5=E5=8A=9F=E8=83=BD=EF=BC=9A?= =?UTF-8?q?peoples=EF=BC=8Cmessage=EF=BC=8Cmoney=EF=BC=8Cshopping?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/dashboard/PanelGroup.vue | 21 +++++++++++++++++---- ruoyi-ui/src/views/index_v1.vue | 2 +- 2 files changed, 18 insertions(+), 5 deletions(-) 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 @@