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