From 752440f965df6e3c21e550a5d48d98accc01327c Mon Sep 17 00:00:00 2001 From: yanqs Date: Mon, 15 Apr 2024 00:04:23 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=B5=81=E9=87=8F=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/model/system.js | 11 ++ src/config/route.js | 23 +++ src/views/statistics/deviceTraffic/index.vue | 182 +++++++++++++++++++ 3 files changed, 216 insertions(+) create mode 100644 src/views/statistics/deviceTraffic/index.vue diff --git a/src/api/model/system.js b/src/api/model/system.js index 6d86a52..5ea5270 100644 --- a/src/api/model/system.js +++ b/src/api/model/system.js @@ -57,4 +57,15 @@ export default { } } }, + device: { + traffic: { + list: { + url: `${config.API_URL}/api/device/traffic/list`, + name: "获取每日流量列表", + get: async function (params) { + return await http.get(this.url,params); + } + } + } + } } diff --git a/src/config/route.js b/src/config/route.js index 2102777..8a787d2 100644 --- a/src/config/route.js +++ b/src/config/route.js @@ -47,6 +47,29 @@ const routes = [ }, "component": "network/nat" }, + { + "name": "statistics", + "path": "/statistics", + "meta": { + "title": "统计报表", + "icon": "el-icon-data-analysis", + "type": "menu" + }, + children:[ + { + "path": "/statistics/device-traffic", + "name": "deviceTraffic", + "meta": { + "title": "设备流量", + "icon": "el-icon-iphone", + "type": "menu" + }, + "component": "statistics/deviceTraffic" + }, + ], + "component": "network/nat" + } + , { "path": "/other/about", "name": "about", diff --git a/src/views/statistics/deviceTraffic/index.vue b/src/views/statistics/deviceTraffic/index.vue new file mode 100644 index 0000000..d7d9629 --- /dev/null +++ b/src/views/statistics/deviceTraffic/index.vue @@ -0,0 +1,182 @@ + + + + +