From 5a024a9781b507a5cbe440ca9ecef71e65af1f46 Mon Sep 17 00:00:00 2001
From: wally <18603454788@163.com>
Date: Wed, 27 Oct 2021 16:43:56 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9F=A5=E7=9C=8B=E5=8E=86=E5=8F=B2?=
=?UTF-8?q?=E6=95=B0=E6=8D=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/apis/index.js | 9 ++-
src/components/search-bar-data.vue | 59 ++++++++++++++
src/views/data-history.vue | 120 ++++++++++++++++++++++++++++-
3 files changed, 184 insertions(+), 4 deletions(-)
create mode 100644 src/components/search-bar-data.vue
diff --git a/src/apis/index.js b/src/apis/index.js
index ba262e5..335f98a 100644
--- a/src/apis/index.js
+++ b/src/apis/index.js
@@ -14,10 +14,13 @@ export const getDevices = () => http.get(`${corrosion}/devices`);
export const getDevicesAll = () => http.get(`${corrosion}/devices/all`);
// 获取数据统计 积分电量
-export const getIntegralElectric = () => http.get(`${corrosion}/monthes/integralElectric`);
+export const getIntegralElectric = () => http.get(`${corrosion}/months/integralElectric`);
// 获取数据统计 月累计腐蚀
-export const getTotalCorrosion = () => http.get(`${corrosion}/monthes/totalCorrosion`);
+export const getTotalCorrosion = () => http.get(`${corrosion}/months/totalCorrosion`);
// 获取数据统计 月累计湿润时间图
-export const getMoistTime = () => http.get(`${corrosion}/monthes/moistTime`);
+export const getMoistTime = () => http.get(`${corrosion}/months/moistTime`);
+
+// 查历史数据
+export const getHistories = params => http.get(`${corrosion}/histories`, { params });
diff --git a/src/components/search-bar-data.vue b/src/components/search-bar-data.vue
new file mode 100644
index 0000000..1cfa5b6
--- /dev/null
+++ b/src/components/search-bar-data.vue
@@ -0,0 +1,59 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+
+
+
+
+
diff --git a/src/views/data-history.vue b/src/views/data-history.vue
index 7b8b46c..c7a9853 100644
--- a/src/views/data-history.vue
+++ b/src/views/data-history.vue
@@ -1,3 +1,121 @@
+
+
-
+
+
+
+
+
+
+ 链路地址:{{ props.row.linkAddress }}
+ 探头编号:{{ props.row.probNo }}
+ 设备朝向:{{ props.row.deviceDirection }}
+ 试样:{{ props.row.simple }}
+ 安装位置:{{ props.row.installLocation }}
+ sim1:{{ props.row.sim1 }}
+ 与主站后台联调情况:{{ props.row.joint }}
+ 备注:{{ props.row.remark }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除
+
+
+
+ 编辑
+
+
+
+
+
+