diff --git a/src/views/designPlatform/trainingDesign.vue b/src/views/designPlatform/trainingDesign.vue
index 6fd1df737..ee4d3bfda 100644
--- a/src/views/designPlatform/trainingDesign.vue
+++ b/src/views/designPlatform/trainingDesign.vue
@@ -6,9 +6,9 @@
{{ faultMode?'切换到普通模式':'切换到故障模式' }}
- 初始化
- 暂停
- 恢复
+ 初始化
+ 暂停
+ 恢复
开始
结束
返回
@@ -38,6 +38,9 @@ export default {
};
},
computed: {
+ record() { // 编制
+ return this.$route.query.record;
+ },
mapId() {
return this.$route.query.mapId;
},
diff --git a/src/views/trainingManage/trainingList.vue b/src/views/trainingManage/trainingList.vue
index 9d0fa359d..a1f7f4eed 100644
--- a/src/views/trainingManage/trainingList.vue
+++ b/src/views/trainingManage/trainingList.vue
@@ -182,7 +182,10 @@ export default {
return list;
},
drawUp(index, row) {
- console.log('编辑', index, row);
+ const qObj = {...this.$route.query};
+ qObj.record = true;
+ this.$router.push({ query:{...qObj}});
+ console.log('编辑', qObj, index, row);
getTrainingAll(row.id).then(resp => {
this.$store.dispatch('trainingNew/setTrainingDetail', null);
if (resp.data && resp.data.mapLocationJson) {
@@ -239,6 +242,9 @@ export default {
this.$message.error('请先结束当前实训后再加载新的实训!');
return;
}
+ const qObj = {...this.$route.query};
+ delete qObj.record;
+ this.$router.push({ query:{...qObj}});
try {
const detailResp = await getTrainingAll(data.id);
this.training = detailResp.data;