This commit is contained in:
gjz 2025-02-21 15:09:24 +08:00
parent 07dab299bc
commit 6c949166db
1 changed files with 7 additions and 4 deletions

View File

@ -619,6 +619,11 @@ export default {
type: 'error' type: 'error'
}); });
} else if (data == 0){
this.$message({
message: '导入失败',
type: 'error'
});
} else { } else {
const datas = data.split(''); const datas = data.split('');
const column = datas[1].match(/\d+/)[0]; const column = datas[1].match(/\d+/)[0];
@ -655,12 +660,10 @@ export default {
columnValue = "教学形式"; columnValue = "教学形式";
break; break;
} }
this.$message({ this.$message({
message: '导入失败,' + data + '(' + columnValue + ')数据错误', message: '导入失败,' + data + '(' + columnValue + ')数据错误',
type: 'error' type: 'error'
}); });
} }
event.target.type = "text"; event.target.type = "text";
@ -669,10 +672,10 @@ export default {
event.target.name = "file"; event.target.name = "file";
vm.$forceUpdate(); vm.$forceUpdate();
}).catch((err) => { }).catch((err) => {
/* this.$message({ this.$message({
message: '请求失败!', message: '请求失败!',
type: 'error' type: 'error'
}); */ });
}); });
}, },
daortanshows() { daortanshows() {