Merge branch 'pm_project_develop' of https://gitlink.org.cn/Trustie/forgeplus into pm_project_develop

This commit is contained in:
yystopf 2024-02-03 17:12:42 +08:00
commit c5af356f34
1 changed files with 6 additions and 0 deletions

View File

@ -74,6 +74,12 @@ class Api::Pm::ProjectsController < Api::Pm::BaseController
"2": type_status_data[2][1].to_i + type_status_data[2][2].to_i,
"3": type_status_data[3][1].to_i + type_status_data[3][2].to_i,
}
if type_count_data.keys.size < 3
nedd_add = [1,2,3] - type_count_data.keys
nedd_add.map{ |e|
type_count_data[e] = 0
}
end
data = {
pie_chart: type_count_data,
bar_chart: type_status_data,