From 8710a6231afe4d85bad012c7b93a2598284f96a8 Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Wed, 23 Oct 2019 16:13:36 +0800
Subject: [PATCH] =?UTF-8?q?=E7=BB=BC=E5=90=88=E6=BC=94=E7=BB=83=E6=88=BF?=
=?UTF-8?q?=E9=97=B4=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/chat.js | 19 ++++++++++++++-
.../lessoncategory/edit/lesson/publish.vue | 21 -----------------
src/views/trainRoom/index.vue | 23 +++++++++++++++++--
3 files changed, 39 insertions(+), 24 deletions(-)
diff --git a/src/api/chat.js b/src/api/chat.js
index 99fb60676..bc2dd4e5f 100644
--- a/src/api/chat.js
+++ b/src/api/chat.js
@@ -239,7 +239,7 @@ export function getPermissionJoint(group) {
});
}
-//
+// 添加或更新真实设备和仿真对象连接
export function setRealDevice(group, data) {
return request({
url: `/api/jointTraining/room/realDevice?group=${group}`,
@@ -247,3 +247,20 @@ export function setRealDevice(group, data) {
data: data
});
}
+
+// 删除真实设备和仿真对象连接
+export function delRealDevice(id, group) {
+ return request({
+ url: `/api/jointTraining/room/realDevice/${id}`,
+ method: 'delete',
+ params: { group: group }
+ });
+}
+
+// 获取真实设备列表
+export function getRealDevices(group) {
+ return request({
+ url: `/api/jointTraining/room/${group}/devices`,
+ method: 'get'
+ });
+}
diff --git a/src/views/lesson/lessoncategory/edit/lesson/publish.vue b/src/views/lesson/lessoncategory/edit/lesson/publish.vue
index b6d0266c2..0433db605 100644
--- a/src/views/lesson/lessoncategory/edit/lesson/publish.vue
+++ b/src/views/lesson/lessoncategory/edit/lesson/publish.vue
@@ -9,16 +9,6 @@
label-width="140px"
@submit.native.prevent
>
-
-
-
-
-
-
-
-
-
-
@@ -33,7 +23,6 @@