lrf402788946 4 年之前
父节点
当前提交
180e819d49
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/views/train-plan/term-lesson.vue

+ 2 - 2
src/views/train-plan/term-lesson.vue

@@ -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();