15 && }
-
+
)
}
diff --git a/public/react/src/modules/courses/busyWork/commonWork.js b/public/react/src/modules/courses/busyWork/commonWork.js
index c5db27252..aa3ab2310 100644
--- a/public/react/src/modules/courses/busyWork/commonWork.js
+++ b/public/react/src/modules/courses/busyWork/commonWork.js
@@ -73,6 +73,9 @@ class commonWork extends Component{
componentDidUpdate(prevProps, prevState) {
if (prevProps.coursesidtype != this.props.coursesidtype||prevProps.match.params.category_id!=this.props.match.params.category_id) {
+ this.setState({
+ page:1
+ })
if (this.props.match.path === "/classrooms/:coursesId/common_homeworks/:category_id" || this.props.match.path === "/classrooms/:coursesId/common_homework/:category_id"||
this.props.match.path === "/classrooms/:coursesId/group_homeworks/:category_id" || this.props.match.path === "/classrooms/:coursesId/group_homework/:category_id"
) {
@@ -220,11 +223,21 @@ class commonWork extends Component{
}
onPageChange=(pageNumber)=>{
- this.setState({
- page:pageNumber,
- checkBoxValues:[]
- })
- let {search,order,category_id}=this.state;
+ let {search,order,category_id,checkAll}=this.state;
+
+ if(checkAll===true){
+ this.setState({
+ page:pageNumber,
+ checkBoxValues:[],
+ checkAll:false
+ })
+ }else{
+ this.setState({
+ page:pageNumber,
+ checkBoxValues:[]
+ })
+ }
+
this.getList(pageNumber,search,order,category_id);
}
diff --git a/public/react/src/modules/courses/coursesHome/CoursesHome.js b/public/react/src/modules/courses/coursesHome/CoursesHome.js
index 965159832..cf84dcd1c 100644
--- a/public/react/src/modules/courses/coursesHome/CoursesHome.js
+++ b/public/react/src/modules/courses/coursesHome/CoursesHome.js
@@ -121,7 +121,7 @@ class CoursesHome extends Component {
const { order, page, coursesHomelist } = this.state;
const { user, tojoinclass } = this.props
- console.log(tojoinclass, '--------------s')
+
return (
{this.state.updata === undefined ? "" : {
+ let{type,StudentList_value,checkAllValue}=this.state;
+
+ if(checkAllValue===true){
+ this.setState({
+ page:pageNumber,
+ checkBoxValues:[],
+ checkAllValue:false
+ })
+ }else{
+ this.setState({
+ page:pageNumber,
+ checkBoxValues:[]
+ })
+ }
- this.setState({
- page:pageNumber,
- checkBoxValues:[]
- })
- let{type,StudentList_value}=this.state
this.InitList(type,StudentList_value,pageNumber);
}
// 搜索
diff --git a/public/react/src/modules/courses/shixunHomework/shixunHomework.js b/public/react/src/modules/courses/shixunHomework/shixunHomework.js
index 5b6eda89f..cb0d40c32 100644
--- a/public/react/src/modules/courses/shixunHomework/shixunHomework.js
+++ b/public/react/src/modules/courses/shixunHomework/shixunHomework.js
@@ -637,12 +637,19 @@ class ShixunHomework extends Component{
// }
PaginationCourse=(pageNumber)=>{
- let {Coursename,order}=this.state;
-
- this.setState({
- page:pageNumber,
- checkBoxValues:[]
- })
+ let {Coursename,order,checkedtype}=this.state;
+ if(checkedtype===true){
+ this.setState({
+ page:pageNumber,
+ checkBoxValues:[],
+ checkedtype:false
+ })
+ }else{
+ this.setState({
+ page:pageNumber,
+ checkBoxValues:[],
+ })
+ }
this.homeworkupdatalist(Coursename,pageNumber,order);
diff --git a/public/react/src/modules/tpm/shixunchild/Challenges/Showmarkdown.js b/public/react/src/modules/tpm/shixunchild/Challenges/Showmarkdown.js
index f0ad12cfa..eaba9cb5f 100644
--- a/public/react/src/modules/tpm/shixunchild/Challenges/Showmarkdown.js
+++ b/public/react/src/modules/tpm/shixunchild/Challenges/Showmarkdown.js
@@ -11,15 +11,15 @@ class Showmarkdown extends Component {
componentDidMount() {
if (this.props.descriptions) {
- setTimeout(()=>{
- var shixunDescr = window.editormd.markdownToHTML("memo_content_editorMd", {
+
+ window.editormd.markdownToHTML("memo_content_editorMd", {
htmlDecode: "style,script,iframe", // you can filter tags decode
taskList: true,
tex: true, // 默认不解析
flowChart: true, // 默认不解析
sequenceDiagram: true // 默认不解析
});
- }, 200)
+
}
}