|
@@ -162,19 +162,19 @@ export default defineComponent({
|
|
|
|
|
|
// console.log("🚀 ~ state.subjectId:", state.subjectId, state.track as any , state.subjectId)
|
|
// console.log("🚀 ~ state.subjectId:", state.subjectId, state.track as any , state.subjectId)
|
|
// 是否打击乐
|
|
// 是否打击乐
|
|
- state.isPercussion =
|
|
|
|
- state.subjectId == 23 ||
|
|
|
|
- state.subjectId == 113 ||
|
|
|
|
- state.subjectId == 121 ||
|
|
|
|
- isRhythmicExercises();
|
|
|
|
-
|
|
|
|
|
|
+ // state.isPercussion =
|
|
|
|
+ // state.subjectId == 23 ||
|
|
|
|
+ // state.subjectId == 113 ||
|
|
|
|
+ // state.subjectId == 121 ||
|
|
|
|
+ // isRhythmicExercises();
|
|
|
|
+ state.isPercussion = isRhythmicExercises();
|
|
// 设置是否特殊曲谱, 是特殊曲谱取反(不理解之前的思考逻辑), 使用后台设置的速度
|
|
// 设置是否特殊曲谱, 是特殊曲谱取反(不理解之前的思考逻辑), 使用后台设置的速度
|
|
state.isSpecialBookCategory = !classids.includes(data.musicSheetCategoriesId)
|
|
state.isSpecialBookCategory = !classids.includes(data.musicSheetCategoriesId)
|
|
|
|
|
|
// 设置指法
|
|
// 设置指法
|
|
const code = mappingVoicePart(state.trackId, "INSTRUMENT");
|
|
const code = mappingVoicePart(state.trackId, "INSTRUMENT");
|
|
state.fingeringInfo = subjectFingering(code);
|
|
state.fingeringInfo = subjectFingering(code);
|
|
- console.log("🚀 ~ state.fingeringInfo:", state.fingeringInfo, state.trackId, state.track);
|
|
|
|
|
|
+ console.log("🚀 ~ state.fingeringInfo:", code, state.fingeringInfo, state.trackId, state.track);
|
|
|
|
|
|
// 检测是否原音和伴奏都有
|
|
// 检测是否原音和伴奏都有
|
|
if (!state.music || !state.accompany) {
|
|
if (!state.music || !state.accompany) {
|
|
@@ -189,6 +189,8 @@ export default defineComponent({
|
|
|
|
|
|
//课堂乐器, 渲染类型: 五线谱, 简谱
|
|
//课堂乐器, 渲染类型: 五线谱, 简谱
|
|
state.musicRenderType = query.musicRenderType || EnumMusicRenderType.firstTone;
|
|
state.musicRenderType = query.musicRenderType || EnumMusicRenderType.firstTone;
|
|
|
|
+ // 是否是合奏,先根据background判断
|
|
|
|
+ state.isConcert = data.background?.length > 1
|
|
console.log('state对象', state)
|
|
console.log('state对象', state)
|
|
};
|
|
};
|
|
|
|
|
|
@@ -442,7 +444,7 @@ export default defineComponent({
|
|
)}
|
|
)}
|
|
|
|
|
|
{/* 切换曲谱 */}
|
|
{/* 切换曲谱 */}
|
|
- {!query.lessonTrainingId && !query.questionId && (
|
|
|
|
|
|
+ {!query.lessonTrainingId && !query.questionId && state.isConcert && (
|
|
<ToggleMusicSheet />
|
|
<ToggleMusicSheet />
|
|
)}
|
|
)}
|
|
|
|
|