更改:去掉多余数据使用删除
This commit is contained in:
parent
b15bddea49
commit
5fec6b3942
|
@ -91,7 +91,7 @@ class Api::Pm::IssuesController < Api::Pm::BaseController
|
|||
end
|
||||
|
||||
def statues
|
||||
@statues = IssueStatus.where.not(name: "反馈").order("position asc")
|
||||
@statues = IssueStatus.where.order("position asc")
|
||||
@statues = @statues.ransack(name_cont: params[:keyword]).result if params[:keyword].present?
|
||||
@statues = kaminary_select_paginate(@statues)
|
||||
render "api/v1/issues/statues/index"
|
||||
|
|
|
@ -49,8 +49,8 @@ class IssuePriority < ApplicationRecord
|
|||
'#ff6f00'
|
||||
when '紧急'
|
||||
'#d20f0f'
|
||||
when '立刻'
|
||||
'#f5222d'
|
||||
# when '立刻'
|
||||
# '#f5222d'
|
||||
else
|
||||
'#13b33e'
|
||||
end
|
||||
|
|
|
@ -61,8 +61,8 @@ class IssueStatus < ApplicationRecord
|
|||
'#13b33e'
|
||||
when '关闭'
|
||||
'#b1aaa5'
|
||||
when '反馈'
|
||||
'#13c2c2'
|
||||
# when '反馈'
|
||||
# '#13c2c2'
|
||||
when '拒绝'
|
||||
'#ff0000'
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue