|
@@ -177,7 +177,11 @@
|
|
</el-pagination></div></el-col
|
|
</el-pagination></div></el-col
|
|
></el-row>
|
|
></el-row>
|
|
<div>
|
|
<div>
|
|
- <el-dialog title="上传作答" :visible.sync="uploadAnswerDialogVisible">
|
|
|
|
|
|
+ <el-dialog
|
|
|
|
+ title="上传作答"
|
|
|
|
+ v-loading="uploadAnswerDialogLoading"
|
|
|
|
+ :visible.sync="uploadAnswerDialogVisible"
|
|
|
|
+ >
|
|
<el-form>
|
|
<el-form>
|
|
<el-form-item label="选择文件"
|
|
<el-form-item label="选择文件"
|
|
><input
|
|
><input
|
|
@@ -216,6 +220,7 @@ export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
loading: false,
|
|
loading: false,
|
|
|
|
+ uploadAnswerDialogLoading: false,
|
|
uploadAnswerDialogVisible: false,
|
|
uploadAnswerDialogVisible: false,
|
|
total: 0,
|
|
total: 0,
|
|
tableLoading: false,
|
|
tableLoading: false,
|
|
@@ -419,7 +424,6 @@ export default {
|
|
params: { examStudentId: examStudentId }
|
|
params: { examStudentId: examStudentId }
|
|
})
|
|
})
|
|
.then(response => {
|
|
.then(response => {
|
|
- debugger;
|
|
|
|
var examRecordDataList = response.data;
|
|
var examRecordDataList = response.data;
|
|
if (examRecordDataList.length == 0) {
|
|
if (examRecordDataList.length == 0) {
|
|
this.$message({
|
|
this.$message({
|
|
@@ -441,6 +445,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
doUploadAnswer() {
|
|
doUploadAnswer() {
|
|
|
|
+ this.uploadAnswerDialogLoading = true;
|
|
let config = {
|
|
let config = {
|
|
headers: { "Content-Type": "multipart/form-data" }
|
|
headers: { "Content-Type": "multipart/form-data" }
|
|
};
|
|
};
|
|
@@ -455,6 +460,7 @@ export default {
|
|
type: "success"
|
|
type: "success"
|
|
});
|
|
});
|
|
this.uploadAnswerDialogVisible = false;
|
|
this.uploadAnswerDialogVisible = false;
|
|
|
|
+ this.uploadAnswerDialogLoading = false;
|
|
})
|
|
})
|
|
.catch(error => {
|
|
.catch(error => {
|
|
console.log(error);
|
|
console.log(error);
|
|
@@ -462,6 +468,7 @@ export default {
|
|
message: "上传失败",
|
|
message: "上传失败",
|
|
type: "error"
|
|
type: "error"
|
|
});
|
|
});
|
|
|
|
+ this.uploadAnswerDialogLoading = false;
|
|
});
|
|
});
|
|
}
|
|
}
|
|
},
|
|
},
|