lrf402788946 4 gadi atpakaļ
vecāks
revīzija
180e819d49
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  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: '正在修改课程信息,请稍后...' });
       const res = await this.lessonUpdate(lobj);
       msg.close();
-      if (this.$checkRes(res, '修改成功', res.errmsg || '修改失败')) {
+      if (this.$checkRes(res, null, res.errmsg || '修改失败')) {
         msg = this.$message({ duration: 0, message: '重新读取课程信息,请稍后...' });
         await this.toClearSameDay(data);
         await this.toGetLesson();
@@ -307,7 +307,7 @@ export default {
       let msg = this.$message({ duration: 0, message: '正在修改,请稍后...' });
       const res = await this.classUpdate(data);
       msg.close();
-      if (this.$checkRes(res, '修改班级设置成', res.errmsg || '修改班级设置失败')) {
+      if (this.$checkRes(res, null, res.errmsg || '修改班级设置失败')) {
         msg = this.$message({ duration: 0, message: '重新读取班级信息,请稍后...' });
         await this.toGetClass();
         this.toSetData();