|
|
|
@ -55,7 +55,8 @@ class ecCourseEvaluations extends Component {
|
|
|
|
|
isreload:false,
|
|
|
|
|
newModallist:false,
|
|
|
|
|
isreloads:false,
|
|
|
|
|
isSpin:false
|
|
|
|
|
isSpin:false,
|
|
|
|
|
listSpin:false
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
componentWillMount(){
|
|
|
|
@ -91,7 +92,8 @@ class ecCourseEvaluations extends Component {
|
|
|
|
|
let newec_course_id=this.props.match.params.ec_course_id;
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
ec_course_id:newec_course_id
|
|
|
|
|
ec_course_id:newec_course_id,
|
|
|
|
|
listSpin:true
|
|
|
|
|
})
|
|
|
|
|
const url = `/ec_course_evaluations?ec_course_id=`+newec_course_id;
|
|
|
|
|
axios.get(url, {
|
|
|
|
@ -111,7 +113,8 @@ class ecCourseEvaluations extends Component {
|
|
|
|
|
course_url:response.data.course_url,
|
|
|
|
|
ec_course_id:response.data.ec_course_id,
|
|
|
|
|
ec_year_id:response.data.ec_year_id,
|
|
|
|
|
ecmanager: response.data.is_manager
|
|
|
|
|
ecmanager: response.data.is_manager,
|
|
|
|
|
listSpin:false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}).catch(function (error) {
|
|
|
|
@ -565,6 +568,7 @@ class ecCourseEvaluations extends Component {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
sync_course_data=()=>{
|
|
|
|
|
this.setState({listSpin:true})
|
|
|
|
|
let ec_course_id=this.props.match.params.ec_course_id;
|
|
|
|
|
let Url ='/ec_course_achievement_methods/sync_course_data';
|
|
|
|
|
axios.post(Url, {
|
|
|
|
@ -578,14 +582,16 @@ class ecCourseEvaluations extends Component {
|
|
|
|
|
this.setState({
|
|
|
|
|
// titlemessage: response.data.message+"(支撑关系变更)",
|
|
|
|
|
Modallist: response.data.message,
|
|
|
|
|
Modallisttype:true
|
|
|
|
|
Modallisttype:true,
|
|
|
|
|
listSpin:false
|
|
|
|
|
})
|
|
|
|
|
this.UpdateEvaluations();
|
|
|
|
|
}else if(response.data.status===-1){
|
|
|
|
|
this.setState({
|
|
|
|
|
// titlemessage: response.data.message+"(支撑关系变更)",
|
|
|
|
|
Modallist: response.data.message,
|
|
|
|
|
Modallisttype:true
|
|
|
|
|
Modallisttype:true,
|
|
|
|
|
listSpin:false
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -596,6 +602,7 @@ class ecCourseEvaluations extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
uploadfile=(file)=>{
|
|
|
|
|
this.setState({listSpin:true})
|
|
|
|
|
let Url =`/ec_course_evaluations/`+file.data+`/import_score`;
|
|
|
|
|
const form = new FormData();
|
|
|
|
|
form.append('file', file.file);
|
|
|
|
@ -608,7 +615,8 @@ class ecCourseEvaluations extends Component {
|
|
|
|
|
Modallist: '已成功导入'+response.data.count+"条数据",
|
|
|
|
|
Modallisttype:true,
|
|
|
|
|
isreload:true,
|
|
|
|
|
isreloads:true
|
|
|
|
|
isreloads:true,
|
|
|
|
|
listSpin:false
|
|
|
|
|
})
|
|
|
|
|
}else if(response.data.status===0){
|
|
|
|
|
// message.warning(response.data.message);
|
|
|
|
@ -617,7 +625,8 @@ class ecCourseEvaluations extends Component {
|
|
|
|
|
Modallist:response.data.message,
|
|
|
|
|
Modallisttype:true,
|
|
|
|
|
isreload:false,
|
|
|
|
|
isreloads:false
|
|
|
|
|
isreloads:false,
|
|
|
|
|
listSpin:false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
@ -657,6 +666,7 @@ class ecCourseEvaluations extends Component {
|
|
|
|
|
saveassclasslist=()=>{
|
|
|
|
|
// 列表清空
|
|
|
|
|
//搜索框清空
|
|
|
|
|
this.setState({isSpin:true});
|
|
|
|
|
let{checkevalue}=this.state;
|
|
|
|
|
|
|
|
|
|
let ec_course_id=this.props.match.params.ec_course_id;
|
|
|
|
@ -673,7 +683,8 @@ class ecCourseEvaluations extends Component {
|
|
|
|
|
this.setState({
|
|
|
|
|
Modallist: "关联失败",
|
|
|
|
|
Modallisttype:true,
|
|
|
|
|
isreload:false
|
|
|
|
|
isreload:false,
|
|
|
|
|
isSpin:false
|
|
|
|
|
})
|
|
|
|
|
}else if(response.data.status===0)[
|
|
|
|
|
this.setState({
|
|
|
|
@ -683,7 +694,8 @@ class ecCourseEvaluations extends Component {
|
|
|
|
|
assclassvalue:"",
|
|
|
|
|
Modallist: "关联成功",
|
|
|
|
|
Modallisttype:true,
|
|
|
|
|
isreload:true
|
|
|
|
|
isreload:true,
|
|
|
|
|
isSpin:false
|
|
|
|
|
})
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
@ -767,6 +779,7 @@ class ecCourseEvaluations extends Component {
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div className="newMain clearfix">
|
|
|
|
|
<Spin delay={500} indicator={<Icon type="loading" style={{ fontSize: 30 }}></Icon>} spinning={this.state.isSpin}>
|
|
|
|
|
<Modal
|
|
|
|
|
title={titlemessage}
|
|
|
|
|
// visible={modeldelet===true&&listid===list.id?true:false}
|
|
|
|
@ -881,7 +894,7 @@ class ecCourseEvaluations extends Component {
|
|
|
|
|
<a className="white-btn edu-blueline-btn fr mr10 mt7 mr20"
|
|
|
|
|
onClick={this.associatedclass}
|
|
|
|
|
style={{display: course_url === "" && ecmanager === true ? "block" : "none"}}
|
|
|
|
|
>关联课堂11s</a>
|
|
|
|
|
>关联课堂</a>
|
|
|
|
|
<a className="white-btn edu-blueline-btn fr mr10 mt7 mr20"
|
|
|
|
|
onClick={this.deleteassociatedclass}
|
|
|
|
|
style={{display:course_url!=""&&ecmanager===true?"block":"none"}}
|
|
|
|
@ -931,9 +944,8 @@ class ecCourseEvaluations extends Component {
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<Spin spinning={this.state.isSpin}>
|
|
|
|
|
<div className="ListTableLine newSystem" id="school_major_list" >
|
|
|
|
|
|
|
|
|
|
<div className="ListTableLine newSystem" id="school_major_list" >
|
|
|
|
|
<p className="clearfix Coursetitle" style={{width:"1200px"}}>
|
|
|
|
|
<span className="column-1 color-666" style={{width: "70px"}}>项</span>
|
|
|
|
|
<span className="column-1 color-666" style={{width: "72px"}}>名称</span>
|
|
|
|
@ -965,9 +977,10 @@ class ecCourseEvaluations extends Component {
|
|
|
|
|
明细成绩导入模板
|
|
|
|
|
</span>
|
|
|
|
|
</p>
|
|
|
|
|
<Spin delay={500} className="Spinlarge" indicator={<Icon type="loading" style={{ fontSize: 30 }} />} spinning={this.state.listSpin}>
|
|
|
|
|
<div style={{minHeight:'560px'}}>
|
|
|
|
|
{
|
|
|
|
|
ec_course_evaluation_lists===undefined? <Spin delay={500} className="Spinlarge" indicator={<Icon type="loading" style={{ fontSize: 30 }} spin />}/>:ec_course_evaluation_lists.map((list,m)=>{
|
|
|
|
|
ec_course_evaluation_lists && ec_course_evaluation_lists.map((list,m)=>{
|
|
|
|
|
|
|
|
|
|
return(
|
|
|
|
|
<li className={m===ec_course_evaluation_lists.length-1?savetype==='add'?"bordereaeaeas clearfix":'bordereaeaea clearfix':"clearfix"} key={m}
|
|
|
|
@ -1222,17 +1235,14 @@ class ecCourseEvaluations extends Component {
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</Spin>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
{/*<EcCourseEvaluationsbottom*/}
|
|
|
|
|
{/*// ec_course_id={ec_course_id}*/}
|
|
|
|
|
{/*// schooldata={schooldata}*/}
|
|
|
|
|
{/*/>*/}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</Spin>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|