From 4b41c9fd276c4c57696e9c7f9a276f1c82f5ba12 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Mon, 21 Oct 2019 13:16:49 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E8=80=83=E8=AF=95=E8=B7=AF=E7=94=B1?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/display/menuExam.vue | 2 +- src/views/display/tipExamList.vue | 2 +- src/views/exam/detail/courseDetail.vue | 5 ++--- src/views/exam/detail/examDetail.vue | 13 +++++++------ 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/views/display/menuExam.vue b/src/views/display/menuExam.vue index b2e7c7f52..efa7d1de6 100644 --- a/src/views/display/menuExam.vue +++ b/src/views/display/menuExam.vue @@ -141,7 +141,7 @@ export default { }).catch(error => { // 如果时50009则表示考试已完成,不能再次进行y if (error.code === 500009) { - this.$router.replace({ path: `/trainingPlatform/result/${this.$route.params.userExamId}` }); + this.$router.replace({ path: `/trainingPlatform/result/${this.$route.params.userExamId}`, query: {subSystem: this.$route.query.subSystem} }); } else { this.$messageBox(this.$t('display.exam.refreshListError')); } diff --git a/src/views/display/tipExamList.vue b/src/views/display/tipExamList.vue index da7f989a6..be968ced5 100644 --- a/src/views/display/tipExamList.vue +++ b/src/views/display/tipExamList.vue @@ -260,7 +260,7 @@ export default { exitFullscreen(); this.$store.dispatch('exam/over').then(() => { this.$store.dispatch('trainingList/clearTrainingList'); - this.$router.replace({ path: `/trainingPlatform/result/${this.$route.query.userExamId}` }); + this.$router.replace({ path: `/trainingPlatform/result/${this.$route.query.userExamId}`, query: {subSystem: this.$route.query.subSystem} }); }); }, shrink() { diff --git a/src/views/exam/detail/courseDetail.vue b/src/views/exam/detail/courseDetail.vue index 6e0d9ec97..42aa660f5 100644 --- a/src/views/exam/detail/courseDetail.vue +++ b/src/views/exam/detail/courseDetail.vue @@ -137,7 +137,7 @@ export default { this.loading = true; this.$router.push({ path: `${UrlConfig.trainingPlatform.pay}/${this.courseModel.id}`, - query: { permissionType: PermissionType.EXAM, lessonId: this.courseModel.id, prdCode: this.courseModel.prdCode, mapId: this.courseModel.mapId,subSystem:this.$route.params.subSystem } + query: { permissionType: PermissionType.EXAM, lessonId: this.courseModel.id, prdCode: this.courseModel.prdCode, mapId: this.courseModel.mapId, subSystem: this.$route.params.subSystem } }); }, checkCourse() { @@ -162,10 +162,9 @@ export default { } }, clickEvent(obj, node, data) { - // setSessionStorage('trainingExamCheckId', obj.id); if (obj.type === 'Exam') { if (obj.valid) { - this.$router.push(`${UrlConfig.trainingPlatform.examDetail}/${obj.id}`); + this.$router.push({ path: `${UrlConfig.trainingPlatform.examDetail}/${obj.id}`, query: { subSystem: this.$route.params.subSystem }}); } else { this.$confirm(this.$t('tip.accessCourseNo'), this.$t('tip.hint'), { confirmButtonText: this.$t('tip.confirm'), diff --git a/src/views/exam/detail/examDetail.vue b/src/views/exam/detail/examDetail.vue index 5abc807d5..3d117dab8 100644 --- a/src/views/exam/detail/examDetail.vue +++ b/src/views/exam/detail/examDetail.vue @@ -44,7 +44,7 @@
- {{$t('display.exam.examTime')}} + {{ $t('display.exam.examTime') }} {{ formatRemainTime }}
@@ -38,12 +38,12 @@ {{ courseModel.name }}- {{$t('display.exam.bestTime')}} - {{ courseModel.minDuration }} {{$t('display.seconds')}} + {{ $t('display.exam.bestTime') }} + {{ courseModel.minDuration }} {{ $t('display.seconds') }}
- {{$t('display.exam.maximumTime')}} - {{ courseModel.maxDuration }} {{$t('display.seconds')}} + {{ $t('display.exam.maximumTime') }} + {{ courseModel.maxDuration }} {{ $t('display.seconds') }}
{{ $t('display.exam.trainingInstructions') }}
@@ -59,10 +59,10 @@
- {{$t('display.exam.examTime')}} + {{ $t('display.exam.examTime') }} {{ formatRemainTime }}
@@ -191,7 +191,7 @@ export default { }).catch(error => { // 如果时50009则表示考试已完成,不能再次进行y if (error.code === 500009) { - this.$router.replace({ path: `/exam/result/${this.$route.params.userExamId}` }); + this.$router.replace({ path: `/trainingPlatform/result/${this.$route.params.userExamId}`, query: { subSystem: this.$route.query.subSystem } }); } else { this.$messageBox(this.$t('display.exam.refreshListError')); @@ -233,7 +233,9 @@ export default { group: this.$route.query.group, userExamId: this.$route.query.userExamId, trainingId: obj.trainingId, - examQuestionId: obj.id + examQuestionId: obj.id, + subSystem: this.$route.query.subSystem, + examId: this.$route.query.examId }; this.$router.push({ path: '/display/exam', query: query }); this.$emit('refresh'); diff --git a/src/views/exam/detail/courseDetail.vue b/src/views/exam/detail/courseDetail.vue index 42aa660f5..f9dfee80e 100644 --- a/src/views/exam/detail/courseDetail.vue +++ b/src/views/exam/detail/courseDetail.vue @@ -102,8 +102,8 @@ export default { } }, watch: { - '$route.query.prodId': function (val) { - this.loadInitPage(val, this.$route.query.type); + '$route.params.subSystem': function (val) { + this.loadInitPage(); } }, mounted() { diff --git a/src/views/exam/detail/examDetail.vue b/src/views/exam/detail/examDetail.vue index 3d117dab8..67dc2d424 100644 --- a/src/views/exam/detail/examDetail.vue +++ b/src/views/exam/detail/examDetail.vue @@ -201,7 +201,8 @@ export default { trainingId: this.examList[0].trainingId, userExamId: this.userExam.id, examQuestionId: this.examList[0].id, - subSystem: this.$route.query.subSystem + subSystem: this.$route.query.subSystem, + examId: this.$route.params.examId }; this.$router.push({ path: `${UrlConfig.display}/exam`, query: query }); launchFullscreen(); diff --git a/src/views/exam/result.vue b/src/views/exam/result.vue index bf148114b..f277c59db 100644 --- a/src/views/exam/result.vue +++ b/src/views/exam/result.vue @@ -118,7 +118,7 @@ export default { }, back() { const examId = this.resultModel.examId; - this.$router.push(`${UrlConfig.trainingPlatform.examDetail}/${examId}`); + this.$router.push({path: `${UrlConfig.trainingPlatform.examDetail}/${examId}`, query: { subSystem: this.$route.query.subSystem }}); } } }; diff --git a/src/views/jointTraining/index.vue b/src/views/jointTraining/index.vue index 3c4d2cf74..81fee4a96 100644 --- a/src/views/jointTraining/index.vue +++ b/src/views/jointTraining/index.vue @@ -121,7 +121,7 @@ export default { await this.$store.dispatch('training/over'); await runDiagramOver(this.group); await deljointTrainRoom(this.group); - await this.$router.push({ path: `/trainingPlatform/prodDetail/${this.mapId}` }); + await this.$router.push({ path: `/trainingPlatform/detail/${this.subSystem}`, query: {mapId: this.mapId} }); } }); }, @@ -149,6 +149,7 @@ export default { this.group = this.$route.query.group; this.mapId = this.$route.query.mapId; this.skinCode = this.$route.query.skinCode; + this.subSystem = this.$route.query.subSystem; Message.closeAll(); }, async mounted() { diff --git a/src/views/jointTraining/menuDemon.vue b/src/views/jointTraining/menuDemon.vue index 127776a62..a0847e377 100644 --- a/src/views/jointTraining/menuDemon.vue +++ b/src/views/jointTraining/menuDemon.vue @@ -298,7 +298,7 @@ export default { back() { this.$store.dispatch('training/over').then(() => { putJointTrainingSimulationUser(this.group).then(() => { - this.$router.push({ path: `/trainroom`, query: { group: this.group } }); + this.$router.push({ path: `/trainroom`, query: { skinCode: this.$route.query.skinCode, group: this.group, subSystem: this.$route.query.subSystem } }); exitFullscreen(); }); }); diff --git a/src/views/trainRoom/index.vue b/src/views/trainRoom/index.vue index e8dc80444..4ed75deda 100644 --- a/src/views/trainRoom/index.vue +++ b/src/views/trainRoom/index.vue @@ -465,7 +465,7 @@ export default { this.starting = true; await putJointTrainingSimulationEntrance(param.group); const rest = await getPublishMapInfo(param.mapId); - const query = { skinCode: rest.data.skinCode, mapId: param.mapId, group: param.group }; + const query = { skinCode: rest.data.skinCode, mapId: param.mapId, group: param.group, subSystem: this.$route.query.subSystem }; this.$router.push({ path: `/jointTraining`, query: query }); launchFullscreen(); } @@ -487,7 +487,7 @@ export default { this.loading = true; await putJointTrainingSimulationEntrance(this.$route.query.group); const rest = await getPublishMapInfo(this.mapId); - const query = { skinCode: rest.data.skinCode, mapId: this.mapId, group: this.$route.query.group }; + const query = { skinCode: rest.data.skinCode, mapId: this.mapId, group: this.$route.query.group, subSystem: this.$route.query.subSystem }; this.$router.push({ path: `/jointTraining`, query: query }); launchFullscreen(); }, diff --git a/src/views/trainingPlatform/demonList.vue b/src/views/trainingPlatform/demonList.vue index 7dfefe354..2e6be1f80 100644 --- a/src/views/trainingPlatform/demonList.vue +++ b/src/views/trainingPlatform/demonList.vue @@ -124,7 +124,7 @@ export default { this.$router.push({ path: `${UrlConfig.trainingPlatform.teachDetail}/${obj.id}`}); break; case 'Simulation': - this.setLocalRoute(`${UrlConfig.trainingPlatform.prodDetail}/${obj.id}`); + this.setLocalRoute(`${UrlConfig.trainingPlatform.prodDetail}/${obj.id}?mapId=${this.mapId}`); this.$router.push({ path: `${UrlConfig.trainingPlatform.prodDetail}/${obj.id}`, query: { mapId: this.mapId}}); break; // case '运行图编制': From c9ad0a8be5e02da1960c66b7c1d400e483ca8748 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Mon, 21 Oct 2019 14:14:22 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/script.js | 4 +- src/views/login/index.vue | 63 ++++++++++++-- src/views/login/loginDesign.vue | 136 +++++++++++++++++++----------- src/views/login/loginEn.vue | 61 +++++++++++++- src/views/login/loginEnDesign.vue | 56 ++++++++++-- 5 files changed, 256 insertions(+), 64 deletions(-) diff --git a/src/api/script.js b/src/api/script.js index 93bed7652..b4cc5e639 100644 --- a/src/api/script.js +++ b/src/api/script.js @@ -3,8 +3,8 @@ import request from '@/utils/request'; /** 分页查找上线的剧本*/ export function getScriptPageListOnline(params) { return request({ - // url: `/api/script/paging/online`, - url: `/api/script/paging/published`, + url: `/api/script/paging/online`, + // url: `/api/script/paging/published`, method: 'get', params: params }); diff --git a/src/views/login/index.vue b/src/views/login/index.vue index c606c0188..1a553d0ff 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -54,7 +54,25 @@ -