From 32a63aed4a84de9658bc1242e4a8ef78f19457b0 Mon Sep 17 00:00:00 2001 From: yystopf Date: Tue, 1 Jul 2025 14:36:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=EF=BC=9B=E4=BC=98=E5=85=88?= =?UTF-8?q?=E7=BA=A7=E5=92=8C=E7=8A=B6=E6=80=81=E8=89=B2=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/issue_priority.rb | 10 +++++----- app/models/issue_status.rb | 14 +++++++------- 2 files changed, 12 insertions(+), 12 deletions(-) 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