|
@@ -266,6 +266,7 @@ export default {
|
|
|
if(!orderNo) {
|
|
|
return
|
|
|
}
|
|
|
+ localStorage.removeItem("examRegistrationParams")
|
|
|
this.onCloseOrder(orderNo)
|
|
|
})
|
|
|
} else {
|
|
@@ -310,13 +311,14 @@ export default {
|
|
|
tempPerformArr = [],
|
|
|
tempPerformStr = []
|
|
|
songJsonParse.forEach(item => {
|
|
|
+ const str = item.songName + (item.songAuthor ? "-" + item.songAuthor : "")
|
|
|
if(item.type == "PERFORM") {
|
|
|
tempPerformArr.push(item)
|
|
|
- tempPerformStr.push(item.songName + '-' + item.songAuthor)
|
|
|
+ tempPerformStr.push(str)
|
|
|
this.performNumSelectIds.push(item.id)
|
|
|
} else if(item.type == "PRACTICE") {
|
|
|
tempPracticeArr.push(item)
|
|
|
- tempPracticeStr.push(item.songName + '-' + item.songAuthor)
|
|
|
+ tempPracticeStr.push(str)
|
|
|
this.practiceSelectIds.push(item.id)
|
|
|
}
|
|
|
})
|
|
@@ -336,6 +338,7 @@ export default {
|
|
|
})
|
|
|
})
|
|
|
this.practiceUpload.push(tempUrl)
|
|
|
+ this.practiceUploadTemp.push(tempUrl)
|
|
|
})
|
|
|
this.practiceSelectUploadList = tempPracticeArr
|
|
|
}
|
|
@@ -355,6 +358,7 @@ export default {
|
|
|
})
|
|
|
})
|
|
|
this.performNumUpload.push(tempUrl)
|
|
|
+ this.performNumUploadTemp.push(tempUrl)
|
|
|
})
|
|
|
this.performNumSelectUploadList = tempPerformArr
|
|
|
}
|
|
@@ -497,10 +501,15 @@ export default {
|
|
|
this.practiceSongIdList = null
|
|
|
this.performNum = 0 // 演奏曲数量
|
|
|
this.performSongIdList = null
|
|
|
+ this.onResetSong()
|
|
|
this.getExamSubjectLevel() // 请求专业级别
|
|
|
}
|
|
|
sheetForm.sheetStatus = false
|
|
|
} else if(sheetForm.currentType == 'level') {
|
|
|
+ sheetForm.sheetStatus = false
|
|
|
+ if(form.levelId === value.value) { // 判断两次选择是否是一样
|
|
|
+ return
|
|
|
+ }
|
|
|
form.levelId = value.value
|
|
|
form.examSubjectSongId = value.id
|
|
|
form.levelFee = value.registrationFee // 级别费用
|
|
@@ -510,12 +519,8 @@ export default {
|
|
|
this.practiceSongIdList = value.practiceSongIdList
|
|
|
this.performNum = value.performNum
|
|
|
this.performSongIdList = value.performSongIdList
|
|
|
- sheetForm.sheetStatus = false
|
|
|
|
|
|
- this.practiceSelect = []
|
|
|
- this.practiceUpload = []
|
|
|
- this.performNumSelect = []
|
|
|
- this.performNumUpload = []
|
|
|
+ this.onResetSong()
|
|
|
this.getExamSubjectSong()
|
|
|
} else if(sheetForm.currentType == "examMusicTheory") {
|
|
|
form.examMusicTheoryId = value.value
|
|
@@ -526,6 +531,16 @@ export default {
|
|
|
sheetForm.sheetStatus = false
|
|
|
}
|
|
|
},
|
|
|
+ onResetSong() { // 重置报考曲目数据
|
|
|
+ this.practiceSelect = []
|
|
|
+ this.practiceUpload = []
|
|
|
+ this.practiceUploadTemp = []
|
|
|
+ this.practiceSelectUploadList = []
|
|
|
+ this.performNumSelectUploadList = []
|
|
|
+ this.performNumSelect = []
|
|
|
+ this.performNumUpload = []
|
|
|
+ this.performNumUploadTemp = []
|
|
|
+ },
|
|
|
async getExamSubjectLevel(callBack) {
|
|
|
setLoading(true)
|
|
|
try {
|