|
@@ -137,7 +137,7 @@
|
|
border
|
|
border
|
|
@selection-change="handleSelection"
|
|
@selection-change="handleSelection"
|
|
>
|
|
>
|
|
- <el-table-column type="selection" width="55"> </el-table-column>
|
|
|
|
|
|
+ <el-table-column type="selection" width="40"> </el-table-column>
|
|
<el-table-column label="课程名称" prop="courseName" />
|
|
<el-table-column label="课程名称" prop="courseName" />
|
|
<el-table-column width="150" label="课程代码" prop="courseCode" />
|
|
<el-table-column width="150" label="课程代码" prop="courseCode" />
|
|
<el-table-column width="80" label="试卷类型" prop="paperType" />
|
|
<el-table-column width="80" label="试卷类型" prop="paperType" />
|
|
@@ -745,6 +745,12 @@ export default {
|
|
if (!valid) {
|
|
if (!valid) {
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ let curLoading = this.$loading({
|
|
|
|
+ lock: true,
|
|
|
|
+ text: "数据保存中!"
|
|
|
|
+ });
|
|
|
|
+
|
|
let url =
|
|
let url =
|
|
PRINT_API +
|
|
PRINT_API +
|
|
"/course/paper/allot/" +
|
|
"/course/paper/allot/" +
|
|
@@ -753,6 +759,7 @@ export default {
|
|
this.allotForm.coursePaperId;
|
|
this.allotForm.coursePaperId;
|
|
this.$http.post(url).then(
|
|
this.$http.post(url).then(
|
|
() => {
|
|
() => {
|
|
|
|
+ curLoading.close();
|
|
this.$notify({
|
|
this.$notify({
|
|
title: "提示",
|
|
title: "提示",
|
|
message: "试卷指定成功!",
|
|
message: "试卷指定成功!",
|
|
@@ -763,6 +770,7 @@ export default {
|
|
},
|
|
},
|
|
error => {
|
|
error => {
|
|
console.log(error.response);
|
|
console.log(error.response);
|
|
|
|
+ curLoading.close();
|
|
this.$notify({
|
|
this.$notify({
|
|
title: "错误",
|
|
title: "错误",
|
|
type: "error",
|
|
type: "error",
|
|
@@ -787,6 +795,11 @@ export default {
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ let curLoading = this.$loading({
|
|
|
|
+ lock: true,
|
|
|
|
+ text: "数据保存中!"
|
|
|
|
+ });
|
|
|
|
+
|
|
let url =
|
|
let url =
|
|
PRINT_API +
|
|
PRINT_API +
|
|
"/course/paper/allot/all/" +
|
|
"/course/paper/allot/all/" +
|
|
@@ -796,6 +809,7 @@ export default {
|
|
|
|
|
|
this.$http.post(url).then(
|
|
this.$http.post(url).then(
|
|
() => {
|
|
() => {
|
|
|
|
+ curLoading.close();
|
|
this.$notify({
|
|
this.$notify({
|
|
title: "提示",
|
|
title: "提示",
|
|
message: "试卷整体分配成功!",
|
|
message: "试卷整体分配成功!",
|
|
@@ -806,6 +820,7 @@ export default {
|
|
},
|
|
},
|
|
error => {
|
|
error => {
|
|
console.log(error.response);
|
|
console.log(error.response);
|
|
|
|
+ curLoading.close();
|
|
this.$notify({
|
|
this.$notify({
|
|
title: "错误",
|
|
title: "错误",
|
|
type: "error",
|
|
type: "error",
|