Преглед на файлове

Merge branch 'gyt-feature-tianyong' into online

TIANYONG преди 1 година
родител
ревизия
0eed3b0de8
променени са 1 файла, в които са добавени 6 реда и са изтрити 6 реда
  1. 6 6
      src/subpages/colexiu-report/index.tsx

+ 6 - 6
src/subpages/colexiu-report/index.tsx

@@ -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))