|
@@ -108,16 +108,19 @@ export default defineComponent({
|
|
|
const onChangeStaff = (type: string) => {
|
|
|
staff.radio = type
|
|
|
staff.status = false
|
|
|
- const tempPdf = musicDetail.value?.firstPdfUrl
|
|
|
+
|
|
|
if (type == 'first' && (!defaultImgs.value.first || musicDetail.value?.firstPdfUrl)) {
|
|
|
loading.value = false
|
|
|
+ const tempPdf = musicDetail.value?.firstPdfUrl
|
|
|
initIframe(tempPdf, 'first', staffData.musicXml)
|
|
|
} else if (type == 'fixed' && (!defaultImgs.value.fixed || musicDetail.value?.jianPdfUrl)) {
|
|
|
loading.value = false
|
|
|
+ const tempPdf = musicDetail.value?.jianPdfUrl
|
|
|
initIframe(tempPdf, 'first', staffData.musicXml)
|
|
|
} else {
|
|
|
if (!defaultImgs.value.staff) {
|
|
|
loading.value = false
|
|
|
+ const tempPdf = musicDetail.value?.musicPdfUrl
|
|
|
initIframe(tempPdf, 'first', staffData.musicXml)
|
|
|
}
|
|
|
}
|
|
@@ -502,7 +505,7 @@ export default defineComponent({
|
|
|
staffData.tempPartList = JSON.parse(JSON.stringify(staffData.partList))
|
|
|
staffData.partList = instrumentSort(staffData.partList)
|
|
|
// console.log(staffData.partList, ' staffData.partList')
|
|
|
- staffData.partXmlIndex = staffData.partList[0].index || 0
|
|
|
+ staffData.partXmlIndex = staffData.partList[0]?.index || 0
|
|
|
staffData.instrumentName =
|
|
|
musicDetail.value?.musicSheetType === 'CONCERT'
|
|
|
? getInstrumentName(staffData.partList[staffData.partIndex]?.track)
|