|
@@ -220,7 +220,8 @@ export default defineComponent({
|
|
|
|
|
|
this.composer = res.data.composer
|
|
|
this.musicSheetName = res.data.musicSheetName
|
|
|
- this.audioType = res.data.audioType
|
|
|
+ // 固定MP3, MIDI 去掉了
|
|
|
+ this.audioType = 'MP3' // res.data.audioType
|
|
|
this.notation = res.data.notation
|
|
|
this.selectedSubjectList = {
|
|
|
label: res.data.musicSubject,
|
|
@@ -247,19 +248,19 @@ export default defineComponent({
|
|
|
this.accompanimentType = res.data.accompanimentType
|
|
|
this.titleImg = res.data.titleImg
|
|
|
|
|
|
- // this.audioType = res.data.mp3Type
|
|
|
-
|
|
|
- if (this.audioType === 'MP3') {
|
|
|
- this.hasBeat =
|
|
|
- (res.data.audioType === 'MP3' &&
|
|
|
- res.data.mp3Type === 'MP3_METRONOME') ||
|
|
|
- res.data.audioType === 'MIDI'
|
|
|
- ? 1
|
|
|
- : 0
|
|
|
- this.mp3Url = res.data.audioFileUrl || res.data.url //res.data.metronomeUrl || res.data.url
|
|
|
- } else {
|
|
|
- this.midiUrl = res.data.midiUrl
|
|
|
- }
|
|
|
+ // if (this.audioType === 'MP3') {
|
|
|
+ // this.hasBeat =
|
|
|
+ // (res.data.audioType === 'MP3' &&
|
|
|
+ // res.data.mp3Type === 'MP3_METRONOME') ||
|
|
|
+ // res.data.audioType === 'MIDI'
|
|
|
+ // ? 1
|
|
|
+ // : 0
|
|
|
+ // this.mp3Url = res.data.audioFileUrl || res.data.url //res.data.metronomeUrl || res.data.url
|
|
|
+ // } else {
|
|
|
+ // this.midiUrl = res.data.midiUrl
|
|
|
+ // }
|
|
|
+ this.hasBeat = 0
|
|
|
+ this.mp3Url = res.data.audioFileUrl || res.data.url //res.data.metronomeUrl || res.data.url
|
|
|
|
|
|
this.backgroundMp3s = (res.data.background || []).map((item, index) => {
|
|
|
if (index === 0) {
|
|
@@ -279,7 +280,7 @@ export default defineComponent({
|
|
|
},
|
|
|
createSubmitData() {
|
|
|
const beatType = this.hasBeat ? 'MP3_METRONOME' : 'MP3'
|
|
|
- const mp3Type = this.audioType === 'MP3' ? beatType : 'MIDI'
|
|
|
+ const mp3Type = beatType //this.audioType === 'MP3' ? beatType : 'MIDI'
|
|
|
return {
|
|
|
audioType: this.audioType,
|
|
|
sourceType: 'TEACHER',
|
|
@@ -550,7 +551,7 @@ export default defineComponent({
|
|
|
modelValue={this.audioType}
|
|
|
onUpdate:modelValue={val => (this.audioType = val)}
|
|
|
>
|
|
|
- {Object.keys(teachershowAudiType).map((item: string) => {
|
|
|
+ {/* {Object.keys(teachershowAudiType).map((item: string) => {
|
|
|
const isActive = item === this.audioType
|
|
|
const type = isActive ? 'primary' : 'default'
|
|
|
return (
|
|
@@ -560,7 +561,12 @@ export default defineComponent({
|
|
|
</Tag>
|
|
|
</Radio>
|
|
|
)
|
|
|
- })}
|
|
|
+ })} */}
|
|
|
+ <Radio class={styles.radio} name={'MP3'}>
|
|
|
+ <Tag size="large" plain type={'primary'}>
|
|
|
+ MP3
|
|
|
+ </Tag>
|
|
|
+ </Radio>
|
|
|
</RadioGroup>
|
|
|
</ColField>
|
|
|
{this.audioType === 'MP3' ? (
|