Commit Graph

13 Commits

Author SHA1 Message Date
zty 1d987277c6 feat(landing): 预测案例管理员可编辑 + 图片上传修复 + 构建hash
- 后端新增 GET/PUT /api/cfg/landing-cases 接口存取案例数据
- 上传接口自动创建 uploads 目录,修复目录不存在导致上传失败
- 前端预测案例支持管理员编辑标题/副标题/案例内容
- hero 图片初始不设默认值,configReady 门控渲染,消除刷新闪烁
- .umirc.ts 开启 hash:true 避免浏览器缓存旧 JS

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T71oHHhfhLAWAL9EuoFuYh
2026-07-29 22:19:41 -04:00
zty 8ee0784f20 feat(ms/web): 管理端材料库扩展字段 + 导入模板更新 + 饼图浅色
- 管理端: 去掉环保等级, 材料表单/列表新增16个字段(型号/参考价格/供应商/联系人/生产日期/样品来源/检测信息等)
- 管理端: 新建材料必填项加*号(名称/类别/品牌/污染物参数/样品来源)
- 管理端: 材料导入Excel模板更新为39列新格式, 解析逻辑同步
- 管理端: 材料表单增加样品图片/应用效果图上传
- 后端: PublicMaterial/SelfMaterial schema 新增16个字段
- 用户端: 饼图颜色改为浅色系

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T71oHHhfhLAWAL9EuoFuYh
2026-07-28 21:16:38 -04:00
zty 3da1fb1282 refactor(material): 健康档定格到 health_level, 去掉实时 health_tier
- 新增一次性迁移脚本 migrate-health-level.ts: 按当前全库三分位写入 health_level(覆盖手动值, 公共材料补齐)
- rankAndPaginate 改为只注解 ypt(排序用), 分组改按持久化 health_level; 移除 loadTierClassifier
- annotate -> annotateYpt; 单测同步更新
2026-07-12 21:48:08 -04:00
zty 8de82ee86d fix(material): pub/self 数组式 sort_key 移除 ypt, 防非法多列排序崩溃 2026-07-10 02:58:41 -04:00
zty 8f6002b8bb feat(material): 管理端 /api/mtrl/pub|self 接入 ypt 排序与分组 2026-07-10 02:53:48 -04:00
zty d065ec21fa fix(material): rankAndPaginate 尊重 sort_val 方向, 保留 null 末位与分档顺序; 删无用 import
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VCShKevM5prWZhp1kk1iGh
2026-07-10 02:48:23 -04:00
zty f5ec58031a feat(material): /api/mtrl 注解 ypt/health_tier 并支持 ypt 排序与分组 2026-07-10 02:38:10 -04:00
zty 7027a7748f feat(material): Ypt 计算与全库三分位健康档工具 + 单测 2026-07-10 02:26:03 -04:00
zty e4ccbf733d feat(material): public GET /eco endpoint for eco-friendly materials 2026-07-07 03:28:11 -04:00
zty 94c9b0c060 feat(forum): like toggle, like status, author soft-delete 2026-07-07 03:26:32 -04:00
zty b2dd9d3bd6 feat(forum): create thread and reply with floor increment 2026-07-07 03:24:42 -04:00
zty 9048a5a389 feat(forum): public read endpoints (boards/threads/detail) 2026-07-07 03:22:29 -04:00
zty 8cfa20d3aa feat(forum): add forum prisma models and board constant 2026-07-07 03:21:01 -04:00