lrf402788946 4 vuotta sitten
vanhempi
commit
2e30d1b794
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      src/views/lesson/parts/class-table.vue

+ 2 - 2
src/views/lesson/parts/class-table.vue

@@ -123,9 +123,9 @@ export default {
     async search() {
     async search() {
       if (this.defaultOption.classid) {
       if (this.defaultOption.classid) {
         let classid = this.defaultOption.classid;
         let classid = this.defaultOption.classid;
-        const res = await this.fetch({ model: 'lesson', classid: classid });
+        const res = await this.fetch({ model: 'lesson', classid: classid, status: '1' });
         if (!_.get(res.data, 'lessons') || res.data.lessons.length <= 0) {
         if (!_.get(res.data, 'lessons') || res.data.lessons.length <= 0) {
-          this.$message.warning('请先将本期的课程按模板进行初始化');
+          this.$message.warning('课表还未确认,如有疑问请联系中心管理员');
           return;
           return;
         }
         }
         this.$set(this, `lessonInfo`, _.omit(res.data, ['lessons']));
         this.$set(this, `lessonInfo`, _.omit(res.data, ['lessons']));