From 27db1ba5d4e39481583abe44ad774d9083bd6780 Mon Sep 17 00:00:00 2001 From: xianfuxing Date: Mon, 13 Aug 2018 21:18:05 +0800 Subject: [PATCH] # add log history table --- src/api/counter.js | 9 +++++ .../admin/components/LogHistoryTable.vue | 35 +++++++++++++++++++ src/views/dashboard/admin/index.vue | 6 ++++ 3 files changed, 50 insertions(+) create mode 100644 src/views/dashboard/admin/components/LogHistoryTable.vue diff --git a/src/api/counter.js b/src/api/counter.js index 91be8fe..acbdc76 100644 --- a/src/api/counter.js +++ b/src/api/counter.js @@ -35,3 +35,12 @@ export function fetchDeviceLogStatistic(query) { params: query }) } + +// log statistic history api +export function fetchLogStatisticHistory(query) { + return request({ + url: '/api/counter/logs/statistic/history/', + method: 'get', + params: query + }) +} diff --git a/src/views/dashboard/admin/components/LogHistoryTable.vue b/src/views/dashboard/admin/components/LogHistoryTable.vue new file mode 100644 index 0000000..af1de53 --- /dev/null +++ b/src/views/dashboard/admin/components/LogHistoryTable.vue @@ -0,0 +1,35 @@ + + + + + + diff --git a/src/views/dashboard/admin/index.vue b/src/views/dashboard/admin/index.vue index dfaaf79..445e2e0 100644 --- a/src/views/dashboard/admin/index.vue +++ b/src/views/dashboard/admin/index.vue @@ -15,6 +15,10 @@ + + + +