|
@@ -484,6 +484,7 @@ export default {
|
|
|
let orgId = this.formSearch.orgId;
|
|
|
if (checkEmptyNumber(orgId)) {
|
|
|
this.$notify({
|
|
|
+ title: "提示",
|
|
|
message: "请选择学校!",
|
|
|
type: "warning"
|
|
|
});
|
|
@@ -493,6 +494,7 @@ export default {
|
|
|
let examId = this.formSearch.examId;
|
|
|
if (checkEmptyNumber(examId)) {
|
|
|
this.$notify({
|
|
|
+ title: "提示",
|
|
|
message: "请选择考试!",
|
|
|
type: "warning"
|
|
|
});
|
|
@@ -512,8 +514,13 @@ export default {
|
|
|
this.loading = false;
|
|
|
},
|
|
|
error => {
|
|
|
- console.log(error);
|
|
|
this.loading = false;
|
|
|
+ console.log(error.response);
|
|
|
+ this.$notify({
|
|
|
+ title: "错误",
|
|
|
+ type: "error",
|
|
|
+ message: error.response.data.desc
|
|
|
+ });
|
|
|
}
|
|
|
);
|
|
|
},
|
|
@@ -568,7 +575,8 @@ export default {
|
|
|
this.selectDefault();
|
|
|
},
|
|
|
error => {
|
|
|
- console.log(error);
|
|
|
+ console.log(error.response);
|
|
|
+ // ignore
|
|
|
}
|
|
|
);
|
|
|
},
|
|
@@ -599,6 +607,7 @@ export default {
|
|
|
let orgId = this.formSearch.orgId;
|
|
|
if (checkEmptyNumber(orgId)) {
|
|
|
this.$notify({
|
|
|
+ title: "提示",
|
|
|
message: "请选择学校!",
|
|
|
type: "warning"
|
|
|
});
|
|
@@ -608,6 +617,7 @@ export default {
|
|
|
let examId = this.formSearch.examId;
|
|
|
if (checkEmptyNumber(examId)) {
|
|
|
this.$notify({
|
|
|
+ title: "提示",
|
|
|
message: "请选择考试!",
|
|
|
type: "warning"
|
|
|
});
|
|
@@ -629,21 +639,24 @@ export default {
|
|
|
this.$http.post(url).then(
|
|
|
() => {
|
|
|
this.$notify({
|
|
|
- type: "success",
|
|
|
- message: "刷新成功!"
|
|
|
+ title: "提示",
|
|
|
+ message: "刷新成功!",
|
|
|
+ type: "success"
|
|
|
});
|
|
|
this.searchRecords();
|
|
|
},
|
|
|
- () => {
|
|
|
+ error => {
|
|
|
+ console.log(error.response);
|
|
|
this.$notify({
|
|
|
+ title: "错误",
|
|
|
type: "error",
|
|
|
- message: "刷新失败!"
|
|
|
+ message: error.response.data.desc
|
|
|
});
|
|
|
}
|
|
|
);
|
|
|
})
|
|
|
.catch(() => {
|
|
|
- //ignore
|
|
|
+ // ignore
|
|
|
});
|
|
|
},
|
|
|
editBackupSetting() {
|
|
@@ -657,16 +670,18 @@ export default {
|
|
|
this.$http.post(url, this.backupSettingForm).then(
|
|
|
() => {
|
|
|
this.$notify({
|
|
|
+ title: "提示",
|
|
|
type: "success",
|
|
|
message: "保存备份设置成功!"
|
|
|
});
|
|
|
this.backupSettingDialog = false;
|
|
|
},
|
|
|
error => {
|
|
|
- console.log(error);
|
|
|
+ console.log(error.response);
|
|
|
this.$notify({
|
|
|
- message: "保存备份设置失败!",
|
|
|
- type: "error"
|
|
|
+ title: "错误",
|
|
|
+ type: "error",
|
|
|
+ message: error.response.data.desc
|
|
|
});
|
|
|
}
|
|
|
);
|
|
@@ -718,7 +733,8 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
error => {
|
|
|
- console.log(error);
|
|
|
+ console.log(error.response);
|
|
|
+ // ignore
|
|
|
}
|
|
|
);
|
|
|
},
|
|
@@ -732,6 +748,7 @@ export default {
|
|
|
this.$http.post(url, this.otherSettingForm).then(
|
|
|
() => {
|
|
|
this.$notify({
|
|
|
+ title: "提示",
|
|
|
type: "success",
|
|
|
message: "保存其它事项成功!"
|
|
|
});
|
|
@@ -739,10 +756,11 @@ export default {
|
|
|
this.searchRecords();
|
|
|
},
|
|
|
error => {
|
|
|
- console.log(error);
|
|
|
+ console.log(error.response);
|
|
|
this.$notify({
|
|
|
- message: "保存其它事项失败!",
|
|
|
- type: "error"
|
|
|
+ title: "错误",
|
|
|
+ type: "error",
|
|
|
+ message: error.response.data.desc
|
|
|
});
|
|
|
}
|
|
|
);
|
|
@@ -760,15 +778,18 @@ export default {
|
|
|
this.$http.post(url).then(
|
|
|
() => {
|
|
|
this.$notify({
|
|
|
+ title: "提示",
|
|
|
type: "success",
|
|
|
message: "删除当前事项成功!"
|
|
|
});
|
|
|
this.searchRecords();
|
|
|
},
|
|
|
- () => {
|
|
|
+ error => {
|
|
|
+ console.log(error.response);
|
|
|
this.$notify({
|
|
|
+ title: "错误",
|
|
|
type: "error",
|
|
|
- message: "删除当前事项失败!"
|
|
|
+ message: error.response.data.desc
|
|
|
});
|
|
|
}
|
|
|
);
|
|
@@ -781,6 +802,7 @@ export default {
|
|
|
/* 打开其它事项弹窗 */
|
|
|
if (checkEmptyNumber(this.projectId)) {
|
|
|
this.$notify({
|
|
|
+ title: "提示",
|
|
|
message: "请选择学校和考试!",
|
|
|
type: "warning"
|
|
|
});
|