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