更改:去掉多余数据使用删除

This commit is contained in:
yystopf 2023-12-06 13:50:20 +08:00
parent b15bddea49
commit 5fec6b3942
3 changed files with 5 additions and 5 deletions

View File

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

View File

@ -49,8 +49,8 @@ class IssuePriority < ApplicationRecord
'#ff6f00'
when '紧急'
'#d20f0f'
when '立刻'
'#f5222d'
# when '立刻'
# '#f5222d'
else
'#13b33e'
end

View File

@ -61,8 +61,8 @@ class IssueStatus < ApplicationRecord
'#13b33e'
when '关闭'
'#b1aaa5'
when '反馈'
'#13c2c2'
# when '反馈'
# '#13c2c2'
when '拒绝'
'#ff0000'
else