From dc68581c5e1091ac66336cd312c1fbf346328434 Mon Sep 17 00:00:00 2001 From: liwentao Date: Sun, 26 Jul 2026 16:20:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=89=8D=E7=AB=AF=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E5=AD=97=E6=A0=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gym-manage-coach-uniapp/pages/profile/profile.vue | 12 ++++++------ .../src/views/statistics/StatisticsDashboard.vue | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/gym-manage-coach-uniapp/pages/profile/profile.vue b/gym-manage-coach-uniapp/pages/profile/profile.vue index 84eabca..24c7563 100644 --- a/gym-manage-coach-uniapp/pages/profile/profile.vue +++ b/gym-manage-coach-uniapp/pages/profile/profile.vue @@ -47,7 +47,7 @@ {{ performance.attendanceRate != null ? performance.attendanceRate + '%' : 'N/A' }} - 出勤率 ▸ + 学员出勤率 ▸ @@ -230,17 +230,17 @@ showFormula(type) { if (type === 'attendance') { - this.formulaTitle = '出勤率计算方式' - this.formulaContent = '出勤率 = 出席人次 ÷ 非取消预约总数 × 100%' - this.formulaExample = '示例:本月有 10 人预约了你的课程,其中 2 人取消预约,8 人中实际出席 7 人\n\n出勤率 = 7 ÷ (10 - 2) × 100% = 87.5%' + this.formulaTitle = '学员出勤率计算方式' + this.formulaContent = '学员出勤率 = 出席人次 ÷ 预约总数 × 100%' + this.formulaExample = '示例:本月有 10 人预约了你的课程,实际出席 7 人\n\n学员出勤率 = 7 ÷ 10 × 100% = 70%' } else if (type === 'fullness') { this.formulaTitle = '满员率计算方式' this.formulaContent = '满员率 = 各课程(出席人数 ÷ 课程最大容量)的平均值 × 100%' this.formulaExample = '示例:本月你完成了 2 节课\n- 课程 A:容量 20 人,实际出席 12 人 → 60%\n- 课程 B:容量 15 人,实际出席 9 人 → 60%\n\n满员率 = (60% + 60%) ÷ 2 = 60%' } else if (type === 'composite') { this.formulaTitle = '综合评分计算方式' - this.formulaContent = '综合评分 = 授课量评分 × 40% + 出勤率评分 × 30% + 满员率评分 × 30%' - this.formulaExample = '计算步骤:\n1. 授课量归一化:你的授课量 ÷ 全部教练最高授课量 × 100\n2. 出勤率与满员率各取实际百分值\n3. 加权求和\n\n示例:\n授课量评分 80 × 0.4 = 32\n出勤率 85 × 0.3 = 25.5\n满员率 60 × 0.3 = 18\n\n综合评分 = 32 + 25.5 + 18 = 75.5' + this.formulaContent = '综合评分 = 授课量评分 × 35% + 学员出勤率评分 × 25% + 满员率评分 × 25% + 违规评分 × 15%' + this.formulaExample = '计算步骤:\n1. 授课量百分位排名归一化:你的授课量排名 / (总教练数-1) × 100\n2. 学员出勤率与满员率各取实际百分值\n3. 违规分:max(0, 100 - 违规次数 × 20)\n4. 加权求和\n\n示例:\n授课量评分 80 × 0.35 = 28\n学员出勤率 85 × 0.25 = 21.25\n满员率 60 × 0.25 = 15\n违规分 80 × 0.15 = 12\n\n综合评分 = 28 + 21.25 + 15 + 12 = 76.25' } this.formulaVisible = true }, diff --git a/gym-manage-web/src/views/statistics/StatisticsDashboard.vue b/gym-manage-web/src/views/statistics/StatisticsDashboard.vue index c693bed..c596f7d 100644 --- a/gym-manage-web/src/views/statistics/StatisticsDashboard.vue +++ b/gym-manage-web/src/views/statistics/StatisticsDashboard.vue @@ -131,7 +131,7 @@
- 出勤率 + 学员出勤率 - + @@ -314,7 +314,7 @@ {{ selectedCoach.completedCourses }} 节 {{ selectedCoach.attendedStudents }} 人次 - + {{ selectedCoach.attendanceRate }}%