From 6663b3bab775729e870d15b4943e218ebfbf70b3 Mon Sep 17 00:00:00 2001 From: p31729568 Date: Thu, 1 Aug 2019 11:17:32 +0800 Subject: [PATCH 01/14] add target user to private message detail api --- app/controllers/users/private_message_details_controller.rb | 2 ++ app/views/users/private_message_details/show.json.jbuilder | 3 +++ 2 files changed, 5 insertions(+) diff --git a/app/controllers/users/private_message_details_controller.rb b/app/controllers/users/private_message_details_controller.rb index fb87504e2..8e7b31212 100644 --- a/app/controllers/users/private_message_details_controller.rb +++ b/app/controllers/users/private_message_details_controller.rb @@ -3,6 +3,8 @@ class Users::PrivateMessageDetailsController < Users::BaseController after_action :update_message_status, only: [:show] + helper_method :target_user + def show messages = observed_user.private_messages.without_deleted.where(target: target_user) diff --git a/app/views/users/private_message_details/show.json.jbuilder b/app/views/users/private_message_details/show.json.jbuilder index 065767fb4..bd90fecab 100644 --- a/app/views/users/private_message_details/show.json.jbuilder +++ b/app/views/users/private_message_details/show.json.jbuilder @@ -1,4 +1,7 @@ json.count @count +json.target do + json.partial! 'users/user_simple', user: target_user +end json.messages do json.array! @messages.each do |message| json.extract! message, :id, :user_id, :receiver_id, :sender_id, :content From 75466cef2c3622710581263e4a718436008a1124 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Thu, 1 Aug 2019 11:20:40 +0800 Subject: [PATCH 02/14] =?UTF-8?q?=E6=89=8B=E6=9C=BA=E7=9F=AD=E4=BF=A1?= =?UTF-8?q?=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/users/update_account_service.rb | 2 +- lib/educoder/sms.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/services/users/update_account_service.rb b/app/services/users/update_account_service.rb index c54353140..b160b47cd 100644 --- a/app/services/users/update_account_service.rb +++ b/app/services/users/update_account_service.rb @@ -69,7 +69,7 @@ class Users::UpdateAccountService < ApplicationService end def sms_notify_admin name - Educoder::Sms.send(mobile:'18182021083', send_type:'teacher_register', name: name, user_name:'管理员') + Educoder::Sms.send(mobile:'18175896138', send_type:'teacher_register', name: name, user_name:'管理员') rescue => ex Util.logger_error(ex) end diff --git a/lib/educoder/sms.rb b/lib/educoder/sms.rb index 6a47ebec6..63287301d 100644 --- a/lib/educoder/sms.rb +++ b/lib/educoder/sms.rb @@ -21,7 +21,7 @@ module Educoder def self.notify_admin(opt) opt[:name] = '管理员' - opt[:mobile] = ENV['NOTIFY_ADMIN_PHONE'] || EduSetting.get('notify_admin_phone') || '18182021083' + opt[:mobile] = ENV['NOTIFY_ADMIN_PHONE'] || EduSetting.get('notify_admin_phone') || '18711085785' send(opt) end From b626f3036518ce86655350f48f8984c6a0a42852 Mon Sep 17 00:00:00 2001 From: p31729568 Date: Thu, 1 Aug 2019 11:30:55 +0800 Subject: [PATCH 03/14] add send day to private message detail api --- app/views/users/private_message_details/show.json.jbuilder | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/users/private_message_details/show.json.jbuilder b/app/views/users/private_message_details/show.json.jbuilder index bd90fecab..17d1a5e38 100644 --- a/app/views/users/private_message_details/show.json.jbuilder +++ b/app/views/users/private_message_details/show.json.jbuilder @@ -7,6 +7,7 @@ json.messages do json.extract! message, :id, :user_id, :receiver_id, :sender_id, :content json.send_time message.display_send_time + json.send_day message.send_time.strftime('%Y-%m-%d') json.sender do json.partial! 'users/user_simple', user: message.sender end From c2a63e96839d64366022576cc47ee4df135aafff 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, 1 Aug 2019 12:30:04 +0800 Subject: [PATCH 04/14] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/projectPackages/PackageIndex/PackageConcent.js | 4 ++-- public/react/src/modules/user/usersInfo/InfosPackage.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/react/src/modules/projectPackages/PackageIndex/PackageConcent.js b/public/react/src/modules/projectPackages/PackageIndex/PackageConcent.js index e729ac462..368858977 100644 --- a/public/react/src/modules/projectPackages/PackageIndex/PackageConcent.js +++ b/public/react/src/modules/projectPackages/PackageIndex/PackageConcent.js @@ -314,13 +314,13 @@ class PackageConcent extends Component { {item.deadline_at}竞标截止 -
+
{item.bidding_users_count}人竞标
-
+ {/*
*/}
{item.published_at===null?更新于:{moment(item.updated_at).format("YYYY-MM-DD HH:mm")} : 发布于:{moment(item.published_at).format("YYYY-MM-DD HH:mm")} } diff --git a/public/react/src/modules/user/usersInfo/InfosPackage.js b/public/react/src/modules/user/usersInfo/InfosPackage.js index d3e7b0978..8aa42352c 100644 --- a/public/react/src/modules/user/usersInfo/InfosPackage.js +++ b/public/react/src/modules/user/usersInfo/InfosPackage.js @@ -193,9 +193,9 @@ class InfosPackage extends Component{
- {moment(item.deadline_at).endOf('day').fromNow()}竞标截止 + {item.deadline_at}竞标截止
-
+
{item.bidding_users_count}人竞标
From fd991e355d2aa5b7c26f4f741cd87fb9ce61db7e 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, 1 Aug 2019 12:36:39 +0800 Subject: [PATCH 05/14] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../projectPackages/PackageIndex/PackageConcent.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/public/react/src/modules/projectPackages/PackageIndex/PackageConcent.js b/public/react/src/modules/projectPackages/PackageIndex/PackageConcent.js index 368858977..7ef0073eb 100644 --- a/public/react/src/modules/projectPackages/PackageIndex/PackageConcent.js +++ b/public/react/src/modules/projectPackages/PackageIndex/PackageConcent.js @@ -1,7 +1,7 @@ import React, {Component} from 'react'; import {Link} from "react-router-dom"; import axios from 'axios'; -import { Input ,Icon,Button,Pagination} from 'antd'; +import { Input ,Icon,Button,Pagination,Spin} from 'antd'; import moment from 'moment'; import '../packageconcnet.css'; import AccountProfile from"../../user/AccountProfile"; @@ -50,7 +50,8 @@ class PackageConcent extends Component { per_page:20, categories:[], isRender:false, - AccountProfiletype:false + AccountProfiletype:false, + isSpin:false } } //desc’, ‘desc’, ‘asc’ @@ -74,7 +75,9 @@ class PackageConcent extends Component { } setdatas=(category,keyword,sort_by,sort_direction,page)=>{ - + this.setState({ + isSpin:true + }) let Url = `/project_packages.json`; axios.get(Url,{params:{ category_id:category, @@ -87,6 +90,7 @@ class PackageConcent extends Component { ).then((response) => { this.setState({ data:response.data, + isSpin:false, project_packages:response.data.project_packages }) }).catch((error) => { @@ -266,7 +270,7 @@ class PackageConcent extends Component {

- + {project_packages&&project_packages.map((item,key)=>{ return(
@@ -333,6 +337,7 @@ class PackageConcent extends Component {
) })} +
{project_packages&&project_packages.length===0?
From 5b3894467211d5d6cf7373f9fce6f4bc6bee5611 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, 1 Aug 2019 12:43:30 +0800 Subject: [PATCH 06/14] b --- public/react/src/modules/user/usersInfo/InfosPackage.js | 1 - 1 file changed, 1 deletion(-) diff --git a/public/react/src/modules/user/usersInfo/InfosPackage.js b/public/react/src/modules/user/usersInfo/InfosPackage.js index 8aa42352c..2687f5bf7 100644 --- a/public/react/src/modules/user/usersInfo/InfosPackage.js +++ b/public/react/src/modules/user/usersInfo/InfosPackage.js @@ -199,7 +199,6 @@ class InfosPackage extends Component{ {item.bidding_users_count}人竞标
-
发布于:{item.published_at}
From 4e4a51af713a5aa290939257228b952b7bb658a7 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, 1 Aug 2019 12:53:16 +0800 Subject: [PATCH 07/14] b --- .../modules/projectPackages/PackageIndex/PackageConcent.js | 2 +- public/react/src/modules/user/usersInfo/InfosPackage.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/react/src/modules/projectPackages/PackageIndex/PackageConcent.js b/public/react/src/modules/projectPackages/PackageIndex/PackageConcent.js index 7ef0073eb..e7a44a3b8 100644 --- a/public/react/src/modules/projectPackages/PackageIndex/PackageConcent.js +++ b/public/react/src/modules/projectPackages/PackageIndex/PackageConcent.js @@ -315,7 +315,7 @@ class PackageConcent extends Component {
- {item.deadline_at}竞标截止 + {moment(item.deadline_at).format("YYYY-MM-DD HH:mm")}竞标截止
diff --git a/public/react/src/modules/user/usersInfo/InfosPackage.js b/public/react/src/modules/user/usersInfo/InfosPackage.js index 2687f5bf7..f2716a064 100644 --- a/public/react/src/modules/user/usersInfo/InfosPackage.js +++ b/public/react/src/modules/user/usersInfo/InfosPackage.js @@ -193,14 +193,14 @@ class InfosPackage extends Component{
- {item.deadline_at}竞标截止 + {moment(item.deadline_at).format("YYYY-MM-DD HH:mm")}竞标截止
{item.bidding_users_count}人竞标
- 发布于:{item.published_at} + 发布于:{moment(item.published_at).format("YYYY-MM-DD HH:mm")}
From 7ea32a3efbe89dae4a09108ebb5096fd85513e2d Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Thu, 1 Aug 2019 14:10:26 +0800 Subject: [PATCH 08/14] =?UTF-8?q?=E7=9F=AD=E4=BF=A1=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E7=9A=84=E6=89=8B=E6=9C=BA=E5=8F=B7=E5=81=9A=E6=88=90=E5=8F=AF?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/users/update_account_service.rb | 2 +- lib/educoder/sms.rb | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/app/services/users/update_account_service.rb b/app/services/users/update_account_service.rb index b160b47cd..c8ba6da61 100644 --- a/app/services/users/update_account_service.rb +++ b/app/services/users/update_account_service.rb @@ -69,7 +69,7 @@ class Users::UpdateAccountService < ApplicationService end def sms_notify_admin name - Educoder::Sms.send(mobile:'18175896138', send_type:'teacher_register', name: name, user_name:'管理员') + Educoder::Sms.send(mobile:'17680641960', send_type:'teacher_register', name: name, user_name:'管理员') rescue => ex Util.logger_error(ex) end diff --git a/lib/educoder/sms.rb b/lib/educoder/sms.rb index 63287301d..a98ebf493 100644 --- a/lib/educoder/sms.rb +++ b/lib/educoder/sms.rb @@ -39,27 +39,22 @@ module Educoder params['text'] = "【Edu实训】" + code + "(手机验证码),有效期为10分钟。如非本人操作,请忽略。" elsif send_type == 'competition_start' params['text'] = "【Edu实训】亲爱的#{user_name},你参与的#{name}将于#{result}开始,请及时参赛" - Rails.logger.info "#{params['text']}" elsif send_type == "teacher_register" + params['mobile'] = EduSetting.get('teacher_register_phone') || '17680641960' params['text'] = "【Edu实训】亲爱的#{user_name},有新的老师#{name}注册啦,请尽快处理" elsif send_type == 'subject_authorization' || send_type == 'shixun_authorization' params['text'] = "【Edu实训】亲爱的#{user_name},您提交的#{name}#{send_type=='subject_authorization'?'实训路径':'实训'}发布申请#{result},请登录平台查看详情" - Rails.logger.info "#{params['text']}" elsif send_type == 'authentication_pro' || send_type == 'authentication'|| send_type == 'trial_authorization' || send_type == 'project_info' params['text'] = "【Edu实训】亲爱的#{user_name},您提交的#{send_type == 'authentication_pro'?'职业认证':(send_type == 'authentication'? '实名认证' : (send_type == 'project_info'?'加入申请':'试用申请' ))}#{result},请登录平台查看详情" - Rails.logger.info "#{params['text']}" elsif send_type == "apply_pro_certification" || send_type == "apply_auth" params['text'] = "【Edu实训】亲爱的#{name},有新的#{send_type == 'apply_pro_certification'?'职业':'实名'}认证申请,请尽快处理" - Rails.logger.info "#{params['text']}" elsif send_type == "publish_subject" ||send_type == "publish_shixun"|| send_type == "user_apply_auth" || send_type == "discuss" + params['mobile'] = EduSetting.get('subject_shixun_notify_phone') || '18711011226' if send_type == "publish_subject" || send_type == "publish_shixun" params['text'] = "【Edu实训】亲爱的#{name},有新的#{send_type == 'publish_subject'?'实训路径':(send_type == 'publish_shixun' ? '实训' : (send_type == 'discuss' ? '实训评论':'试用'))}申请发布,请尽快处理" - Rails.logger.info "#{params['text']}" elsif send_type == 'join_course_multi_role' params['text'] = "【Edu实训】亲爱的#{user_name},您的课堂#{name}有助教或者教师申请加入,请尽快审核" - Rails.logger.info "#{params['text']}" elsif send_type == 'applied_project_info' params['text'] = "【Edu实训】亲爱的#{user_name},您的项目#{name}有成员申请加入,请尽快审核" - Rails.logger.info "#{params['text']}" end http = Net::HTTP.new(send_tpl_sms_uri.host, send_tpl_sms_uri.port) From 0e315ea2911c26e5077a176916afe22d9d885c72 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, 1 Aug 2019 14:31:06 +0800 Subject: [PATCH 09/14] =?UTF-8?q?=E6=89=8B=E6=9C=BA=E7=AB=AF=E4=BD=93?= =?UTF-8?q?=E9=AA=8C=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/modules/home/shixunsHome.js | 11 ++++++++++- public/react/src/modules/tpm/TPMIndexHOC.js | 10 ++++------ 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/public/react/src/modules/home/shixunsHome.js b/public/react/src/modules/home/shixunsHome.js index 65284d0f8..a2cbaab54 100644 --- a/public/react/src/modules/home/shixunsHome.js +++ b/public/react/src/modules/home/shixunsHome.js @@ -125,7 +125,16 @@ class ShixunsHome extends Component { {/**/}
-
+ +
{homedatalist===undefined?"": { ` .newContainers{ - width: 100%; - /*min-width: 1440px;*/ - max-width: unset; + min-width: 1200px; + max-width: unset; + overflow: hidden; } - // .-task-sidebar{ - // right: 270px !important; - // } + ` } From e405f71dff2d420ab03e80c1c27a7220579c75a2 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, 1 Aug 2019 14:54:19 +0800 Subject: [PATCH 10/14] =?UTF-8?q?=E8=AF=BE=E5=A0=82=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../courses/busyWork/CommonWorkDetailIndex.js | 17 +- .../courses/busyWork/CommonWorkPost.js | 5 +- .../busyWork/common/WorkDetailPageHeader.js | 17 +- .../modules/courses/exercise/Ecercisemount.js | 492 +++++++++--------- .../exercise/Testpapersettinghomepage.js | 14 +- .../tasks/GraduationTasksSubmitedit.js | 14 +- .../tasks/GraduationTasksSubmitnew.js | 16 +- .../tasks/GraduationTasksappraise.js | 14 +- .../graduation/tasks/GraduationTasksedit.js | 14 +- .../graduation/tasks/GraduationTasksnew.js | 13 +- .../tasks/GraduationTaskssetting.js | 13 +- .../tasks/GraduationTaskssettinglist.js | 14 +- .../tasks/GraduationTaskssettingquestions.js | 14 +- .../topics/GraduateTopicPostWorksNew.js | 2 +- .../src/modules/courses/new/CoursesNew.js | 11 +- .../react/src/modules/courses/poll/PollNew.js | 8 +- .../modules/courses/polldepoly/pollmount.js | 314 +++++------ .../courses/shixunHomework/CommitSummary.js | 15 +- .../shixunHomework/ShixunHomeworkPage.js | 13 +- .../shixunHomework/ShixunWorkDetails.js | 14 +- .../courses/studentWork/StudentHomework.js | 490 ++++++++--------- 21 files changed, 767 insertions(+), 757 deletions(-) diff --git a/public/react/src/modules/courses/busyWork/CommonWorkDetailIndex.js b/public/react/src/modules/courses/busyWork/CommonWorkDetailIndex.js index b8a5d450c..eb53fa373 100644 --- a/public/react/src/modules/courses/busyWork/CommonWorkDetailIndex.js +++ b/public/react/src/modules/courses/busyWork/CommonWorkDetailIndex.js @@ -75,14 +75,15 @@ class CommonWorkDetailIndex extends Component{ }) } goback = () => { - let workId=this.props.match.params.workId; - - if ( window.location.pathname.indexOf('appraise') == -1) { - let category_id= this.state.category.category_id; - this.props.toListPage(this.props.match.params, category_id) - } else { - this.props.toWorkListPage(this.props.match.params, workId) - } + // let workId=this.props.match.params.workId; + // + // if ( window.location.pathname.indexOf('appraise') == -1) { + // let category_id= this.state.category.category_id; + // this.props.toListPage(this.props.match.params, category_id) + // } else { + // this.props.toWorkListPage(this.props.match.params, workId) + // } + this.props.history.goBack() } // 补交附件 diff --git a/public/react/src/modules/courses/busyWork/CommonWorkPost.js b/public/react/src/modules/courses/busyWork/CommonWorkPost.js index f2b92b47d..78ad2f180 100644 --- a/public/react/src/modules/courses/busyWork/CommonWorkPost.js +++ b/public/react/src/modules/courses/busyWork/CommonWorkPost.js @@ -262,8 +262,9 @@ class CommonWorkPost extends Component{ } goback=()=>{ - this.props.toListPage(this.props.match.params, this.state.category ? this.state.category.category_id : '') - } + // this.props.toListPage(this.props.match.params, this.state.category ? this.state.category.category_id : '') + this.props.history.goBack() + } // 输入title diff --git a/public/react/src/modules/courses/busyWork/common/WorkDetailPageHeader.js b/public/react/src/modules/courses/busyWork/common/WorkDetailPageHeader.js index 2595b15b0..eef99bfcd 100644 --- a/public/react/src/modules/courses/busyWork/common/WorkDetailPageHeader.js +++ b/public/react/src/modules/courses/busyWork/common/WorkDetailPageHeader.js @@ -31,14 +31,15 @@ class WorkDetailPageHeader extends Component{ } goback = () => { - let workId=this.props.match.params.workId; - - if ( window.location.pathname.indexOf('appraise') == -1) { - let category_id= this.props.category.category_id; - this.props.toListPage(this.props.match.params, category_id) - } else { - this.props.toWorkListPage(this.props.match.params, this.props.match.params.category_id) - } + // let workId=this.props.match.params.workId; + // + // if ( window.location.pathname.indexOf('appraise') == -1) { + // let category_id= this.props.category.category_id; + // this.props.toListPage(this.props.match.params, category_id) + // } else { + // this.props.toWorkListPage(this.props.match.params, this.props.match.params.category_id) + // } + this.props.history.goBack() } // 补交附件 Cancelvisible=()=>{ diff --git a/public/react/src/modules/courses/exercise/Ecercisemount.js b/public/react/src/modules/courses/exercise/Ecercisemount.js index aa22b1f4a..13a6128de 100644 --- a/public/react/src/modules/courses/exercise/Ecercisemount.js +++ b/public/react/src/modules/courses/exercise/Ecercisemount.js @@ -1,247 +1,247 @@ -import React,{Component} from "React"; -import { Form, Select, Input, Button,Checkbox,DatePicker} from "antd"; -import locale from 'antd/lib/date-picker/locale/zh_CN'; - -import "../css/Courses.css"; -import CoursesListType from '../coursesPublic/CoursesListType'; - -const { Option } = Select; -const CheckboxGroup = Checkbox.Group; - -class Ecercisemount extends Component{ - - constructor(props){ - super(props) - this.state={ - - } - } - - componentDidMount(){ - - } - handleSubmit = (e) => { - e.preventDefault(); - this.props.form.validateFields((err, values) => { - if (!err) { - console.log('Received values of form: ', values); - } - }); - } - - handleSelectChange = (value) => { - console.log(value); - this.props.form.setFieldsValue({ - note: `Hi, ${value === 'male' ? 'man' : 'lady'}!`, - }); - } - render(){ - const { getFieldDecorator } = this.props.form; - const dateFormat = 'YYYY-MM-DD HH:mm:ss'; - return( - - -
-
-
- -
-

Java语言之控制语句

- - - - 返回 - 实训详情 -
- - - -
- {/*内容*/} -
- - - - {getFieldDecorator("TestingProfile")( - 统一设置 - )} - (选中则所有分班使用相同的发布设置,否则各个分班单独设置) - -
- 发布时间: - - {getFieldDecorator("startTime")( - - )} - (发布之前,学生不会收到问卷) - -
- -
- 截止时间: - - {getFieldDecorator("endTime")( - - )} - (截止时间点,系统将自动提交所有学生的答题,学生将不能继续答题) - - -
- -
- -
- -
- - - -
- - 答题时长: - - {getFieldDecorator("TestingProfile" - , { - rules: [{ - pattern: /^[1-9]\d*$/, - message: '答题时长必须为正整数', - }], - })( - - )} - 分钟 - (选中则所有分班使用相同的发布设置,否则各个分班单独设置) - -
- - -
- - - -
- - {getFieldDecorator("subject", { - valuePropName: 'checked', - })( - 题目顺序随机打乱 - )} - (选中则学生答题时,题目顺序按照题型随机显示) - -
- -
- - {getFieldDecorator("options", { - valuePropName: 'checked', - })( - 选项顺序随机打乱 - )} - (选中则学生答题时,选项顺序随机显示) - -
-
- -
- -
- - - -
- - {getFieldDecorator("opergrdee", { - valuePropName: 'checked', - })( - 公开成绩 - )} - (选中则在截止时间之后对提交答题的课堂成员公开所有成绩,否则不公开) - -
- -
- - {getFieldDecorator("openanswer", { - valuePropName: 'checked', - })( - 公开答案 - )} - (选中则在截止时间之后对提交答题的课堂成员公开试卷题目的答案,否则不公开) - -
- -
- - {getFieldDecorator("openstatisticss", { - valuePropName: 'checked', - })( - 公开统计 - )} - (选中则在截止时间之后对提交答题的课堂成员公开答题统计,否则不公开) - -
- -
- -
- - - - -
- - {/*提交*/} - 取消 -
-
- -
- -
-
-
- -
- - ) - } -} -const EcercisemountApp = Form.create({ name: 'coursesNew' })(Ecercisemount); +import React,{Component} from "React"; +import { Form, Select, Input, Button,Checkbox,DatePicker} from "antd"; +import locale from 'antd/lib/date-picker/locale/zh_CN'; + +import "../css/Courses.css"; +import CoursesListType from '../coursesPublic/CoursesListType'; + +const { Option } = Select; +const CheckboxGroup = Checkbox.Group; + +class Ecercisemount extends Component{ + + constructor(props){ + super(props) + this.state={ + + } + } + + componentDidMount(){ + + } + handleSubmit = (e) => { + e.preventDefault(); + this.props.form.validateFields((err, values) => { + if (!err) { + console.log('Received values of form: ', values); + } + }); + } + + handleSelectChange = (value) => { + console.log(value); + this.props.form.setFieldsValue({ + note: `Hi, ${value === 'male' ? 'man' : 'lady'}!`, + }); + } + render(){ + const { getFieldDecorator } = this.props.form; + const dateFormat = 'YYYY-MM-DD HH:mm:ss'; + return( + + +
+
+
+ + + + + +
+ {/*内容*/} +
+ + + + {getFieldDecorator("TestingProfile")( + 统一设置 + )} + (选中则所有分班使用相同的发布设置,否则各个分班单独设置) + +
+ 发布时间: + + {getFieldDecorator("startTime")( + + )} + (发布之前,学生不会收到问卷) + +
+ +
+ 截止时间: + + {getFieldDecorator("endTime")( + + )} + (截止时间点,系统将自动提交所有学生的答题,学生将不能继续答题) + + +
+ +
+ +
+ +
+ + + +
+ + 答题时长: + + {getFieldDecorator("TestingProfile" + , { + rules: [{ + pattern: /^[1-9]\d*$/, + message: '答题时长必须为正整数', + }], + })( + + )} + 分钟 + (选中则所有分班使用相同的发布设置,否则各个分班单独设置) + +
+ + +
+ + + +
+ + {getFieldDecorator("subject", { + valuePropName: 'checked', + })( + 题目顺序随机打乱 + )} + (选中则学生答题时,题目顺序按照题型随机显示) + +
+ +
+ + {getFieldDecorator("options", { + valuePropName: 'checked', + })( + 选项顺序随机打乱 + )} + (选中则学生答题时,选项顺序随机显示) + +
+
+ +
+ +
+ + + +
+ + {getFieldDecorator("opergrdee", { + valuePropName: 'checked', + })( + 公开成绩 + )} + (选中则在截止时间之后对提交答题的课堂成员公开所有成绩,否则不公开) + +
+ +
+ + {getFieldDecorator("openanswer", { + valuePropName: 'checked', + })( + 公开答案 + )} + (选中则在截止时间之后对提交答题的课堂成员公开试卷题目的答案,否则不公开) + +
+ +
+ + {getFieldDecorator("openstatisticss", { + valuePropName: 'checked', + })( + 公开统计 + )} + (选中则在截止时间之后对提交答题的课堂成员公开答题统计,否则不公开) + +
+ +
+ +
+ + + + +
+ + {/*提交*/} + 取消 +
+
+ +
+ +
+
+
+ +
+ + ) + } +} +const EcercisemountApp = Form.create({ name: 'coursesNew' })(Ecercisemount); export default EcercisemountApp; \ No newline at end of file diff --git a/public/react/src/modules/courses/exercise/Testpapersettinghomepage.js b/public/react/src/modules/courses/exercise/Testpapersettinghomepage.js index c76e31b7a..b99bc783b 100644 --- a/public/react/src/modules/courses/exercise/Testpapersettinghomepage.js +++ b/public/react/src/modules/courses/exercise/Testpapersettinghomepage.js @@ -248,13 +248,13 @@ class Testpapersettinghomepage extends Component{ // let category_id=this.props.match.params.category_id; // // window.location.href="/courses/"+courseId+"/graduation_tasks/"+datalist.graduation_id; - let courseId=this.props.match.params.coursesId; - if(courseId===undefined){ - this.props.history.push("/courses"); - }else{ - this.props.history.push(this.props.current_user.first_category_url); - } - + // let courseId=this.props.match.params.coursesId; + // if(courseId===undefined){ + // this.props.history.push("/courses"); + // }else{ + // this.props.history.push(this.props.current_user.first_category_url); + // } + this.props.history.goBack() } render(){ let {tab,visible,Commonheadofthetestpaper}=this.state; diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitedit.js b/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitedit.js index fbaa5b7c3..201507d1e 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitedit.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitedit.js @@ -97,13 +97,13 @@ class GraduationTasksSubmitedit extends Component{ goback=()=>{ - let courseId=this.props.match.params.coursesId; - if(courseId===undefined){ - this.props.history.push("/courses"); - }else{ - this.props.history.push(this.props.current_user.first_category_url); - } - + // let courseId=this.props.match.params.coursesId; + // if(courseId===undefined){ + // this.props.history.push("/courses"); + // }else{ + // this.props.history.push(this.props.current_user.first_category_url); + // } + this.props.history.goBack() } diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitnew.js b/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitnew.js index dddb11e53..5ff29949a 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitnew.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitnew.js @@ -99,14 +99,14 @@ class GraduationTasksSubmitnew extends Component{ } goback=()=>{ - let courseId=this.props.match.params.coursesId; - if(courseId===undefined){ - this.props.history.push("/courses"); - }else{ - this.props.history.push(this.props.current_user.first_category_url); - } - - } + // let courseId=this.props.match.params.coursesId; + // if(courseId===undefined){ + // this.props.history.push("/courses"); + // }else{ + // this.props.history.push(this.props.current_user.first_category_url); + // } + this.props.history.goBack() + } // 输入title diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTasksappraise.js b/public/react/src/modules/courses/graduation/tasks/GraduationTasksappraise.js index 5eccb2332..d01be4676 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTasksappraise.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTasksappraise.js @@ -70,13 +70,13 @@ class GraduationTasksappraise extends Component{ // let category_id=this.props.match.params.category_id; // // window.location.href="/courses/"+courseId+"/graduation_tasks/"+datalist.graduation_id; - let courseId=this.props.match.params.coursesId; - if(courseId===undefined){ - this.props.history.push("/courses"); - }else{ - this.props.history.push(this.props.current_user.first_category_url); - } - + // let courseId=this.props.match.params.coursesId; + // if(courseId===undefined){ + // this.props.history.push("/courses"); + // }else{ + // this.props.history.push(this.props.current_user.first_category_url); + // } + this.props.history.goBack() } Cancelvisible=()=>{ diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTasksedit.js b/public/react/src/modules/courses/graduation/tasks/GraduationTasksedit.js index 2b55e0737..c96a6c60f 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTasksedit.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTasksedit.js @@ -82,13 +82,13 @@ class GraduationTasksedit extends Component{ goback=()=>{ - let courseId = this.props.match.params.coursesId; - if(courseId===undefined){ - this.props.history.push("/courses"); - }else{ - this.props.history.push(this.props.current_user.first_category_url); - } - + // let courseId = this.props.match.params.coursesId; + // if(courseId===undefined){ + // this.props.history.push("/courses"); + // }else{ + // this.props.history.push(this.props.current_user.first_category_url); + // } + this.props.history.goBack() } diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTasksnew.js b/public/react/src/modules/courses/graduation/tasks/GraduationTasksnew.js index e27d8382b..1d3c7578f 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTasksnew.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTasksnew.js @@ -107,12 +107,13 @@ class GraduationTasksnew extends Component { goback = () => { - let courseId = this.props.match.params.coursesId; - if(courseId===undefined){ - this.props.history.push("/courses"); - }else{ - this.props.history.push(this.props.current_user.first_category_url); - } + // let courseId = this.props.match.params.coursesId; + // if(courseId===undefined){ + // this.props.history.push("/courses"); + // }else{ + // this.props.history.push(this.props.current_user.first_category_url); + // } + this.props.history.goBack() } diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssetting.js b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssetting.js index fc911e024..e679702da 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssetting.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssetting.js @@ -765,12 +765,13 @@ class GraduationTaskssettingapp extends Component{ } goback=()=>{ - let courseId=this.props.match.params.coursesId; - if(courseId===undefined){ - this.props.history.push("/courses"); - }else{ - this.props.history.push(this.props.current_user.first_category_url); - } + // let courseId=this.props.match.params.coursesId; + // if(courseId===undefined){ + // this.props.history.push("/courses"); + // }else{ + // this.props.history.push(this.props.current_user.first_category_url); + // } + this.props.history.goBack() } isgoback=()=>{ diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js index 1b98f00f3..816d53526 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js @@ -60,13 +60,13 @@ class GraduationTaskssettinglist extends Component{ goback=()=>{ // window.history.back(-1) - let courseId=this.props.match.params.coursesId; - if(courseId===undefined){ - this.props.history.push("/courses"); - }else{ - this.props.history.push(this.props.current_user.first_category_url); - } - + // let courseId=this.props.match.params.coursesId; + // if(courseId===undefined){ + // this.props.history.push("/courses"); + // }else{ + // this.props.history.push(this.props.current_user.first_category_url); + // } + this.props.history.goBack() } seacthdata=(teacher_comment,task_status,course_group,cross_comment,order,b_order,search,pages)=>{ diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettingquestions.js b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettingquestions.js index a812bd803..6f030f26d 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettingquestions.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettingquestions.js @@ -55,12 +55,14 @@ class GraduationTasksquestions extends Component{ // let courseId=this.props.match.params.coursesId; // let category_id=this.props.match.params.category_id; // window.location.href="/courses/"+courseId+"/graduation_tasks/"+category_id; - let courseId = this.props.match.params.coursesId; - if(courseId===undefined){ - this.props.history.push("/courses"); - }else{ - this.props.history.push(this.props.current_user.first_category_url); - } + // let courseId = this.props.match.params.coursesId; + // if(courseId===undefined){ + // this.props.history.push("/courses"); + // }else{ + // this.props.history.push(this.props.current_user.first_category_url); + // } + + this.props.history.goBack() } end=()=>{ diff --git a/public/react/src/modules/courses/graduation/topics/GraduateTopicPostWorksNew.js b/public/react/src/modules/courses/graduation/topics/GraduateTopicPostWorksNew.js index bc2f64538..50551adae 100644 --- a/public/react/src/modules/courses/graduation/topics/GraduateTopicPostWorksNew.js +++ b/public/react/src/modules/courses/graduation/topics/GraduateTopicPostWorksNew.js @@ -265,7 +265,7 @@ class GraduateTopicPostWorksNew extends Component{
diff --git a/public/react/src/modules/courses/new/CoursesNew.js b/public/react/src/modules/courses/new/CoursesNew.js index c5602d285..8a12d482e 100644 --- a/public/react/src/modules/courses/new/CoursesNew.js +++ b/public/react/src/modules/courses/new/CoursesNew.js @@ -257,12 +257,13 @@ class CoursesNew extends Component { goback = () => { - if(this.props.match.params.coursesId===undefined){ - this.props.history.push("/courses"); - }else{ - this.props.history.push(this.props.current_user.first_category_url); - } + // if(this.props.match.params.coursesId===undefined){ + // this.props.history.push("/courses"); + // }else{ + // this.props.history.push(this.props.current_user.first_category_url); + // } // window.history.go(-1) + this.props.history.goBack() } onCheckAllChange = (e) => { diff --git a/public/react/src/modules/courses/poll/PollNew.js b/public/react/src/modules/courses/poll/PollNew.js index 7f463fd7f..6bebb1fcd 100644 --- a/public/react/src/modules/courses/poll/PollNew.js +++ b/public/react/src/modules/courses/poll/PollNew.js @@ -2337,11 +2337,11 @@ class PollNew extends Component { } gotohome=()=>{ - const { current_user} = this.props - - this.props.history.push(current_user && current_user.first_category_url); - + // const { current_user} = this.props + // this.props.history.push(current_user && current_user.first_category_url); + // + this.props.history.goBack() // let courseId=this.props.match.params.coursesId; // if(courseId===undefined){ // this.props.history.push("/courses"); diff --git a/public/react/src/modules/courses/polldepoly/pollmount.js b/public/react/src/modules/courses/polldepoly/pollmount.js index 2c8ced19c..f29e573c0 100644 --- a/public/react/src/modules/courses/polldepoly/pollmount.js +++ b/public/react/src/modules/courses/polldepoly/pollmount.js @@ -1,157 +1,157 @@ -import React, { Component } from 'react'; -import { SnackbarHOC } from 'educoder'; -import { TPMIndexHOC } from '../../tpm/TPMIndexHOC'; -import { Checkbox,Input,DatePicker } from 'antd'; -import locale from 'antd/lib/date-picker/locale/zh_CN'; - -import "../css/Courses.css"; -import CoursesListType from '../coursesPublic/CoursesListType'; -//引入对应跳转的组件 - - - -class Polldepoly extends Component{ - constructor(props) { - super(props) - this.state = { - contents: [{val:"",id:1}], - } - } - componentDidMount() { - - } - - submitCommitSummary=()=> { - const mdContnet = this.refs[`md${1}`].getValue().trim();; - console.log(mdContnet) - } - - asdasdsad=()=>{ - this.setState({ - contents:"" - }) - } - render() { - let {contents}=this.state; - const dateFormat = 'YYYY-MM-DD HH:mm:ss'; - return ( - -
-
-
-
-

Java语言之控制语句

- - 返回 -
- - {/*
*/} - {/**/} - {/***/} - {/*内容*/} - {/*
*/} - - {/*
*/} - {/*
*/} - - -
- -
-

发布设置

- {/*编辑*/} -
- -
- 统一设置 (选中则所有分班使用相同的发布设置,否则各个分班单独设置) -
- -
- {/*发布时间: (发布之前,学生不会收到问卷)*/} - 发布时间: - - - - -
- -
- {/*发布时间: (发布之前,学生不会收到问卷)*/} - 截止时间: - - - - -
- - - - -
- -
-

公开设置

- {/*编辑*/} -
- -
- 公开统计 (选中则在截止时间之后对提交了问卷的课堂成员公开答题统计,否则不公开) -
- - -
- 实名问卷 (选中则问卷不实行匿名制) -
- -
- -
-
- 提交 - 取消 -
-
- -
-
-
- ) - } -} - -export default SnackbarHOC() ( TPMIndexHOC(Polldepoly) ); - - +import React, { Component } from 'react'; +import { SnackbarHOC } from 'educoder'; +import { TPMIndexHOC } from '../../tpm/TPMIndexHOC'; +import { Checkbox,Input,DatePicker } from 'antd'; +import locale from 'antd/lib/date-picker/locale/zh_CN'; + +import "../css/Courses.css"; +import CoursesListType from '../coursesPublic/CoursesListType'; +//引入对应跳转的组件 + + + +class Polldepoly extends Component{ + constructor(props) { + super(props) + this.state = { + contents: [{val:"",id:1}], + } + } + componentDidMount() { + + } + + submitCommitSummary=()=> { + const mdContnet = this.refs[`md${1}`].getValue().trim();; + console.log(mdContnet) + } + + asdasdsad=()=>{ + this.setState({ + contents:"" + }) + } + render() { + let {contents}=this.state; + const dateFormat = 'YYYY-MM-DD HH:mm:ss'; + return ( + +
+
+
+ + + {/*
*/} + {/**/} + {/***/} + {/*内容*/} + {/*
*/} + + {/*
*/} + {/*
*/} + + +
+ +
+

发布设置

+ {/*编辑*/} +
+ +
+ 统一设置 (选中则所有分班使用相同的发布设置,否则各个分班单独设置) +
+ +
+ {/*发布时间: (发布之前,学生不会收到问卷)*/} + 发布时间: + + + + +
+ +
+ {/*发布时间: (发布之前,学生不会收到问卷)*/} + 截止时间: + + + + +
+ + + + +
+ +
+

公开设置

+ {/*编辑*/} +
+ +
+ 公开统计 (选中则在截止时间之后对提交了问卷的课堂成员公开答题统计,否则不公开) +
+ + +
+ 实名问卷 (选中则问卷不实行匿名制) +
+ +
+ +
+
+ 提交 + 取消 +
+
+ +
+
+
+ ) + } +} + +export default SnackbarHOC() ( TPMIndexHOC(Polldepoly) ); + + diff --git a/public/react/src/modules/courses/shixunHomework/CommitSummary.js b/public/react/src/modules/courses/shixunHomework/CommitSummary.js index b40cb3536..728d86f96 100644 --- a/public/react/src/modules/courses/shixunHomework/CommitSummary.js +++ b/public/react/src/modules/courses/shixunHomework/CommitSummary.js @@ -71,13 +71,14 @@ class CommitSummary extends Component{ console.log(mdContnet) } gotohome=()=>{ - let courseId=this.props.match.params.coursesId; - if(courseId===undefined){ - this.props.history.push("/courses"); - }else{ - this.props.history.push(this.props.current_user.first_category_url); - } - } + // let courseId=this.props.match.params.coursesId; + // if(courseId===undefined){ + // this.props.history.push("/courses"); + // }else{ + // this.props.history.push(this.props.current_user.first_category_url); + // } + this.props.history.goBack() + } asdasdsad=()=>{ this.setState({ contents:"" diff --git a/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js b/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js index 9066750eb..c827d73cd 100644 --- a/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js +++ b/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js @@ -113,12 +113,13 @@ class ShixunHomeworkPage extends Component { bindRef = ref => { this.child = ref } ///////////////教师截止 gotohome=()=>{ - let courseId=this.props.match.params.coursesId; - if(courseId===undefined){ - this.props.history.push("/courses"); - }else{ - this.props.history.push(this.props.current_user.first_category_url); - } + // let courseId=this.props.match.params.coursesId; + // if(courseId===undefined){ + // this.props.history.push("/courses"); + // }else{ + // this.props.history.push(this.props.current_user.first_category_url); + // } + this.props.history.goBack() } render() { let {tab, teacherdatapage, jobsettingsdatapage} = this.state; diff --git a/public/react/src/modules/courses/shixunHomework/ShixunWorkDetails.js b/public/react/src/modules/courses/shixunHomework/ShixunWorkDetails.js index 5db2df83a..508fc285e 100644 --- a/public/react/src/modules/courses/shixunHomework/ShixunWorkDetails.js +++ b/public/react/src/modules/courses/shixunHomework/ShixunWorkDetails.js @@ -52,13 +52,13 @@ class ShixunWorkDetails extends Component { } goback=(sum)=>{ - let{data}=this.state - if(sum===1){ - window.location.href = "/courses/"+data.course_id+"/students"; - }else{ - window.history.go(-1) - } - + // let{data}=this.state + // if(sum===1){ + // window.location.href = "/courses/"+data.course_id+"/students"; + // }else{ + // window.history.go(-1) + // } + this.props.history.goBack() } render() { let{data}=this.state; diff --git a/public/react/src/modules/courses/studentWork/StudentHomework.js b/public/react/src/modules/courses/studentWork/StudentHomework.js index 8fc56a67a..2f905ed11 100644 --- a/public/react/src/modules/courses/studentWork/StudentHomework.js +++ b/public/react/src/modules/courses/studentWork/StudentHomework.js @@ -1,246 +1,246 @@ -import React,{Component} from "React"; -import { Form, Select, Input, Button,Checkbox,DatePicker} from "antd"; -import locale from 'antd/lib/date-picker/locale/zh_CN'; - -import "../css/Courses.css"; -import CoursesListType from '../coursesPublic/CoursesListType'; - -const { Option } = Select; -const CheckboxGroup = Checkbox.Group; - -class StudentHomework extends Component{ - - constructor(props){ - super(props) - this.state={ - - } - } - - componentDidMount(){ - - } - handleSubmit = (e) => { - e.preventDefault(); - this.props.form.validateFields((err, values) => { - if (!err) { - console.log('Received values of form: ', values); - } - }); - } - - handleSelectChange = (value) => { - console.log(value); - this.props.form.setFieldsValue({ - note: `Hi, ${value === 'male' ? 'man' : 'lady'}!`, - }); - } - render(){ - const { getFieldDecorator } = this.props.form; - const dateFormat = 'YYYY-MM-DD HH:mm:ss'; - return( - - -
-
-
- -
-

Java语言之控制语句

- - - - 返回 - 实训详情 -
- - - - - {/*内容*/} -
- - - - {getFieldDecorator("TestingProfile")( - 统一设置 - )} - (选中则所有分班使用相同的发布设置,否则各个分班单独设置) - -
- 发布时间: - - {getFieldDecorator("startTime")( - - )} - (发布之前,学生不会收到问卷) - -
- -
- 截止时间: - - {getFieldDecorator("endTime")( - - )} - (截止时间点,系统将自动提交所有学生的答题,学生将不能继续答题) - - -
- -
- -
- -
- - - -
- - 答题时长: - - {getFieldDecorator("TestingProfile" - , { - rules: [{ - pattern: /^[1-9]\d*$/, - message: '答题时长必须为正整数', - }], - })( - - )} - 分钟 - (选中则所有分班使用相同的发布设置,否则各个分班单独设置) - -
- - -
- - - -
- - {getFieldDecorator("subject", { - valuePropName: 'checked', - })( - 题目顺序随机打乱 - )} - (选中则学生答题时,题目顺序按照题型随机显示) - -
- -
- - {getFieldDecorator("options", { - valuePropName: 'checked', - })( - 选项顺序随机打乱 - )} - (选中则学生答题时,选项顺序随机显示) - -
-
- -
- -
- - - -
- - {getFieldDecorator("opergrdee", { - valuePropName: 'checked', - })( - 公开成绩 - )} - (选中则在截止时间之后对提交答题的课堂成员公开所有成绩,否则不公开) - -
- -
- - {getFieldDecorator("openanswer", { - valuePropName: 'checked', - })( - 公开答案 - )} - (选中则在截止时间之后对提交答题的课堂成员公开试卷题目的答案,否则不公开) - -
- -
- - {getFieldDecorator("openstatisticss", { - valuePropName: 'checked', - })( - 公开统计 - )} - (选中则在截止时间之后对提交答题的课堂成员公开答题统计,否则不公开) - -
- -
- -
- - - - -
- - {/*提交*/} - 取消 -
-
- - - -
-
-
- -
- - ) - } -} -const StudentHomeworkApp = Form.create({ name: 'coursesNew' })(StudentHomework); +import React,{Component} from "React"; +import { Form, Select, Input, Button,Checkbox,DatePicker} from "antd"; +import locale from 'antd/lib/date-picker/locale/zh_CN'; + +import "../css/Courses.css"; +import CoursesListType from '../coursesPublic/CoursesListType'; + +const { Option } = Select; +const CheckboxGroup = Checkbox.Group; + +class StudentHomework extends Component{ + + constructor(props){ + super(props) + this.state={ + + } + } + + componentDidMount(){ + + } + handleSubmit = (e) => { + e.preventDefault(); + this.props.form.validateFields((err, values) => { + if (!err) { + console.log('Received values of form: ', values); + } + }); + } + + handleSelectChange = (value) => { + console.log(value); + this.props.form.setFieldsValue({ + note: `Hi, ${value === 'male' ? 'man' : 'lady'}!`, + }); + } + render(){ + const { getFieldDecorator } = this.props.form; + const dateFormat = 'YYYY-MM-DD HH:mm:ss'; + return( + + +
+
+
+ + + + + +
+ {/*内容*/} +
+ + + + {getFieldDecorator("TestingProfile")( + 统一设置 + )} + (选中则所有分班使用相同的发布设置,否则各个分班单独设置) + +
+ 发布时间: + + {getFieldDecorator("startTime")( + + )} + (发布之前,学生不会收到问卷) + +
+ +
+ 截止时间: + + {getFieldDecorator("endTime")( + + )} + (截止时间点,系统将自动提交所有学生的答题,学生将不能继续答题) + + +
+ +
+ +
+ +
+ + + +
+ + 答题时长: + + {getFieldDecorator("TestingProfile" + , { + rules: [{ + pattern: /^[1-9]\d*$/, + message: '答题时长必须为正整数', + }], + })( + + )} + 分钟 + (选中则所有分班使用相同的发布设置,否则各个分班单独设置) + +
+ + +
+ + + +
+ + {getFieldDecorator("subject", { + valuePropName: 'checked', + })( + 题目顺序随机打乱 + )} + (选中则学生答题时,题目顺序按照题型随机显示) + +
+ +
+ + {getFieldDecorator("options", { + valuePropName: 'checked', + })( + 选项顺序随机打乱 + )} + (选中则学生答题时,选项顺序随机显示) + +
+
+ +
+ +
+ + + +
+ + {getFieldDecorator("opergrdee", { + valuePropName: 'checked', + })( + 公开成绩 + )} + (选中则在截止时间之后对提交答题的课堂成员公开所有成绩,否则不公开) + +
+ +
+ + {getFieldDecorator("openanswer", { + valuePropName: 'checked', + })( + 公开答案 + )} + (选中则在截止时间之后对提交答题的课堂成员公开试卷题目的答案,否则不公开) + +
+ +
+ + {getFieldDecorator("openstatisticss", { + valuePropName: 'checked', + })( + 公开统计 + )} + (选中则在截止时间之后对提交答题的课堂成员公开答题统计,否则不公开) + +
+ +
+ +
+ + + + +
+ + {/*提交*/} + 取消 +
+
+ +
+ +
+
+
+ +
+ + ) + } +} +const StudentHomeworkApp = Form.create({ name: 'coursesNew' })(StudentHomework); export default StudentHomeworkApp; \ No newline at end of file From 00883956c230b6c1cf5f9aad782ef80517864b10 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Thu, 1 Aug 2019 14:55:29 +0800 Subject: [PATCH 11/14] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/memo.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/memo.rb b/app/models/memo.rb index e70a7cec9..d09251358 100644 --- a/app/models/memo.rb +++ b/app/models/memo.rb @@ -15,6 +15,7 @@ class Memo < ApplicationRecord has_many :descendants, foreign_key: :root_id, class_name: 'Memo' has_many :children, foreign_key: :parent_id, class_name: 'Memo' has_many :attachments, as: :container, dependent: :destroy + has_many :tidings, as: :container, dependent: :destroy scope :field_for_list, lambda{ select([:id, :subject, :author_id, :sticky, :updated_at, :language, :reward, :all_replies_count, :viewed_count, :forum_id]) From 531a46d8daab3125e165e038d829f6475ab235b3 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, 1 Aug 2019 14:56:25 +0800 Subject: [PATCH 12/14] =?UTF-8?q?=E8=BF=94=E5=9B=9E=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/modules/courses/busyWork/CommonWorkPost.js | 2 +- .../courses/graduation/tasks/GraduationTasksSubmitedit.js | 2 +- .../courses/graduation/tasks/GraduationTasksSubmitnew.js | 2 +- public/react/src/modules/paths/PathDetail/PathDetailIndex.js | 4 ++-- .../PackageIndexNEITaskDetails/PackageIndexNEITaskDetails.js | 3 ++- .../PackageIndexNewandEdit/PackageIndexNewandEditIndex.js | 3 ++- 6 files changed, 9 insertions(+), 7 deletions(-) diff --git a/public/react/src/modules/courses/busyWork/CommonWorkPost.js b/public/react/src/modules/courses/busyWork/CommonWorkPost.js index 78ad2f180..60383988b 100644 --- a/public/react/src/modules/courses/busyWork/CommonWorkPost.js +++ b/public/react/src/modules/courses/busyWork/CommonWorkPost.js @@ -470,7 +470,7 @@ class CommonWorkPost extends Component{ } gocannel=()=>{ - window.history.go(-1) + this.props.history.goBack() } render(){ diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitedit.js b/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitedit.js index 201507d1e..f93d13eac 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitedit.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitedit.js @@ -362,7 +362,7 @@ class GraduationTasksSubmitedit extends Component{ } gocannel=()=>{ - window.history.go(-1) + this.props.history.goBack() } handleSubmit=(e) => { diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitnew.js b/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitnew.js index 5ff29949a..f5060ad4c 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitnew.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitnew.js @@ -362,7 +362,7 @@ class GraduationTasksSubmitnew extends Component{ } } gocannel=()=>{ - window.history.go(-1) + this.props.history.goBack() } //公用数据 diff --git a/public/react/src/modules/paths/PathDetail/PathDetailIndex.js b/public/react/src/modules/paths/PathDetail/PathDetailIndex.js index 1ba1a3c13..d490ac112 100644 --- a/public/react/src/modules/paths/PathDetail/PathDetailIndex.js +++ b/public/react/src/modules/paths/PathDetail/PathDetailIndex.js @@ -112,14 +112,14 @@ class PathDetailIndex extends Component{ this.setState({ Modalstype:false, }) - window.history.go(-1) + this.props.history.goBack() } cardsModalsave=()=>{ this.setState({ Modalstype:false, }) - window.history.go(-1) + this.props.history.goBack() } // 加载markdown updatamakedown=(id)=>{ diff --git a/public/react/src/modules/projectPackages/PackageIndexNEITaskDetails/PackageIndexNEITaskDetails.js b/public/react/src/modules/projectPackages/PackageIndexNEITaskDetails/PackageIndexNEITaskDetails.js index 35ca952a7..a1e016853 100644 --- a/public/react/src/modules/projectPackages/PackageIndexNEITaskDetails/PackageIndexNEITaskDetails.js +++ b/public/react/src/modules/projectPackages/PackageIndexNEITaskDetails/PackageIndexNEITaskDetails.js @@ -230,7 +230,8 @@ class PackageIndexNEITaskDetails extends Component { } goback = () => { // window.history.go(-1) - window.location.href="/crowdsourcing"; + // window.location.href="/crowdsourcing"; + this.props.history.goBack() } render() { diff --git a/public/react/src/modules/projectPackages/PackageIndexNewandEdit/PackageIndexNewandEditIndex.js b/public/react/src/modules/projectPackages/PackageIndexNewandEdit/PackageIndexNewandEditIndex.js index 0481577bf..f7495595b 100644 --- a/public/react/src/modules/projectPackages/PackageIndexNewandEdit/PackageIndexNewandEditIndex.js +++ b/public/react/src/modules/projectPackages/PackageIndexNewandEdit/PackageIndexNewandEditIndex.js @@ -30,7 +30,8 @@ class PackageIndexNewandEditIndex extends Component{ goback = () => { // window.history.go(-1) - window.location.href="/crowdsourcing"; + // window.location.href="/crowdsourcing"; + this.props.history.goBack() } render() { From 4cba20f0c06fb2c02bcf068aa024dec3d3ca54d8 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, 1 Aug 2019 15:20:15 +0800 Subject: [PATCH 13/14] =?UTF-8?q?=E8=BF=94=E5=9B=9E=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/modules/home/home.css | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/public/react/src/modules/home/home.css b/public/react/src/modules/home/home.css index 0739376de..1e97d5ecf 100644 --- a/public/react/src/modules/home/home.css +++ b/public/react/src/modules/home/home.css @@ -11,10 +11,10 @@ } .user_navlist{ - margin-left: 40px; + /*margin-left: 40px;*/ } .next-slick-list{ - margin-left: 12px; + /*margin-left: 12px;*/ } .black_nav_span{ @@ -58,7 +58,7 @@ } .educontentSlider{ - width: 1282px !important; + /*width: 1282px !important;*/ } .user_navlist_white{ max-height:350px !important; @@ -72,4 +72,8 @@ .iconfontshixundaibeijing{ font-size: 18px !important; line-height: 24px; +} + +.next-slick.next-slick-horizontal.next-slick-outer{ + padding:0px !important; } \ No newline at end of file From a51e3140de2e6e4d2c436836811368aa245eac6a 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, 1 Aug 2019 15:20:45 +0800 Subject: [PATCH 14/14] =?UTF-8?q?banner=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/modules/home/home.css | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/public/react/src/modules/home/home.css b/public/react/src/modules/home/home.css index 0739376de..1e97d5ecf 100644 --- a/public/react/src/modules/home/home.css +++ b/public/react/src/modules/home/home.css @@ -11,10 +11,10 @@ } .user_navlist{ - margin-left: 40px; + /*margin-left: 40px;*/ } .next-slick-list{ - margin-left: 12px; + /*margin-left: 12px;*/ } .black_nav_span{ @@ -58,7 +58,7 @@ } .educontentSlider{ - width: 1282px !important; + /*width: 1282px !important;*/ } .user_navlist_white{ max-height:350px !important; @@ -72,4 +72,8 @@ .iconfontshixundaibeijing{ font-size: 18px !important; line-height: 24px; +} + +.next-slick.next-slick-horizontal.next-slick-outer{ + padding:0px !important; } \ No newline at end of file