From 222139f2216b459d080bd214019ddd9d1f8135bb Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Tue, 6 Aug 2019 13:52:29 +0800 Subject: [PATCH 01/41] padding 60 --- public/react/src/modules/ShCommunity/CommunityHome.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/public/react/src/modules/ShCommunity/CommunityHome.js b/public/react/src/modules/ShCommunity/CommunityHome.js index d1f51fad..dc86f23a 100644 --- a/public/react/src/modules/ShCommunity/CommunityHome.js +++ b/public/react/src/modules/ShCommunity/CommunityHome.js @@ -66,7 +66,12 @@ class CommunityHome extends Component { } let xhslist=["路由交换","H3CNA","H3CNE","H3CSE-Routing&Switching","H3CTE","","","H3CNE-SDN","","H3CIE-Routing&SWitching"] return ( -
+
+
{ BannersUrl===""?"": From 9b40bbd85d3c93a057216c12afc8fa7e96900fef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Thu, 15 Aug 2019 11:31:29 +0800 Subject: [PATCH 02/41] =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../react/src/modules/ec/ecCourseSupports/ecCourseSupports.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/react/src/modules/ec/ecCourseSupports/ecCourseSupports.js b/public/react/src/modules/ec/ecCourseSupports/ecCourseSupports.js index 26f9a167..ef0d4625 100644 --- a/public/react/src/modules/ec/ecCourseSupports/ecCourseSupports.js +++ b/public/react/src/modules/ec/ecCourseSupports/ecCourseSupports.js @@ -470,7 +470,7 @@ class ecCourseSupports extends Component { -
+
Date: Fri, 16 Aug 2019 15:56:14 +0800 Subject: [PATCH 03/41] b --- public/react/src/modules/ec/css/ecCourseEvaluations.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/react/src/modules/ec/css/ecCourseEvaluations.css b/public/react/src/modules/ec/css/ecCourseEvaluations.css index 11ee74bb..5319092b 100644 --- a/public/react/src/modules/ec/css/ecCourseEvaluations.css +++ b/public/react/src/modules/ec/css/ecCourseEvaluations.css @@ -558,4 +558,8 @@ a.TrainingLecturer:hover{ .mt60{ margin-top:60px; +} + +.SystemParameters{ + height:auto; } \ No newline at end of file From 7da945e398563d48f87289bb6ed4963ca9764992 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Fri, 16 Aug 2019 16:02:14 +0800 Subject: [PATCH 04/41] b --- public/react/src/modules/ec/ecCourseSupportSetting/style.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/react/src/modules/ec/ecCourseSupportSetting/style.css b/public/react/src/modules/ec/ecCourseSupportSetting/style.css index f961452a..85646a47 100644 --- a/public/react/src/modules/ec/ecCourseSupportSetting/style.css +++ b/public/react/src/modules/ec/ecCourseSupportSetting/style.css @@ -28,7 +28,7 @@ } .SystemParameters { - height: 60px; + min-height: 60px; } p { From 037d191cb736e21fceae0b61fffc2b7b6986dc21 Mon Sep 17 00:00:00 2001 From: jingquan huang Date: Fri, 16 Aug 2019 12:20:23 +0800 Subject: [PATCH 05/41] =?UTF-8?q?=E8=BF=81=E7=A7=BB=E7=94=A8=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../20190803022733_add_exec_time_to_evaluate_records.rb | 5 ----- lib/tasks/users.rake | 8 ++++---- 2 files changed, 4 insertions(+), 9 deletions(-) delete mode 100644 db/migrate/20190803022733_add_exec_time_to_evaluate_records.rb diff --git a/db/migrate/20190803022733_add_exec_time_to_evaluate_records.rb b/db/migrate/20190803022733_add_exec_time_to_evaluate_records.rb deleted file mode 100644 index 0b054e3c..00000000 --- a/db/migrate/20190803022733_add_exec_time_to_evaluate_records.rb +++ /dev/null @@ -1,5 +0,0 @@ -class AddExecTimeToEvaluateRecords < ActiveRecord::Migration - def change - add_column :evaluate_records, :exec_time, :integer - end -end diff --git a/lib/tasks/users.rake b/lib/tasks/users.rake index bfa0678c..38535011 100644 --- a/lib/tasks/users.rake +++ b/lib/tasks/users.rake @@ -86,10 +86,10 @@ task :add_test_users => :environment do - (1..1000).each do |i| + (1..2000).find_each do |i| no = sprintf("%04d", i) - phone = "5160731#{no}" + phone = "6160731#{no}" us = UsersService.new user = us.register phone: phone, password: 'edu12345678' @@ -100,7 +100,7 @@ task :add_test_users => :environment do 平夏,凌旋,孤丝,怜寒,向萍,凡松,青丝,翠安,如天,凌雪,绮菱,代云,南莲,寻南,春文,香薇,冬灵,凌珍,采绿,天春,沛文, 紫槐,幻柏,采文,春梅,雪旋,盼海,映梦,安雁,映容,凝阳,访风,天亦,平绿,盼香,觅风,小霜,雪萍,半雪,山柳,谷雪,靖易, 白薇,梦菡,飞绿,如波,又晴,友易,香菱,冬亦,问雁,妙春,海冬,半安,平春,幼柏,秋灵,凝芙,念烟,白山,从灵,尔芙,迎蓉, - 念寒,翠绿,翠芙,靖儿,妙柏,千凝,小珍,天巧。妙旋,雪枫,夏菡,元绿,痴灵,绮琴,雨双,听枫,觅荷,凡之,晓凡,雅彤,香薇, + 念寒,翠绿,翠芙,靖儿,妙柏,千凝,小珍,天巧,妙旋,雪枫,夏菡,元绿,痴灵,绮琴,雨双,听枫,觅荷,凡之,晓凡,雅彤,香薇, 孤风,从安,绮彤,之玉,雨珍,幻丝,代梅,香波,青亦,元菱,海瑶,飞槐,听露,梦岚,幻竹,新冬,盼翠,谷云".split(",") lastname = l[rand(l.length)] + f[rand(f.length)] @@ -109,7 +109,7 @@ task :add_test_users => :environment do lastname: lastname, nickname: '', sex: 0, - mail: "00educoder#{no}@qq.com", + mail: "stueducoder#{no}@qq.com", identity: 1, te_technical_title: 0, pro_technical_title: 0, From ef6858b936ebb5b5d56121a308e1922e4c5bdc3a Mon Sep 17 00:00:00 2001 From: jingquan huang Date: Fri, 16 Aug 2019 12:29:18 +0800 Subject: [PATCH 06/41] =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/tasks/users.rake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/tasks/users.rake b/lib/tasks/users.rake index 38535011..c1a9da91 100644 --- a/lib/tasks/users.rake +++ b/lib/tasks/users.rake @@ -86,7 +86,8 @@ task :add_test_users => :environment do - (1..2000).find_each do |i| + (1..2000).each do |i| + puts i no = sprintf("%04d", i) phone = "6160731#{no}" From fdcffdf3355567d3467d454d12bea97615a4608a Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Fri, 16 Aug 2019 15:52:15 +0800 Subject: [PATCH 07/41] =?UTF-8?q?=E5=85=AC=E7=94=A8=E6=A0=B7=E5=BC=8F+?= =?UTF-8?q?=E5=B7=A5=E7=A8=8B=E8=AE=A4=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/index.js | 2 +- .../ecCourseEvaluations/ecCourseEvaluations.js | 11 ++++++----- .../modules/ec/ecStudentList/ecStudentList.js | 16 +++++++++++----- public/stylesheets/educoder/edu-main.css | 2 +- 4 files changed, 19 insertions(+), 12 deletions(-) diff --git a/public/react/src/index.js b/public/react/src/index.js index 73bc2829..55cebf17 100644 --- a/public/react/src/index.js +++ b/public/react/src/index.js @@ -41,7 +41,7 @@ var proxy = "http://localhost:3000" // proxy = "http://testbdweb.trustie.net" // proxy = "http://testbdweb.educoder.net" // proxy ="http://192.168.2.63:3000" - proxy='http://localhost:3000' + proxy='http://120.27.231.56:48080' const requestMap={}; // 在这里使用requestMap控制,避免用户通过双击等操作发出重复的请求; // 如果需要支持重复的请求,考虑config里面自定义一个allowRepeat参考来控制 diff --git a/public/react/src/modules/ec/ecCourseEvaluations/ecCourseEvaluations.js b/public/react/src/modules/ec/ecCourseEvaluations/ecCourseEvaluations.js index 619353b7..1d53d11d 100644 --- a/public/react/src/modules/ec/ecCourseEvaluations/ecCourseEvaluations.js +++ b/public/react/src/modules/ec/ecCourseEvaluations/ecCourseEvaluations.js @@ -54,7 +54,8 @@ class ecCourseEvaluations extends Component { checkevalue:undefined, isreload:false, newModallist:false, - isreloads:false + isreloads:false, + isSpin:false } } componentWillMount(){ @@ -880,7 +881,7 @@ class ecCourseEvaluations extends Component { 关联课堂 + >关联课堂11s -
+
{/*课程考核标准*/} {/*(请在完成配置后,使用各项成绩 模板,将本学年所有参与的学生成绩数据导入系统)*/} @@ -930,7 +931,7 @@ class ecCourseEvaluations extends Component {
- +

@@ -1222,7 +1223,7 @@ class ecCourseEvaluations extends Component { }

- +
diff --git a/public/react/src/modules/ec/ecStudentList/ecStudentList.js b/public/react/src/modules/ec/ecStudentList/ecStudentList.js index b60ab2ee..50d93de9 100644 --- a/public/react/src/modules/ec/ecStudentList/ecStudentList.js +++ b/public/react/src/modules/ec/ecStudentList/ecStudentList.js @@ -1,6 +1,7 @@ import React, { Component } from 'react'; import axios from 'axios'; +import { Spin } from 'antd'; import { TPMIndexHOC } from '../../tpm/TPMIndexHOC'; @@ -30,7 +31,8 @@ class ecStudentList extends Component { studentall:false, student_id:undefined, Modallisttypess:0, - ismanager:false + ismanager:false, + isSpin:false } } componentDidMount(){ @@ -120,6 +122,7 @@ class ecStudentList extends Component { uploadfile=(file)=>{ + this.setState({isSpin:true}) let {majorschoollist}=this.state; let Url =majorschoollist.import_url; const form = new FormData(); @@ -132,7 +135,8 @@ class ecStudentList extends Component { // titlemessage: response.data.message+"(支撑关系变更)", Modallist: '已成功导入'+response.data.count+"条数据!", Modallisttype:true, - Modallisttypes:1 + Modallisttypes:1, + isSpin:false }) }else if(response.data.status===0){ // message.warning(response.data.message); @@ -140,7 +144,8 @@ class ecStudentList extends Component { // titlemessage: response.data.message+"(支撑关系变更)", Modallist:response.data.message, Modallisttype:true, - Modallisttypes:0 + Modallisttypes:0, + isSpin:false }) } }).catch((error) => { @@ -357,8 +362,8 @@ class ecStudentList extends Component { 删除
}
- -
+ +

+
diff --git a/public/stylesheets/educoder/edu-main.css b/public/stylesheets/educoder/edu-main.css index 94d38790..1caf5cba 100644 --- a/public/stylesheets/educoder/edu-main.css +++ b/public/stylesheets/educoder/edu-main.css @@ -122,7 +122,7 @@ a.decoration{text-decoration: underline} .mr3{margin-right: 3px}.mr4{margin-right: 4px}.mr5{ margin-right: 5px;}.mr8{ margin-right: 8px;}.mr10{ margin-right: 10px;}.mr12{ margin-right:12px!important;}.mr15{ margin-right: 15px;}.mr18{ margin-right: 18px;}.mr20{ margin-right: 20px;}.mr24{ margin-right: 24px;}.mr25{ margin-right: 25px;}.mr30{ margin-right:30px;}.mr35{margin-right:35px;}.mr40{margin-right:40px;}.mr45{margin-right:45px;}.mr50{ margin-right: 50px;}.mr60{ margin-right:60px;}.mr70{ margin-right: 70px;}.mr75{ margin-right: 75px;}.mr80{ margin-right:80px;}.mr90{ margin-right:90px;}.mr100{ margin-right: 100px;}.mr110{ margin-right:110px;}.mr350{ margin-right:350px;} .pt1{ padding-top:1px;}.pt3{ padding-top:3px!important;}.pt5{ padding-top:5px!important;}.pt10{ padding-top:10px;}.pt15{ padding-top:15px;}.pt17{ padding-top:17px;}.pt20{ padding-top:20px!important;}.pt25{ padding-top:25px;}.pt30{ padding-top:30px;}.pt35{ padding-top:35px;}.pt37{ padding-top:37px;}.pt40{ padding-top:40px;}.pt47{ padding-top:47px;}.pt49{ padding-top:49px;}.pt50{ padding-top:50px;}.pt60{ padding-top:60px;}.pt70{ padding-top:70px;}.pt80{ padding-top:80px;}.pt90{ padding-top:90px;}.pt100{padding-top:100px;}.pt110{ padding-top:110px;}.pt120{ padding-top:120px;}.pt130{padding-top:130px;}.pt200{padding-top:200px;} -.pb3{ padding-bottom:3px!important;}.pb5{ padding-bottom:5px!important;}.pb10{ padding-bottom:10px;}.pb15{ padding-bottom:15px;}.pb20{ padding-bottom:20px;}.pb25{ padding-bottom:20px;}.pb25{ padding-bottom:20px;}.pb30{ padding-bottom:30px;}.pb35{ padding-bottom:35px;}.pb40{ padding-bottom:40px;}.pb47{ padding-bottom:47px;}.pb50{ padding-bottom:50px;}.pb60{ padding-bottom:60px;}.pb70{ padding-bottom:70px;}.pb80{ padding-bottom:80px;}.pb90{ padding-bottom:90px;}.pb100{ padding-bottom:100px;}.pb110{ padding-bottom:110px;}.pb155{ padding-bottom:155px;} +.pb3{ padding-bottom:3px!important;}.pb5{ padding-bottom:5px!important;}.pb10{ padding-bottom:10px;}.pb15{ padding-bottom:15px;}.pb20{ padding-bottom:20px;}.pb25{ padding-bottom:25px;}.pb30{ padding-bottom:30px;}.pb35{ padding-bottom:35px;}.pb40{ padding-bottom:40px;}.pb47{ padding-bottom:47px;}.pb50{ padding-bottom:50px;}.pb60{ padding-bottom:60px;}.pb70{ padding-bottom:70px;}.pb80{ padding-bottom:80px;}.pb90{ padding-bottom:90px;}.pb100{ padding-bottom:100px;}.pb110{ padding-bottom:110px;}.pb155{ padding-bottom:155px;} .pr2{ paddding-right:2px;}.pr5{ padding-right:5px;}.pr10{ padding-right:10px;}.pr15{ padding-right:15px;}.pr20{ padding-right:20px!important;}.pr30{ padding-right:30px!important;}.pr35{ padding-right:35px!important;}.pr42{ padding-right:42px;}.pr45{ padding-right:45px;}.pr48{ padding-right:48px;}.pr57{ padding-right:57px;}.pr60{ padding-right:60px;}.pr70{ padding-right:70px;}.pr72{ padding-right:72px;}.pr75{ padding-right:75px;}.pr88{ padding-right:88px;} .pl0{ padding-left:0px!important;}.pl2{ padding-left:2px;}.pl5{ padding-left:5px;}.pl7{ padding-left:7px;}.pl8{ padding-left:8px;}.pl10{ padding-left:10px;}.pl12{ padding-left:12px!important;}.pl15{ padding-left:15px;}.pl20{ padding-left:20px;}.pl22{ padding-left:22px;}.pl25{ padding-left:25px;}.pl28{ padding-left:28px;}.pl30{ padding-left:30px;}.pl33{padding-left: 33px}.pl35{ padding-left:35px;}.pl40{ padding-left:40px;}.pl42{ padding-left:42px;}.pl45{ padding-left:45px;}.pl50{ padding-left:50px;}.pl60{ padding-left:60px;}.pl70{padding-left:70px;}.pl75{padding-left:75px;}.pl80{padding-left:80px;}.pl88{ padding-left:88px;}.pl92{padding-left:92px;}.pl100{ padding-left:100px;} From 06cb2ff823e91c5f2fb679fc2f4497329ada5856 Mon Sep 17 00:00:00 2001 From: jingquan huang Date: Fri, 16 Aug 2019 18:31:29 +0800 Subject: [PATCH 08/41] ecloud --- 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 3e02c579..ac303ce3 100644 --- a/app/controllers/ecloud_controller.rb +++ b/app/controllers/ecloud_controller.rb @@ -18,7 +18,7 @@ class EcloudController < ApplicationController skip_before_filter :verify_authenticity_token before_filter :save_para - 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 406d026e0d02e0a2e0fcf9891a8083d3ede884a9 Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Sat, 17 Aug 2019 09:56:13 +0800 Subject: [PATCH 09/41] =?UTF-8?q?=E5=B7=A5=E7=A8=8B=E8=AE=A4=E8=AF=81?= =?UTF-8?q?=E9=83=A8=E5=88=86=E5=AF=BC=E5=85=A5=E6=8C=89=E9=92=AE=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E8=BF=87=E9=95=BF=E5=8A=A0=E4=B8=8A=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/index.js | 2 +- .../ecCourseEvaluations.js | 560 +++++++++--------- 2 files changed, 286 insertions(+), 276 deletions(-) diff --git a/public/react/src/index.js b/public/react/src/index.js index 55cebf17..98130846 100644 --- a/public/react/src/index.js +++ b/public/react/src/index.js @@ -41,7 +41,7 @@ var proxy = "http://localhost:3000" // proxy = "http://testbdweb.trustie.net" // proxy = "http://testbdweb.educoder.net" // proxy ="http://192.168.2.63:3000" - proxy='http://120.27.231.56:48080' + proxy='http://47.96.87.25:48080' const requestMap={}; // 在这里使用requestMap控制,避免用户通过双击等操作发出重复的请求; // 如果需要支持重复的请求,考虑config里面自定义一个allowRepeat参考来控制 diff --git a/public/react/src/modules/ec/ecCourseEvaluations/ecCourseEvaluations.js b/public/react/src/modules/ec/ecCourseEvaluations/ecCourseEvaluations.js index c3e45ce9..8f091f7b 100644 --- a/public/react/src/modules/ec/ecCourseEvaluations/ecCourseEvaluations.js +++ b/public/react/src/modules/ec/ecCourseEvaluations/ecCourseEvaluations.js @@ -55,7 +55,8 @@ class ecCourseEvaluations extends Component { isreload:false, newModallist:false, isreloads:false, - isSpin:false + isSpin:false, + listSpin:false } } componentWillMount(){ @@ -91,7 +92,8 @@ class ecCourseEvaluations extends Component { let newec_course_id=this.props.match.params.ec_course_id; this.setState({ - ec_course_id:newec_course_id + ec_course_id:newec_course_id, + listSpin:true }) const url = `/ec_course_evaluations?ec_course_id=`+newec_course_id; axios.get(url, { @@ -111,7 +113,8 @@ class ecCourseEvaluations extends Component { course_url:response.data.course_url, ec_course_id:response.data.ec_course_id, ec_year_id:response.data.ec_year_id, - ecmanager: response.data.is_manager + ecmanager: response.data.is_manager, + listSpin:false }) } }).catch(function (error) { @@ -565,6 +568,7 @@ class ecCourseEvaluations extends Component { } sync_course_data=()=>{ + this.setState({listSpin:true}) let ec_course_id=this.props.match.params.ec_course_id; let Url ='/ec_course_achievement_methods/sync_course_data'; axios.post(Url, { @@ -578,14 +582,16 @@ class ecCourseEvaluations extends Component { this.setState({ // titlemessage: response.data.message+"(支撑关系变更)", Modallist: response.data.message, - Modallisttype:true + Modallisttype:true, + listSpin:false }) this.UpdateEvaluations(); }else if(response.data.status===-1){ this.setState({ // titlemessage: response.data.message+"(支撑关系变更)", Modallist: response.data.message, - Modallisttype:true + Modallisttype:true, + listSpin:false }) } @@ -596,6 +602,7 @@ class ecCourseEvaluations extends Component { } uploadfile=(file)=>{ + this.setState({listSpin:true}) let Url =`/ec_course_evaluations/`+file.data+`/import_score`; const form = new FormData(); form.append('file', file.file); @@ -608,7 +615,8 @@ class ecCourseEvaluations extends Component { Modallist: '已成功导入'+response.data.count+"条数据", Modallisttype:true, isreload:true, - isreloads:true + isreloads:true, + listSpin:false }) }else if(response.data.status===0){ // message.warning(response.data.message); @@ -617,7 +625,8 @@ class ecCourseEvaluations extends Component { Modallist:response.data.message, Modallisttype:true, isreload:false, - isreloads:false + isreloads:false, + listSpin:false }) } }).catch((error) => { @@ -657,6 +666,7 @@ class ecCourseEvaluations extends Component { saveassclasslist=()=>{ // 列表清空 //搜索框清空 + this.setState({isSpin:true}); let{checkevalue}=this.state; let ec_course_id=this.props.match.params.ec_course_id; @@ -673,7 +683,8 @@ class ecCourseEvaluations extends Component { this.setState({ Modallist: "关联失败", Modallisttype:true, - isreload:false + isreload:false, + isSpin:false }) }else if(response.data.status===0)[ this.setState({ @@ -683,7 +694,8 @@ class ecCourseEvaluations extends Component { assclassvalue:"", Modallist: "关联成功", Modallisttype:true, - isreload:true + isreload:true, + isSpin:false }) ] @@ -767,6 +779,7 @@ class ecCourseEvaluations extends Component { return (
+ } spinning={this.state.isSpin}> 关联课堂11s + >关联课堂
- -
- -

- - 名称 - 考核次数 - 支撑关系 - 考核分项名称 - - {/* 操作 */} - {ecmanager===false?"": - - - } - - - - 成绩导入状态 - - - 成绩来源 - - - 平均成绩导入模板 - - - 明细成绩导入模板 - -

-
- { - ec_course_evaluation_lists===undefined? }/>:ec_course_evaluation_lists.map((list,m)=>{ + +
+

+ + 名称 + 考核次数 + 支撑关系 + 考核分项名称 + + {/* 操作 */} + {ecmanager===false?"": + + + } + + + + 成绩导入状态 + + + 成绩来源 + + + 平均成绩导入模板 + + + 明细成绩导入模板 + +

+ } spinning={this.state.listSpin}> +
+ { + ec_course_evaluation_lists && ec_course_evaluation_lists.map((list,m)=>{ + + return( +
  • + {m+1} + +
    {list.name}
    +
    + +
    {list.evluation_count}
    +
    + +
    {list.status===1?"总成绩支撑":list.status===2?"分项成绩支撑":list.status}
    +
    + + + { + list.subitems.map((listchild,mk)=>{ + return ( + +
    {listchild.name} +
    +
    + ) + }) - return( -
  • - {m+1} - -
    {list.name}
    -
    - -
    {list.evluation_count}
    -
    - -
    {list.status===1?"总成绩支撑":list.status===2?"分项成绩支撑":list.status}
    -
    - - - { - list.subitems.map((listchild,mk)=>{ - return ( - -
    {listchild.name} -
    -
    - ) - }) - - } -
    - - - {/*style={{display:list.is_course_type===false?'inline-block':'none'}}*/} - {/* editSubentry 编辑的 */} - -
    -
    - - - - -
    -
    您确定要删除吗?
    -
    -
    - 取消 - 确定 -
    -
    - - - -
    -
    -
    - - - -
    - 模板下载 -
    - - -
    -
    - - - -
    模板下载
    -
    -
    - - -
    -
    - - + + + {/*style={{display:list.is_course_type===false?'inline-block':'none'}}*/} + {/* editSubentry 编辑的 */} + +
    +
    + + + + - {ecmanager===false?成绩导入:成绩导入} - - +
    +
    您确定要删除吗?
    +
    +
    + 取消 + 确定 +
    +
    + + +
    -
    + + + +
    + 模板下载 +
    + - {ecmanager===false?"" - : -
    {list.import_status===true||list.is_course_type?"已导入":"未导入"}
    -
    } +
    +
    + + +
    模板下载
    +
    +
    -
    + +
    +
    + + + {ecmanager===false?成绩导入:成绩导入} + + +
    +
    +
    - { - params===" " ? " " : params.map((item,key)=>{ + {ecmanager===false?"" + : +
    {list.import_status===true||list.is_course_type?"已导入":"未导入"}
    +
    } - return ( -
    -
    - -
    - 名称 - - - 考核次数 - - - - - 由单次考核总成绩支撑课程目标 -
    - 由单次考核的某分项成绩支撑课程目标 -
    -
    -
    -
    - { - item.subitems.map((i,k)=>{ - return( -
    - 考核分项名称 - - - -
    - - - - - - - -
    -
    -
    - ) - }) - } +
    -
    + { -
    -
    保存
    -
    取消
    + params===" " ? " " : params.map((item,key)=>{ + + return ( +
    +
    + +
    + 名称 + + + 考核次数 + + + + + 由单次考核总成绩支撑课程目标 +
    + 由单次考核的某分项成绩支撑课程目标 +
    +
    +
    + +
    + { + item.subitems.map((i,k)=>{ + return( +
    + 考核分项名称 + + + +
    + + + + + + + +
    +
    +
    + ) + }) + } + +
    + +
    +
    保存
    +
    取消
    +
    + {Modallist}
    - {Modallist} -
    - ) - }) - } + ) + }) + } -
    +
    -
  • - ) - }) - } + + ) + }) + } - {ecmanager===false?"":
    + {ecmanager===false?"":
    - { + { - params===" " ? " " : params.map((item,key)=>{ + params===" " ? " " : params.map((item,key)=>{ - return ( -
    -
    + return ( +
    +
    -
    - 名称 - +
    + 名称 + - 考核次数 - + 考核次数 + + + + + 由单次考核总成绩支撑课程目标 +
    + 由单次考核的某分项成绩支撑课程目标 +
    +
    +
    - - - 由单次考核总成绩支撑课程目标
    - 由单次考核的某分项成绩支撑课程目标 -
    -
    + { + item.subitems.map((i,k)=>{ + return( +
    + 考核分项名称 + + + +
    + + + + + + +
    - -
    - { - item.subitems.map((i,k)=>{ - return( -
    - 考核分项名称 - - - -
    - - - - - - - -
    -
    -
    - ) - }) - } -
    - {/* 新建 */} -
    保存
    -
    取消
    + +
    + ) + }) + } +
    + {/* 新建 */} +
    保存
    +
    取消
    +
    + {Modallist}
    - {Modallist} -
    -
    - ) - }) - } -
    - } -
    +
    + ) + }) + } +
    + } +
    +
    -
    - -
    - +
    {/**/} - - +
    ); } From a37f92531e26ff9cf78a4325424d27393b1ab854 Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Sat, 17 Aug 2019 10:31:49 +0800 Subject: [PATCH 10/41] =?UTF-8?q?=E5=B7=A5=E7=A8=8B=E8=AE=A4=E8=AF=81-?= =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E4=BD=93=E7=B3=BB-=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E9=99=84=E4=BB=B6=E6=97=B6=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/javascripts/attachments.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/public/javascripts/attachments.js b/public/javascripts/attachments.js index 0275558c..ba201074 100644 --- a/public/javascripts/attachments.js +++ b/public/javascripts/attachments.js @@ -502,8 +502,11 @@ function imageAddInputFiles(inputEl){ addInputFiles(inputEl) } -function addInputFiles(inputEl,btnId) { +function addInputFiles(inputEl,btnId) { // var clearedFileInput = $(inputEl).clone().val(''); + if($("#ajax-indicator").length>0){ + $("#ajax-indicator").show(); + } if (inputEl.files) { // if(inputEl.files.length >= 5){ // alert('一次选择的文件不能超过5个') @@ -527,6 +530,9 @@ function addInputFiles(inputEl,btnId) { if (count <= 0) count = 1; $('#upload_file_count').html("" + count + "" + $(inputEl).data('fileCount')); } + if($("#ajax-indicator").length>0){ + $("#ajax-indicator").hide(); + } } //clearedFileInput.insertAfter('#attachments_fields'); @@ -605,6 +611,9 @@ function uploadAndAttachFiles(files, inputEl,btnId) { addFile(inputEl, this, true,btnId); }); } + if($("#ajax-indicator").length>0){ + $("#ajax-indicator").hide(); + } } function uploadAndAttachFiles_board(files, inputEl, id,btnId) { From 9ca131d16088b1ef1d536e8813d54f4606ea87d0 Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Sat, 17 Aug 2019 11:04:28 +0800 Subject: [PATCH 11/41] =?UTF-8?q?=E7=AB=9E=E8=B5=9B-=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=A0=87=E6=B3=A8=E7=BB=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../competitions/_gq_second_code_competition.html.erb | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/app/views/competitions/_gq_second_code_competition.html.erb b/app/views/competitions/_gq_second_code_competition.html.erb index 4e6ecdd5..7cba08a8 100644 --- a/app/views/competitions/_gq_second_code_competition.html.erb +++ b/app/views/competitions/_gq_second_code_competition.html.erb @@ -76,13 +76,13 @@ extra_data = [ { name: 'C++项目', - description: "本项目的paddle/fluid/operators/optimizers目录中包含了常见的优化器(如,Momentum,Adam等等)的c++实现。", + description: "飞桨(PaddlePaddle)由百度公司开发,是目前国内唯一功能完备的端到端开源深度学习平台,集深度学习训练和预测框架、模型库、工具组件、服务平台为一体,其兼具灵活和效率的开发机制、工业级应用效果的模型、超大规模并行深度学习能力、推理引擎一体化设计以及系统化的服务支持,致力于让深度学习技术的创新与应用更简单。
    本项目的paddle/fluid/operators/optimizers目录中包含了常见的优化器(如,Momentum,Adam等等)的c++实现。", task: '标注../fluid/operators/optimizers/目录下的所有代码文件', link_name: '官方,优化器', link_url: 'https://www.paddlepaddle.org.cn/documentation/docs/zh/1.5/api_guides/low_level/optimizer.html' },{ name: 'Python项目', - description: "本项目的python/paddle/fluid/layers/nn.py中包含了神经网络中大量常见层和操作符的python实现,如fc、conv、gru等等。", + description: "飞桨(PaddlePaddle)由百度公司开发,是目前国内唯一功能完备的端到端开源深度学习平台,集深度学习训练和预测框架、模型库、工具组件、服务平台为一体,其兼具灵活和效率的开发机制、工业级应用效果的模型、超大规模并行深度学习能力、推理引擎一体化设计以及系统化的服务支持,致力于让深度学习技术的创新与应用更简单。
    本项目的python/paddle/fluid/layers/nn.py中包含了神经网络中大量常见层和操作符的python实现,如fc、conv、gru等等。", task: '标注../paddle/fluid/layers/nn.py代码文件', link_name: '官方,nn', link_url: 'https://www.paddlepaddle.org.cn/documentation/docs/zh/1.5/api_cn/layers_cn/nn_cn.html' @@ -152,10 +152,6 @@ <% if index == 4 %> -

    - 飞桨(PaddlePaddle)由百度公司开发,是目前国内唯一功能完备的端到端开源深度学习平台,集深度学习训练和预测框架、模型库、工具组件、服务平台为一体,其兼具灵活和效率的开发机制、工业级应用效果的模型、超大规模并行深度学习能力、推理引擎一体化设计以及系统化的服务支持,致力于让深度学习技术的创新与应用更简单。 -

    -