From ce180b14480d8486c9cd34363c6757600e78ac26 Mon Sep 17 00:00:00 2001
From: fan <18706759286@163.com>
Date: Tue, 30 Jun 2020 18:35:57 +0800
Subject: [PATCH] =?UTF-8?q?=E7=BB=BC=E5=90=88=E6=BC=94=E7=BB=83=E4=BB=BF?=
=?UTF-8?q?=E7=9C=9F=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/App.vue | 6 +-
src/api/jointSimulation.js | 15 ++
src/api/login.js | 10 +
src/layout/components/Entry.vue | 2 +-
src/store/modules/socket.js | 16 +-
src/store/modules/user.js | 9 +-
.../deomonList/{index_HYD.vue => index.vue} | 51 ++---
.../demonstration/deomonList/index_Common.vue | 190 ------------------
src/views/demonstration/deomonTopic/index.vue | 48 +----
src/views/login/index.vue | 4 +-
src/views/newMap/jointTrainingNew/index.vue | 19 +-
.../newMap/jointTrainingNew/membersManage.vue | 31 +++
.../newMap/jointTrainingNew/menuDemon.vue | 5 +-
src/views/trainRoom/content-menu.vue | 9 +-
src/views/trainRoom/e-members.vue | 11 +-
15 files changed, 131 insertions(+), 295 deletions(-)
rename src/views/demonstration/deomonList/{index_HYD.vue => index.vue} (69%)
delete mode 100644 src/views/demonstration/deomonList/index_Common.vue
diff --git a/src/App.vue b/src/App.vue
index a7244ae72..c1177b1d8 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -26,8 +26,8 @@ export default {
}
},
watch: {
- '$store.state.socket.roomInvite': function (val) {
- if (val.creatorId) {
+ '$store.state.socket.simulationInvite': function (val) {
+ if (val.creator) {
this.subscribeMessage(val);
}
},
@@ -73,7 +73,7 @@ export default {
if (getSessionStorage('project') != 'refereeJsxt' && getSessionStorage('project') != 'jsxt') {
this.$refs.deomonTopic.doShow(res);
}
- this.$store.dispatch('socket/setRoomInvite');
+ this.$store.dispatch('socket/setSimulationInvite');
}
},
subscribe() {
diff --git a/src/api/jointSimulation.js b/src/api/jointSimulation.js
index de9d96211..6aa6322c1 100644
--- a/src/api/jointSimulation.js
+++ b/src/api/jointSimulation.js
@@ -37,3 +37,18 @@ export function getAllSimulationUser(group) {
method: 'get'
});
}
+// 获取用户所在的综合演练
+export function getSimulationListCantainUser() {
+ return request({
+ url: `/api/jointSimulation/list/containUser`,
+ method: 'get'
+ });
+}
+// 将制定用户踢出房间
+export function kickOutMember(group, userId) {
+ return request({
+ url: `/api/jointSimulation/${group}/kickOut?userId=${userId}`,
+ method: 'delete'
+
+ });
+}
diff --git a/src/api/login.js b/src/api/login.js
index 61f07a331..ee13e3772 100644
--- a/src/api/login.js
+++ b/src/api/login.js
@@ -83,3 +83,13 @@ export function checkLoginLine() {
method: 'get'
});
}
+// 获取登录信息(用户&设备)
+export function getLoginInfo(token) {
+ return request({
+ url: '/api/login/loginUserInfo',
+ method: 'get',
+ params: {
+ token
+ }
+ });
+}
diff --git a/src/layout/components/Entry.vue b/src/layout/components/Entry.vue
index bfdca93cf..d808fd3cd 100644
--- a/src/layout/components/Entry.vue
+++ b/src/layout/components/Entry.vue
@@ -30,7 +30,7 @@
diff --git a/src/views/demonstration/deomonTopic/index.vue b/src/views/demonstration/deomonTopic/index.vue
index a73851405..8ce9e03e5 100644
--- a/src/views/demonstration/deomonTopic/index.vue
+++ b/src/views/demonstration/deomonTopic/index.vue
@@ -18,12 +18,7 @@