diff --git a/api/version1/postseting/postpc/targetpost.go b/api/version1/postseting/postpc/targetpost.go index fca1da8..f4ced5a 100644 --- a/api/version1/postseting/postpc/targetpost.go +++ b/api/version1/postseting/postpc/targetpost.go @@ -42,14 +42,15 @@ func (a *ApiMethod) GetPostTarget(c *gin.Context) { sendData.ReleDepart = postTargetCont.ReleDepart //相关部门"` sendData.DepartmentsPost = postTargetCont.DepartmentsPost //相关岗位"` sendData.Dimension = postTargetCont.Dimension //维度"` - sendData.Key = postTargetCont.Key //UUID"` - sendData.Report = postTargetCont.Report //上报人"` - sendData.Unit = postTargetCont.Unit //单位"` - sendData.Cycle = postTargetCont.Cycle //1:班;2:天;3:周;4:月;5:季度;6:年"` - sendData.Cycleattr = postTargetCont.Cycleattr //辅助计数"` - sendData.ScoringMethod = postTargetCont.ScoringMethod //计分方式(1:自动;2:手动)"` - sendData.VisibleRange = postTargetCont.VisibleRange //可见范围"` - sendData.VisibleGroup = postTargetCont.VisibleGroup //可见范围(集团)"` + sendData.DimensionStr = strconv.FormatInt(postTargetCont.Dimension, 10) + sendData.Key = postTargetCont.Key //UUID"` + sendData.Report = postTargetCont.Report //上报人"` + sendData.Unit = postTargetCont.Unit //单位"` + sendData.Cycle = postTargetCont.Cycle //1:班;2:天;3:周;4:月;5:季度;6:年"` + sendData.Cycleattr = postTargetCont.Cycleattr //辅助计数"` + sendData.ScoringMethod = postTargetCont.ScoringMethod //计分方式(1:自动;2:手动)"` + sendData.VisibleRange = postTargetCont.VisibleRange //可见范围"` + sendData.VisibleGroup = postTargetCont.VisibleGroup //可见范围(集团)"` _, sendData.RelevantPostsMan, _ = getTargetAboutPost(postTargetCont.ReleDepart, postTargetCont.Dimension, postTargetCont.Id, 2) publicmethod.Result(0, sendData, c) } diff --git a/api/version1/postseting/postpc/type.go b/api/version1/postseting/postpc/type.go index 7bea686..7b1be07 100644 --- a/api/version1/postseting/postpc/type.go +++ b/api/version1/postseting/postpc/type.go @@ -144,7 +144,7 @@ type outShemeVersionCont struct { type getPostOneTarget struct { modelskpi.PostTarget RelevantPostsMan []postPeople `json:"relevantpostsman"` //相关岗位 - + DimensionStr string `json:"dimensionstr" ` } // 岗位单一指标关联岗位及提报人