Browse Source

修改样式

lex 10 months ago
parent
commit
dc6af31413

+ 1 - 1
dev-dist/sw.js

@@ -82,7 +82,7 @@ define(['./workbox-bb0550c6'], (function (workbox) { 'use strict';
     "revision": "3ca0b8505b4bec776b69afdba2768812"
   }, {
     "url": "index.html",
-    "revision": "0.te9il07ke8o"
+    "revision": "0.83pmts8nfoo"
   }], {});
   workbox.cleanupOutdatedCaches();
   workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {

+ 1 - 1
public/version.json

@@ -1 +1 @@
-{"version":1718764179887}
+{"version":1719224884179}

+ 2 - 0
src/components/layout/layoutTop.tsx

@@ -64,6 +64,7 @@ export default defineComponent({
     });
 
     const oncheckEditStatus = (callBack: any) => {
+      showHeadFlag.value = false;
       if (prepareStore.getIsEditResource) {
         eventGlobal.emit('pageBeforeLeave', () => callBack());
       } else {
@@ -79,6 +80,7 @@ export default defineComponent({
     };
     const suggestionOptionRef = ref();
     const resetPwd = () => {
+      showHeadFlag.value = false;
       showWord.value = true;
       userInfoStatus.value = false;
     };

+ 5 - 5
src/views/attend-class/index.tsx

@@ -1261,16 +1261,16 @@ export default defineComponent({
         id: 12
       },
       {
-        name: '切换章节',
-        icon: bottomIconSwitch,
-        id: 13
-      },
-      {
         name: '资源列表',
         icon: bottomIconResource,
         id: 14
       },
       {
+        name: '切换章节',
+        icon: bottomIconSwitch,
+        id: 13
+      },
+      {
         name: '曲目资源',
         icon: rightIconMusic,
         id: 9

+ 2 - 1
src/views/prepare-lessons/components/lesson-main/courseware-presets/index.module.less

@@ -88,6 +88,7 @@
       display: flex;
       align-items: center;
       justify-content: center;
+      z-index: 99;
 
       svg {
         transform: rotate(180deg);
@@ -260,7 +261,7 @@
   justify-content: flex-start;
   padding: 10px 20px 12px;
   // padding: 0 20px 0px;
-  gap: 10px 0;
+  gap: 20px 0;
   margin: 0 -10px 0;
   // height: 313px;
 

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

@@ -605,7 +605,12 @@ export default defineComponent({
         </div>
 
         <div class={styles.presetsRight} id="presetsRightRef">
-          <NTooltip showArrow={false} animated={false} duration={0} delay={0}>
+          <NTooltip
+            showArrow={false}
+            show={false}
+            animated={false}
+            duration={0}
+            delay={0}>
             {{
               trigger: () => (
                 <div

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

@@ -274,6 +274,7 @@ export default defineComponent({
           content: '该资源已下架,是否删除?',
           positiveText: '确定',
           negativeText: '取消',
+          maskClosable: false,
           onPositiveClick: async () => {
             forms.removeIds.push(item.id);
             await teacherKnowledgeMaterialDelete({ ids: item.id });

+ 1 - 0
src/views/prepare-lessons/components/lesson-main/train/index.tsx

@@ -178,6 +178,7 @@ export default defineComponent({
           content: '该训练已下架,是否删除?',
           positiveText: '确定',
           negativeText: '取消',
+          maskClosable: false,
           onPositiveClick: async () => {
             forms.removeIds.push(item.id);
             await lessonPreTrainingDelete({ ids: item.id });

+ 1 - 1
src/views/prepare-lessons/model/courseware-type/index.module.less

@@ -7,7 +7,7 @@
 
   &:hover {
     // background: #FFFFFF;
-    box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1);
+    // box-shadow: 0 2px 15px 0 rgba(0, 0, 0, 0.1);
     border-radius: 15px;
     transition: all .2s ease;
 

+ 17 - 15
src/views/prepare-lessons/model/select-resources/index.tsx

@@ -1,5 +1,5 @@
 import { NTabPane, NTabs } from 'naive-ui';
-import { defineComponent, onMounted, ref, toRefs } from 'vue';
+import { defineComponent, nextTick, onMounted, ref, toRefs } from 'vue';
 import styles from './index.module.less';
 import SelectItem from './select-item';
 import { useResizeObserver } from '@vueuse/core';
@@ -25,20 +25,22 @@ export default defineComponent({
     const catchStore = useCatchStore();
 
     onMounted(async () => {
-      useResizeObserver(
-        document.querySelector(
-          '.select-resource .n-tabs-nav--top'
-        ) as HTMLElement,
-        (entries: any) => {
-          const entry = entries[0];
-          const { height } = entry.contentRect;
-          console.log(height, 'height - 11');
-          document.documentElement.style.setProperty(
-            '--modal-lesson-tab-height',
-            height + 'px'
-          );
-        }
-      );
+      nextTick(() => {
+        useResizeObserver(
+          document.querySelector(
+            '.select-resource .n-tabs-nav--top'
+          ) as HTMLElement,
+          (entries: any) => {
+            const entry = entries[0];
+            const { height } = entry.contentRect;
+            console.log(height, 'height - 11');
+            document.documentElement.style.setProperty(
+              '--modal-lesson-tab-height',
+              height + 'px'
+            );
+          }
+        );
+      });
       // 获取教材分类列表
       await catchStore.getMusicSheetCategory(true);
     });

+ 1 - 0
src/views/setting/components/schoolInfo/index.tsx

@@ -233,6 +233,7 @@ export default defineComponent({
         content: `是否${statuStr}"${row.nickname}"?`,
         positiveText: '确定',
         negativeText: '取消',
+        maskClosable: false,
         onPositiveClick: async () => {
           await api_tenantInfoUpdateStatus({
             ids: [row.id],