From 6b8d4079a2fed87d8e4151a0bafd984a48bcd28d Mon Sep 17 00:00:00 2001 From: cxt Date: Mon, 28 Aug 2017 16:27:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E8=AE=AD=E7=95=99=E8=A8=80=E5=88=97?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/managements_controller.rb | 17 +++++++++++++++++ app/views/layouts/base_management.html.erb | 9 +++++++-- app/views/managements/shixun_feedback.html.erb | 0 app/views/managements/shixun_feedback.js.erb | 0 config/routes.rb | 1 + 5 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 app/views/managements/shixun_feedback.html.erb create mode 100644 app/views/managements/shixun_feedback.js.erb diff --git a/app/controllers/managements_controller.rb b/app/controllers/managements_controller.rb index d52300759..b48bbd3ee 100644 --- a/app/controllers/managements_controller.rb +++ b/app/controllers/managements_controller.rb @@ -116,6 +116,23 @@ class ManagementsController < ApplicationController end end + # 实训留言 + def shixun_feedback + @menu_type = 9 + @sub_type = 1 + @discusses = Discuss.where("0=0").reorder("created_at desc") + @discusses_count = @discusses.count + limit = 20 + @is_remote = true + @discusses_pages = Paginator.new @discusses_count, limit, params['page'] || 1 + @offset ||= @discusses_pages.offset + @discusses = paginateHelper @discusses, limit + respond_to do |format| + format.js + format.html + end + end + # 专业列表 def profession @syllabus=Syllabus.where("0=0") diff --git a/app/views/layouts/base_management.html.erb b/app/views/layouts/base_management.html.erb index ce384a80c..8b4098f01 100644 --- a/app/views/layouts/base_management.html.erb +++ b/app/views/layouts/base_management.html.erb @@ -40,7 +40,7 @@ <% when 8 %> 消息 <% when 9 %> - 留言 + <%= @sub_type == 1 ? "实训留言列表" : "" %> <% when 10 %> <%= @sub_type == 1 ? "实名认证":(@sub_type == 2? "试用授权":(@sub_type == 3?"部门审批":(@sub_type == 4?"单位审批":(@sub_type == 5?"全部实训发布":(@sub_type == 6?"课程实训发布":"职业认证")))))%> <% when 11 %> @@ -86,7 +86,12 @@
  • 消息
  • -
  • 留言
  • +
  • + 留言 + +
  • 审批