Browse Source

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

pull/347/head
yystopf 2 years ago
parent
commit
5fec6b3942
3 changed files with 5 additions and 5 deletions
  1. +1
    -1
      app/controllers/api/pm/issues_controller.rb
  2. +2
    -2
      app/models/issue_priority.rb
  3. +2
    -2
      app/models/issue_status.rb

+ 1
- 1
app/controllers/api/pm/issues_controller.rb 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"


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

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


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

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


Loading…
Cancel
Save