|
@@ -0,0 +1,76 @@
|
|
|
+<template>
|
|
|
+ <div class="courseware-container">
|
|
|
+ <template v-if="category === 'OC' || category.length === 0">
|
|
|
+ <bookquestion :context="context" />
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template v-else-if="category === 'AILP'">
|
|
|
+ <bookailp :context="context" :ui-type="ui_type" :preview-width="720" :preview-height="405" />
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template v-else-if="category === 'NPC'">
|
|
|
+ <booknpc
|
|
|
+ v-if="context"
|
|
|
+ ref="book"
|
|
|
+ :context="context"
|
|
|
+ task-model=""
|
|
|
+ :is-show-save="false"
|
|
|
+ :is-show-title="false"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ :preview-type="previewType"
|
|
|
+ :preview-group-id="previewGroupId"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template v-if="category === 'NNPE'">
|
|
|
+ <booknnpe
|
|
|
+ v-if="context"
|
|
|
+ ref="book"
|
|
|
+ :context="context"
|
|
|
+ :theme-color="themeColor"
|
|
|
+ task-model=""
|
|
|
+ :is-show-save="false"
|
|
|
+ :is-show-title="false"
|
|
|
+ :preview-type="previewType"
|
|
|
+ :preview-group-id="previewGroupId"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template v-if="category === 'RLC'">
|
|
|
+ <bookrlc v-if="context" :context="context" :theme-color="themeColor" :book-font-size="bookFontSize" />
|
|
|
+ </template>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+export default {
|
|
|
+ name: 'CoursewareView'
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<script setup>
|
|
|
+import { useShowCourseware } from '@/components/course/courseware.js';
|
|
|
+
|
|
|
+const props = defineProps({
|
|
|
+ coursewareId: {
|
|
|
+ type: String,
|
|
|
+ required: true
|
|
|
+ },
|
|
|
+ groupIdSelectedInfo: {
|
|
|
+ type: String,
|
|
|
+ required: true
|
|
|
+ }
|
|
|
+});
|
|
|
+
|
|
|
+const { context, ui_type, category, themeColor, bookFontSize, previewType, previewGroupId } = useShowCourseware(
|
|
|
+ props.coursewareId,
|
|
|
+ props.groupIdSelectedInfo,
|
|
|
+ 'previewCheckShow'
|
|
|
+);
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+.courseware-container {
|
|
|
+ overflow: auto;
|
|
|
+}
|
|
|
+</style>
|