From a6917c1d1789b7908827dcab03b751dd80d68bae Mon Sep 17 00:00:00 2001
From: fan
- {{ $t('display.exam.bestTime') }} - {{ courseModel.minDuration }} {{ $t('display.seconds') }} -
-- {{ $t('display.exam.maximumTime') }} - {{ courseModel.maxDuration }} {{ $t('display.seconds') }} -
+ + + + + + + +{{ $t('display.exam.trainingInstructions') }} {{ courseModel.remarks }} diff --git a/src/views/newMap/displayNew/lesson/index.vue b/src/views/newMap/displayNew/lesson/index.vue index db82672b8..111eea871 100644 --- a/src/views/newMap/displayNew/lesson/index.vue +++ b/src/views/newMap/displayNew/lesson/index.vue @@ -365,13 +365,39 @@ export default { checkRoleChange(list) { list.forEach(item => { if (item.messageType === 'PLAY_CHANGE' && item.userId == this.$store.state.user.id && item.type === 'STATION_SUPERVISOR') { - this.$store.dispatch('map/setShowCentralizedStationCode', item.deviceCode); - const mapDevice = this.$store.state.map.mapDevice; - const list = []; - for (const key in mapDevice) { - list.push(mapDevice[key]); + if (this.$store.state.map.map && this.$store.state.map.map.pictureList) { + const picture = this.$store.state.map.map.pictureList.find(picture => picture.stationCode === item.deviceCode && picture.type === 'chainStation'); + if (picture) { + const mapDevice = this.$store.state.map.mapDevice; + const list = []; + const deviceList = []; + for (const key in mapDevice) { + list.push(mapDevice[key]); + deviceList.push(key); + } + this.$store.dispatch('map/setPictureDeviceMap', picture.deviceMap); + this.$jlmap.updatePicture(deviceList); + // this.$jlmap.updateTransform(picture.scaling, picture.origin); + this.$store.dispatch('map/setShowCentralizedStationCode', item.deviceCode); + } else { + this.$store.dispatch('map/setShowCentralizedStationCode', item.deviceCode); + const mapDevice = this.$store.state.map.mapDevice; + const list = []; + for (const key in mapDevice) { + list.push(mapDevice[key]); + } + this.$jlmap.updateShowStation(list, item.deviceCode); + } + } else { + this.$store.dispatch('map/setShowCentralizedStationCode', item.deviceCode); + const mapDevice = this.$store.state.map.mapDevice; + const list = []; + for (const key in mapDevice) { + list.push(mapDevice[key]); + } + this.$jlmap.updateShowStation(list, item.deviceCode); } - this.$jlmap.updateShowStation(list, item.deviceCode); + this.$jlmap.setCenter(this.trainingObj.locateDeviceCode); } }); } diff --git a/src/views/newMap/displayNew/lesson/tipTrainingDetail.vue b/src/views/newMap/displayNew/lesson/tipTrainingDetail.vue index d3f6ad2eb..c9bc3efe5 100644 --- a/src/views/newMap/displayNew/lesson/tipTrainingDetail.vue +++ b/src/views/newMap/displayNew/lesson/tipTrainingDetail.vue @@ -18,14 +18,14 @@ {{ $t('display.training.trainingName') }} {{ courseModel.name }}
-- {{ $t('display.training.bestTime') }} - {{ courseModel.minDuration }} {{ $t('display.seconds') }} -
-- {{ $t('display.training.maximumTime') }} - {{ courseModel.maxDuration }} {{ $t('display.seconds') }} -
+ + + + + + + +{{ $t('display.training.trainingInstructions') }} {{ courseModel.remarks }}