Browse Source

重新处理计算分钟数

lex 2 years ago
parent
commit
fe863e8098
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/teacher/piano-room/model/student-info/student-confirm.tsx

+ 2 - 1
src/teacher/piano-room/model/student-info/student-confirm.tsx

@@ -43,9 +43,10 @@ export default defineComponent({
       const suffix: number = addStudents.length - removeStudents.length
       console.log(suffix, singleCourseTime)
       const type = suffix >= 0 ? 'add' : 'remove'
+      // n * (n -1) * 分钟数 * 课次数
       return {
         type,
-        mins: Math.abs(suffix * singleCourseTime)
+        mins: Math.abs((suffix + 1) * suffix * singleCourseTime)
       }
     }
   },