实训调整
This commit is contained in:
parent
d61b2fcbcd
commit
483536c721
@ -3,6 +3,7 @@
|
||||
<menu-demon ref="menuDemon" />
|
||||
<training-jlmap refs="trainingJlmap" />
|
||||
<training-tip ref="trainingTip" />
|
||||
<training-position-tip ref="trainingPositionTip" />
|
||||
<el-button size="small" class="fault-button" :type="faultMode ? '':'primary' " @click="changeOperateMode()">{{ faultMode?'切换到普通模式':'切换到故障模式' }}</el-button>
|
||||
<div class="trainBack">
|
||||
<el-button-group>
|
||||
@ -23,13 +24,15 @@ import TrainingJlmap from './trainingJlmap';
|
||||
import MenuDemon from '@/views/trainingManage/demonMenu.vue';
|
||||
import TrainingTip from './trainingTip';
|
||||
import { OperateMode } from '@/scripts/ConstDic';
|
||||
import TrainingPositionTip from './trainingPositionTip';
|
||||
|
||||
export default {
|
||||
name: 'TrainingDesign',
|
||||
components: {
|
||||
MenuDemon,
|
||||
TrainingTip,
|
||||
TrainingJlmap
|
||||
TrainingJlmap,
|
||||
TrainingPositionTip
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@ -140,8 +143,6 @@ export default {
|
||||
},
|
||||
nextStep() {
|
||||
endTrainingStep(this.group, this.$store.state.trainingNew.stepOrder).then(resp => {
|
||||
this.$store.dispatch('trainingNew/clearOperateOrder');
|
||||
this.$store.dispatch('trainingNew/stepOrderIncrease');
|
||||
}).catch(() => {
|
||||
this.$message.error('进入下一步实训失败!');
|
||||
});
|
||||
|
@ -35,6 +35,8 @@ export default {
|
||||
'$store.state.socket.trainingStepTip': function(val) {
|
||||
if (val) {
|
||||
this.$nextTick(function() {
|
||||
this.$store.dispatch('trainingNew/clearOperateOrder');
|
||||
this.$store.dispatch('trainingNew/stepOrderIncrease');
|
||||
this.tipInit();
|
||||
});
|
||||
}
|
||||
|
@ -107,8 +107,6 @@ export default {
|
||||
},
|
||||
nextStep() {
|
||||
endTrainingStep(this.group, this.$store.state.trainingNew.stepOrder).then(resp => {
|
||||
this.$store.dispatch('trainingNew/clearOperateOrder');
|
||||
this.$store.dispatch('trainingNew/stepOrderIncrease');
|
||||
}).catch(() => {
|
||||
this.$message.error('进入下一步实训失败!');
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user