Selaa lähdekoodia

Merge branch 'test-online' of http://git.dayaedu.com/lex/resource-admin into test-online

黄琪勇 1 kuukausi sitten
vanhempi
commit
a08cec3afe
2 muutettua tiedostoa jossa 13 lisäystä ja 13 poistoa
  1. 0 2
      components.d.ts
  2. 13 11
      src/views/music-library/music-sheet/modal/music-operationV2.tsx

+ 0 - 2
components.d.ts

@@ -15,7 +15,6 @@ declare module '@vue/runtime-core' {
     NBreadcrumb: typeof import('naive-ui')['NBreadcrumb']
     NBreadcrumbItem: typeof import('naive-ui')['NBreadcrumbItem']
     NButton: typeof import('naive-ui')['NButton']
-    NCheckbox: typeof import('naive-ui')['NCheckbox']
     NConfigProvider: typeof import('naive-ui')['NConfigProvider']
     NCountdown: typeof import('naive-ui')['NCountdown']
     NDialogProvider: typeof import('naive-ui')['NDialogProvider']
@@ -37,7 +36,6 @@ declare module '@vue/runtime-core' {
     NRadio: typeof import('naive-ui')['NRadio']
     NRadioGroup: typeof import('naive-ui')['NRadioGroup']
     NSpace: typeof import('naive-ui')['NSpace']
-    NSpin: typeof import('naive-ui')['NSpin']
     NTooltip: typeof import('naive-ui')['NTooltip']
     Recharge: typeof import('./src/components/Lockscreen/Recharge.vue')['default']
     RouterError: typeof import('./src/components/RouterError/RouterError.vue')['default']

+ 13 - 11
src/views/music-library/music-sheet/modal/music-operationV2.tsx

@@ -500,6 +500,18 @@ export default defineComponent({
           //   playMode: forms.playMode,
           //   musicalInstrumentIdList: forms.musicalInstrumentIdList
           // })
+
+          // 判断 伴唱 范唱 唱名只有上传一个都可以上传
+          let existFSFile = false
+          for (let i = 0; i < forms.fSongList.length; i++) {
+            let fSong = forms.fSongList[i]
+            if (fSong.audioFileUrl || fSong.solmizationFileUrl || fSong.femaleSolmizationFileUrl) {
+              musicSheetSoundList.push(fSong)
+              audioPlayTypes.add('SING')
+              existFSFile = true
+            }
+          }
+
           if (musicSheetType == 'SINGLE') {
             if (forms.isAllSubject) {
               if (forms.musicSheetSoundList_all_subject) {
@@ -554,17 +566,7 @@ export default defineComponent({
             })
           }
 
-          // 判断 伴唱 范唱 唱名只有上传一个都可以上传
-          let existFSFile = false
-          console.log(forms.fSongList, 'forms.fSongList')
-          for (let i = 0; i < forms.fSongList.length; i++) {
-            let fSong = forms.fSongList[i]
-            if (fSong.audioFileUrl || fSong.solmizationFileUrl || fSong.femaleSolmizationFileUrl) {
-              musicSheetSoundList.push(fSong)
-              audioPlayTypes.add('SING')
-              existFSFile = true
-            }
-          }
+          
 
           // 总谱 伴唱判断
           if (forms.scoreAudioFileUrl || state.bSongFile) {