Explorar el Código

兼容新版教材

natasha hace 10 meses
padre
commit
aa2c9972ff
Se han modificado 4 ficheros con 25 adiciones y 1 borrados
  1. 1 1
      package.json
  2. 8 0
      src/views/bookView.vue
  3. 8 0
      src/views/courseView.vue
  4. 8 0
      src/views/courseWare.vue

+ 1 - 1
package.json

@@ -17,7 +17,7 @@
     "@tinymce/tinymce-vue": "^3.2.8",
     "awe-dnd": "^0.3.4",
     "axios": "0.18.1",
-    "book-ui": "file:../GCLS-Book-question-ui/book-ui-0.3.82.tgz",
+    "book-ui": "file:../GCLS-Book-question-ui/book-ui-0.3.84.tgz",
     "cnchar": "^3.0.1",
     "cnchar-all": "^3.0.1",
     "cnchar-order": "^3.0.1",

+ 8 - 0
src/views/bookView.vue

@@ -104,6 +104,14 @@
             :isAnswerItemShow="isAnswerItemShow"
           />
         </template>
+        <template v-if="category == 'NEW'">
+          <BookNew
+            v-if="chapterId && context"
+            ref="book"
+            :context="context"
+            :currentTreeID="chapterId"
+          />
+        </template>
       </div>
       <a
         v-if="chapterId && treeFlag"

+ 8 - 0
src/views/courseView.vue

@@ -154,6 +154,14 @@
             :bookAnswerContent="bookAnswerContent"
           />
         </template>
+        <template v-if="category == 'NEW'">
+          <BookNew
+            v-if="chapterId && context"
+            ref="book"
+            :context="context"
+            :currentTreeID="chapterId"
+          />
+        </template>
       </div>
     </div>
     <!-- <Preview :context="context" :queIndex="queIndex" /> -->

+ 8 - 0
src/views/courseWare.vue

@@ -105,6 +105,14 @@
             @finishTaskMaterial="finishTaskMaterial"
           />
         </template>
+        <template v-if="category == 'NEW'">
+          <BookNew
+            v-if="chapterId && context"
+            ref="book"
+            :context="context"
+            :currentTreeID="chapterId"
+          />
+        </template>
       </div>
     </div>
   </div>