diff --git a/public/react/src/modules/ecs/subroute/ecCompletion_calculation/EcCompletionCalculation.js b/public/react/src/modules/ecs/subroute/ecCompletion_calculation/EcCompletionCalculation.js index 7723278a3..c24e7c13c 100644 --- a/public/react/src/modules/ecs/subroute/ecCompletion_calculation/EcCompletionCalculation.js +++ b/public/react/src/modules/ecs/subroute/ecCompletion_calculation/EcCompletionCalculation.js @@ -3,7 +3,7 @@ import classNames from 'classnames' import axios from 'axios'; -import { TPMIndexHOC } from '../../../tpm/TPMIndexHOC'; +// import { TPMIndexHOC } from '../../../tpm/TPMIndexHOC'; import { SnackbarHOC } from 'educoder' @@ -431,12 +431,12 @@ class EcCompletionCalculation extends Component {
- + {/**/}
@@ -809,5 +809,5 @@ class EcCompletionCalculation extends Component { } } -export default SnackbarHOC() ( TPMIndexHOC ( EcCompletionCalculation ) ); +export default SnackbarHOC() (EcCompletionCalculation); diff --git a/public/react/src/modules/ecs/subroute/ecCourseEvaluations/EcCourseEvaluationsbottom.js b/public/react/src/modules/ecs/subroute/ecCourseEvaluations/EcCourseEvaluationsbottom.js index 4c49d6a97..5d0488b2e 100644 --- a/public/react/src/modules/ecs/subroute/ecCourseEvaluations/EcCourseEvaluationsbottom.js +++ b/public/react/src/modules/ecs/subroute/ecCourseEvaluations/EcCourseEvaluationsbottom.js @@ -6,7 +6,7 @@ import classNames from 'classnames' import axios from 'axios'; -import { TPMIndexHOC } from '../../../tpm/TPMIndexHOC'; +// import { TPMIndexHOC } from '../../../tpm/TPMIndexHOC'; import { SnackbarHOC } from 'educoder' @@ -703,11 +703,11 @@ class EcCourseEvaluationsbottom extends Component { {/*
*/} {/*
*/} - + {/**/} {/*
*/} @@ -1036,4 +1036,4 @@ class EcCourseEvaluationsbottom extends Component { } } -export default SnackbarHOC() ( TPMIndexHOC ( EcCourseEvaluationsbottom ) ); \ No newline at end of file +export default SnackbarHOC() (EcCourseEvaluationsbottom); \ No newline at end of file diff --git a/public/react/src/modules/ecs/subroute/ecStudentList/EcStudentList.js b/public/react/src/modules/ecs/subroute/ecStudentList/EcStudentList.js index 37dcb0b31..312bfeecf 100644 --- a/public/react/src/modules/ecs/subroute/ecStudentList/EcStudentList.js +++ b/public/react/src/modules/ecs/subroute/ecStudentList/EcStudentList.js @@ -5,7 +5,7 @@ import { Spin } from 'antd'; import { TPMIndexHOC } from '../../../tpm/TPMIndexHOC'; -import { SnackbarHOC } from 'educoder' +import { SnackbarHOC,getImageUrl } from 'educoder' import { Pagination,Upload,Modal,Checkbox } from 'antd'; @@ -21,10 +21,9 @@ class EcStudentList extends Component { constructor(props) { super(props) this.state={ - schooldata:{}, majorschoollist:undefined, titlemessage:"提示", - ecComponentState:"ecStudentList", + // ecComponentState:"ecStudentList", visible:false, Modallist:'', Modallisttypes:0, @@ -40,24 +39,6 @@ class EcStudentList extends Component { let major_id=this.props.match.params.major_id; let year_id=this.props.match.params.year_id; - const jol =`/ec_major_schools/get_navigation_data?ec_year_id=`+year_id; - axios.get(jol, { - withCredentials: true, - }).then((response) => { - - if(response.status===200){ - // if(response.data.allow_visit===false){ - // window.location.href="/403" - // } - this.setState({ - schooldata:response.data - }) - } - }) - .catch(function (error) { - console.log(error); - }); - const url ='/ec_major_schools/'+major_id+'/academic_years/'+year_id+'/student_lists_data'; axios.get(url, { withCredentials: true, @@ -267,7 +248,7 @@ class EcStudentList extends Component { } render() { - let {schooldata, + let { majorschoollist, Modallisttype, titlemessage, @@ -322,12 +303,6 @@ class EcStudentList extends Component {
- -
学生列表 返回 @@ -381,12 +356,12 @@ class EcStudentList extends Component { { majorschoollist===undefined?
-

+

学生数据为空,请导入数据

:majorschoollist.ec_students.length===0?
-

+

学生数据为空,请导入数据

:majorschoollist.ec_students.map((item,key)=>{ // console.log(item) @@ -427,4 +402,4 @@ class EcStudentList extends Component { } } -export default SnackbarHOC() ( TPMIndexHOC ( EcStudentList ) ); \ No newline at end of file +export default SnackbarHOC() (EcStudentList); \ No newline at end of file