按钮顺序调整
This commit is contained in:
parent
36aee735a8
commit
23d8feb8b7
@ -14,9 +14,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id="teachGroupButton" class="display-draft" :style="{bottom: offsetBottom + 'px'}">
|
<div id="teachGroupButton" class="display-draft" :style="{bottom: offsetBottom + 'px'}">
|
||||||
<el-button-group>
|
<el-button-group>
|
||||||
<el-button type="primary" :disabled="backDisable" class="back" @click="back">{{ $t('display.backBtn') }}</el-button>
|
|
||||||
<el-button type="danger" class="end" :disabled="!isDisable || dataError" @click="end">{{ $t('display.endBtn') }}</el-button>
|
|
||||||
<el-button type="success" class="start" :disabled="isDisable || dataError" :loading="startLoading" @click="start">{{ $t('display.startBtn') }}</el-button>
|
<el-button type="success" class="start" :disabled="isDisable || dataError" :loading="startLoading" @click="start">{{ $t('display.startBtn') }}</el-button>
|
||||||
|
<el-button type="danger" class="end" :disabled="!isDisable || dataError" @click="end">{{ $t('display.endBtn') }}</el-button>
|
||||||
|
<el-button type="primary" :disabled="backDisable" class="back" @click="back">{{ $t('display.backBtn') }}</el-button>
|
||||||
</el-button-group>
|
</el-button-group>
|
||||||
</div>
|
</div>
|
||||||
<tip-training-detail :training-obj="trainingObj" :offset-bottom="offsetBottom + tipBottom" />
|
<tip-training-detail :training-obj="trainingObj" :offset-bottom="offsetBottom + tipBottom" />
|
||||||
@ -67,7 +67,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
result: {},
|
result: {},
|
||||||
timeInterval: null,
|
timeInterval: null,
|
||||||
TrainingMode: TrainingMode,
|
TrainingMode: TrainingMode,
|
||||||
trainingObj:{},
|
trainingObj:{},
|
||||||
@ -108,9 +108,9 @@ export default {
|
|||||||
project() {
|
project() {
|
||||||
return getSessionStorage('project');
|
return getSessionStorage('project');
|
||||||
},
|
},
|
||||||
isOther() {
|
isOther() {
|
||||||
return this.$route.query.from == 'kzfmooc';
|
return this.$route.query.from == 'kzfmooc';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
demoMode: function (val) {
|
demoMode: function (val) {
|
||||||
@ -159,7 +159,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
setTrainingData(resp) {
|
setTrainingData(resp) {
|
||||||
const detail = resp.data;
|
const detail = resp.data;
|
||||||
this.trainingObj = detail;
|
this.trainingObj = detail;
|
||||||
this.$store.dispatch('exam/setCenter', detail.locateDeviceCode);
|
this.$store.dispatch('exam/setCenter', detail.locateDeviceCode);
|
||||||
this.$store.dispatch('training/setTrainingData', this.trainingObj); // 设置实训教学信息
|
this.$store.dispatch('training/setTrainingData', this.trainingObj); // 设置实训教学信息
|
||||||
@ -228,7 +228,7 @@ export default {
|
|||||||
};
|
};
|
||||||
endTrainingNew(mode, this.group).then(response => {
|
endTrainingNew(mode, this.group).then(response => {
|
||||||
const data = response.data;
|
const data = response.data;
|
||||||
this.result = data;
|
this.result = data;
|
||||||
this.$store.dispatch('training/judgeFinish', data).then(rsp => {
|
this.$store.dispatch('training/judgeFinish', data).then(rsp => {
|
||||||
this.$store.dispatch('training/setStopCountTime');
|
this.$store.dispatch('training/setStopCountTime');
|
||||||
this.$store.dispatch('training/emitTipFresh');
|
this.$store.dispatch('training/emitTipFresh');
|
||||||
@ -262,7 +262,7 @@ export default {
|
|||||||
usedTime: this.usedTime
|
usedTime: this.usedTime
|
||||||
};
|
};
|
||||||
endTrainingNew(mode, this.group).then(response => {
|
endTrainingNew(mode, this.group).then(response => {
|
||||||
this.result = response.data;
|
this.result = response.data;
|
||||||
this.$store.dispatch('training/end', null);
|
this.$store.dispatch('training/end', null);
|
||||||
this.$store.dispatch('training/setStopCountTime');
|
this.$store.dispatch('training/setStopCountTime');
|
||||||
this.$store.dispatch('training/setScore', 0);
|
this.$store.dispatch('training/setScore', 0);
|
||||||
@ -281,9 +281,9 @@ export default {
|
|||||||
},
|
},
|
||||||
back() {
|
back() {
|
||||||
Notification.closeAll();
|
Notification.closeAll();
|
||||||
if (this.isOther) {
|
if (this.isOther) {
|
||||||
EventBus.$emit('demoResult', this.result);
|
EventBus.$emit('demoResult', this.result);
|
||||||
} else if (this.$route.params.mode == 'record') {
|
} else if (this.$route.params.mode == 'record') {
|
||||||
/** 如果是演示返回时,需要重新创建仿真*/
|
/** 如果是演示返回时,需要重新创建仿真*/
|
||||||
trainingNotifyNew({ trainingId: this.$route.query.trainingId }).then(resp => {
|
trainingNotifyNew({ trainingId: this.$route.query.trainingId }).then(resp => {
|
||||||
this.$router.push({ path: `${UrlConfig.lesson.record}/${this.$route.query.trainingId}/${this.$route.query.trainingName}`, query: { group: resp.data } });
|
this.$router.push({ path: `${UrlConfig.lesson.record}/${this.$route.query.trainingId}/${this.$route.query.trainingName}`, query: { group: resp.data } });
|
||||||
|
Loading…
Reference in New Issue
Block a user