实训调整

This commit is contained in:
fan 2022-08-30 10:06:43 +08:00
parent 3ea1c92f71
commit c59285a139

View File

@ -3,6 +3,7 @@
</template>
<script>
import { ScriptMode } from '@/scripts/ConstDic';
export default {
name: 'TrainingTip',
data() {
@ -11,12 +12,21 @@ export default {
trainingTipMessage: ''
};
},
computed: {
teachMode() {
return this.$store.state.trainingNew.teachMode;
}
},
watch: {
'$store.state.socket.trainingStepTip': function(val) {
this.trainingTipMessage = val;
if (this.teachMode === ScriptMode.TEACH) {
this.trainingTipMessage = val;
}
},
'$store.state.socket.trainingOverCount': function(val) {
this.trainingTipMessage = '实训完成,请点击结束按钮。';
if (this.teachMode === ScriptMode.TEACH) {
this.trainingTipMessage = '实训完成,请点击结束按钮。';
}
}
}
};