feat: 成长路径支持多岗位关联 + 增强拖拽功能
All checks were successful
continuous-integration/drone/push Build is passing

前端:
- 岗位选择改为多选模式
- 增强拖拽视觉反馈(高亮、动画提示)
- 列表显示多个岗位标签

后端:
- 添加 position_ids 字段支持多岗位
- 兼容旧版 position_id 单选数据
- 返回 position_names 数组
This commit is contained in:
yuliang_guo
2026-01-30 16:19:40 +08:00
parent a92bfa2b0f
commit 920c6a64c8
4 changed files with 157 additions and 24 deletions

View File

@@ -226,7 +226,10 @@ class GrowthPath(BaseModel, SoftDeleteMixin):
# 岗位关联
position_id: Mapped[Optional[int]] = mapped_column(
Integer, nullable=True, comment="关联岗位ID"
Integer, nullable=True, comment="关联岗位ID兼容旧版优先使用position_ids"
)
position_ids: Mapped[Optional[List[int]]] = mapped_column(
JSON, nullable=True, comment="关联岗位ID列表支持多选"
)
# 路径配置(保留用于兼容,新版使用 nodes 关联表)