lex-xin hai 8 meses
pai
achega
615a4ff2ce

+ 8 - 8
src/views/xiaoku-list/detail.tsx

@@ -1,4 +1,4 @@
-import { computed, defineComponent, onMounted, onUnmounted, reactive, ref } from 'vue';
+import { computed, defineComponent, nextTick, onMounted, onUnmounted, reactive, ref } from 'vue';
 import styles from './detail.module.less';
 import CBreadcrumb from '/src/components/CBreadcrumb';
 import { useRoute } from 'vue-router';
@@ -25,7 +25,7 @@ export default defineComponent({
     ]);
     const forms = reactive({
       page: 1,
-      rows: 24,
+      rows: 32,
       status: true,
       searchType: '',
     });
@@ -77,6 +77,7 @@ export default defineComponent({
       state.finshed = false;
 
       const { subjectId, ...res } = item;
+      
       state.allSearch = Object.assign(state.allSearch, {
         ...res,
         musicalInstrumentId: subjectId,
@@ -84,6 +85,9 @@ export default defineComponent({
       });
 
       getList();
+      nextTick(() => {
+        __initSpin()
+      })
     };
 
 
@@ -111,13 +115,9 @@ export default defineComponent({
           params = Object.assign(params, state.newSearch);
         } else {
           params.name = state.allSearch.name
-          const { audioPlayTypes, ...more } = state.allSearch
+          const { ...more } = state.allSearch
           params = Object.assign(params, { ...more });
-          params.audioPlayTypes =  audioPlayTypes
-            ? audioPlayTypes === 'PLAY_SING'
-              ? ['PLAY', 'SING']
-              : [audioPlayTypes]
-            : []
+          // params.audioPlayTypes =  audioPlayTypes
         }
         res = await api_musicSheetPage(params);
       } catch (error) {

+ 15 - 0
src/views/xiaoku-list/index.module.less

@@ -5,6 +5,21 @@
   height: 100%;
   display: flex;
   flex-direction: column;
+
+  img {
+    -moz-user-select: none;
+    /* 火狐浏览器 */
+    -webkit-user-drag: none;
+    /* 谷歌、Safari和Opera浏览器 */
+    -webkit-user-select: none;
+    /* 谷歌、Safari和Opera浏览器 */
+    -ms-user-select: none;
+    /* IE10+浏览器 */
+    user-select: none;
+    /* 通用 */
+    -webkit-touch-callout: none;
+    /* iOS Safari */
+  }
 }
 
 .topTitle {

+ 1 - 1
src/views/xiaoku-list/index.tsx

@@ -49,7 +49,7 @@ export default defineComponent({
       loading: false as any,
       finshed: false,
       page: 1,
-      rows: 20,
+      rows: 36,
       previewModal: false,
       previewParams: {
         type: '',

+ 12 - 0
src/views/xiaoku-list/search-group-resources.tsx

@@ -22,6 +22,7 @@ import {
 import { useCatchStore } from '/src/store/modules/catchData';
 import { audioPlayType } from '/src/utils/contants';
 import { api_musicSheetTagQueryList } from './api';
+import item from '../prepare-lessons/components/lesson-main/courseware-presets/select-related/item';
 // import isCollaose from '../../images/isCollaose.png';
 
 const ChildNodeSearch = defineComponent({
@@ -163,6 +164,17 @@ export default defineComponent({
 
     const _initTags = () => {
       const tags = catchStore.getMusicTagTree;
+      // 去掉上下册
+      tags.forEach((item: any) => {
+        if(item.children && item.children.length > 0) {
+          const child = item.children
+          child?.forEach((c: any) => {
+            c.children = null
+          })
+        }
+      })
+
+      console.log(tags, 'tags')
       data.tags = [
         {
           columnName: tags[0].columnName,