Procházet zdrojové kódy

修改 BookNew 组件传参

dusenyao před 1 rokem
rodič
revize
44c7f49699

+ 1 - 1
src/components/course/CompletionView.vue

@@ -62,7 +62,7 @@
       />
     </template>
     <template v-if="category === 'NEW'">
-      <BookNew v-if="context" ref="book" :context="context" :current-tree-i-d="courseID" />
+      <BookNew v-if="context" ref="book" :context="context" :current-tree-i-d="curCoursewareId" />
     </template>
 
     <div slot="footer"></div>

+ 1 - 1
src/components/course/FinishCourseware.vue

@@ -57,7 +57,7 @@
       />
     </template>
     <template v-if="category === 'NEW'">
-      <BookNew v-if="context" ref="book" :context="context" :current-tree-i-d="courseID" />
+      <BookNew v-if="context" ref="book" :context="context" :current-tree-i-d="coursewareId" />
     </template>
 
     <div v-if="category !== 'NPC' && category !== 'NNPE' && category !== 'RLC' && category !== 'NEW'" slot="footer">

+ 1 - 1
src/components/live/CurMaterial.vue

@@ -86,7 +86,7 @@
       </template>
 
       <template v-if="category === 'NEW'">
-        <BookNew v-if="context" ref="book" :context="context" :current-tree-i-d="courseID" />
+        <BookNew v-if="context" ref="book" :context="context" :current-tree-i-d="material_id" />
       </template>
     </template>
 

+ 1 - 1
src/components/preview/PreviewCourse.vue

@@ -45,7 +45,7 @@
         />
       </template>
       <template v-if="category === 'NEW'">
-        <BookNew v-if="context" ref="book" :context="context" :current-tree-i-d="courseID" />
+        <BookNew v-if="context" ref="book" :context="context" :current-tree-i-d="fileId" />
       </template>
     </template>
 

+ 1 - 1
src/views/live/teacher/CompleteList.vue

@@ -97,7 +97,7 @@
           />
         </template>
         <template v-if="category === 'NEW'">
-          <BookNew v-if="context" ref="book" :context="context" :current-tree-i-d="courseID" />
+          <BookNew v-if="context" ref="book" :context="context" :current-tree-i-d="material_id" />
         </template>
       </template>
       <template v-else>

+ 1 - 1
src/views/new_live/teacher/components/CompleteList.vue

@@ -97,7 +97,7 @@
           />
         </template>
         <template v-if="category === 'NEW'">
-          <BookNew v-if="context" ref="book" :context="context" :current-tree-i-d="courseID" />
+          <BookNew v-if="context" ref="book" :context="context" :current-tree-i-d="material_id" />
         </template>
       </template>
       <template v-else>

+ 1 - 1
src/views/new_task_view/components/common/CoursewareView.vue

@@ -53,7 +53,7 @@
       />
     </template>
     <template v-if="category === 'NEW'">
-      <BookNew v-if="context" ref="book" :context="context" :current-tree-i-d="courseID" />
+      <BookNew v-if="context" ref="book" :context="context" :current-tree-i-d="coursewareData.courseware_id" />
     </template>
   </div>
 </template>

+ 1 - 1
src/views/task_details/ShowCourseware.vue

@@ -46,7 +46,7 @@
         />
       </template>
       <template v-if="category === 'NEW'">
-        <BookNew v-if="context" ref="book" :context="context" :current-tree-i-d="courseID" />
+        <BookNew v-if="context" ref="book" :context="context" :current-tree-i-d="coursewareId" />
       </template>
     </div>
   </div>

+ 1 - 1
src/views/teacher/create_course/step_three/components/preview/task_preview/components/CoursewareView.vue

@@ -45,7 +45,7 @@
         :is-show-title="false"
       />
       <template v-if="category === 'NEW'">
-        <BookNew v-if="context" ref="book" :context="context" :current-tree-i-d="courseID" />
+        <BookNew v-if="context" ref="book" :context="context" :current-tree-i-d="coursewareId" />
       </template>
     </template>
   </div>