From 1fdf8229127eb628972621da71115384112a3cc7 Mon Sep 17 00:00:00 2001 From: wally <18603454788@163.com> Date: Fri, 12 Nov 2021 11:38:41 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=B7=BB=E5=8A=A0=E5=9B=BE?= =?UTF-8?q?=E6=A0=87=E7=AD=89=E7=BB=86=E8=8A=82=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/data-search-bar.vue | 2 +- src/components/function-config-pending.vue | 4 +- src/components/search-bar-data.vue | 7 +- src/components/search-bar.vue | 16 ++- src/components/search-commands.vue | 2 +- src/config/config.js | 4 +- src/views/data-history.vue | 35 +++--- src/views/data-realtime.vue | 122 +++++++++++---------- src/views/data-report.vue | 25 +++-- src/views/device-list.vue | 11 +- src/views/statistical-realtime.vue | 9 +- 11 files changed, 129 insertions(+), 108 deletions(-) diff --git a/src/components/data-search-bar.vue b/src/components/data-search-bar.vue index 2220af5..f9d8a15 100644 --- a/src/components/data-search-bar.vue +++ b/src/components/data-search-bar.vue @@ -17,7 +17,7 @@ - 查询 + 查询 diff --git a/src/components/function-config-pending.vue b/src/components/function-config-pending.vue index 3c8956d..03a890d 100644 --- a/src/components/function-config-pending.vue +++ b/src/components/function-config-pending.vue @@ -59,7 +59,7 @@ - + @@ -155,7 +155,7 @@ import { useStore } from 'vuex'; import { ElMessage } from 'element-plus'; import cloneDeep from 'lodash/cloneDeep'; import isDate from 'lodash/isDate'; -import { createConfigFunction, getConfigFunction } from 'apis/index'; +import { createConfigFunction, getConfigFunction } from 'apis'; import Refresh from 'components/refresh.vue'; import { corrosiveTypes, functionConfig } from '@/config/config'; diff --git a/src/components/search-bar-data.vue b/src/components/search-bar-data.vue index 128cbbe..1bbdd34 100644 --- a/src/components/search-bar-data.vue +++ b/src/components/search-bar-data.vue @@ -26,11 +26,14 @@ - 查询 + + + 查询 + - 导出 + 导出 diff --git a/src/components/search-bar.vue b/src/components/search-bar.vue index d2d0b21..79ff6b2 100644 --- a/src/components/search-bar.vue +++ b/src/components/search-bar.vue @@ -1,23 +1,27 @@ - - +// 手动刷新 清除定时器 重新获取数据 +function onRefresh() { + apiTimer && clearInterval(apiTimer); + apiTimer = null; + getData(); +} + diff --git a/src/views/data-report.vue b/src/views/data-report.vue index c60864d..5fa9e27 100644 --- a/src/views/data-report.vue +++ b/src/views/data-report.vue @@ -135,21 +135,22 @@ function formatTime(time) { {{ formatTime(+scope.row.createdAt) }} - - + + - - - - - - - - - - + + + + + + + + + + +
- 添加设备 + + + 添加设备 +