From d8d113d3250abd31bad2e089e1901f4511c4c55d Mon Sep 17 00:00:00 2001
From: limqhz <540344226@qq.com>
Date: Tue, 5 Sep 2023 09:31:36 +0800
Subject: [PATCH] =?UTF-8?q?=E7=AF=AE=E7=90=83=E5=9C=BA=E6=89=AB=E7=A0=81?=
=?UTF-8?q?=E5=85=A5=E5=9C=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/device.js | 8 ++++
src/views/device/index.vue | 24 +++++++---
src/views/member/edit.vue | 40 ++++++++++-------
src/views/member/enter/veneu/log/edit.vue | 55 ++++++++++++-----------
4 files changed, 79 insertions(+), 48 deletions(-)
diff --git a/src/api/device.js b/src/api/device.js
index 52a03f1..4283527 100644
--- a/src/api/device.js
+++ b/src/api/device.js
@@ -11,6 +11,14 @@ export function reconnect(id) {
return http.post('/device/reconnect/' + id)
}
+export function adminEnter(id) {
+ return http.post('/device/admin/enter/' + id)
+}
+
+export function adminOut(id) {
+ return http.post('/device/admin/out/' + id)
+}
+
/**
* 删除门禁设备
*/
diff --git a/src/views/device/index.vue b/src/views/device/index.vue
index d0378a2..bbe68e7 100644
--- a/src/views/device/index.vue
+++ b/src/views/device/index.vue
@@ -18,14 +18,14 @@
-
+
{{scope.row.name}}
-
+
{{scope.row.stream}}
@@ -46,9 +46,9 @@
- 编辑
- 删除
- 重新连接
+ 管理员进场
+ 管理员出场
+
@@ -56,7 +56,7 @@