فهرست منبع

Update index.tsx

lex 3 سال پیش
والد
کامیت
44cc8243f3
1فایلهای تغییر یافته به همراه3 افزوده شده و 5 حذف شده
  1. 3 5
      src/teacher/piano-room/class-arrangement/course-schedule/index.tsx

+ 3 - 5
src/teacher/piano-room/class-arrangement/course-schedule/index.tsx

@@ -23,11 +23,11 @@ export default defineComponent({
   },
   setup(props: any) {
     const students = computed(() => {
-      let list = item.studentIds.map((n: IStudent) => n.userName)
+      const list = item.studentIds.map((n: IStudent) => n.userName)
       return list.join('、')
     })
     return () => {
-      const n = item.studentIds.length + 1
+      const n = item.studentIds.length
       return (
         <div class={styles.box}>
           <div class={styles.title}>
@@ -63,9 +63,7 @@ export default defineComponent({
 
             <div style={{ color: '#999999' }}>
               以上课程预计将消耗琴房时长{' '}
-              {Math.ceil(
-                n * (n - 1) * item.classNum * parseInt(item.singleClassTime)
-              )}{' '}
+              {Math.ceil(n * item.classNum * parseInt(item.singleClassTime))}{' '}
               分钟 <br />
               确认排课后时长冻结 <br />
               实际消耗时长以扣减结果为准 <br />