Merge remote-tracking branch 'origin/dev_ec' into dev_ec

dev_cs
杨树明 5 years ago
commit 1c358a4c6a

@ -238,10 +238,10 @@ class Curriculum extends Component {
{/*成绩等级设置*/}
<Route extra path='/ecs/major_schools/:majorId/years/:yearId/courses/:type/3'
render={ (props) => (<Curriculumtwo {...this.props} {...props} {...this.state} Ontitine={(i)=>this.Ontitine(i)}/>) }></Route>
{/*课程目标评价方法*/}
{/*4课程目标评价方法*/}
<Route extra path='/ecs/major_schools/:majorId/years/:yearId/courses/:type/4'
render={ (props) => (<EcCourseEvaluationsbottom {...this.props} {...props} {...this.state} Ontitine={(i)=>this.Ontitine(i)}/>) }></Route>
{/*课程达成评价结果*/}
{/*5课程达成评价结果*/}
<Route extra path='/ecs/major_schools/:majorId/years/:yearId/courses/:type/5'
render={ (props) => (<EcCompletionCalculation {...this.props} {...props} {...this.state} Ontitine={(i)=>this.Ontitine(i)}/>) }></Route>
</Switch>

@ -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,60 +431,56 @@ class EcCompletionCalculation extends Component {
<div className="educontent mb290">
<EcTitleCourseEvaluations
{...this.props}
schooldata={schooldata}
ecComponentState={'ecCompletion'}
ecpath={"show"}
/>
<div className="edu-back-white eacourse">
<div className="clearfix padding20-30 bor-bottom-greyE">
<a href={schooldata.course_setting_url} className="color-grey-9 TrainingLecturer">课程体系</a> >
<a className="TrainingTheory major_name"> {schooldata.ec_course_name} 达成评价详情</a>
{/* <a href="javascript:void(0)" className="fr white-btn edu-blueback-btn mt4">导出培养目标</a> */}
<div className="color-grey-9 mr10">系统根据课程目标课程考核方式与课程目标评价方法一键计算评价课程目标的达成情况 <a className={"color-blue"} onClick={() => window.elasticLayer(3533)}>查看详情</a></div>
</div>
<div className="padding20-30" id="training_objective_contents"
style={{
position: 'relative'
}}
>
<a className="fl SystemParameters" style={{display:schooldata.ec_course_support_setting_url===null?"none":"block"}}
href={schooldata.ec_course_support_setting_url}>1.课程目标</a>
<a className="fl SystemParameters ml40"
style={{display:schooldata.ec_course_reach_setting_url===null?"none":"block"}}
href={schooldata.ec_course_reach_setting_url}>2.课程考核方式与数据来源</a>
<a className="fl SystemParameters4CACFF ml40 color4D4D4D"
href={schooldata.score_level_setting_url}
>3.成绩等级设置</a>
<a className="fl SystemParameters ml40"
style={{display:schooldata.evaluation_methods_url===null?"none":"block"}}
href={schooldata.evaluation_methods_url}>4.课程目标评价方法</a>
<a className="fl SystemParameters ml40"
style={{display:schooldata.competition_calculation_info_url===null?"none":"block",color:'#4CACFF'}}
href={schooldata.competition_calculation_info_url}>5.课程达成评价结果</a>
{/* <span className="right ml20 SystemParameters">
{
evaluate_result===false?<span className="Systemnum">未达成</span>:<span className="Systemnum color-green"></span>
}
</span> */}
<span className={ismanager===false?"none":"right newrightcalculatebutton"}
style={{
marginLeft: '26px',
position: 'absolute',
right: '157px'
}}
onClick={this.newrightcalculatebutton}>计算</span>
<span className={ismanager===false?"none":"Importclassroomdata"} style={{top: "26px"}}>
<a className="white-btn edu-blueback-btn fr mb10 mr10" target="_blank" href={"/ec_courses/"+ec_course_id+"/export_evaluation_result.xls"}>导出评价详情</a>
</span>
</div>
</div>
{/*<EcTitleCourseEvaluations*/}
{/* {...this.props}*/}
{/* schooldata={schooldata}*/}
{/* ecComponentState={'ecCompletion'}*/}
{/* ecpath={"show"}*/}
{/*/>*/}
{/*<div className="edu-back-white eacourse">*/}
{/* <div className="clearfix padding20-30 bor-bottom-greyE">*/}
{/* <a href={schooldata.course_setting_url} className="color-grey-9 TrainingLecturer">课程体系</a> >*/}
{/* <a className="TrainingTheory major_name"> {schooldata.ec_course_name} 达成评价详情</a>*/}
{/* /!* <a href="javascript:void(0)" className="fr white-btn edu-blueback-btn mt4">导出培养目标</a> *!/*/}
{/* <div className="color-grey-9 mr10">系统根据课程目标、课程考核方式与课程目标评价方法,一键计算评价课程目标的达成情况 <a className={"color-blue"} onClick={() => window.elasticLayer(3533)}>查看详情</a></div>*/}
{/* </div>*/}
{/* <div className="padding20-30" id="training_objective_contents"*/}
{/* style={{*/}
{/* position: 'relative'*/}
{/* }}*/}
{/* >*/}
{/* <a className="fl SystemParameters" style={{display:schooldata.ec_course_support_setting_url===null?"none":"block"}}*/}
{/* href={schooldata.ec_course_support_setting_url}>1.课程目标</a>*/}
{/* <a className="fl SystemParameters ml40"*/}
{/* style={{display:schooldata.ec_course_reach_setting_url===null?"none":"block"}}*/}
{/* href={schooldata.ec_course_reach_setting_url}>2.课程考核方式与数据来源</a>*/}
{/* <a className="fl SystemParameters4CACFF ml40 color4D4D4D"*/}
{/* href={schooldata.score_level_setting_url}*/}
{/* >3.成绩等级设置</a>*/}
{/* <a className="fl SystemParameters ml40"*/}
{/* style={{display:schooldata.evaluation_methods_url===null?"none":"block"}}*/}
{/* href={schooldata.evaluation_methods_url}>4.课程目标评价方法</a>*/}
{/* <a className="fl SystemParameters ml40"*/}
{/* style={{display:schooldata.competition_calculation_info_url===null?"none":"block",color:'#4CACFF'}}*/}
{/* href={schooldata.competition_calculation_info_url}>5.课程达成评价结果</a>*/}
{/* /!* <span className="right ml20 SystemParameters">课程体系:*/}
{/* {*/}
{/* evaluate_result===false?<span className="Systemnum">未达成</span>:<span className="Systemnum color-green">达成</span>*/}
{/* }*/}
{/* </span> *!/*/}
{/* <span className={ismanager===false?"none":"right newrightcalculatebutton"} */}
{/* style={{*/}
{/* marginLeft: '26px',*/}
{/* position: 'absolute',*/}
{/* right: '157px'*/}
{/* }}*/}
{/* onClick={this.newrightcalculatebutton}>计算</span>*/}
{/* <span className={ismanager===false?"none":"Importclassroomdata"} style={{top: "26px"}}>*/}
{/* <a className="white-btn edu-blueback-btn fr mb10 mr10" target="_blank" href={"/ec_courses/"+ec_course_id+"/export_evaluation_result.xls"}>导出评价详情</a>*/}
{/* </span>*/}
{/* </div>*/}
{/*</div>*/}
<div className="ListTableLine newSystem mb20" id="school_major_list">
@ -809,5 +805,5 @@ class EcCompletionCalculation extends Component {
}
}
export default SnackbarHOC() ( TPMIndexHOC ( EcCompletionCalculation ) );
export default SnackbarHOC() (EcCompletionCalculation);

@ -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'
@ -664,7 +664,7 @@ class EcCourseEvaluationsbottom extends Component {
} = this.state;
return (
<div className="newMain clearfix">
<div className="educontent mb50 mt60">
<div className="educontent mb50">
<Modal
title={titlemessages}
// visible={modeldelet===true&&listid===list.id?true:false}
@ -703,11 +703,11 @@ class EcCourseEvaluationsbottom extends Component {
{/*</div>*/}
{/*</div>*/}
<EcTitleCourseEvaluations
{...this.props}
schooldata={schooldata}
ecpath={"show"}
/>
{/*<EcTitleCourseEvaluations*/}
{/* {...this.props}*/}
{/* schooldata={schooldata}*/}
{/* ecpath={"show"}*/}
{/*/>*/}
{/*<div className="edu-back-white eacourse">*/}
@ -1036,4 +1036,4 @@ class EcCourseEvaluationsbottom extends Component {
}
}
export default SnackbarHOC() ( TPMIndexHOC ( EcCourseEvaluationsbottom ) );
export default SnackbarHOC() (EcCourseEvaluationsbottom);

@ -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 {
</div>
</Modal>
<div className="educontent mb290">
<EcTitleCourseEvaluations
{...this.props}
schooldata={schooldata}
ecpath={this.state.ecComponentState}
/>
<div className="clearfix padding20-30 bor-bottom-greyE mb10 edu-back-white">
<span className="fl font-18 courseSystem ">学生列表</span>
<a className="fr font-15 courseSystem" onClick={this.windowsgoblack}>返回</a>
@ -381,12 +356,12 @@ class EcStudentList extends Component {
{
majorschoollist===undefined?
<div className="edu-txt-center color-grey-9 pt50">
<p className="mb20"><img className="edu-nodata-img mb20" src={require('./nodata.png')} /></p>
<p className="mb20"><img className="edu-nodata-img mb20" src={getImageUrl("images/educoder/nodata.png")} /></p>
<p>学生数据为空请导入数据</p>
</div>
:majorschoollist.ec_students.length===0?
<div className="edu-txt-center color-grey-9 pt50">
<p className="mb20"><img className="edu-nodata-img mb20" src={require('./nodata.png')}/></p>
<p className="mb20"><img className="edu-nodata-img mb20" src={getImageUrl("images/educoder/nodata.png")}/></p>
<p>学生数据为空请导入数据</p>
</div>:majorschoollist.ec_students.map((item,key)=>{
// console.log(item)
@ -427,4 +402,4 @@ class EcStudentList extends Component {
}
}
export default SnackbarHOC() ( TPMIndexHOC ( EcStudentList ) );
export default SnackbarHOC() (EcStudentList);
Loading…
Cancel
Save