更改;优先级和状态色值

This commit is contained in:
yystopf 2025-07-01 14:36:27 +08:00
parent 422d489ae2
commit 32a63aed4a
2 changed files with 12 additions and 12 deletions

View File

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

View File

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