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