From 5557446d2779fb7d85873c3a5cffac1a11faedf3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=93=B6=E4=B8=AD=E6=B2=99?= <464652163@qq.com>
Date: Wed, 14 Aug 2024 17:18:40 +0800
Subject: [PATCH] 123
---
src/api/infoApi.js | 8 +++
src/components/De.vue | 123 ++++++++++++++++++++++++++++++++
src/components/His.vue | 83 ++++++++++++++++++++++
src/css/index.scss | 4 ++
src/views/Data.vue | 155 ++++++++++++++++++++++++++++++-----------
5 files changed, 331 insertions(+), 42 deletions(-)
create mode 100644 src/components/De.vue
create mode 100644 src/components/His.vue
diff --git a/src/api/infoApi.js b/src/api/infoApi.js
index 28fa52b..435e9a6 100644
--- a/src/api/infoApi.js
+++ b/src/api/infoApi.js
@@ -180,6 +180,14 @@ const infoApi = {
// 获取设备下的点位
getPointData(params) {
return postPBRequest("/data", params, 56000);
+ },
+ //启用设备
+ startDevice(params) {
+ return postPBRequest("/data", params, 56101);
+ },
+ //禁用设备
+ stopDevice(params) {
+ return postPBRequest("/data", params, 56102);
}
};
export default infoApi;
\ No newline at end of file
diff --git a/src/components/De.vue b/src/components/De.vue
new file mode 100644
index 0000000..8901a90
--- /dev/null
+++ b/src/components/De.vue
@@ -0,0 +1,123 @@
+
+
+
+ 重置
+
+
+
+
+
+
+
diff --git a/src/components/His.vue b/src/components/His.vue
new file mode 100644
index 0000000..dab9989
--- /dev/null
+++ b/src/components/His.vue
@@ -0,0 +1,83 @@
+
+
+
+ 设定
+ 启用
+ 导出
+ 清空
+
+
+
+
+
+
+
diff --git a/src/css/index.scss b/src/css/index.scss
index 65895ec..2d519a4 100644
--- a/src/css/index.scss
+++ b/src/css/index.scss
@@ -275,6 +275,7 @@ s {
}
.box2 {
border: 1px solid #2B5451;
+ overflow: auto;
}
.box2 .box-ht {
@@ -315,3 +316,6 @@ s {
box-shadow: inset #fff;
background: #2B5451;
}
+.height100 {
+ height:100%;
+}
\ No newline at end of file
diff --git a/src/views/Data.vue b/src/views/Data.vue
index 4b3f356..9a10f4b 100644
--- a/src/views/Data.vue
+++ b/src/views/Data.vue
@@ -12,38 +12,40 @@
通讯信息
- 通讯名称:{{ curDriver.driver_name }}
- 通讯总计数:{{ curDriver.driver_name }}
- 通讯描述:{{ curDriver.driver_description }}
- 通讯状态:{{ curDriver.driver_status }}
- 通讯成功计数:{{ curDriver.driver_name }}
- 通讯失败计数:{{ curDriver.driver_name }}
- 通讯最后一次成功时间:{{ curDriver.driver_name }}
- 通讯最后一次失败时间:{{ curDriver.driver_name }}
- 通讯最后一次失败原因:{{ curDriver.driver_name }}
+ 通讯名称: {{ curDriver.driver_name }}
+ 通讯总计数: {{ curDriver.health && curDriver.health.total_count }}
+ 通讯描述: {{ curDriver.driver_description }}
+ 通讯状态: {{ curDriver.driver_status }}
+ 通讯成功计数: {{ curDriver.health && curDriver.health.success_count }}
+ 通讯失败计数: {{ curDriver.health && curDriver.health.failure_count }}
+ 通讯最后一次成功时间: {{ curDriver.health && curDriver.health.last_success_time }}
+ 通讯最后一次失败时间: {{ curDriver.health && curDriver.health.last_failure_ctime }}
+ 通讯最后一次失败原因: {{ curDriver.health && curDriver.health.last_failure_cause }}
-
设备列表
-
-
+
设备信息
- 设备名称:
- 设备描述:
- 禁用
+ 设备名称: {{ curDevice.device_name }}
+ 设备描述: {{ curDevice.device_description }}
+ {{!curDevice.device_disable? '启用' : '禁用'}}
-
+
历史
-
+
详情
-
+
+ 写值
+
+
+
+
+
+