Merge pull request 'pm 项目统计新增 open data 返回结果' (#261) from KingChan/forgeplus:pm_project_develop into pm_project_develop

This commit is contained in:
KingChan 2024-01-30 11:44:05 +08:00
commit 69b9ae0cb0
1 changed files with 7 additions and 1 deletions

View File

@ -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