主要内容: - 包含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>
26 lines
1.1 KiB
JavaScript
26 lines
1.1 KiB
JavaScript
import fs from 'fs';
|
|
|
|
// 读取环保课程日历数据
|
|
const dataPath = './网页未导入数据/环保产业/环保课程日历.json';
|
|
const data = JSON.parse(fs.readFileSync(dataPath, 'utf8'));
|
|
|
|
let updateCount = 0;
|
|
|
|
// 遍历所有记录,更新模拟面试的导师
|
|
data.forEach((item, index) => {
|
|
// 如果是模拟面试实战练习
|
|
if (item['模拟面试实战练习阶段'] && item['模拟面试实战练习阶段'].trim() !== '') {
|
|
item['导师姓名查询'] = '线下站点指导';
|
|
updateCount++;
|
|
console.log(`更新第 ${index + 1} 条记录: ${item['日期']} - ${item['模拟面试实战练习阶段']}`);
|
|
}
|
|
});
|
|
|
|
// 写回文件
|
|
fs.writeFileSync(dataPath, JSON.stringify(data, null, 2), 'utf8');
|
|
console.log(`\n完成!共更新了 ${updateCount} 条模拟面试记录的导师名称为"线下站点指导老师"`);
|
|
|
|
// 同时更新到src/data目录
|
|
const srcDataPath = './src/data/intelligentManufacturingCalendar.json';
|
|
fs.writeFileSync(srcDataPath, JSON.stringify(data, null, 2), 'utf8');
|
|
console.log('已同步更新到 src/data/intelligentManufacturingCalendar.json'); |