mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
Merge pull request 'pm 项目统计新增 open data 返回结果' (#261) from KingChan/forgeplus:pm_project_develop into pm_project_develop
This commit is contained in:
@@ -55,9 +55,15 @@ class Api::Pm::ProjectsController < Api::Pm::BaseController
|
||||
end
|
||||
}
|
||||
end
|
||||
open_data = {
|
||||
"1": type_status_data[1][1] + type_status_data[1][2],
|
||||
"2": type_status_data[2][1] + type_status_data[2][2],
|
||||
"3": type_status_data[3][1] + type_status_data[3][2],
|
||||
}
|
||||
data = {
|
||||
pie_chart: type_count_data,
|
||||
bar_chart: type_status_data
|
||||
bar_chart: type_status_data,
|
||||
open_data: open_data
|
||||
}
|
||||
render_ok(data: data)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user