-
+
{
+ if (item.messageType === 'KICK_OUT' && item.userId == this.$store.state.user.id) {
+ this.$messageBox('您已经被请离房间!');
+ window.close();
+ } else if (item.messageType === 'PLAY_CHANGE' && item.userId == this.$store.state.user.id && item.type === 'STATION_SUPERVISOR') {
+ this.showMemberId = item.memberId;
+ this.oldShowMemberId = item.memberId;
+ this.showStation = item.deviceCode;
+ const showStationCode = this.stationCentralizedMap[item.deviceCode];
+ const mapDevice = this.$store.state.map.mapDevice;
+ const list = [];
+ for (const key in mapDevice) {
+ list.push(mapDevice[key]);
+ }
+ this.$jlmap.updateShowStation(list, showStationCode || item.deviceCode);
+ this.setCenter(showStationCode);
+ }
+ });
}
}
};
diff --git a/src/views/newMap/jointTrainingNew/menuSchema.vue b/src/views/newMap/jointTrainingNew/menuSchema.vue
index b9e3edd74..f29728324 100644
--- a/src/views/newMap/jointTrainingNew/menuSchema.vue
+++ b/src/views/newMap/jointTrainingNew/menuSchema.vue
@@ -265,6 +265,7 @@ export default {
mapId:this.$route.query.mapId,
project: this.project,
newApi: false,
+ joint: true,
ctc: true,
try: this.$route.query.try || 0,
token:getToken(),
diff --git a/src/views/newMap/mapDraftPicture/createPicture.vue b/src/views/newMap/mapDraftPicture/createPicture.vue
index 37f0f0f31..c56ba31df 100644
--- a/src/views/newMap/mapDraftPicture/createPicture.vue
+++ b/src/views/newMap/mapDraftPicture/createPicture.vue
@@ -12,6 +12,7 @@
+
diff --git a/src/views/newMap/mapsystemNew/common/index.vue b/src/views/newMap/mapsystemNew/common/index.vue
index b57225020..8d7c87862 100644
--- a/src/views/newMap/mapsystemNew/common/index.vue
+++ b/src/views/newMap/mapsystemNew/common/index.vue
@@ -69,6 +69,10 @@ export default {
}
},
methods: {
+ reloadMenuComponent(lineCode) {
+ this.menus = this.$theme.loadMenuComponent(lineCode); // 加载menu
+ this.$store.commit('training/notifyGetCommandDefinition', lineCode); // 重新加载线路指令
+ },
// 获取设备数据
getDeviceByEm(em) {
var device = this.$store.getters['map/getDeviceByCode'](em.deviceCode) || null;
@@ -196,13 +200,13 @@ export default {
this.$store.dispatch('menuOperation/setPopMenu', { position: point, menu: menu });
}
} else if (this.$route.query.ctc) {
- this.$store.dispatch('menuOperation/setSelected', {device: this.selected, subType: em.subType});
- menu = getDeviceMenuByDeviceType(device._type);
- this.$store.dispatch('menuOperation/setPopMenu', { position: point, menu: menu });
- }
+ this.$store.dispatch('menuOperation/setSelected', {device: this.selected, subType: em.subType});
+ menu = getDeviceMenuByDeviceType(device._type);
+ this.$store.dispatch('menuOperation/setPopMenu', { position: point, menu: menu });
+ }
} else {
menu = getDeviceMenuByDeviceType('Cancel');
- this.$store.dispatch('menuOperation/setPopMenu', { position: point, menu: menu });
+ this.$store.dispatch('menuOperation/setPopMenu', { position: point, menu: menu });
}
this.$store.dispatch('training/emitTipFresh');
},