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] =?UTF-8?q?=E8=AF=BE=E5=A0=82=E8=BF=94=E5=9B=9E=E8=B0=83?= =?UTF-8?q?=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( + + +
+
+
+ +
+

Java语言之控制语句

+ + + + this.props.history.goBack()} className="color-grey-6 fr font-16 ml20 mt18 mr20">返回 + 实训详情 +
+ +
+ +
+ +
+ {/*内容*/} +
+ + + + {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{

提交作品

- 返回 + this.props.history.goBack()} className="color-grey-6 fr font-16 ml30 mt18 mr20">返回
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( + + +
+
+
+ +
+

Java语言之控制语句

+ + + + this.props.history.goBack()} className="color-grey-6 fr font-16 ml20 mt18 mr20">返回 + 实训详情 +
+ +
+ +
+ +
+ {/*内容*/} +
+ + + + {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