|
@@ -137,7 +137,7 @@ const calcNoteData = () => {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- // console.log("🚀 ~ selectData.notes:", selectData.staves);
|
|
|
+ console.log("🚀 ~ selectData.notes:", selectData.notes, selectData.staves);
|
|
|
};
|
|
|
|
|
|
/** 重新计算 */
|
|
@@ -168,24 +168,26 @@ export default defineComponent({
|
|
|
}
|
|
|
}
|
|
|
if (state.section.length === 2) {
|
|
|
+ // 实际的结束位置
|
|
|
+ const actualEndIndex = state.userChooseEndIndex
|
|
|
// 选段预备拍背景
|
|
|
if (state.sectionFirst && item.MeasureNumberXML === state.sectionFirst.MeasureNumberXML) {
|
|
|
return styles.prepareStaveBox;
|
|
|
}
|
|
|
if (
|
|
|
item.MeasureNumberXML >= state.section[0].MeasureNumberXML &&
|
|
|
- item.MeasureNumberXML <= state.section[1].MeasureNumberXML
|
|
|
+ item.MeasureNumberXML <= actualEndIndex
|
|
|
) {
|
|
|
if (
|
|
|
item.MeasureNumberXML == state.section[0].MeasureNumberXML &&
|
|
|
- item.MeasureNumberXML == state.section[1].MeasureNumberXML
|
|
|
+ item.MeasureNumberXML == actualEndIndex
|
|
|
) {
|
|
|
return styles.centerStaveBox;
|
|
|
}
|
|
|
if (item.MeasureNumberXML == state.section[0].MeasureNumberXML) {
|
|
|
return styles.leftStaveBox;
|
|
|
}
|
|
|
- if (item.MeasureNumberXML == state.section[1].MeasureNumberXML) {
|
|
|
+ if (item.MeasureNumberXML == actualEndIndex) {
|
|
|
return styles.rightStaveBox;
|
|
|
}
|
|
|
return styles.staveBox;
|