|
@@ -625,22 +625,24 @@ export default {
|
|
type: "warning",
|
|
type: "warning",
|
|
}).then(() => {
|
|
}).then(() => {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
- this.$http.put(QUESTION_API + "/paper_storage/recovery/" + row.id).then(
|
|
|
|
- () => {
|
|
|
|
- this.$notify({
|
|
|
|
- message: "操作成功",
|
|
|
|
- type: "success",
|
|
|
|
- });
|
|
|
|
- this.searchGenPaper();
|
|
|
|
- },
|
|
|
|
- (response) => {
|
|
|
|
- this.$notify({
|
|
|
|
- message: response.response.data.desc,
|
|
|
|
- type: "error",
|
|
|
|
- });
|
|
|
|
- this.loading = false;
|
|
|
|
- }
|
|
|
|
- );
|
|
|
|
|
|
+ this.$httpWithMsg
|
|
|
|
+ .put(QUESTION_API + "/paper_storage/recovery/" + row.id)
|
|
|
|
+ .then(
|
|
|
|
+ () => {
|
|
|
|
+ this.$notify({
|
|
|
|
+ message: "操作成功",
|
|
|
|
+ type: "success",
|
|
|
|
+ });
|
|
|
|
+ this.searchGenPaper();
|
|
|
|
+ },
|
|
|
|
+ (response) => {
|
|
|
|
+ this.$notify({
|
|
|
|
+ message: response.response.data.desc,
|
|
|
|
+ type: "error",
|
|
|
|
+ });
|
|
|
|
+ this.loading = false;
|
|
|
|
+ }
|
|
|
|
+ );
|
|
});
|
|
});
|
|
},
|
|
},
|
|
recoveryPapers() {
|
|
recoveryPapers() {
|
|
@@ -756,11 +758,13 @@ export default {
|
|
this.currentPage = 1;
|
|
this.currentPage = 1;
|
|
this.loading = true;
|
|
this.loading = true;
|
|
var url = QUESTION_API + "/genPaper/" + pageNo + "/" + this.pageSize;
|
|
var url = QUESTION_API + "/genPaper/" + pageNo + "/" + this.pageSize;
|
|
- this.$http.get(url, { params: this.formSearch }).then((response) => {
|
|
|
|
- this.tableData = response.data.content;
|
|
|
|
- this.total = response.data.totalElements;
|
|
|
|
- this.currentPage = Number(pageNo);
|
|
|
|
- });
|
|
|
|
|
|
+ this.$httpWithMsg
|
|
|
|
+ .get(url, { params: this.formSearch })
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.tableData = response.data.content;
|
|
|
|
+ this.total = response.data.totalElements;
|
|
|
|
+ this.currentPage = Number(pageNo);
|
|
|
|
+ });
|
|
this.loading = false;
|
|
this.loading = false;
|
|
},
|
|
},
|
|
genPaperDetail() {
|
|
genPaperDetail() {
|
|
@@ -820,7 +824,7 @@ export default {
|
|
type: "warning",
|
|
type: "warning",
|
|
}).then(() => {
|
|
}).then(() => {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
- this.$http.delete(QUESTION_API + "/paper/" + row.id).then(
|
|
|
|
|
|
+ this.$httpWithMsg.delete(QUESTION_API + "/paper/" + row.id).then(
|
|
() => {
|
|
() => {
|
|
this.$notify({
|
|
this.$notify({
|
|
message: "删除成功",
|
|
message: "删除成功",
|
|
@@ -851,23 +855,16 @@ export default {
|
|
type: "warning",
|
|
type: "warning",
|
|
}).then(() => {
|
|
}).then(() => {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
- this.$http.delete(QUESTION_API + "/paper/" + paperIds).then(
|
|
|
|
- () => {
|
|
|
|
|
|
+ this.$httpWithMsg
|
|
|
|
+ .delete(QUESTION_API + "/paper/" + paperIds)
|
|
|
|
+ .then(() => {
|
|
this.$notify({
|
|
this.$notify({
|
|
message: "删除成功",
|
|
message: "删除成功",
|
|
type: "success",
|
|
type: "success",
|
|
});
|
|
});
|
|
this.searchGenPaper();
|
|
this.searchGenPaper();
|
|
this.selectedPaperIds = [];
|
|
this.selectedPaperIds = [];
|
|
- },
|
|
|
|
- (response) => {
|
|
|
|
- this.$notify({
|
|
|
|
- message: response.response.data.desc,
|
|
|
|
- type: "error",
|
|
|
|
- });
|
|
|
|
- this.loading = false;
|
|
|
|
- }
|
|
|
|
- );
|
|
|
|
|
|
+ });
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
this.$notify({
|
|
this.$notify({
|