From 4a01193d97814228ebee0097598eeda963c897c9 Mon Sep 17 00:00:00 2001 From: blp <2962632571@qq.com> Date: Sat, 28 Jan 2023 18:12:04 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E7=89=A9=E8=81=94?= =?UTF-8?q?=E5=8D=A1-=E4=BB=AA=E8=A1=A8=E7=9B=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/menu.ts | 6 +- src/views/iot-card/Dashboard/index.vue | 323 ++++++++++++++++++++ src/views/iot-card/components/LineChart.vue | 136 +++++++++ 3 files changed, 464 insertions(+), 1 deletion(-) create mode 100644 src/views/iot-card/Dashboard/index.vue create mode 100644 src/views/iot-card/components/LineChart.vue diff --git a/src/router/menu.ts b/src/router/menu.ts index 27d4f961..54920884 100644 --- a/src/router/menu.ts +++ b/src/router/menu.ts @@ -116,9 +116,13 @@ export default [ }, // 物联卡 iot-card { - path: '/iot-card/home', + path: '/iot-card/Home', component: () => import('@/views/iot-card/Home/index.vue') }, + { + path: '/iot-card/Dashboard', + component: () => import('@/views/iot-card/Dashboard/index.vue') + }, // 北向输出 { path: '/northbound/DuerOS', diff --git a/src/views/iot-card/Dashboard/index.vue b/src/views/iot-card/Dashboard/index.vue new file mode 100644 index 00000000..93bc1cfa --- /dev/null +++ b/src/views/iot-card/Dashboard/index.vue @@ -0,0 +1,323 @@ + + + + + + + + + + 昨日流量消耗 + + + {{ dayTotal }} M + + + {{ dayTotal }} + M + + + + + + + + + + 当月流量消耗 + + + {{ monthTotal }} M + + + {{ monthTotal }} + M + + + + + + + + + + 本年流量消耗 + + + {{ yearTotal }} M + + + {{ yearTotal }} + M + + + + + + + + + + + + + + + + + + + + + + {{ index + 1 }} + + {{ item.cardNum }} + + + + + {{ item?.value?.toFixed(2) }} M + + + + + + + + + + + diff --git a/src/views/iot-card/components/LineChart.vue b/src/views/iot-card/components/LineChart.vue new file mode 100644 index 00000000..9d22543b --- /dev/null +++ b/src/views/iot-card/components/LineChart.vue @@ -0,0 +1,136 @@ + + + + + + +