feat: 成长路径支持多岗位关联 + 增强拖拽功能
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
前端: - 岗位选择改为多选模式 - 增强拖拽视觉反馈(高亮、动画提示) - 列表显示多个岗位标签 后端: - 添加 position_ids 字段支持多岗位 - 兼容旧版 position_id 单选数据 - 返回 position_names 数组
This commit is contained in:
@@ -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 关联表)
|
||||
|
||||
Reference in New Issue
Block a user