Explorar el Código

隐藏的资源不显示

zq hace 2 semanas
padre
commit
73af221eb0
Se han modificado 1 ficheros con 7 adiciones y 6 borrados
  1. 7 6
      src/web_preview/index.vue

+ 7 - 6
src/web_preview/index.vue

@@ -596,7 +596,7 @@ export default {
         ({ courseware_info }) => {
           this.courseware_info = { ...this.courseware_info, ...courseware_info };
           this.getLangList();
-        }
+        },
       );
     },
     /**
@@ -659,7 +659,7 @@ export default {
           });
 
           if (content_group_row_list) this.content_group_row_list = JSON.parse(content_group_row_list) || [];
-        }
+        },
       );
     },
     processHtmlString(pElements, styleConfig, isClear) {
@@ -683,7 +683,7 @@ export default {
       GetLanguageTypeList({ book_id: this.courseware_info.book_id, is_contain_zh: 'true' }).then(
         ({ language_type_list }) => {
           this.langList = language_type_list;
-        }
+        },
       );
     },
 
@@ -747,7 +747,7 @@ export default {
       this.$refs.courserware.handleResult(
         this.$refs.previewMain.scrollTop,
         this.$refs.previewMain.scrollLeft,
-        this.select_node
+        this.select_node,
       );
     },
 
@@ -878,6 +878,7 @@ export default {
         book_id: this.projectId,
         book_chapter_node_id: this.activeBookChapterId,
         type: parseInt(this.drawerType),
+        scope: 0,
       };
       await PageQueryBookResourceList(params)
         .then(({ total_count, resource_list }) => {
@@ -1083,7 +1084,7 @@ export default {
           x.coursewareId === note.coursewareId &&
           x.blockId === note.blockId &&
           x.startIndex === note.startIndex &&
-          x.endIndex === note.endIndex
+          x.endIndex === note.endIndex,
       );
       if (old) {
         this.oldRichData = old;
@@ -1177,7 +1178,7 @@ export default {
           x.coursewareId === collect.coursewareId &&
           x.blockId === collect.blockId &&
           x.startIndex === collect.startIndex &&
-          x.endIndex === collect.endIndex
+          x.endIndex === collect.endIndex,
       );
       if (old) {
         this.$message({