|
@@ -264,7 +264,7 @@ export default {
|
|
let msg = this.$message({ duration: 0, message: '正在修改课程信息,请稍后...' });
|
|
let msg = this.$message({ duration: 0, message: '正在修改课程信息,请稍后...' });
|
|
const res = await this.lessonUpdate(lobj);
|
|
const res = await this.lessonUpdate(lobj);
|
|
msg.close();
|
|
msg.close();
|
|
- if (this.$checkRes(res, '修改成功', res.errmsg || '修改失败')) {
|
|
|
|
|
|
+ if (this.$checkRes(res, null, res.errmsg || '修改失败')) {
|
|
msg = this.$message({ duration: 0, message: '重新读取课程信息,请稍后...' });
|
|
msg = this.$message({ duration: 0, message: '重新读取课程信息,请稍后...' });
|
|
await this.toClearSameDay(data);
|
|
await this.toClearSameDay(data);
|
|
await this.toGetLesson();
|
|
await this.toGetLesson();
|
|
@@ -307,7 +307,7 @@ export default {
|
|
let msg = this.$message({ duration: 0, message: '正在修改,请稍后...' });
|
|
let msg = this.$message({ duration: 0, message: '正在修改,请稍后...' });
|
|
const res = await this.classUpdate(data);
|
|
const res = await this.classUpdate(data);
|
|
msg.close();
|
|
msg.close();
|
|
- if (this.$checkRes(res, '修改班级设置成', res.errmsg || '修改班级设置失败')) {
|
|
|
|
|
|
+ if (this.$checkRes(res, null, res.errmsg || '修改班级设置失败')) {
|
|
msg = this.$message({ duration: 0, message: '重新读取班级信息,请稍后...' });
|
|
msg = this.$message({ duration: 0, message: '重新读取班级信息,请稍后...' });
|
|
await this.toGetClass();
|
|
await this.toGetClass();
|
|
this.toSetData();
|
|
this.toSetData();
|