Browse Source

Merge branch 'hqyDev' of http://git.dayaedu.com/lex/classroom-instruments into jenkins

黄琪勇 4 days ago
parent
commit
2c84b9f660

+ 4 - 0
dev-dist/sw.js

@@ -83,10 +83,14 @@ define(['./workbox-88bf3160'], (function (workbox) { 'use strict';
   }, {
   }, {
     "url": "index.html",
     "url": "index.html",
 <<<<<<< HEAD
 <<<<<<< HEAD
+<<<<<<< HEAD
     "revision": "0.3rkub68fa8"
     "revision": "0.3rkub68fa8"
 =======
 =======
     "revision": "0.15ep1dnlqh"
     "revision": "0.15ep1dnlqh"
 >>>>>>> d3a0451dfca4987c04f7dd71674fa3dfaebcb710
 >>>>>>> d3a0451dfca4987c04f7dd71674fa3dfaebcb710
+=======
+    "revision": "0.4v8s4holqi"
+>>>>>>> 31c8ce6834d9dbe55da3ef83bbe3bf6d61486328
   }], {});
   }], {});
   workbox.cleanupOutdatedCaches();
   workbox.cleanupOutdatedCaches();
   workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {
   workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {

+ 5 - 1
public/version.json

@@ -1 +1,5 @@
-{"version":1734685835376}
+<<<<<<< HEAD
+{"version":1734685835376}
+=======
+{"version":1734921568773}
+>>>>>>> 31c8ce6834d9dbe55da3ef83bbe3bf6d61486328

+ 7 - 1
src/views/attend-class/component/pptList.tsx

@@ -9,6 +9,10 @@ export default defineComponent({
     pptData: {
     pptData: {
       type: Object,
       type: Object,
       default: () => ({})
       default: () => ({})
+    },
+    fromType: {
+      type: String, // 'PLATFORM' | 'TEACHER' | 'CLASS'
+      default: 'TEACHER'
     }
     }
   },
   },
   emits: ['initPPT', 'changeSlideIndex'],
   emits: ['initPPT', 'changeSlideIndex'],
@@ -17,7 +21,9 @@ export default defineComponent({
     const iframeRef = ref<HTMLIFrameElement>();
     const iframeRef = ref<HTMLIFrameElement>();
     const src = `${vaildPPTUrl()}/#/pptScreen?id=${
     const src = `${vaildPPTUrl()}/#/pptScreen?id=${
       props.pptData.id
       props.pptData.id
-    }&Authorization=${userStore.getToken}&hideFullScreen=true`;
+    }&Authorization=${userStore.getToken}&hideFullScreen=true&fromType=${
+      props.fromType
+    }`;
     // 上一页下一页
     // 上一页下一页
     function handleChangeSlide(type: 'prev' | 'next') {
     function handleChangeSlide(type: 'prev' | 'next') {
       iframeRef.value?.contentWindow?.postMessage(
       iframeRef.value?.contentWindow?.postMessage(

+ 14 - 8
src/views/attend-class/index.tsx

@@ -1998,7 +1998,13 @@ export default defineComponent({
               : styles.rightColumnHide
               : styles.rightColumnHide
           ]}>
           ]}>
           {rightList.map((item: any) => (
           {rightList.map((item: any) => (
-            <div class={styles.columnItemBox}>
+            <div
+              class={[
+                styles.columnItemBox,
+                item.id === 14 && data.coursewareType === 'PPT'
+                  ? styles.hideBtn
+                  : ''
+              ]}>
               <div
               <div
                 class={[
                 class={[
                   styles.columnItem,
                   styles.columnItem,
@@ -2007,9 +2013,6 @@ export default defineComponent({
                   (item.id === 11 && !isUpArrow.value) ||
                   (item.id === 11 && !isUpArrow.value) ||
                   (item.id === 12 && !isDownArrow.value)
                   (item.id === 12 && !isDownArrow.value)
                     ? styles.itemDisabled
                     ? styles.itemDisabled
-                    : '',
-                  item.id === 14 && data.coursewareType === 'PPT'
-                    ? styles.hideBtn
                     : ''
                     : ''
                 ]}
                 ]}
                 onClick={() => operateRightBtn(item.id)}>
                 onClick={() => operateRightBtn(item.id)}>
@@ -2076,7 +2079,13 @@ export default defineComponent({
               : styles.leftColumnHide
               : styles.leftColumnHide
           ]}>
           ]}>
           {rightList.map((item: any) => (
           {rightList.map((item: any) => (
-            <div class={styles.columnItemBox}>
+            <div
+              class={[
+                styles.columnItemBox,
+                item.id === 14 && data.coursewareType === 'PPT'
+                  ? styles.hideBtn
+                  : ''
+              ]}>
               <div
               <div
                 class={[
                 class={[
                   styles.columnItem,
                   styles.columnItem,
@@ -2085,9 +2094,6 @@ export default defineComponent({
                   (item.id === 11 && !isUpArrow.value) ||
                   (item.id === 11 && !isUpArrow.value) ||
                   (item.id === 12 && !isDownArrow.value)
                   (item.id === 12 && !isDownArrow.value)
                     ? styles.itemDisabled
                     ? styles.itemDisabled
-                    : '',
-                  item.id === 14 && data.coursewareType === 'PPT'
-                    ? styles.hideBtn
                     : ''
                     : ''
                 ]}
                 ]}
                 onClick={() => operateRightBtn(item.id)}>
                 onClick={() => operateRightBtn(item.id)}>

+ 2 - 1
src/views/attend-class/model/select-class/index.tsx

@@ -58,7 +58,8 @@ export default defineComponent({
             fromChapterLessonCoursewareId: item.fromChapterLessonCoursewareId,
             fromChapterLessonCoursewareId: item.fromChapterLessonCoursewareId,
             name: item.name,
             name: item.name,
             coverImg: firstItem?.bizInfo.coverImg,
             coverImg: firstItem?.bizInfo.coverImg,
-            type: firstItem?.bizInfo.type
+            type: firstItem?.bizInfo.type,
+            coursewareType: item.coursewareType
           });
           });
         });
         });
         forms.tableList = tempList;
         forms.tableList = tempList;

+ 1 - 1
src/views/prepare-lessons/components/lesson-main/courseware-presets/index.tsx

@@ -1118,7 +1118,7 @@ export default defineComponent({
               rule={[
               rule={[
                 {
                 {
                   required: true,
                   required: true,
-                  message: '请输入适用乐器',
+                  message: '请选择适用乐器',
                   trigger: ['blur', 'change'],
                   trigger: ['blur', 'change'],
                   type: 'array'
                   type: 'array'
                 }
                 }

+ 8 - 7
src/views/prepare-lessons/model/courseware-type/index.tsx

@@ -74,14 +74,15 @@ export default defineComponent({
             props.isShowAdd && styles.isShowAdd
             props.isShowAdd && styles.isShowAdd
           ]}
           ]}
           onClick={() => emit('click')}>
           onClick={() => emit('click')}>
-          {props.isShowOpenFlag && (
-            <div class={styles.statusCon}>
-              <div class={styles.status}>
-                {props.item.coursewareType === 'PPT' ? 'PPT' : '传统课件'}
-              </div>
-              {props.item.openFlag && <div class={styles.status}>公开</div>}
+          <div class={styles.statusCon}>
+            <div class={styles.status}>
+              {props.item.coursewareType === 'PPT' ? 'PPT' : '传统课件'}
             </div>
             </div>
-          )}
+            {props.isShowOpenFlag && props.item.openFlag && (
+              <div class={styles.status}>公开</div>
+            )}
+          </div>
+
           <NImage
           <NImage
             objectFit="cover"
             objectFit="cover"
             previewDisabled
             previewDisabled

+ 2 - 1
src/views/prepare-lessons/model/related-class/index.tsx

@@ -71,7 +71,8 @@ export default defineComponent({
             coverImg: firstItem?.bizInfo.coverImg,
             coverImg: firstItem?.bizInfo.coverImg,
             type: firstItem?.bizInfo.type,
             type: firstItem?.bizInfo.type,
             isAdd: item.addFlag,
             isAdd: item.addFlag,
-            isNotWork: item.lessonPreTrainingNum <= 0 ? true : false // 是否布置作业
+            isNotWork: item.lessonPreTrainingNum <= 0 ? true : false, // 是否布置作业
+            coursewareType: item.coursewareType
           });
           });
         });
         });