主要内容: - 包含12个产业的完整教务系统前端代码 - 智能启动脚本 (start-industry.sh) - 可视化产业导航页面 (index.html) - 项目文档 (README.md) 优化内容: - 删除所有node_modules和.yoyo文件夹,从7.5GB减少到2.7GB - 添加.gitignore文件避免上传不必要的文件 - 自动依赖管理和智能启动系统 产业列表: 1. 文旅产业 (5150) 2. 智能制造 (5151) 3. 智能开发 (5152) 4. 财经商贸 (5153) 5. 视觉设计 (5154) 6. 交通物流 (5155) 7. 大健康 (5156) 8. 土木水利 (5157) 9. 食品产业 (5158) 10. 化工产业 (5159) 11. 能源产业 (5160) 12. 环保产业 (5161) 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
40 lines
1.7 KiB
JavaScript
40 lines
1.7 KiB
JavaScript
import mockData from './src/data/mockData.js';
|
|
|
|
console.log('=== 检查班级排名数据流 ===\n');
|
|
|
|
// 1. 检查基础ranking数据
|
|
console.log('1. mockData.ranking 存在:', !!mockData.ranking);
|
|
console.log(' - ranking.topStudents 存在:', !!mockData.ranking?.topStudents);
|
|
console.log(' - topStudents 数量:', mockData.ranking?.topStudents?.length || 0);
|
|
|
|
// 2. 检查dashboardStatistics引用
|
|
console.log('\n2. mockData.dashboardStatistics 存在:', !!mockData.dashboardStatistics);
|
|
console.log(' - dashboardStatistics.ranking 存在:', !!mockData.dashboardStatistics?.ranking);
|
|
|
|
// 3. 检查数据是否正确传递
|
|
if (mockData.dashboardStatistics?.ranking === mockData.ranking) {
|
|
console.log('\n3. ✅ dashboardStatistics.ranking 正确引用了 mockData.ranking');
|
|
} else {
|
|
console.log('\n3. ❌ dashboardStatistics.ranking 没有正确引用 mockData.ranking');
|
|
}
|
|
|
|
// 4. 检查topStudents数据内容
|
|
if (mockData.ranking?.topStudents?.length > 0) {
|
|
console.log('\n4. 前3名学生数据:');
|
|
mockData.ranking.topStudents.slice(0, 3).forEach(student => {
|
|
console.log(` ${student.rank}. ${student.name || student.studentName} - ${student.score}分`);
|
|
console.log(` 学校: ${student.school}`);
|
|
console.log(` 专业: ${student.major}`);
|
|
console.log(` 头像: ${student.avatar ? '✓' : '✗'}`);
|
|
console.log(` studentName字段: ${student.studentName ? '✓' : '✗'}`);
|
|
});
|
|
}
|
|
|
|
// 5. 检查当前用户(罗浩宇)
|
|
const luoHaoyu = mockData.ranking?.topStudents?.find(s => s.isCurrentUser || s.name === "罗浩宇");
|
|
if (luoHaoyu) {
|
|
console.log(`\n5. 罗浩宇数据:
|
|
- 排名: ${luoHaoyu.rank}
|
|
- 学分: ${luoHaoyu.score}
|
|
- 是否标记为当前用户: ${luoHaoyu.isCurrentUser ? '✓' : '✗'}`);
|
|
} |