diff --git a/public/react/src/modules/courses/coursesHome/coursesHome.js b/public/react/src/modules/courses/coursesHome/coursesHome.js
index 8f139c9bd..994e14eb9 100644
--- a/public/react/src/modules/courses/coursesHome/coursesHome.js
+++ b/public/react/src/modules/courses/coursesHome/coursesHome.js
@@ -3,10 +3,12 @@ import {getImageUrl} from 'educoder';
import CoursesHomeCard from "./coursesHomeCard.js"
import axios from 'axios';
import {Input,Tooltip} from 'antd';
+import UpgradeModals from '../../modals/UpgradeModals';
import './css/CoursesHome.css';
import Pagination from '@icedesign/base/lib/pagination';
import '@icedesign/base/lib/pagination/style.js';
+
const Search = Input.Search;
class coursesHome extends Component{
constructor(props) {
@@ -51,7 +53,17 @@ class coursesHome extends Component{
}
componentDidMount(){
- this.searchcourses(16,1,"all","")
+ const upsystem=`/users/system_update.json`;
+ axios.get(upsystem).then((response)=>{
+ let updata=response.data;
+ this.setState({
+ updata:updata
+ })
+ }).catch((error)=>{
+ console.log(error);
+ })
+
+ this.searchcourses(16,1,"all","")
}
onChange=(pageNumber)=> {
@@ -91,10 +103,12 @@ class coursesHome extends Component{
render() {
let { order,search,page,coursesHomelist }=this.state;
- console.log(coursesHomelist)
+
return (
-
+ {this.state.updata===undefined?"":
}
diff --git a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js
index 7c98c514d..1807d956c 100644
--- a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js
+++ b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js
@@ -1941,6 +1941,8 @@ class Listofworksstudentone extends Component {
axios.get(url).then((response) => {
if (response.status === 200) {
+ let starttime = this.props.getNowFormatDates(1);
+ let endtime = this.props.getNowFormatDates(2);
this.setState({
modalname: "立即发布",
modaltype: response.data.course_groups === null || response.data.course_groups.length === 0 ? 2 : 1,
@@ -1958,8 +1960,7 @@ class Listofworksstudentone extends Component {
Saves: this.homeworkstartend,
course_groups: response.data.course_groups,
})
- let starttime = this.props.getNowFormatDates(1);
- let endtime = this.props.getNowFormatDates(2);
+
}
}).catch((error) => {
console.log(error)
@@ -2453,7 +2454,7 @@ class Listofworksstudentone extends Component {
{teacherdata === undefined ? "" : teacherdata.student_works.length}个检索结果({teacherdata === undefined ? "" : teacherdata.all_member_count}学生)
+ className="color-orange-tip">{teacherdata === undefined ? "" : teacherdata.student_works&&teacherdata.student_works.length}个检索结果({teacherdata === undefined ? "" : teacherdata.all_member_count}学生)