新增GLCC PR检测全部选择
This commit is contained in:
parent
5aff334054
commit
9ca81b06b0
|
@ -13,11 +13,9 @@ class Admins::GlccExamineMaterial < ApplicationQuery
|
||||||
materials = GlccMediumTermExamineMaterial.all
|
materials = GlccMediumTermExamineMaterial.all
|
||||||
|
|
||||||
# term
|
# term
|
||||||
term = params[:term] || [1,2]
|
term = params[:term].zero ? [1, 2] : params[:term]
|
||||||
if term.present?
|
materials = materials.where(term: term) if term.present?
|
||||||
materials = materials.where(term: term)
|
#year
|
||||||
end
|
|
||||||
#year
|
|
||||||
year = if params[:date]
|
year = if params[:date]
|
||||||
params[:date][:year]
|
params[:date][:year]
|
||||||
end
|
end
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<%= form_tag(admins_glcc_pr_check_index_path, method: :get, class: 'form-inline search-form flex-1', remote: true) do %>
|
<%= form_tag(admins_glcc_pr_check_index_path, method: :get, class: 'form-inline search-form flex-1', remote: true) do %>
|
||||||
<div class="form-group mr-2">
|
<div class="form-group mr-2">
|
||||||
<label for="status">考核选项:</label>
|
<label for="status">考核选项:</label>
|
||||||
<% status_options = [['中期考核',1], ['结项考核', 2]] %>
|
<% status_options = [['全部',0]['中期考核',1], ['结项考核', 2]] %>
|
||||||
<%= select_tag(:term, options_for_select(status_options), class: 'form-control') %>
|
<%= select_tag(:term, options_for_select(status_options), class: 'form-control') %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue