Browse Source

Merge pull request '调整方法名 mp_color - pm_color' (#191) from KingChan/forgeplus:pm_project_develop into pm_project_develop

pull/347/head
KingChan 2 years ago
parent
commit
2cb7a1cf7e
4 changed files with 4 additions and 4 deletions
  1. +1
    -1
      app/models/issue_priority.rb
  2. +1
    -1
      app/models/issue_status.rb
  3. +1
    -1
      app/views/api/v1/issues/issue_priorities/_simple_detail.json.jbuilder
  4. +1
    -1
      app/views/api/v1/issues/statues/_simple_detail.json.jbuilder

+ 1
- 1
app/models/issue_priority.rb View File

@@ -39,7 +39,7 @@ class IssuePriority < ApplicationRecord
end
end

def mp_color
def pm_color
case name
when '低'
'#13b33e'


+ 1
- 1
app/models/issue_status.rb View File

@@ -51,7 +51,7 @@ class IssueStatus < ApplicationRecord
end
end

def mp_color
def pm_color
case name
when '新增'
'#ff6f00'


+ 1
- 1
app/views/api/v1/issues/issue_priorities/_simple_detail.json.jbuilder View File

@@ -1 +1 @@
json.(priority, :id, :name,:mp_color)
json.(priority, :id, :name,:pm_color)

+ 1
- 1
app/views/api/v1/issues/statues/_simple_detail.json.jbuilder View File

@@ -1 +1 @@
json.(status, :id, :name, :mp_color)
json.(status, :id, :name, :pm_color)

Loading…
Cancel
Save