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 @@ + + + + + + +