Parcourir la source

feat:隐藏看课记录“待看课”页面

caoliqin il y a 1 jour
Parent
commit
f468a2a035

+ 2 - 1
src/views/course/courseWatchLog/index.vue

@@ -232,7 +232,8 @@ export default {
     });
     this.getList();
     this.getDicts("sys_course_watch_log_type").then(response => {
-      this.logTypeOptions = response.data;
+      console.log(response.data);
+      this.logTypeOptions = response.data.filter(item => item.dictLabel !== "待看课");
     });
     getUserList().then(res=>{
       if(res.code === 200) {

+ 2 - 1
src/views/course/courseWatchLog/watchLog.vue

@@ -371,7 +371,8 @@ export default {
     });
     this.getList();
     this.getDicts("sys_course_watch_log_type").then(response => {
-      this.logTypeOptions = response.data;
+      console.log(response.data);
+      this.logTypeOptions = response.data.filter(item => item.dictLabel !== "待看课");
     });
 
     this.getDicts("sys_company_or").then(response => {