|
|
|
@ -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,308 +944,305 @@ class ecCourseEvaluations extends Component {
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<Spin spinning={this.state.isSpin}>
|
|
|
|
|
<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>
|
|
|
|
|
<span className="column-1 ml15 color-666" style={{width: "90px"}}>考核次数</span>
|
|
|
|
|
<span className="column-1 ml15 color-666" style={{width: "90px"}}>支撑关系</span>
|
|
|
|
|
<span className="column-1 ml30 color-666" style={{width: "90px"}}>考核分项名称</span>
|
|
|
|
|
<span className="column-1 operationright color-666"
|
|
|
|
|
style={{width: '34px'}}
|
|
|
|
|
>
|
|
|
|
|
{/* 操作 */}
|
|
|
|
|
{ecmanager===false?"":
|
|
|
|
|
<a className="mr20 newAddSubentry" data-tip-down="添加">
|
|
|
|
|
<i className="iconfont icon-tianjiafangda color-green"
|
|
|
|
|
// style={{display:savetype==='add'||savetype==='edit'?'none':'inline-block'}}
|
|
|
|
|
onClick={this.AddCourseEvaluations}></i>
|
|
|
|
|
</a>}
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
<span className="column-2 operationright color-666" style={{width: "126px"}}>
|
|
|
|
|
成绩导入状态
|
|
|
|
|
</span>
|
|
|
|
|
<span className="column-1 operationright color-666" style={{textAlign: 'center',width: "119px"}}>
|
|
|
|
|
成绩来源
|
|
|
|
|
</span>
|
|
|
|
|
<span className="column-2 operationright color-666" style={{width: "127px"}}>
|
|
|
|
|
平均成绩导入模板
|
|
|
|
|
</span>
|
|
|
|
|
<span className="column-2 operationright color-666" style={{width: "152px"}}>
|
|
|
|
|
明细成绩导入模板
|
|
|
|
|
</span>
|
|
|
|
|
</p>
|
|
|
|
|
<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)=>{
|
|
|
|
|
|
|
|
|
|
return(
|
|
|
|
|
<li className={m===ec_course_evaluation_lists.length-1?savetype==='add'?"bordereaeaeas clearfix":'bordereaeaea clearfix':"clearfix"} key={m}
|
|
|
|
|
style={{width:"1140px",position:'relative'}}
|
|
|
|
|
>
|
|
|
|
|
<span className="column-1" style={{marginLeft: '6px',display:parseInt(idkey)===m?'none ':'block',width: "70px"}}>{m+1}</span>
|
|
|
|
|
<span className="column-1" style={{marginLeft: '-4px',display:parseInt(idkey)===m?'none ':'block',width: "72px"}}>
|
|
|
|
|
<div>{list.name}</div>
|
|
|
|
|
</span>
|
|
|
|
|
<span className="column-1" style={{marginLeft: '37px',display:parseInt(idkey)===m?'none ':'block',width: "90px"}}>
|
|
|
|
|
<div>{list.evluation_count}</div>
|
|
|
|
|
</span>
|
|
|
|
|
<span className="column-1" style={{marginLeft: '-8px',display:parseInt(idkey)===m?'none ':'block',width: "90px"}}>
|
|
|
|
|
<div>{list.status===1?"总成绩支撑":list.status===2?"分项成绩支撑":list.status}</div>
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
<span className="column-1 color99"
|
|
|
|
|
style={{marginLeft: '31px',display:parseInt(idkey)===m?'none ':'block',width: " 207px"}} >
|
|
|
|
|
{
|
|
|
|
|
list.subitems.map((listchild,mk)=>{
|
|
|
|
|
return (
|
|
|
|
|
<Tooltip placement="bottomLeft" title={
|
|
|
|
|
listchild.name
|
|
|
|
|
}>
|
|
|
|
|
<div key={mk} className='listchildboxs'>{listchild.name}
|
|
|
|
|
</div>
|
|
|
|
|
</Tooltip>
|
|
|
|
|
)
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/*style={{display:list.is_course_type===false?'inline-block':'none'}}*/}
|
|
|
|
|
{/* editSubentry 编辑的 */}
|
|
|
|
|
<span className="column-1 operationright" style={{display:parseInt(idkey)===m?'none ':'block',width: '61px'}}>
|
|
|
|
|
<div className="operationColumn" >
|
|
|
|
|
<div className="left operationalter" style={{display:ecmanager===false?'none ':'block'}}>
|
|
|
|
|
<Tooltip placement="bottom" title="删除">
|
|
|
|
|
<a className="mr10 delSubentry fl" id={list.id} onClick={this.modeldeleteCourseEvaluations.bind(this,list.id)} style={{display:list.is_course_type===true?'none':'block'}} ><i className="iconfont icon-shanchu color-grey-c font-18"></i></a>
|
|
|
|
|
</Tooltip>
|
|
|
|
|
<Modal
|
|
|
|
|
title="提示"
|
|
|
|
|
visible={modeldelet===true&&listid===list.id?true:false}
|
|
|
|
|
className={"ecmodeldelet"}
|
|
|
|
|
closable={false}
|
|
|
|
|
footer={null}
|
|
|
|
|
>
|
|
|
|
|
<div className="task-popup-content">
|
|
|
|
|
<div className="task-popup-text-center font-14">您确定要删除吗?</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="task-popup-submit clearfix">
|
|
|
|
|
<a onClick={this.hidemodeldelete} className="task-btn fl">取消</a>
|
|
|
|
|
<a className="task-btn task-btn-orange fr"
|
|
|
|
|
onClick={this.deleteCourseEvaluations.bind(this,list.id)}
|
|
|
|
|
>确定</a>
|
|
|
|
|
</div>
|
|
|
|
|
</Modal>
|
|
|
|
|
<a className="mr10 delSubentry fl" data-tip-down="编辑"
|
|
|
|
|
style={{display:list.is_course_type===true?'none':'inline-block'}}
|
|
|
|
|
>
|
|
|
|
|
<i className="iconfont icon-bianjidaibeijing color-green"
|
|
|
|
|
style={{
|
|
|
|
|
diaplay:savetype==='add'&&savetype==='edit'?'none':'inline-block'
|
|
|
|
|
}}
|
|
|
|
|
idkey={m} onClick={this.editEvaluations.bind(this)}></i>
|
|
|
|
|
</a>
|
|
|
|
|
<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>
|
|
|
|
|
<span className="column-1 ml15 color-666" style={{width: "90px"}}>考核次数</span>
|
|
|
|
|
<span className="column-1 ml15 color-666" style={{width: "90px"}}>支撑关系</span>
|
|
|
|
|
<span className="column-1 ml30 color-666" style={{width: "90px"}}>考核分项名称</span>
|
|
|
|
|
<span className="column-1 operationright color-666"
|
|
|
|
|
style={{width: '34px'}}
|
|
|
|
|
>
|
|
|
|
|
{/* 操作 */}
|
|
|
|
|
{ecmanager===false?"":
|
|
|
|
|
<a className="mr20 newAddSubentry" data-tip-down="添加">
|
|
|
|
|
<i className="iconfont icon-tianjiafangda color-green"
|
|
|
|
|
// style={{display:savetype==='add'||savetype==='edit'?'none':'inline-block'}}
|
|
|
|
|
onClick={this.AddCourseEvaluations}></i>
|
|
|
|
|
</a>}
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
<span className="column-2 operationright color-666" style={{width: "126px"}}>
|
|
|
|
|
成绩导入状态
|
|
|
|
|
</span>
|
|
|
|
|
<span className="column-1 operationright color-666" style={{textAlign: 'center',width: "119px"}}>
|
|
|
|
|
成绩来源
|
|
|
|
|
</span>
|
|
|
|
|
<span className="column-2 operationright color-666" style={{width: "127px"}}>
|
|
|
|
|
平均成绩导入模板
|
|
|
|
|
</span>
|
|
|
|
|
<span className="column-2 operationright color-666" style={{width: "152px"}}>
|
|
|
|
|
明细成绩导入模板
|
|
|
|
|
</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 && 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}
|
|
|
|
|
style={{width:"1140px",position:'relative'}}
|
|
|
|
|
>
|
|
|
|
|
<span className="column-1" style={{marginLeft: '6px',display:parseInt(idkey)===m?'none ':'block',width: "70px"}}>{m+1}</span>
|
|
|
|
|
<span className="column-1" style={{marginLeft: '-4px',display:parseInt(idkey)===m?'none ':'block',width: "72px"}}>
|
|
|
|
|
<div>{list.name}</div>
|
|
|
|
|
</span>
|
|
|
|
|
<span className="column-1" style={{marginLeft: '37px',display:parseInt(idkey)===m?'none ':'block',width: "90px"}}>
|
|
|
|
|
<div>{list.evluation_count}</div>
|
|
|
|
|
</span>
|
|
|
|
|
<span className="column-1" style={{marginLeft: '-8px',display:parseInt(idkey)===m?'none ':'block',width: "90px"}}>
|
|
|
|
|
<div>{list.status===1?"总成绩支撑":list.status===2?"分项成绩支撑":list.status}</div>
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
<span className="column-1 color99"
|
|
|
|
|
style={{marginLeft: '31px',display:parseInt(idkey)===m?'none ':'block',width: " 207px"}} >
|
|
|
|
|
{
|
|
|
|
|
list.subitems.map((listchild,mk)=>{
|
|
|
|
|
return (
|
|
|
|
|
<Tooltip placement="bottomLeft" title={
|
|
|
|
|
listchild.name
|
|
|
|
|
}>
|
|
|
|
|
<div key={mk} className='listchildboxs'>{listchild.name}
|
|
|
|
|
</div>
|
|
|
|
|
</Tooltip>
|
|
|
|
|
)
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/*style={{display:list.is_course_type===false?'inline-block':'none'}}*/}
|
|
|
|
|
{/* editSubentry 编辑的 */}
|
|
|
|
|
<span className="column-1 operationright" style={{display:parseInt(idkey)===m?'none ':'block',width: '61px'}}>
|
|
|
|
|
<div className="operationColumn" >
|
|
|
|
|
<div className="left operationalter" style={{display:ecmanager===false?'none ':'block'}}>
|
|
|
|
|
<Tooltip placement="bottom" title="删除">
|
|
|
|
|
<a className="mr10 delSubentry fl" id={list.id} onClick={this.modeldeleteCourseEvaluations.bind(this,list.id)} style={{display:list.is_course_type===true?'none':'block'}} ><i className="iconfont icon-shanchu color-grey-c font-18"></i></a>
|
|
|
|
|
</Tooltip>
|
|
|
|
|
<Modal
|
|
|
|
|
title="提示"
|
|
|
|
|
visible={modeldelet===true&&listid===list.id?true:false}
|
|
|
|
|
className={"ecmodeldelet"}
|
|
|
|
|
closable={false}
|
|
|
|
|
footer={null}
|
|
|
|
|
>
|
|
|
|
|
<div className="task-popup-content">
|
|
|
|
|
<div className="task-popup-text-center font-14">您确定要删除吗?</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="task-popup-submit clearfix">
|
|
|
|
|
<a onClick={this.hidemodeldelete} className="task-btn fl">取消</a>
|
|
|
|
|
<a className="task-btn task-btn-orange fr"
|
|
|
|
|
onClick={this.deleteCourseEvaluations.bind(this,list.id)}
|
|
|
|
|
>确定</a>
|
|
|
|
|
</div>
|
|
|
|
|
</Modal>
|
|
|
|
|
<a className="mr10 delSubentry fl" data-tip-down="编辑"
|
|
|
|
|
style={{display:list.is_course_type===true?'none':'inline-block'}}
|
|
|
|
|
>
|
|
|
|
|
<i className="iconfont icon-bianjidaibeijing color-green"
|
|
|
|
|
style={{
|
|
|
|
|
diaplay:savetype==='add'&&savetype==='edit'?'none':'inline-block'
|
|
|
|
|
}}
|
|
|
|
|
idkey={m} onClick={this.editEvaluations.bind(this)}></i>
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
<span className="column-1 detaillist mr20" style={{width:'156px',display:savetype==='edit'&&parseInt(idkey)===m?'none':'inline-block'}}>
|
|
|
|
|
<a href={ecmanager===false?"":list.export_url+'?type=1'} style={{display:list.is_course_type===false?"block":"none"}}>
|
|
|
|
|
<div className={ecmanager===false?"color-white":"color-green"}>
|
|
|
|
|
<i className={ecmanager===false?"color-white":"iconfont icon-fujian mr5 color-green font-16"}></i>模板下载
|
|
|
|
|
</div>
|
|
|
|
|
<span className="column-1 detaillist mr20" style={{width:'156px',display:savetype==='edit'&&parseInt(idkey)===m?'none':'inline-block'}}>
|
|
|
|
|
<a href={ecmanager===false?"":list.export_url+'?type=1'} style={{display:list.is_course_type===false?"block":"none"}}>
|
|
|
|
|
<div className={ecmanager===false?"color-white":"color-green"}>
|
|
|
|
|
<i className={ecmanager===false?"color-white":"iconfont icon-fujian mr5 color-green font-16"}></i>模板下载
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
</span>
|
|
|
|
|
</a>
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
<span className="column-1" style={{paddingLeft: '13px',width:"127px",display:savetype==='edit'&&parseInt(idkey)===m?'none':'inline-block'}}>
|
|
|
|
|
<a href={ecmanager===false?"":list.export_url+'?type=2'} style={{display:list.is_course_type===false?"block":"none"}}>
|
|
|
|
|
<div className={ecmanager===false?"color-white":"color-green"}
|
|
|
|
|
><i className={ecmanager===false?"color-white":"iconfont icon-fujian mr5 color-green font-16"}></i>模板下载</div>
|
|
|
|
|
</a>
|
|
|
|
|
</span>
|
|
|
|
|
<span className="column-1" style={{paddingLeft: '13px',width:"127px",display:savetype==='edit'&&parseInt(idkey)===m?'none':'inline-block'}}>
|
|
|
|
|
<a href={ecmanager===false?"":list.export_url+'?type=2'} style={{display:list.is_course_type===false?"block":"none"}}>
|
|
|
|
|
<div className={ecmanager===false?"color-white":"color-green"}
|
|
|
|
|
><i className={ecmanager===false?"color-white":"iconfont icon-fujian mr5 color-green font-16"}></i>模板下载</div>
|
|
|
|
|
</a>
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
<span className="column-1" style={{width: "121px",marginRight:'-5px',paddingLeft: '24px',display:savetype==='edit'&&parseInt(idkey)===m?'none':'inline-block'}}>
|
|
|
|
|
<div className="operationColumn">
|
|
|
|
|
<div className="left operationalter" style={{display:list.is_course_type===false?'block':'none'}}>
|
|
|
|
|
<span className="column-1" style={{width: "121px",marginRight:'-5px',paddingLeft: '24px',display:savetype==='edit'&&parseInt(idkey)===m?'none':'inline-block'}}>
|
|
|
|
|
<div className="operationColumn">
|
|
|
|
|
<div className="left operationalter" style={{display:list.is_course_type===false?'block':'none'}}>
|
|
|
|
|
|
|
|
|
|
<Upload
|
|
|
|
|
{...uploadProps}
|
|
|
|
|
data={list.id}
|
|
|
|
|
showUploadList={false}
|
|
|
|
|
>
|
|
|
|
|
{ecmanager===false?<span className="color-white" idkey={m}>成绩导入</span>:<span className="delSubentry" idkey={m}>成绩导入</span>}
|
|
|
|
|
</Upload>
|
|
|
|
|
<Upload
|
|
|
|
|
{...uploadProps}
|
|
|
|
|
data={list.id}
|
|
|
|
|
showUploadList={false}
|
|
|
|
|
>
|
|
|
|
|
{ecmanager===false?<span className="color-white" idkey={m}>成绩导入</span>:<span className="delSubentry" idkey={m}>成绩导入</span>}
|
|
|
|
|
</Upload>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ecmanager===false?""
|
|
|
|
|
: <span className="column-2" style={{marginLeft: '-8px',width:'96px',display:savetype==='edit'&&parseInt(idkey)===m?'none':'inline-block'}}>
|
|
|
|
|
<div style={{display:list.is_course_type===false?"block":"none"}}
|
|
|
|
|
>{list.import_status===true||list.is_course_type?"已导入":"未导入"}</div>
|
|
|
|
|
</span>}
|
|
|
|
|
{ecmanager===false?""
|
|
|
|
|
: <span className="column-2" style={{marginLeft: '-8px',width:'96px',display:savetype==='edit'&&parseInt(idkey)===m?'none':'inline-block'}}>
|
|
|
|
|
<div style={{display:list.is_course_type===false?"block":"none"}}
|
|
|
|
|
>{list.import_status===true||list.is_course_type?"已导入":"未导入"}</div>
|
|
|
|
|
</span>}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div className="ListTableLine newSystem" style={{display:parseInt(idkey)===m?'block':'none'}}>
|
|
|
|
|
<div className="ListTableLine newSystem" style={{display:parseInt(idkey)===m?'block':'none'}}>
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
params===" " ? " " : params.map((item,key)=>{
|
|
|
|
|
params===" " ? " " : params.map((item,key)=>{
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div key={key}>
|
|
|
|
|
<div className="clearfix editorModify pt20">
|
|
|
|
|
|
|
|
|
|
<div className="">
|
|
|
|
|
<span className="column-1 ml75 mr16">名称</span>
|
|
|
|
|
<Input style={{ width: '27%' }} size="large" className={item.name===undefined===undefined&&savetypes===true?"inputWeight placeholder bor-red":"inputWeight placeholder" } placeholder="请输入考核方式的名称,如平时作业、考试、论文等" index="name" value={item.name} onInput={this.EstablishCurriculumStandards.bind(this)}/>
|
|
|
|
|
|
|
|
|
|
<span className="column-1 ml20 mr16">考核次数</span>
|
|
|
|
|
<Input style={{ width: '20%' }} size="large" className={item.evluation_count===undefined&&savetypes===true?"inputWeight placeholder bor-red":"inputWeight placeholder" } placeholder="请输入考核次数" value={item.evluation_count} index="evluation_count" onInput={this.EstablishCurriculumStandards.bind(this)}/>
|
|
|
|
|
|
|
|
|
|
<span className="RadioGroupbox">
|
|
|
|
|
<RadioGroup className="RadioGroupboxab" onChange={this.RadioGroupEvaluations} value={item.status}>
|
|
|
|
|
<Radio value={1}>由单次考核总成绩支撑课程目标</Radio>
|
|
|
|
|
<br />
|
|
|
|
|
<Radio value={2}>由单次考核的某分项成绩支撑课程目标</Radio>
|
|
|
|
|
</RadioGroup>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
{
|
|
|
|
|
item.subitems.map((i,k)=>{
|
|
|
|
|
return(
|
|
|
|
|
<div className="mb20" key={k}>
|
|
|
|
|
<span className="column-1 ml20 mr16 ">考核分项名称</span>
|
|
|
|
|
<Input style={{ width: '27%' }} size="large" className={i.name===""&&savetypes===true?"inputWeight placeholder bor-red":"inputWeight placeholder" } placeholder="请输入考核分项名称,如选择题、填空题、报告等" value={i.name} index="subitems" newid={k} onInput={this.EstablishCurriculumStandards.bind(this)}/>
|
|
|
|
|
|
|
|
|
|
<span className="buttoninline SetTheAssociated">
|
|
|
|
|
<div className="left operatebutton">
|
|
|
|
|
<a className="mr15 delSubentry" style={{display:k===0?"none":"inline-block"}}>
|
|
|
|
|
<Tooltip placement="bottom" title="删除">
|
|
|
|
|
<i className="iconfont icon-shanchu color-grey-c font-17" id={k} onClick={this.deleteInspectionItems.bind(this)}></i>
|
|
|
|
|
</Tooltip>
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
<a className="newAddSubentry" data-tip-down="添加"
|
|
|
|
|
style={{display:k===item.subitems.length-1?'inline-block':'none'}}
|
|
|
|
|
><i className="iconfont icon-tianjiafangda color-green mt10" onClick={this.addInspectionItems}></i></a>
|
|
|
|
|
</div>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div key={key}>
|
|
|
|
|
<div className="clearfix editorModify pt20">
|
|
|
|
|
|
|
|
|
|
<div className="">
|
|
|
|
|
<span className="column-1 ml75 mr16">名称</span>
|
|
|
|
|
<Input style={{ width: '27%' }} size="large" className={item.name===undefined===undefined&&savetypes===true?"inputWeight placeholder bor-red":"inputWeight placeholder" } placeholder="请输入考核方式的名称,如平时作业、考试、论文等" index="name" value={item.name} onInput={this.EstablishCurriculumStandards.bind(this)}/>
|
|
|
|
|
|
|
|
|
|
<span className="column-1 ml20 mr16">考核次数</span>
|
|
|
|
|
<Input style={{ width: '20%' }} size="large" className={item.evluation_count===undefined&&savetypes===true?"inputWeight placeholder bor-red":"inputWeight placeholder" } placeholder="请输入考核次数" value={item.evluation_count} index="evluation_count" onInput={this.EstablishCurriculumStandards.bind(this)}/>
|
|
|
|
|
|
|
|
|
|
<span className="RadioGroupbox">
|
|
|
|
|
<RadioGroup className="RadioGroupboxab" onChange={this.RadioGroupEvaluations} value={item.status}>
|
|
|
|
|
<Radio value={1}>由单次考核总成绩支撑课程目标</Radio>
|
|
|
|
|
<br />
|
|
|
|
|
<Radio value={2}>由单次考核的某分项成绩支撑课程目标</Radio>
|
|
|
|
|
</RadioGroup>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
{
|
|
|
|
|
item.subitems.map((i,k)=>{
|
|
|
|
|
return(
|
|
|
|
|
<div className="mb20" key={k}>
|
|
|
|
|
<span className="column-1 ml20 mr16 ">考核分项名称</span>
|
|
|
|
|
<Input style={{ width: '27%' }} size="large" className={i.name===""&&savetypes===true?"inputWeight placeholder bor-red":"inputWeight placeholder" } placeholder="请输入考核分项名称,如选择题、填空题、报告等" value={i.name} index="subitems" newid={k} onInput={this.EstablishCurriculumStandards.bind(this)}/>
|
|
|
|
|
|
|
|
|
|
<span className="buttoninline SetTheAssociated">
|
|
|
|
|
<div className="left operatebutton">
|
|
|
|
|
<a className="mr15 delSubentry" style={{display:k===0?"none":"inline-block"}}>
|
|
|
|
|
<Tooltip placement="bottom" title="删除">
|
|
|
|
|
<i className="iconfont icon-shanchu color-grey-c font-17" id={k} onClick={this.deleteInspectionItems.bind(this)}></i>
|
|
|
|
|
</Tooltip>
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
<a className="newAddSubentry" data-tip-down="添加"
|
|
|
|
|
style={{display:k===item.subitems.length-1?'inline-block':'none'}}
|
|
|
|
|
><i className="iconfont icon-tianjiafangda color-green mt10" onClick={this.addInspectionItems}></i></a>
|
|
|
|
|
</div>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
<div className="right editglybuttonbox mt20 mb20">
|
|
|
|
|
<div className="defalutSubmitbtn fr" onClick={this.SaveecCourseEvaluationstop}>保存</div>
|
|
|
|
|
<div className="defalutCancelbtn fr mr20" onClick={this.CancelecCourseEvaluationstop}>取消</div>
|
|
|
|
|
</div>
|
|
|
|
|
<span className="c_red none ml30" id="error_tip" style={{display:newModallist===true?"inline":'none'}}>{Modallist}</span>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
<div className="right editglybuttonbox mt20 mb20">
|
|
|
|
|
<div className="defalutSubmitbtn fr" onClick={this.SaveecCourseEvaluationstop}>保存</div>
|
|
|
|
|
<div className="defalutCancelbtn fr mr20" onClick={this.CancelecCourseEvaluationstop}>取消</div>
|
|
|
|
|
</div>
|
|
|
|
|
<span className="c_red none ml30" id="error_tip" style={{display:newModallist===true?"inline":'none'}}>{Modallist}</span>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
{ecmanager===false?"": <div className="ListTableLine newSystem" id="EvaluationsList" style={{display:'none'}}>
|
|
|
|
|
|
|
|
|
|
{ecmanager===false?"": <div className="ListTableLine newSystem" id="EvaluationsList" style={{display:'none'}}>
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
params===" " ? " " : params.map((item,key)=>{
|
|
|
|
|
|
|
|
|
|
params===" " ? " " : params.map((item,key)=>{
|
|
|
|
|
return (
|
|
|
|
|
<div key={key}>
|
|
|
|
|
<div className="clearfix editorModify pt20">
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div key={key}>
|
|
|
|
|
<div className="clearfix editorModify pt20">
|
|
|
|
|
<div className="">
|
|
|
|
|
<span className="column-1 ml75 mr16">名称</span>
|
|
|
|
|
<Input style={{ width: '27%' }} size="large" className={item.name===undefined&&savetypes===true?"inputWeight placeholder bor-red":"inputWeight placeholder" } placeholder="请输入考核方式的名称,如平时作业、考试、论文等" index="name" value={item.name} onInput={this.EstablishCurriculumStandards.bind(this)}/>
|
|
|
|
|
|
|
|
|
|
<div className="">
|
|
|
|
|
<span className="column-1 ml75 mr16">名称</span>
|
|
|
|
|
<Input style={{ width: '27%' }} size="large" className={item.name===undefined&&savetypes===true?"inputWeight placeholder bor-red":"inputWeight placeholder" } placeholder="请输入考核方式的名称,如平时作业、考试、论文等" index="name" value={item.name} onInput={this.EstablishCurriculumStandards.bind(this)}/>
|
|
|
|
|
<span className="column-1 ml20 mr16">考核次数</span>
|
|
|
|
|
<Input style={{ width: '20%' }} size="large" className={item.evluation_count===undefined&&savetypes===true?"inputWeight placeholder bor-red":"inputWeight placeholder" } placeholder="请输入考核次数" value={item.evluation_count} index="evluation_count" onInput={this.EstablishCurriculumStandards.bind(this)}/>
|
|
|
|
|
|
|
|
|
|
<span className="column-1 ml20 mr16">考核次数</span>
|
|
|
|
|
<Input style={{ width: '20%' }} size="large" className={item.evluation_count===undefined&&savetypes===true?"inputWeight placeholder bor-red":"inputWeight placeholder" } placeholder="请输入考核次数" value={item.evluation_count} index="evluation_count" onInput={this.EstablishCurriculumStandards.bind(this)}/>
|
|
|
|
|
<span className="RadioGroupbox">
|
|
|
|
|
<RadioGroup className="RadioGroupboxab" onChange={this.RadioGroupEvaluations} value={item.status}>
|
|
|
|
|
<Radio value={1}>由单次考核总成绩支撑课程目标</Radio>
|
|
|
|
|
<br />
|
|
|
|
|
<Radio value={2}>由单次考核的某分项成绩支撑课程目标</Radio>
|
|
|
|
|
</RadioGroup>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<span className="RadioGroupbox">
|
|
|
|
|
<RadioGroup className="RadioGroupboxab" onChange={this.RadioGroupEvaluations} value={item.status}>
|
|
|
|
|
<Radio value={1}>由单次考核总成绩支撑课程目标</Radio>
|
|
|
|
|
<br />
|
|
|
|
|
<Radio value={2}>由单次考核的某分项成绩支撑课程目标</Radio>
|
|
|
|
|
</RadioGroup>
|
|
|
|
|
</span>
|
|
|
|
|
{
|
|
|
|
|
item.subitems.map((i,k)=>{
|
|
|
|
|
return(
|
|
|
|
|
<div className="mb20" key={k}>
|
|
|
|
|
<span className="column-1 ml20 mr16 ">考核分项名称</span>
|
|
|
|
|
<Input style={{ width: '27%' }} size="large" className={i.name===""&&savetypes===true?"inputWeight placeholder bor-red":"inputWeight placeholder" } placeholder="请输入考核分项名称,如选择题、填空题、报告等" value={i.name} index="subitems" newid={k} onInput={this.EstablishCurriculumStandards.bind(this)}/>
|
|
|
|
|
|
|
|
|
|
<span className="buttoninline SetTheAssociated">
|
|
|
|
|
<div className="left operatebutton">
|
|
|
|
|
<a className="mr15 delSubentry" style={{display:k===0?"none":"inline-block"}}>
|
|
|
|
|
<Tooltip placement="bottom" title="删除">
|
|
|
|
|
<i className="iconfont icon-shanchu color-grey-c font-17" id={k} onClick={this.deleteInspectionItems.bind(this)}></i>
|
|
|
|
|
</Tooltip>
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
<a className="newAddSubentry" data-tip-down="添加"
|
|
|
|
|
style={{display:k===item.subitems.length-1?'inline-block':'none'}}
|
|
|
|
|
><i className="iconfont icon-tianjiafangda color-green" onClick={this.addInspectionItems}></i></a>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
{
|
|
|
|
|
item.subitems.map((i,k)=>{
|
|
|
|
|
return(
|
|
|
|
|
<div className="mb20" key={k}>
|
|
|
|
|
<span className="column-1 ml20 mr16 ">考核分项名称</span>
|
|
|
|
|
<Input style={{ width: '27%' }} size="large" className={i.name===""&&savetypes===true?"inputWeight placeholder bor-red":"inputWeight placeholder" } placeholder="请输入考核分项名称,如选择题、填空题、报告等" value={i.name} index="subitems" newid={k} onInput={this.EstablishCurriculumStandards.bind(this)}/>
|
|
|
|
|
|
|
|
|
|
<span className="buttoninline SetTheAssociated">
|
|
|
|
|
<div className="left operatebutton">
|
|
|
|
|
<a className="mr15 delSubentry" style={{display:k===0?"none":"inline-block"}}>
|
|
|
|
|
<Tooltip placement="bottom" title="删除">
|
|
|
|
|
<i className="iconfont icon-shanchu color-grey-c font-17" id={k} onClick={this.deleteInspectionItems.bind(this)}></i>
|
|
|
|
|
</Tooltip>
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
<a className="newAddSubentry" data-tip-down="添加"
|
|
|
|
|
style={{display:k===item.subitems.length-1?'inline-block':'none'}}
|
|
|
|
|
><i className="iconfont icon-tianjiafangda color-green" onClick={this.addInspectionItems}></i></a>
|
|
|
|
|
</div>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
<div className="right editglybuttonbox mt20 mb20 mr20">
|
|
|
|
|
{/* 新建 */}
|
|
|
|
|
<div className="defalutSubmitbtn fr" onClick={this.SaveecCourseEvaluationstop}>保存</div>
|
|
|
|
|
<div className="defalutCancelbtn fr mr20" onClick={this.CancelecCourseEvaluationstop}>取消</div>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
<div className="right editglybuttonbox mt20 mb20 mr20">
|
|
|
|
|
{/* 新建 */}
|
|
|
|
|
<div className="defalutSubmitbtn fr" onClick={this.SaveecCourseEvaluationstop}>保存</div>
|
|
|
|
|
<div className="defalutCancelbtn fr mr20" onClick={this.CancelecCourseEvaluationstop}>取消</div>
|
|
|
|
|
</div>
|
|
|
|
|
<span className="c_red none ml30" id="error_tip" style={{display:newModallist===true?"inline":'none'}}>{Modallist}</span>
|
|
|
|
|
</div>
|
|
|
|
|
<span className="c_red none ml30" id="error_tip" style={{display:newModallist===true?"inline":'none'}}>{Modallist}</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
</Spin>
|
|
|
|
|
</div>
|
|
|
|
|
</Spin>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
{/*<EcCourseEvaluationsbottom*/}
|
|
|
|
|
{/*// ec_course_id={ec_course_id}*/}
|
|
|
|
|
{/*// schooldata={schooldata}*/}
|
|
|
|
|
{/*/>*/}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</Spin>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|