|
@@ -821,8 +821,13 @@ export default defineComponent({
|
|
|
}
|
|
|
}
|
|
|
const resetRender = async () => {
|
|
|
- if (userStoreHook.roles === "GYM") return
|
|
|
const iframeRef: any = document.getElementById("staffIframeRef")
|
|
|
+ if (userStoreHook.roles === "GYM") {
|
|
|
+ iframeRef.contentWindow.location.replace(getPreViewCloud(activeItem.value.id, state.partXmlIndex))
|
|
|
+ // state.iframeSrc = getPreViewCloud(activeItem.value.id, state.partXmlIndex)
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
if (iframeRef && iframeRef.contentWindow?.renderXml) {
|
|
|
staffLoading.value = true
|
|
|
const res: any = await axios.get(activeItem.value.xmlUrl)
|
|
@@ -908,7 +913,6 @@ export default defineComponent({
|
|
|
((activeItem.value.musicSheetType === "CONCERT" && state.selectedPartName) || state.selectedTrack
|
|
|
? `(${state.selectedPartName || state.selectedTrack})`
|
|
|
: "")
|
|
|
- console.log(musicName, "musicName")
|
|
|
try {
|
|
|
const osmdImg = e.data.osmdImg
|
|
|
const imgs = []
|
|
@@ -1264,9 +1268,7 @@ export default defineComponent({
|
|
|
/>
|
|
|
|
|
|
<div class={styles.rightBtns} style={{ display: activeItem.value.id ? "" : "none" }}>
|
|
|
- <div
|
|
|
- // style={{ display: state.musicPdfUrl ? "" : "none" }}
|
|
|
- >
|
|
|
+ <div style={{ display: state.musicPdfUrl || state.imgs.length > 0 ? "" : "none" }}>
|
|
|
<NTooltip showArrow={false}>
|
|
|
{{
|
|
|
trigger: () => (
|