浏览代码

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

caoliqin 1 天之前
父节点
当前提交
f468a2a035
共有 2 个文件被更改,包括 4 次插入2 次删除
  1. 2 1
      src/views/course/courseWatchLog/index.vue
  2. 2 1
      src/views/course/courseWatchLog/watchLog.vue

+ 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 => {