|
@@ -96,7 +96,8 @@ export default defineComponent({
|
|
|
isShow: false,
|
|
|
height:"initial",
|
|
|
speedRate:1,
|
|
|
- musicRenderType:"staff"
|
|
|
+ musicRenderType:"staff",
|
|
|
+ partIndex:0
|
|
|
})
|
|
|
const staffDom= ref<HTMLIFrameElement>()
|
|
|
const {playStaff, pauseStaff, updateProgressStaff} = staffMoveInstance()
|
|
@@ -339,6 +340,7 @@ export default defineComponent({
|
|
|
musicSheetId:encodeURIComponent(state.musicDetail?.musicSheetId),
|
|
|
speedRate:encodeURIComponent(staffState.speedRate),
|
|
|
musicRenderType:encodeURIComponent(staffState.musicRenderType),
|
|
|
+ partIndex:encodeURIComponent(staffState.partIndex),
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -379,6 +381,7 @@ export default defineComponent({
|
|
|
const jsonConfig = JSON.parse(res.data.jsonConfig)
|
|
|
jsonConfig.speedRate && (staffState.speedRate = jsonConfig.speedRate)
|
|
|
jsonConfig.musicRenderType && (staffState.musicRenderType = jsonConfig.musicRenderType)
|
|
|
+ jsonConfig.partIndex && (staffState.partIndex = jsonConfig.partIndex)
|
|
|
}catch{
|
|
|
}
|
|
|
// 五线谱
|
|
@@ -427,8 +430,8 @@ export default defineComponent({
|
|
|
});
|
|
|
// 初始化五线谱
|
|
|
function initStaff(){
|
|
|
- const src = `${vaildMusicScoreUrl()}/instrument/#/simple-detail?id=${state.musicDetail.musicSheetId}&musicRenderType=${staffState.musicRenderType}`;
|
|
|
- //const src = `https://dev.kt.colexiu.com/instrument/#/simple-detail?id=${state.musicDetail.musicSheetId}&musicRenderType=${staffState.musicRenderType}`;
|
|
|
+ const src = `${vaildMusicScoreUrl()}/instrument/#/simple-detail?id=${state.musicDetail.musicSheetId}&musicRenderType=${staffState.musicRenderType}&part-index=${staffState.partIndex}`;
|
|
|
+ //const src = `https://dev.kt.colexiu.com/instrument/#/simple-detail?id=${state.musicDetail.musicSheetId}&musicRenderType=${staffState.musicRenderType}&part-index=${staffState.partIndex}`;
|
|
|
staffState.staffSrc = src
|
|
|
window.addEventListener('message', (event) => {
|
|
|
const { api, height } = event.data;
|