|
@@ -90,6 +90,19 @@ export default defineComponent({
|
|
|
})
|
|
|
const partColumns = ref<any>([])
|
|
|
|
|
|
+ const musicRenderType = computed(() => {
|
|
|
+ const details = state.details
|
|
|
+ const template: any = {
|
|
|
+ STAVE: "staff",
|
|
|
+ JIAN: "fixedTone",
|
|
|
+ FIRST: "firstTone"
|
|
|
+ }
|
|
|
+ if (details.scoreType) {
|
|
|
+ return template[details.scoreType] || "staff"
|
|
|
+ }
|
|
|
+ return "staff"
|
|
|
+ })
|
|
|
+
|
|
|
/** 选中的item */
|
|
|
const activeItem = computed(() => {
|
|
|
const list = state.list[state.listActive] || {}
|
|
@@ -977,7 +990,9 @@ export default defineComponent({
|
|
|
const resetRender = async () => {
|
|
|
const iframeRef: any = document.getElementById("staffIframeRef")
|
|
|
if (userStoreHook.roles === "GYM" || userStoreHook.roles === "KLX") {
|
|
|
- iframeRef.contentWindow.location.replace(getPreViewCloud(activeItem.value.id, state.partXmlIndex, state.selectedTrack))
|
|
|
+ iframeRef.contentWindow.location.replace(
|
|
|
+ getPreViewCloud(activeItem.value.id, state.partXmlIndex, state.selectedTrack, musicRenderType.value)
|
|
|
+ )
|
|
|
// state.iframeSrc = getPreViewCloud(activeItem.value.id, state.partXmlIndex)
|
|
|
return
|
|
|
}
|
|
@@ -1008,9 +1023,11 @@ export default defineComponent({
|
|
|
nextTick(() => {
|
|
|
const iframeRef: any = document.getElementById("staffIframeRef")
|
|
|
if (iframeRef) {
|
|
|
- iframeRef.contentWindow.location.replace(getPreViewCloud(activeItem.value.id, state.partXmlIndex, state.selectedTrack))
|
|
|
+ iframeRef.contentWindow.location.replace(
|
|
|
+ getPreViewCloud(activeItem.value.id, state.partXmlIndex, state.selectedTrack, musicRenderType.value)
|
|
|
+ )
|
|
|
} else {
|
|
|
- state.iframeSrc = getPreViewCloud(activeItem.value.id, state.partXmlIndex, state.selectedTrack)
|
|
|
+ state.iframeSrc = getPreViewCloud(activeItem.value.id, state.partXmlIndex, state.selectedTrack, musicRenderType.value)
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
@@ -1472,7 +1489,7 @@ export default defineComponent({
|
|
|
src={btnSubmit as any}
|
|
|
onClick={() => {
|
|
|
handleChangeAudio("pause")
|
|
|
- goToCloud(activeItem.value.id, state.partXmlIndex, state.selectedTrack)
|
|
|
+ goToCloud(activeItem.value.id, state.partXmlIndex, state.selectedTrack, musicRenderType.value)
|
|
|
}}
|
|
|
/>
|
|
|
|