Merge pull request 'pm 项目统计新增 open data 返回结果' (#261) from KingChan/forgeplus:pm_project_develop into pm_project_develop
This commit is contained in:
commit
69b9ae0cb0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue