|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<el-container>
|
|
|
- <el-main>
|
|
|
+ <el-main v-loading="loading">
|
|
|
<commonFormVue :form="form" :getExamCondition="getExamCondition">
|
|
|
<el-row v-show="showAllCondition">
|
|
|
<el-col :span="6">
|
|
@@ -215,6 +215,7 @@ export default {
|
|
|
mixins: [pagePrivilege],
|
|
|
data() {
|
|
|
return {
|
|
|
+ loading: false,
|
|
|
uploadAnswerDialogVisible: false,
|
|
|
total: 0,
|
|
|
tableLoading: false,
|
|
@@ -355,6 +356,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
exportPaper(examStudentId) {
|
|
|
+ this.loading = true;
|
|
|
var currentUser = this.user;
|
|
|
this.$http
|
|
|
.get("/api/ecs_oe_admin/exam/record/select/byExamStudentId", {
|
|
@@ -396,8 +398,13 @@ export default {
|
|
|
a.click();
|
|
|
URL.revokeObjectURL(url);
|
|
|
}
|
|
|
+ this.loading = false;
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.loading = false;
|
|
|
});
|
|
|
} else {
|
|
|
+ this.loading = false;
|
|
|
this.$message({
|
|
|
message: "该考生未参加考试",
|
|
|
type: "error"
|
|
@@ -412,6 +419,7 @@ export default {
|
|
|
params: { examStudentId: examStudentId }
|
|
|
})
|
|
|
.then(response => {
|
|
|
+ debugger;
|
|
|
var examRecordDataList = response.data;
|
|
|
if (examRecordDataList.length == 0) {
|
|
|
this.$message({
|
|
@@ -421,7 +429,7 @@ export default {
|
|
|
} else {
|
|
|
this.uploadAnswerDialogVisible = true;
|
|
|
this.currentOfflineExamStudentId = examStudentId;
|
|
|
- this.currentOfflineExamRecordId = examRecordDataList[0].id;
|
|
|
+ this.currentOfflineExamRecordDataId = examRecordDataList[0].id;
|
|
|
}
|
|
|
});
|
|
|
},
|
|
@@ -448,7 +456,7 @@ export default {
|
|
|
});
|
|
|
this.uploadAnswerDialogVisible = false;
|
|
|
})
|
|
|
- .catch(function(error) {
|
|
|
+ .catch(error => {
|
|
|
console.log(error);
|
|
|
this.$message({
|
|
|
message: "上传失败",
|