|
@@ -1514,7 +1514,7 @@ export default {
|
|
callback: (action) => {
|
|
callback: (action) => {
|
|
if (action == "confirm") {
|
|
if (action == "confirm") {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
- this.$http
|
|
|
|
|
|
+ this.$httpWithMsg
|
|
.put(
|
|
.put(
|
|
QUESTION_API +
|
|
QUESTION_API +
|
|
"/paperDetailUnit/sub/" +
|
|
"/paperDetailUnit/sub/" +
|
|
@@ -1531,9 +1531,8 @@ export default {
|
|
message: vectorStr + "成功",
|
|
message: vectorStr + "成功",
|
|
type: "success",
|
|
type: "success",
|
|
});
|
|
});
|
|
- this.loading = false;
|
|
|
|
})
|
|
})
|
|
- .catch(() => {
|
|
|
|
|
|
+ .finally(() => {
|
|
this.loading = false;
|
|
this.loading = false;
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@@ -1570,7 +1569,7 @@ export default {
|
|
callback: (action) => {
|
|
callback: (action) => {
|
|
if (action == "confirm") {
|
|
if (action == "confirm") {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
- this.$http
|
|
|
|
|
|
+ this.$httpWithMsg
|
|
.put(
|
|
.put(
|
|
QUESTION_API +
|
|
QUESTION_API +
|
|
"/paperDetailUnit/" +
|
|
"/paperDetailUnit/" +
|
|
@@ -1587,9 +1586,8 @@ export default {
|
|
message: vectorStr + "成功",
|
|
message: vectorStr + "成功",
|
|
type: "success",
|
|
type: "success",
|
|
});
|
|
});
|
|
- this.loading = false;
|
|
|
|
})
|
|
})
|
|
- .catch(() => {
|
|
|
|
|
|
+ .finally(() => {
|
|
this.loading = false;
|
|
this.loading = false;
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@@ -1625,7 +1623,7 @@ export default {
|
|
callback: (action) => {
|
|
callback: (action) => {
|
|
if (action == "confirm") {
|
|
if (action == "confirm") {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
- this.$http
|
|
|
|
|
|
+ this.$httpWithMsg
|
|
.put(
|
|
.put(
|
|
QUESTION_API +
|
|
QUESTION_API +
|
|
"/paperDetail/" +
|
|
"/paperDetail/" +
|
|
@@ -1642,9 +1640,8 @@ export default {
|
|
message: vectorStr + "成功",
|
|
message: vectorStr + "成功",
|
|
type: "success",
|
|
type: "success",
|
|
});
|
|
});
|
|
- this.loading = false;
|
|
|
|
})
|
|
})
|
|
- .catch(() => {
|
|
|
|
|
|
+ .finally(() => {
|
|
this.loading = false;
|
|
this.loading = false;
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@@ -2227,6 +2224,13 @@ export default {
|
|
},
|
|
},
|
|
//新增选项
|
|
//新增选项
|
|
addQuesOption() {
|
|
addQuesOption() {
|
|
|
|
+ if (this.quesModel.quesOptions.length == 20) {
|
|
|
|
+ this.$notify({
|
|
|
|
+ message: "选项最多20个",
|
|
|
|
+ type: "error",
|
|
|
|
+ });
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
this.quesModel.quesOptions.push({
|
|
this.quesModel.quesOptions.push({
|
|
number: "",
|
|
number: "",
|
|
optionBody: "",
|
|
optionBody: "",
|