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语言之控制语句
-
-
-
-
返回
-
实训详情
-
-
-
-
-
-
-
-
-
- {/*
提交*/}
-
取消
-
-
-
-
-
-
-
-
-
-
-
- )
- }
-}
-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(
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {/*
提交*/}
+
取消
+
+
+
+
+
+
+
+
+
+
+
+ )
+ }
+}
+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{