diff --git a/src/api/race.js b/src/api/race.js
index c5f6bc3ef..43e444dd8 100644
--- a/src/api/race.js
+++ b/src/api/race.js
@@ -15,3 +15,20 @@ export function selectQuestionTypeNum(companyId) {
method: 'get'
});
}
+
+/** 加载场景 */
+export function loadRace(simulationId, sceneId) {
+ return request({
+ url: `/api/race/${simulationId}/load/${sceneId}`,
+ method: 'put'
+ });
+
+}
+/** 完成任务 */
+export function overTask(taskId, data) {
+ return request({
+ url: `/api/race/${taskId}/finish`,
+ method: 'put',
+ data
+ });
+}
diff --git a/src/views/contest/contestDetail.vue b/src/views/contest/contestDetail.vue
index e9b3254b9..d53e0bcd4 100644
--- a/src/views/contest/contestDetail.vue
+++ b/src/views/contest/contestDetail.vue
@@ -154,6 +154,8 @@ export default {
project: 'dsxl',
paperId: this.$route.query.paperId,
moduleId: this.$route.query.moduleId,
+ sceneId: this.nowData.sceneId,
+ taskId: this.nowData.id,
nowKey: this.nowKey
};
this.$router.push({ path: '/display/demon', query: query });
diff --git a/src/views/newMap/display/trainingDesign/editOperate.vue b/src/views/newMap/display/trainingDesign/editOperate.vue
index d2358876f..1730d3ec6 100644
--- a/src/views/newMap/display/trainingDesign/editOperate.vue
+++ b/src/views/newMap/display/trainingDesign/editOperate.vue
@@ -126,6 +126,15 @@ export default {
this.stepIndex = data.index;
this.stepDetail = data.data;
this.trainingType = data.type;
+ if (!this.stepDetail.operations) {
+ this.stepDetail.operations = [];
+ }
+ if (!this.stepDetail.simCommands) {
+ this.stepDetail.simCommands = [];
+ }
+ if (!this.stepDetail.tipPosition) {
+ this.stepDetail.tipPosition = {};
+ }
},
clearOperation() {
this.$confirm('清除操作将清除所有关联操作', '提示', {
diff --git a/src/views/newMap/display/trainingList/trainingMenu.vue b/src/views/newMap/display/trainingList/trainingMenu.vue
index 845ef4607..5a6a39484 100644
--- a/src/views/newMap/display/trainingList/trainingMenu.vue
+++ b/src/views/newMap/display/trainingList/trainingMenu.vue
@@ -44,11 +44,11 @@
+
上 一 题: {{ previousTraining? previousTraining.name: '' }}
-+
下 一 题: {{ nextTraining? nextTraining.name:'' }}
@@ -69,6 +69,8 @@