|
@@ -415,13 +415,15 @@ export default {
|
|
.catch(() => {});
|
|
.catch(() => {});
|
|
} else {
|
|
} else {
|
|
this.fullscreenLoading = true;
|
|
this.fullscreenLoading = true;
|
|
- this.$http.put(QUESTION_API + "/question", this.quesModel).then(() => {
|
|
|
|
- this.$notify({
|
|
|
|
- message: "保存成功",
|
|
|
|
- type: "success",
|
|
|
|
- });
|
|
|
|
- this.fullscreenLoading = false;
|
|
|
|
- });
|
|
|
|
|
|
+ this.$httpWithMsg
|
|
|
|
+ .put(QUESTION_API + "/question", this.quesModel)
|
|
|
|
+ .then(() => {
|
|
|
|
+ this.$notify({
|
|
|
|
+ message: "保存成功",
|
|
|
|
+ type: "success",
|
|
|
|
+ });
|
|
|
|
+ })
|
|
|
|
+ .finally(() => (this.fullscreenLoading = false));
|
|
}
|
|
}
|
|
},
|
|
},
|
|
//新增试题
|
|
//新增试题
|
|
@@ -434,7 +436,7 @@ export default {
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
this.fullscreenLoading = true;
|
|
this.fullscreenLoading = true;
|
|
- this.$http
|
|
|
|
|
|
+ this.$httpWithMsg
|
|
.post(
|
|
.post(
|
|
QUESTION_API +
|
|
QUESTION_API +
|
|
"/paper/addQuestion/" +
|
|
"/paper/addQuestion/" +
|
|
@@ -451,9 +453,7 @@ export default {
|
|
});
|
|
});
|
|
this.$router.push({ path: "/questions/question_list/0" });
|
|
this.$router.push({ path: "/questions/question_list/0" });
|
|
})
|
|
})
|
|
- .catch(() => {
|
|
|
|
- this.fullscreenLoading = false;
|
|
|
|
- });
|
|
|
|
|
|
+ .finally(() => (this.fullscreenLoading = false));
|
|
},
|
|
},
|
|
//新增选项
|
|
//新增选项
|
|
addQuesOption() {
|
|
addQuesOption() {
|