|
@@ -1,7 +1,7 @@
|
|
|
import { Skeleton } from "vant";
|
|
|
import { defineComponent, onBeforeMount, onBeforeUnmount, onMounted, reactive, Transition } from "vue";
|
|
|
import { formateTimes } from "../../helpers/formateMusic";
|
|
|
-import state, { isRhythmicExercises, getMusicDetail } from "../../state";
|
|
|
+import state, { isRhythmicExercises, getMusicDetail, EnumMusicRenderType } from "../../state";
|
|
|
import { setGlobalData } from "../../utils";
|
|
|
import MusicScore, { resetMusicScore } from "../../view/music-score";
|
|
|
import styles from "./index.module.less";
|
|
@@ -21,9 +21,9 @@ const colorsClass: any = {
|
|
|
RIGHT: styles.right,
|
|
|
WRONG: styles.wrong,
|
|
|
NOT_PLAY: styles.notPlay,
|
|
|
- CADENCE_WRONG: styles.cadence_wrong,
|
|
|
- INTONATION_WRONG: styles.intonation_wrong,
|
|
|
- INTEGRITY_WRONG: styles.integrity_wrong,
|
|
|
+ CADENCE_WRONG: styles.cadence_wrong, // 节奏(快慢)
|
|
|
+ INTONATION_WRONG: styles.intonation_wrong, // 音准(高低)
|
|
|
+ INTEGRITY_WRONG: styles.integrity_wrong, // 完成度
|
|
|
};
|
|
|
|
|
|
export default defineComponent({
|
|
@@ -149,6 +149,10 @@ export default defineComponent({
|
|
|
scoreData.score = res.data?.score;
|
|
|
scoreData.videoFilePath = res.data?.videoFilePath || res.data?.recordFilePath;
|
|
|
await getMusicDetail(resultData.musicalNotesPlayStats?.examSongId);
|
|
|
+ // 从练习记录进入评测报告,默认显示五线谱
|
|
|
+ if (!query.musicRenderType) {
|
|
|
+ state.musicRenderType = EnumMusicRenderType.staff
|
|
|
+ }
|
|
|
detailData.isLoading = false;
|
|
|
// Promise.all([
|
|
|
// getMusicSheetDetail(resultData.musicalNotesPlayStats?.examSongId),
|