|
@@ -83,7 +83,8 @@ export default defineComponent({
|
|
|
headerHide: false,
|
|
|
musicalNotesPlayStats: [] as any[],
|
|
|
userMeasureScore: {} as any,
|
|
|
- isNewReport: true,
|
|
|
+ isNewReport: true, // 区分历史评测记录数据
|
|
|
+ isSpecialReport: false, // 是否是特殊的评测记录(含有listent、play等曲子的评测记录,非选段状态下可能返回的评测数据不是从第1小节开始的,这种情况需要兼容处理)
|
|
|
});
|
|
|
const getAPPData = async () => {
|
|
|
const screenData = await isSpecialShapedScreen();
|
|
@@ -271,7 +272,10 @@ export default defineComponent({
|
|
|
// console.log(1111,notes)
|
|
|
for (const note of notes) {
|
|
|
const idx = note.musicalNotesIndex !== undefined ? note.musicalNotesIndex : note.index;
|
|
|
- const active = detailData.isNewReport ? notes[0]?.measureRenderIndex != 0 ? allNote.value[idx] : allNote.value.find((item: any) => item.i === idx) : allNote.value[idx];
|
|
|
+ let active = detailData.isNewReport ? notes[0]?.measureRenderIndex != 0 ? allNote.value[idx] : allNote.value.find((item: any) => item.i === idx) : allNote.value[idx];
|
|
|
+ if (detailData.isSpecialReport) {
|
|
|
+ active = allNote.value.find((item: any) => item.i === idx)
|
|
|
+ }
|
|
|
setTimeout(() => {
|
|
|
if (!active?.id) return;
|
|
|
if (active?.id && useedid.value.includes(active?.id)) {
|
|
@@ -427,6 +431,7 @@ export default defineComponent({
|
|
|
beams.forEach((item: any) => {
|
|
|
item.classList.add(styles.beam);
|
|
|
});
|
|
|
+ detailData.isSpecialReport = startMeasureNum > 0 && detailData.musicalNotesPlayStats?.[0]?.musicalNotesIndex != 0;
|
|
|
//setPathColor();
|
|
|
setViewColor();
|
|
|
// setMearureColor();
|