|
@@ -927,6 +927,7 @@ export default {
|
|
this.dialogAnswerFile = this.uploadAnswerLoading;
|
|
this.dialogAnswerFile = this.uploadAnswerLoading;
|
|
},
|
|
},
|
|
uploadAnswerFile() {
|
|
uploadAnswerFile() {
|
|
|
|
+ this.answerMessage = "";
|
|
var fileList = document.getElementById("answerFile").files;
|
|
var fileList = document.getElementById("answerFile").files;
|
|
if (fileList.length == 0) {
|
|
if (fileList.length == 0) {
|
|
this.answerMessage = "请选择文件!";
|
|
this.answerMessage = "请选择文件!";
|
|
@@ -941,6 +942,7 @@ export default {
|
|
let config = {
|
|
let config = {
|
|
headers: { "Content-Type": "multipart/form-data" },
|
|
headers: { "Content-Type": "multipart/form-data" },
|
|
};
|
|
};
|
|
|
|
+ this.uploadAnswerLoading = true;
|
|
this.$http
|
|
this.$http
|
|
.post(
|
|
.post(
|
|
QUESTION_API + "/paper/answer/import/" + this.paperId,
|
|
QUESTION_API + "/paper/answer/import/" + this.paperId,
|