主要内容: - 包含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.1 KiB
Python
40 lines
1.1 KiB
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
"""
|
|
同步更新 companyJobsData.json 的截止时间字段
|
|
"""
|
|
|
|
import json
|
|
|
|
def main():
|
|
target_path = 'src/mocks/companyJobsData.json'
|
|
|
|
# 读取当前数据
|
|
print(f"读取文件: {target_path}")
|
|
with open(target_path, 'r', encoding='utf-8') as f:
|
|
jobs_data = json.load(f)
|
|
|
|
print(f"共有 {len(jobs_data)} 个岗位")
|
|
|
|
# 修复字段名
|
|
fixed_count = 0
|
|
for job in jobs_data:
|
|
# 确保有截止时间字段
|
|
if "岗位招聘截止时间" in job and "截止时间" not in job:
|
|
job["截止时间"] = job["岗位招聘截止时间"]
|
|
elif "截止时间" not in job:
|
|
# 如果都没有,使用默认值
|
|
job["截止时间"] = "2025/12/31"
|
|
fixed_count += 1
|
|
|
|
print(f"更新了 {fixed_count} 个岗位的截止时间字段")
|
|
|
|
# 写回文件
|
|
print(f"写入更新后的数据到: {target_path}")
|
|
with open(target_path, 'w', encoding='utf-8') as f:
|
|
json.dump(jobs_data, f, ensure_ascii=False, indent=2)
|
|
|
|
print("✅ 同步完成!")
|
|
|
|
if __name__ == "__main__":
|
|
main() |