工程认证部分导入按钮时间过长加上加载效果

dev_aliyun
caishi 5 years ago
parent f1546b6f89
commit 406d026e0d

@ -41,7 +41,7 @@ var proxy = "http://localhost:3000"
// proxy = "http://testbdweb.trustie.net" // proxy = "http://testbdweb.trustie.net"
// proxy = "http://testbdweb.educoder.net" // proxy = "http://testbdweb.educoder.net"
// proxy ="http://192.168.2.63:3000" // proxy ="http://192.168.2.63:3000"
proxy='http://120.27.231.56:48080' proxy='http://47.96.87.25:48080'
const requestMap={}; const requestMap={};
// 在这里使用requestMap控制避免用户通过双击等操作发出重复的请求 // 在这里使用requestMap控制避免用户通过双击等操作发出重复的请求
// 如果需要支持重复的请求考虑config里面自定义一个allowRepeat参考来控制 // 如果需要支持重复的请求考虑config里面自定义一个allowRepeat参考来控制

@ -55,7 +55,8 @@ class ecCourseEvaluations extends Component {
isreload:false, isreload:false,
newModallist:false, newModallist:false,
isreloads:false, isreloads:false,
isSpin:false isSpin:false,
listSpin:false
} }
} }
componentWillMount(){ componentWillMount(){
@ -91,7 +92,8 @@ class ecCourseEvaluations extends Component {
let newec_course_id=this.props.match.params.ec_course_id; let newec_course_id=this.props.match.params.ec_course_id;
this.setState({ 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; const url = `/ec_course_evaluations?ec_course_id=`+newec_course_id;
axios.get(url, { axios.get(url, {
@ -111,7 +113,8 @@ class ecCourseEvaluations extends Component {
course_url:response.data.course_url, course_url:response.data.course_url,
ec_course_id:response.data.ec_course_id, ec_course_id:response.data.ec_course_id,
ec_year_id:response.data.ec_year_id, ec_year_id:response.data.ec_year_id,
ecmanager: response.data.is_manager ecmanager: response.data.is_manager,
listSpin:false
}) })
} }
}).catch(function (error) { }).catch(function (error) {
@ -565,6 +568,7 @@ class ecCourseEvaluations extends Component {
} }
sync_course_data=()=>{ sync_course_data=()=>{
this.setState({listSpin:true})
let ec_course_id=this.props.match.params.ec_course_id; let ec_course_id=this.props.match.params.ec_course_id;
let Url ='/ec_course_achievement_methods/sync_course_data'; let Url ='/ec_course_achievement_methods/sync_course_data';
axios.post(Url, { axios.post(Url, {
@ -578,14 +582,16 @@ class ecCourseEvaluations extends Component {
this.setState({ this.setState({
// titlemessage: response.data.message+"(支撑关系变更)", // titlemessage: response.data.message+"(支撑关系变更)",
Modallist: response.data.message, Modallist: response.data.message,
Modallisttype:true Modallisttype:true,
listSpin:false
}) })
this.UpdateEvaluations(); this.UpdateEvaluations();
}else if(response.data.status===-1){ }else if(response.data.status===-1){
this.setState({ this.setState({
// titlemessage: response.data.message+"(支撑关系变更)", // titlemessage: response.data.message+"(支撑关系变更)",
Modallist: response.data.message, Modallist: response.data.message,
Modallisttype:true Modallisttype:true,
listSpin:false
}) })
} }
@ -596,6 +602,7 @@ class ecCourseEvaluations extends Component {
} }
uploadfile=(file)=>{ uploadfile=(file)=>{
this.setState({listSpin:true})
let Url =`/ec_course_evaluations/`+file.data+`/import_score`; let Url =`/ec_course_evaluations/`+file.data+`/import_score`;
const form = new FormData(); const form = new FormData();
form.append('file', file.file); form.append('file', file.file);
@ -608,7 +615,8 @@ class ecCourseEvaluations extends Component {
Modallist: '已成功导入'+response.data.count+"条数据", Modallist: '已成功导入'+response.data.count+"条数据",
Modallisttype:true, Modallisttype:true,
isreload:true, isreload:true,
isreloads:true isreloads:true,
listSpin:false
}) })
}else if(response.data.status===0){ }else if(response.data.status===0){
// message.warning(response.data.message); // message.warning(response.data.message);
@ -617,7 +625,8 @@ class ecCourseEvaluations extends Component {
Modallist:response.data.message, Modallist:response.data.message,
Modallisttype:true, Modallisttype:true,
isreload:false, isreload:false,
isreloads:false isreloads:false,
listSpin:false
}) })
} }
}).catch((error) => { }).catch((error) => {
@ -657,6 +666,7 @@ class ecCourseEvaluations extends Component {
saveassclasslist=()=>{ saveassclasslist=()=>{
// 列表清空 // 列表清空
//搜索框清空 //搜索框清空
this.setState({isSpin:true});
let{checkevalue}=this.state; let{checkevalue}=this.state;
let ec_course_id=this.props.match.params.ec_course_id; let ec_course_id=this.props.match.params.ec_course_id;
@ -673,7 +683,8 @@ class ecCourseEvaluations extends Component {
this.setState({ this.setState({
Modallist: "关联失败", Modallist: "关联失败",
Modallisttype:true, Modallisttype:true,
isreload:false isreload:false,
isSpin:false
}) })
}else if(response.data.status===0)[ }else if(response.data.status===0)[
this.setState({ this.setState({
@ -683,7 +694,8 @@ class ecCourseEvaluations extends Component {
assclassvalue:"", assclassvalue:"",
Modallist: "关联成功", Modallist: "关联成功",
Modallisttype:true, Modallisttype:true,
isreload:true isreload:true,
isSpin:false
}) })
] ]
@ -767,6 +779,7 @@ class ecCourseEvaluations extends Component {
return ( return (
<div className="newMain clearfix"> <div className="newMain clearfix">
<Spin delay={500} indicator={<Icon type="loading" style={{ fontSize: 30 }}></Icon>} spinning={this.state.isSpin}>
<Modal <Modal
title={titlemessage} title={titlemessage}
// visible={modeldelet===true&&listid===list.id?true:false} // 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" <a className="white-btn edu-blueline-btn fr mr10 mt7 mr20"
onClick={this.associatedclass} onClick={this.associatedclass}
style={{display: course_url === "" && ecmanager === true ? "block" : "none"}} style={{display: course_url === "" && ecmanager === true ? "block" : "none"}}
>关联课堂11s</a> >关联课堂</a>
<a className="white-btn edu-blueline-btn fr mr10 mt7 mr20" <a className="white-btn edu-blueline-btn fr mr10 mt7 mr20"
onClick={this.deleteassociatedclass} onClick={this.deleteassociatedclass}
style={{display:course_url!=""&&ecmanager===true?"block":"none"}} style={{display:course_url!=""&&ecmanager===true?"block":"none"}}
@ -931,308 +944,305 @@ class ecCourseEvaluations extends Component {
</div> </div>
</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"}}>
<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: "70px"}}></span> <span className="column-1 color-666" style={{width: "72px"}}>名称</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 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 ml30 color-666" style={{width: "90px"}}>考核分项名称</span> <span className="column-1 operationright color-666"
<span className="column-1 operationright color-666" style={{width: '34px'}}
style={{width: '34px'}} >
> {/* 操作 */}
{/* 操作 */} {ecmanager===false?"":
{ecmanager===false?"": <a className="mr20 newAddSubentry" data-tip-down="添加">
<a className="mr20 newAddSubentry" data-tip-down="添加"> <i className="iconfont icon-tianjiafangda color-green"
<i className="iconfont icon-tianjiafangda color-green" // style={{display:savetype==='add'||savetype==='edit'?'none':'inline-block'}}
// style={{display:savetype==='add'||savetype==='edit'?'none':'inline-block'}} onClick={this.AddCourseEvaluations}></i>
onClick={this.AddCourseEvaluations}></i> </a>}
</a>} </span>
</span>
<span className="column-2 operationright color-666" style={{width: "126px"}}>
<span className="column-2 operationright color-666" style={{width: "126px"}}> 成绩导入状态
成绩导入状态 </span>
</span> <span className="column-1 operationright color-666" style={{textAlign: 'center',width: "119px"}}>
<span className="column-1 operationright color-666" style={{textAlign: 'center',width: "119px"}}> 成绩来源
成绩来源 </span>
</span> <span className="column-2 operationright color-666" style={{width: "127px"}}>
<span className="column-2 operationright color-666" style={{width: "127px"}}> 平均成绩导入模板
平均成绩导入模板 </span>
</span> <span className="column-2 operationright color-666" style={{width: "152px"}}>
<span className="column-2 operationright color-666" style={{width: "152px"}}> 明细成绩导入模板
明细成绩导入模板 </span>
</span> </p>
</p> <Spin delay={500} className="Spinlarge" indicator={<Icon type="loading" style={{ fontSize: 30 }} />} spinning={this.state.listSpin}>
<div style={{minHeight:'560px'}}> <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}
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>
)
})
return( }
<li className={m===ec_course_evaluation_lists.length-1?savetype==='add'?"bordereaeaeas clearfix":'bordereaeaea clearfix':"clearfix"} key={m} </span>
style={{width:"1140px",position:'relative'}}
>
<span className="column-1" style={{marginLeft: '6px',display:parseInt(idkey)===m?'none ':'block',width: "70px"}}>{m+1}</span> {/*style={{display:list.is_course_type===false?'inline-block':'none'}}*/}
<span className="column-1" style={{marginLeft: '-4px',display:parseInt(idkey)===m?'none ':'block',width: "72px"}}> {/* editSubentry 编辑的 */}
<div>{list.name}</div> <span className="column-1 operationright" style={{display:parseInt(idkey)===m?'none ':'block',width: '61px'}}>
</span> <div className="operationColumn" >
<span className="column-1" style={{marginLeft: '37px',display:parseInt(idkey)===m?'none ':'block',width: "90px"}}> <div className="left operationalter" style={{display:ecmanager===false?'none ':'block'}}>
<div>{list.evluation_count}</div> <Tooltip placement="bottom" title="删除">
</span> <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>
<span className="column-1" style={{marginLeft: '-8px',display:parseInt(idkey)===m?'none ':'block',width: "90px"}}> </Tooltip>
<div>{list.status===1?"总成绩支撑":list.status===2?"分项成绩支撑":list.status}</div> <Modal
</span> title="提示"
visible={modeldelet===true&&listid===list.id?true:false}
<span className="column-1 color99" className={"ecmodeldelet"}
style={{marginLeft: '31px',display:parseInt(idkey)===m?'none ':'block',width: " 207px"}} > closable={false}
{ footer={null}
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>
</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>
</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'}}>
<Upload
{...uploadProps}
data={list.id}
showUploadList={false}
> >
{ecmanager===false?<span className="color-white" idkey={m}>成绩导入</span>:<span className="delSubentry" idkey={m}></span>} <div className="task-popup-content">
</Upload> <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> </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>
{ecmanager===false?"" </a>
: <span className="column-2" style={{marginLeft: '-8px',width:'96px',display:savetype==='edit'&&parseInt(idkey)===m?'none':'inline-block'}}> </span>
<div style={{display:list.is_course_type===false?"block":"none"}}
>{list.import_status===true||list.is_course_type?"已导入":"未导入"}</div>
</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>
<div className="ListTableLine newSystem" style={{display:parseInt(idkey)===m?'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>
</div>
</div>
</span>
{
params===" " ? " " : params.map((item,key)=>{ {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>}
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 /> <div className="ListTableLine newSystem" style={{display:parseInt(idkey)===m?'block':'none'}}>
{
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> {
<div className="right editglybuttonbox mt20 mb20"> params===" " ? " " : params.map((item,key)=>{
<div className="defalutSubmitbtn fr" onClick={this.SaveecCourseEvaluationstop}>保存</div>
<div className="defalutCancelbtn fr mr20" onClick={this.CancelecCourseEvaluationstop}>取消</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>
<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>
<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 ( return (
<div key={key}> <div key={key}>
<div className="clearfix editorModify pt20"> <div className="clearfix editorModify pt20">
<div className=""> <div className="">
<span className="column-1 ml75 mr16">名称</span> <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)}/> <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> <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)}/> <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 /> <br />
<Radio value={2}>由单次考核的某分项成绩支撑课程目标</Radio> {
</RadioGroup> item.subitems.map((i,k)=>{
</span> 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> </div>
</span>
<br /> </div>
{ )
item.subitems.map((i,k)=>{ })
return( }
<div className="mb20" key={k}> <div className="right editglybuttonbox mt20 mb20 mr20">
<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)}/> <div className="defalutSubmitbtn fr" onClick={this.SaveecCourseEvaluationstop}>保存</div>
<div className="defalutCancelbtn fr mr20" onClick={this.CancelecCourseEvaluationstop}>取消</div>
<span className="buttoninline SetTheAssociated"> </div>
<div className="left operatebutton"> <span className="c_red none ml30" id="error_tip" style={{display:newModallist===true?"inline":'none'}}>{Modallist}</span>
<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>
</div> </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> </div>
</Spin> </div>
</div>
{/*<EcCourseEvaluationsbottom*/} {/*<EcCourseEvaluationsbottom*/}
{/*// ec_course_id={ec_course_id}*/} {/*// ec_course_id={ec_course_id}*/}
{/*// schooldata={schooldata}*/} {/*// schooldata={schooldata}*/}
{/*/>*/} {/*/>*/}
</Spin>
</div> </div>
); );
} }

Loading…
Cancel
Save