diff --git a/app/models/issue_priority.rb b/app/models/issue_priority.rb index 5904af649..ef17eda72 100644 --- a/app/models/issue_priority.rb +++ b/app/models/issue_priority.rb @@ -42,17 +42,17 @@ class IssuePriority < ApplicationRecord def pm_color case name when '低' - '#13b33e' + '#008043' when '正常' - '#0d5ef8' + '#0D5EF8' when '高' - '#ff6f00' + '#DA965D' when '紧急' - '#d20f0f' + '#C90713' # when '立刻' # '#f5222d' else - '#13b33e' + '#C90713' end end end diff --git a/app/models/issue_status.rb b/app/models/issue_status.rb index 63c15bd89..1c5822cea 100644 --- a/app/models/issue_status.rb +++ b/app/models/issue_status.rb @@ -51,22 +51,22 @@ class IssueStatus < ApplicationRecord end end - def pm_color + def pm_color(status=true) case name when '新增' - '#ff6f00' + '#DA965D' when '正在解决' - '#0d5ef8' + '#0D5EF8' when '已解决' - '#13b33e' + '#008043' when '关闭' - '#b1aaa5' + '#606060' # when '反馈' # '#13c2c2' when '拒绝' - '#ff0000' + '#C90713' else - '#ff6f00' + '#C90713' end end end