|
@@ -108,9 +108,9 @@ export default defineComponent({
|
|
|
const getOffsetPosition = (type: keyof typeof colorsClass): string => {
|
|
|
switch (type) {
|
|
|
case 'CADENCE_FAST':
|
|
|
- return 'translateX(2px)'
|
|
|
- case 'CADENCE_SLOW':
|
|
|
return 'translateX(-2px)'
|
|
|
+ case 'CADENCE_SLOW':
|
|
|
+ return 'translateX(2px)'
|
|
|
case 'INTONATION_HIGH':
|
|
|
return 'translateY(-2px)'
|
|
|
case 'INTONATION_LOW':
|
|
@@ -123,11 +123,11 @@ export default defineComponent({
|
|
|
const filterNotes = () => {
|
|
|
const include = ['RIGHT', 'WRONG', 'CADENCE_WRONG']
|
|
|
console.log(active.value)
|
|
|
- if (active.value === 'pitch') {
|
|
|
- include.push(...['CADENCE_FAST', 'CADENCE_SLOW'])
|
|
|
- } else if (active.value === 'rhythm') {
|
|
|
+ if (active.value === 'pitch') { // 音准
|
|
|
include.push(...['INTONATION_HIGH', 'INTONATION_LOW'])
|
|
|
- } else if (active.value === 'completion') {
|
|
|
+ } else if (active.value === 'rhythm') { // 节奏
|
|
|
+ include.push(...['CADENCE_FAST', 'CADENCE_SLOW'])
|
|
|
+ } else if (active.value === 'completion') { // 完整性
|
|
|
include.push(...['INTEGRITY_WRONG'])
|
|
|
}
|
|
|
return record.value.musicalNotesPlayStats.notesData.filter((item: any) => include.includes(item.musicalErrorType))
|