|
@@ -12,6 +12,7 @@ import { musicPracticeRecordGetLastEvaluationMusicalNotesPlayStats, sysMusicScor
|
|
|
import ShareTop from "./share-top";
|
|
|
import Note from "./note";
|
|
|
import { addMeasureScore } from "/src/view/evaluating";
|
|
|
+import { useRoute } from "vue-router";
|
|
|
|
|
|
const colorsClass: any = {
|
|
|
RIGHT: styles.right,
|
|
@@ -26,6 +27,8 @@ export default defineComponent({
|
|
|
name: "music-list",
|
|
|
setup() {
|
|
|
const query: any = getQuery();
|
|
|
+ const route = useRoute()
|
|
|
+ const paramsId = route.params.id as string;
|
|
|
const scoreData: any = reactive({
|
|
|
videoFilePath: "", // 回放视频路径
|
|
|
cadence: 0,
|
|
@@ -114,8 +117,8 @@ export default defineComponent({
|
|
|
};
|
|
|
|
|
|
onMounted(async () => {
|
|
|
- (window as any).appName = "colexiu";
|
|
|
- const res = await musicPracticeRecordGetLastEvaluationMusicalNotesPlayStats(query.id);
|
|
|
+ (window as any).appName = "gym";
|
|
|
+ const res = await musicPracticeRecordGetLastEvaluationMusicalNotesPlayStats(paramsId);
|
|
|
state.partIndex = Number(res?.data?.partIndex);
|
|
|
detailData.musicalNotesPlayStats = res?.data?.musicalNotesPlayStats?.notesData || [];
|
|
|
detailData.userMeasureScore = res?.data?.userMeasureScore || {};
|