Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
调整显示
Browse files Browse the repository at this point in the history
zw963 committed May 28, 2024
1 parent 1da4be6 commit fdfd3a3
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions src/components/universities/main.cr
Original file line number Diff line number Diff line change
@@ -19,15 +19,21 @@ class Universities::Main < BaseComponent
end
end

br

div class: "row" do
render_985_checkboxs
div class: "col m2" do
render_batch_level_dropdown
end
end

br

render_chong_wen_bao_checkboxs

br

mount PaginationLinks, pages unless pages.one_page?
render_universities
mount PaginationLinks, pages unless pages.one_page?
@@ -120,7 +126,7 @@ then set (next <input/>).value to my.value2
private def render_chong_wen_bao_checkboxs
div class: "row" do
fieldset class: "row", style: "width: 380px;" do
legend ""
legend "最近四年冲的学校"
span class: "switch m3" do
mount CheckBox, "chong_2023", "", all_name_inputs
end
@@ -139,7 +145,7 @@ then set (next <input/>).value to my.value2
end

fieldset class: "row", style: "width: 380px; margin-left: 20px;" do
legend ""
legend "最近四年稳的学校"
span class: "switch m3" do
mount CheckBox, "wen_2023", "", all_name_inputs
end
@@ -158,7 +164,7 @@ then set (next <input/>).value to my.value2
end

fieldset class: "row", style: "width: 380px; margin-left: 20px;" do
legend ""
legend "最近四年保的学校"
span class: "switch m3" do
mount CheckBox, "bao_2023", "", all_name_inputs
end
@@ -180,15 +186,18 @@ then set (next <input/>).value to my.value2

private def render_985_checkboxs
full_path = context.request.resource
div class: "switch col m3" do
div class: "switch col m2" do
mount CheckBox, "is_985", "仅显示985", all_name_inputs
end
div class: "switch col m3" do
div class: "switch col m2" do
mount CheckBox, "is_211", "仅显示211", all_name_inputs
end
div class: "switch col m3" do
div class: "switch col m2" do
mount CheckBox, "is_good", "显示包含双一流专业高校", all_name_inputs
end
div class: "switch col m2" do
mount CheckBox, "is_exists_description", "显示含备注学校", all_name_inputs
end
end

private def render_batch_level_dropdown
@@ -235,7 +244,7 @@ then set (next <input/>).value to my.value2
th "报考编码"
th "大学名称(点击名称编辑)"
th "录取批次"
th "补充信息"
th "备注"
order_by_score_description_2023 = "点击排序(低分优先)"
order_by_score_description_2022 = "点击排序(低分优先)"
order_by_score_description_2021 = "点击排序(低分优先)"

0 comments on commit fdfd3a3

Please sign in to comment.