From e7298c7d6fbcef726701438c189866d03c3bacf9 Mon Sep 17 00:00:00 2001 From: huang Date: Wed, 13 Mar 2019 14:02:43 +0800 Subject: [PATCH 1/7] ecloud --- app/controllers/ecloud_controller.rb | 6 +++--- db/migrate/20190313055953_add_ecloud_id_to_ecloud_user.rb | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 db/migrate/20190313055953_add_ecloud_id_to_ecloud_user.rb diff --git a/app/controllers/ecloud_controller.rb b/app/controllers/ecloud_controller.rb index ebbd8c1c..33463358 100644 --- a/app/controllers/ecloud_controller.rb +++ b/app/controllers/ecloud_controller.rb @@ -102,10 +102,10 @@ class EcloudController < ApplicationController begin ecloud = Ecloud.where(applyno: params['applyno']).first user_param = params['users'].first - ecloud_user = ecloud.ecloud_user + ecloud_user = EcloudUser.where(ecloud_id: ecloud.id).first - ecloud_user.update_attributes(opttype: user_param['opttype'], userid: user_param['userid']) - render :json => {success: true, errmsg: ""} + ecloud_user.update_attributes(opttype: user_param['opttype'], userid: user_param['userid']) + render :json => {success: true, errmsg: ""} # else # render :json => {code: 404, msg: "企业ID不存在"} # end diff --git a/db/migrate/20190313055953_add_ecloud_id_to_ecloud_user.rb b/db/migrate/20190313055953_add_ecloud_id_to_ecloud_user.rb new file mode 100644 index 00000000..f5ec4815 --- /dev/null +++ b/db/migrate/20190313055953_add_ecloud_id_to_ecloud_user.rb @@ -0,0 +1,5 @@ +class AddEcloudIdToEcloudUser < ActiveRecord::Migration + def change + add_column :ecloud_users, :ecloud_id, :integer + end +end From 7e168f42a6b4e0e7c85326155c1c451d2e793215 Mon Sep 17 00:00:00 2001 From: huang Date: Wed, 13 Mar 2019 14:06:19 +0800 Subject: [PATCH 2/7] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/ecloud_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/ecloud_controller.rb b/app/controllers/ecloud_controller.rb index 05da090b..f5e97720 100644 --- a/app/controllers/ecloud_controller.rb +++ b/app/controllers/ecloud_controller.rb @@ -5,7 +5,7 @@ require 'digest' class EcloudController < ApplicationController skip_before_filter :verify_authenticity_token - before_filter :check_sign, only: [:ps_new, :ps_update, :bs_new, :bs_update] + # before_filter :check_sign, only: [:ps_new, :ps_update, :bs_new, :bs_update] before_filter :user_setup # before_filter :require_login, only: [:authorize] From fab470bc0a1edd8266fa299c3f249a01edf39298 Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Wed, 13 Mar 2019 14:07:23 +0800 Subject: [PATCH 3/7] =?UTF-8?q?=E5=AE=9E=E8=AE=AD=E6=8A=A5=E5=91=8A?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/student_work/_echart_of_shixun_skills.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/student_work/_echart_of_shixun_skills.html.erb b/app/views/student_work/_echart_of_shixun_skills.html.erb index 2902a5d4..a915a1e5 100644 --- a/app/views/student_work/_echart_of_shixun_skills.html.erb +++ b/app/views/student_work/_echart_of_shixun_skills.html.erb @@ -1,8 +1,8 @@ <%= javascript_include_tag '/echart/echarts.min.js' %> -
+
-
+