|
@@ -699,7 +699,7 @@ export default {
|
|
|
}
|
|
|
const nameAuthor = songUpload.name + (songUpload.author ? "-" + songUpload.author : "")
|
|
|
if(songUpload.indexName == "practiceNum") {
|
|
|
- if(this.practiceUpload[songUpload.index] && this.practiceUpload[songUpload.index][0].url) {
|
|
|
+ if(this.practiceUpload[songUpload.index] && this.practiceUpload[songUpload.index].length > 0 && this.practiceUpload[songUpload.index][0].url) {
|
|
|
this.practiceSelect[songUpload.index] = nameAuthor
|
|
|
this.practiceSelectUploadList[songUpload.index] = JSON.parse(JSON.stringify(songUpload))
|
|
|
} else {
|
|
@@ -708,12 +708,13 @@ export default {
|
|
|
}
|
|
|
} else if(songUpload.indexName == "performNum") {
|
|
|
if(this.performNumUpload[songUpload.index] && this.performNumUpload[songUpload.index][0].url) {
|
|
|
+ if(this.performNumUpload[songUpload.index] && this.performNumUpload[songUpload.index].length > 0 && this.performNumUpload[songUpload.index][0].url) {
|
|
|
this.performNumSelect[songUpload.index] = nameAuthor
|
|
|
this.performNumSelectUploadList[songUpload.index] = JSON.parse(JSON.stringify(songUpload))
|
|
|
} else {
|
|
|
this.$toast("请上传文件")
|
|
|
return
|
|
|
- }
|
|
|
+ }
|
|
|
}
|
|
|
songUpload.name = null
|
|
|
songUpload.author = null
|
|
@@ -855,7 +856,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
if(form.examMusicTheoryId == 999 && !form.lastMusicTheoryCertificateUrl) {
|
|
|
- this.$toast('请上传考级证书')
|
|
|
+ this.$toast('请上传乐理证书')
|
|
|
return false
|
|
|
}
|
|
|
|