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 @@