主要内容: - 包含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>
56 lines
1.7 KiB
Python
56 lines
1.7 KiB
Python
#!/usr/bin/env python3
|
||
# -*- coding: utf-8 -*-
|
||
|
||
import json
|
||
import os
|
||
|
||
def convert_energy_interview_status():
|
||
"""
|
||
将能源岗位面试状态.json转换为系统期望的格式
|
||
"""
|
||
|
||
# 读取能源岗位面试状态.json
|
||
energy_file = "网页未导入数据/能源产业/能源岗位面试状态.json"
|
||
if not os.path.exists(energy_file):
|
||
print(f"文件不存在: {energy_file}")
|
||
return
|
||
|
||
with open(energy_file, 'r', encoding='utf-8') as f:
|
||
energy_data = json.load(f)
|
||
|
||
# 转换数据格式
|
||
converted_data = []
|
||
|
||
for item in energy_data:
|
||
# 提取日期部分 (去掉时间部分)
|
||
flow_time = item["流程时间"]
|
||
if " " in flow_time:
|
||
date_part = flow_time.split(" ")[0]
|
||
else:
|
||
date_part = flow_time
|
||
|
||
# 构建阶段日期字段 (格式: 流程类型:日期)
|
||
stage_date = f"{item['岗位内推流程']}:{date_part}"
|
||
|
||
converted_item = {
|
||
"查询岗位名称": item["查询岗位名称"],
|
||
"阶段日期": stage_date,
|
||
"面试状态": item["内容"]
|
||
}
|
||
|
||
converted_data.append(converted_item)
|
||
|
||
# 写入目标文件
|
||
output_file = "src/data/interviewStatus.json"
|
||
with open(output_file, 'w', encoding='utf-8') as f:
|
||
json.dump(converted_data, f, ensure_ascii=False, indent=2)
|
||
|
||
print(f"成功转换 {len(converted_data)} 条面试状态数据到 {output_file}")
|
||
|
||
# 打印前几条数据供检查
|
||
print("\n转换后的前3条数据:")
|
||
for i, item in enumerate(converted_data[:3]):
|
||
print(f"{i+1}. {item}")
|
||
|
||
if __name__ == "__main__":
|
||
convert_energy_interview_status() |