|
@@ -118,13 +118,16 @@ export default defineComponent({
|
|
|
if (staffData.musicPdfUrl) {
|
|
|
|
|
|
const iframeRef = document.querySelector("#staffIframeRef") as any
|
|
|
- iframeRef.contentWindow.location.replace( `${location.origin}${
|
|
|
+ iframeRef.contentWindow.location.replace(`${location.origin}${
|
|
|
location.pathname
|
|
|
}pdf/web/viewer.html?file=${encodeURIComponent(staffData.musicPdfUrl)}&t=${Date.now()}`);
|
|
|
+ staffData.iframeSrc = `${location.origin}${
|
|
|
+ location.pathname
|
|
|
+ }pdf/web/viewer.html?file=${encodeURIComponent(staffData.musicPdfUrl)}&t=${Date.now()}`
|
|
|
} else {
|
|
|
const iframeRef = document.querySelector("#staffIframeRef") as any
|
|
|
iframeRef.contentWindow.location.replace(`${location.origin}${location.pathname}osmd/index.html`);
|
|
|
-
|
|
|
+ staffData.iframeSrc = `${location.origin}${location.pathname}osmd/index.html`
|
|
|
}
|
|
|
} catch (error) {
|
|
|
//
|
|
@@ -519,7 +522,9 @@ export default defineComponent({
|
|
|
{downloadStatus.value && (
|
|
|
<Download
|
|
|
imgList={JSON.parse(JSON.stringify(showImg.value))}
|
|
|
- musicSheetName={staffData.details.musicSheetName}
|
|
|
+ musicSheetName={staffData.details.musicSheetName + (staffData.details.musicSheetType === 'CONCERT' && staffData.selectedPartName
|
|
|
+ ? `(${staffData.selectedPartName})`
|
|
|
+ : '')}
|
|
|
/>
|
|
|
)}
|
|
|
</Popup>
|