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