diff --git a/src/api/temSys/temHistory.js b/src/api/temSys/temHistory.js deleted file mode 100644 index 2bfb44b..0000000 --- a/src/api/temSys/temHistory.js +++ /dev/null @@ -1,10 +0,0 @@ -import request from "@/utils/request"; - -// 历史数据 -export function temHistory(query) { - return request({ - url: "/device/indoor/tempHis", - method: "get", - params: query, - }); -} diff --git a/src/api/temSys/temMonitor.js b/src/api/temSys/temMonitor.js index dc80ba7..2be56a6 100644 --- a/src/api/temSys/temMonitor.js +++ b/src/api/temSys/temMonitor.js @@ -8,3 +8,12 @@ export function temList(query) { params: query, }); } +// 历史数据 +export function temHistory(data) { + return request({ + url: "/device/indoor/tempHis", + method: "post", + data: data, + }); +} + diff --git a/src/assets/images/border-7.png b/src/assets/images/border-7.png new file mode 100644 index 0000000..a0bbab2 Binary files /dev/null and b/src/assets/images/border-7.png differ diff --git a/src/assets/images/hum-normal.png b/src/assets/images/hum-normal.png new file mode 100644 index 0000000..a98e7d4 Binary files /dev/null and b/src/assets/images/hum-normal.png differ diff --git a/src/assets/images/tem-normal.png b/src/assets/images/tem-normal.png new file mode 100644 index 0000000..97bc949 Binary files /dev/null and b/src/assets/images/tem-normal.png differ diff --git a/src/assets/images/tem-warning.png b/src/assets/images/tem-warning.png new file mode 100644 index 0000000..20b1c43 Binary files /dev/null and b/src/assets/images/tem-warning.png differ diff --git a/src/assets/images/warning.png b/src/assets/images/warning.png new file mode 100644 index 0000000..2441b27 Binary files /dev/null and b/src/assets/images/warning.png differ diff --git a/src/views/temSys/temHistory/index.vue b/src/views/temSys/temHistory/index.vue deleted file mode 100644 index a867ec2..0000000 --- a/src/views/temSys/temHistory/index.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/views/temSys/temMonitor/index.vue b/src/views/temSys/temMonitor/index.vue index aaaf6f4..868516c 100644 --- a/src/views/temSys/temMonitor/index.vue +++ b/src/views/temSys/temMonitor/index.vue @@ -28,13 +28,112 @@ -
111
+
+
+ +
位置:{{ currentName }}
+
+
+
+
+
{{ item.houseName }}
+
+ + + +
+ +
+
+
+ +
+
+ + +
+
+ {{ getDeviceByParamType(item.deviceList, "12").otherName }} +
+
Temperature
+
+
+
+ {{ + getDeviceByParamType(item.deviceList, "12").curValue + }} + +
+
+ +
+
+ +
+
+ {{ getDeviceByParamType(item.deviceList, "32").otherName }} +
+
Humidity
+
+
+
+ {{ + getDeviceByParamType(item.deviceList, "32").curValue + }} + % +
+
+
+
+
+ + +
+
+