调整实训步骤校验
This commit is contained in:
parent
3a8a3b87d8
commit
a95e940255
@ -52,13 +52,17 @@ class ValidateHandler {
|
||||
const order = Handler.getOrder();
|
||||
|
||||
let valid = false;
|
||||
if (order < steps.length) {
|
||||
const standard = steps[order];
|
||||
if (operate && standard &&
|
||||
operate.code == standard.code &&
|
||||
operate.operation == standard.operation &&
|
||||
operate.val == standard.val) {
|
||||
valid = true;
|
||||
if (operate.over) { // 最后一步不用校验 只校验之前的步骤信息 最后直接发送就可以
|
||||
valid = true;
|
||||
} else {
|
||||
if (order < steps.length) {
|
||||
const standard = steps[order];
|
||||
if (operate && standard &&
|
||||
operate.code == standard.code &&
|
||||
operate.operation == standard.operation &&
|
||||
operate.val == standard.val) {
|
||||
valid = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -194,11 +194,12 @@ export default {
|
||||
'$store.state.map.mapViewLoadedCount': function (val) { // 地图视图加载完成标识 开始加载默认状态
|
||||
this.mapBoxP = document.getElementById(this.canvasId).children[0];
|
||||
this.mapBox = document.getElementsByTagName('canvas');
|
||||
|
||||
if (this.trainingId) {
|
||||
getTrainingStepsDetailNew(this.trainingId, { group: this.group }).then(resp => {
|
||||
this.trainingObj = resp.data;
|
||||
this.$store.dispatch('training/setTrainingData', this.trainingObj);
|
||||
}).catch(error => {
|
||||
this.$messageBox(`初始化失败实训内容失败: ${error.message}`);
|
||||
});
|
||||
}
|
||||
this.$refs.mapCanvas && this.$refs.mapCanvas.setShowStation(this.showStation);
|
||||
|
Loading…
Reference in New Issue
Block a user