diff --git a/src/App.vue b/src/App.vue index 48b7c900a..d02130dfe 100644 --- a/src/App.vue +++ b/src/App.vue @@ -28,11 +28,6 @@ export default { loading: false }; }, - computed: { - path() { - return window.location.pathname; - } - }, watch: { '$store.state.socket.simulationInvite': function (val) { if (val.creator) { @@ -101,7 +96,8 @@ export default { }, subscribe() { const token = getToken(); - if (token && this.$route.path != '/404' && !this.path.endsWith('login')) { + const path = window.location.pathname; + if (token && this.$route.path != '/404' && !path.endsWith('login')) { const header = { group: '', 'X-Token': token }; this.$store.dispatch('subscribe', {header, type: getSessionStorage('project')}); } diff --git a/src/api/jmap/training.js b/src/api/jmap/training.js index 072682745..3f80900dd 100644 --- a/src/api/jmap/training.js +++ b/src/api/jmap/training.js @@ -61,6 +61,15 @@ export function getTrainingStepsDetailNew(trainingId, params) { params: params }); } + +/** 仿真里加载实训 (新版地图) */ +export function loadTrainingInSimulation(group, id) { + return request({ + url: `/api/v1/training/${group}/${id}/loadTraining`, + method: 'put' + }); +} + /** 查询实训列表(新版地图)*/ export function pageQueryTrainingNew(params) { return request({ diff --git a/src/api/jointTraining.js b/src/api/jointTraining.js index ebd203cff..6552c2d8a 100644 --- a/src/api/jointTraining.js +++ b/src/api/jointTraining.js @@ -1,14 +1,5 @@ import request from '@/utils/request'; -// 检查房间存在 -export function checkRoomExistNew(params) { - return request({ - url: `/api/simulationRoom`, - method: 'get', - params - }); -} - // 设置人员角色 export function putUserRolesNew(data, group) { return request({ diff --git a/src/jmapNew/theme/fuzhou_01/operationConfig.js b/src/jmapNew/theme/fuzhou_01/operationConfig.js index 2b8de9be5..b5f4f4c7c 100644 --- a/src/jmapNew/theme/fuzhou_01/operationConfig.js +++ b/src/jmapNew/theme/fuzhou_01/operationConfig.js @@ -140,7 +140,7 @@ export default { operateType: 'Stand_Whole_Line_Cancel_Hold_Train', skinCode: '02', trainingName: '全线取消扣车({10}-{12}站台)', - trainingRemark: '全线取消扣车功能(默认上行全线/下行全线,不做选择)', + trainingRemark: '全线取消扣车功能(默认{12}全线,不做选择)', trainingType: 'Stand', productTypes: ['02'], stepVOList: [ @@ -153,8 +153,8 @@ export default { minDuration: 8, operateType: 'Stand_Whole_Line_Cancel_Hold_Train', skinCode: '02', - trainingName: '全线取消扣车({10}-{12}站台)', - trainingRemark: '全线取消扣车功能(选择上/下行全线)', + trainingName: '全线取消扣车({10}-{12}站台 / 取消{14}全线)', + trainingRemark: '全线取消扣车功能(选择{14}全线)', trainingType: 'Stand', productTypes: ['02'], stepVOList: [ diff --git a/src/jmapNew/theme/xian_01/operationConfig.js b/src/jmapNew/theme/xian_01/operationConfig.js index cb43777b4..e9e77c242 100644 --- a/src/jmapNew/theme/xian_01/operationConfig.js +++ b/src/jmapNew/theme/xian_01/operationConfig.js @@ -101,7 +101,7 @@ export default { trainingType: 'Stand', productTypes: ['01', '02'], stepVOList: [ - { deviceType: '06', orderNum: 1, operateCode: '504', tip: '鼠标右键菜单选择【扣车】' }, + { deviceType: '06', orderNum: 1, operateCode: '504', tip: '鼠标右键菜单选择【设置扣车】' }, { deviceType: '06', orderNum: 2, operateCode: '504', tip: '鼠标左键点击【确定】按钮' } ] }, @@ -139,7 +139,7 @@ export default { operateType: 'Stand_Whole_Line_Cancel_Hold_Train', skinCode: '02', trainingName: '全线取消扣车({10}-{12}站台)', - trainingRemark: '全线取消扣车功能(默认上行全线/下行全线,不做选择)', + trainingRemark: '全线取消扣车功能(默认{12}全线,不做选择)', trainingType: 'Stand', productTypes: ['02'], stepVOList: [ @@ -152,8 +152,8 @@ export default { minDuration: 8, operateType: 'Stand_Whole_Line_Cancel_Hold_Train', skinCode: '02', - trainingName: '全线取消扣车({10}-{12}站台)', - trainingRemark: '全线取消扣车功能(选择上/下行全线)', + trainingName: '全线取消扣车({10}-{12}站台 / 取消{14}全线)', + trainingRemark: '全线取消扣车功能(选择{14}全线)', trainingType: 'Stand', productTypes: ['02'], stepVOList: [ diff --git a/src/store/modules/map.js b/src/store/modules/map.js index 3b232efa2..818d129ff 100644 --- a/src/store/modules/map.js +++ b/src/store/modules/map.js @@ -952,6 +952,7 @@ const map = { }, updateMapDevices: ({ commit, state }, models) => { return new Promise((resolve) => { + // debugger; if (!(models instanceof Array)) { models = [models]; } @@ -969,7 +970,7 @@ const map = { }); const list = Object.values(dict); - handleOperation(state, list); + if (window.location.href.includes('/design/usermap/map/draw')) { handleOperation(state, list); } commit('mapRender', list); resolve(list); }); diff --git a/src/views/demonstration/deomonList/index.vue b/src/views/demonstration/deomonList/index.vue index 11307b1fb..b3b1b9815 100644 --- a/src/views/demonstration/deomonList/index.vue +++ b/src/views/demonstration/deomonList/index.vue @@ -2,8 +2,8 @@ @@ -44,8 +44,6 @@