|
|
|
@ -42,7 +42,12 @@ class EcCompletionCalculation extends Component {
|
|
|
|
|
course_total_scoreaverage:0,
|
|
|
|
|
calculatesetype:false,
|
|
|
|
|
Spintype:false,
|
|
|
|
|
ismanager:false
|
|
|
|
|
ismanager:false,
|
|
|
|
|
course_achievement:"--",
|
|
|
|
|
course_rate:"--",
|
|
|
|
|
score_levels:[],
|
|
|
|
|
score_levelsdata:[],
|
|
|
|
|
hife:"/ecs/major_schools/3/years/60/requirement_vs_courses",
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -51,26 +56,55 @@ class EcCompletionCalculation extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
componentDidMount(){
|
|
|
|
|
let ec_course_id =this.props.match.params.ec_course_id;
|
|
|
|
|
this.UpdateClassData(true);
|
|
|
|
|
const Url =`/ec_major_schools/get_navigation_data?ec_course_id=`+ec_course_id;
|
|
|
|
|
axios.get(Url, {
|
|
|
|
|
withCredentials: true,
|
|
|
|
|
})
|
|
|
|
|
console.log("componentDidMount");
|
|
|
|
|
console.log("EcCompletionCalculation");
|
|
|
|
|
|
|
|
|
|
// console.log(this.props);
|
|
|
|
|
// let ec_course_id =this.props.match.params.ec_course_id;
|
|
|
|
|
// this.UpdateClassData(true);
|
|
|
|
|
|
|
|
|
|
// const url =`/ec_major_schools/get_navigation_data?ec_course_id=`+ec_course_id;
|
|
|
|
|
const ec_course_id=706;
|
|
|
|
|
const url =`/ec_courses/${ec_course_id}/evaluation.json`;
|
|
|
|
|
axios.get(url)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
if(response.status===200){
|
|
|
|
|
// if(response.data.allow_visit===false){
|
|
|
|
|
// window.location.href="/403"
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
schooldata:response.data,
|
|
|
|
|
ec_course_id:ec_course_id
|
|
|
|
|
ec_course_id:ec_course_id,
|
|
|
|
|
// evaluate_result:response.data.evaluate_result,
|
|
|
|
|
// course_total_score:response.data.course_total_score[response.data.course_total_score.length-1].total_rate,
|
|
|
|
|
// total_rate_data:response.data.course_total_score[response.data.course_total_score.length-1].total_rate.length,
|
|
|
|
|
graduation_list:response.data.graduation_subitem_evaluations,
|
|
|
|
|
target_list:response.data.course_targets,
|
|
|
|
|
// target_score:response.data.target_score,
|
|
|
|
|
ec_course_targets_count:response.data.course_targets.length,
|
|
|
|
|
course_achievement:response.data.course_achievement,
|
|
|
|
|
course_rate:response.data.course_rate,
|
|
|
|
|
score_levels:response.data.score_levels,
|
|
|
|
|
// score_levelsdata:response.data.course_targets.score_levels,
|
|
|
|
|
// morelisttype:newmorelisttype,
|
|
|
|
|
// course_total_scoreaverage:course_total_scoreaverage,
|
|
|
|
|
// ismanager:response.data.is_manager
|
|
|
|
|
})
|
|
|
|
|
// console.log("componentDidMount");
|
|
|
|
|
// console.log(response.data.score_levels);
|
|
|
|
|
// console.log(response.data.course_targets.score_levels);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch(function (error) {
|
|
|
|
|
console.log(error);
|
|
|
|
|
});
|
|
|
|
|
this.props.Ontitine("competition_calculation_info");
|
|
|
|
|
try {
|
|
|
|
|
this.props.triggerRef(this);
|
|
|
|
|
}catch (e) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
targetsget_navigation_data=(ec_year_id,ec_course_id)=>{
|
|
|
|
@ -101,10 +135,11 @@ class EcCompletionCalculation extends Component {
|
|
|
|
|
}
|
|
|
|
|
UpdateClassData=(key)=>{
|
|
|
|
|
let {calculatetype} =this.state;
|
|
|
|
|
let ec_course_id =this.props.match.params.ec_course_id;
|
|
|
|
|
// let ec_course_id =this.props.match.params.ec_course_id;
|
|
|
|
|
this.setState({
|
|
|
|
|
ec_course_id:ec_course_id
|
|
|
|
|
})
|
|
|
|
|
const ec_course_id=706;
|
|
|
|
|
const Arl =`/ec_courses/`+ec_course_id+`/calculation_info_data`;
|
|
|
|
|
axios.get(Arl, {
|
|
|
|
|
withCredentials: true,
|
|
|
|
@ -138,18 +173,28 @@ class EcCompletionCalculation extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
evaluate_result:response.data.evaluate_result,
|
|
|
|
|
course_total_score:response.data.course_total_score[response.data.course_total_score.length-1].total_rate,
|
|
|
|
|
total_rate_data:response.data.course_total_score[response.data.course_total_score.length-1].total_rate.length,
|
|
|
|
|
graduation_list:response.data.graduation_list,
|
|
|
|
|
target_list:response.data.target_list,
|
|
|
|
|
target_score:response.data.target_score,
|
|
|
|
|
ec_course_targets_count:response.data.ec_course_targets_count,
|
|
|
|
|
morelisttype:newmorelisttype,
|
|
|
|
|
course_total_scoreaverage:course_total_scoreaverage,
|
|
|
|
|
ismanager:response.data.is_manager
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
// evaluate_result:response.data.evaluate_result,
|
|
|
|
|
// course_total_score:response.data.course_total_score[response.data.course_total_score.length-1].total_rate,
|
|
|
|
|
// total_rate_data:response.data.course_total_score[response.data.course_total_score.length-1].total_rate.length,
|
|
|
|
|
graduation_list:response.data.graduation_subitem_evaluations,
|
|
|
|
|
target_list:response.data.course_targets,
|
|
|
|
|
// target_score:response.data.target_score,
|
|
|
|
|
ec_course_targets_count:response.data.course_targets.length,
|
|
|
|
|
course_achievement:response.data.course_achievement,
|
|
|
|
|
course_rate:response.data.course_rate,
|
|
|
|
|
score_levels:response.data.score_levels,
|
|
|
|
|
// score_levelsdata:,
|
|
|
|
|
// morelisttype:newmorelisttype,
|
|
|
|
|
// course_total_scoreaverage:course_total_scoreaverage,
|
|
|
|
|
// ismanager:response.data.is_manager
|
|
|
|
|
});
|
|
|
|
|
// console.log("componentDidMount");
|
|
|
|
|
// console.log(response.data.score_levels_map);
|
|
|
|
|
// Object.getOwnPropertyNames(response.data.score_levels_map).forEach(function(val) {
|
|
|
|
|
// console.log("正在循环");
|
|
|
|
|
// console.log(val);
|
|
|
|
|
// });
|
|
|
|
|
// console.log(response.data.course_targets.score_levels);
|
|
|
|
|
|
|
|
|
|
// ec_course_targets:response.data.ec_course_targets,
|
|
|
|
|
this.targetsget_navigation_data(response.data.ec_year_id,ec_course_id)
|
|
|
|
@ -263,15 +308,17 @@ class EcCompletionCalculation extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
newrightcalculatebutton=()=>{
|
|
|
|
|
console.log("调用了计算");
|
|
|
|
|
this.setState({
|
|
|
|
|
Spintype:true
|
|
|
|
|
})
|
|
|
|
|
let {ec_course_id}=this.state;
|
|
|
|
|
const Orl =`/ec_courses/`+ec_course_id+`/sync_data`;
|
|
|
|
|
axios.get(Orl, {
|
|
|
|
|
withCredentials:true,
|
|
|
|
|
})
|
|
|
|
|
// let {ec_course_id}=this.state;
|
|
|
|
|
const ec_course_id=706;
|
|
|
|
|
// const Orl =`/ec_courses/`+ec_course_id+`/sync_data`;
|
|
|
|
|
const Orl =`/ec_courses/${ec_course_id}/evaluation.json`;
|
|
|
|
|
axios.get(Orl)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
if(response){
|
|
|
|
|
if(response.data.status===1){
|
|
|
|
|
this.setState({
|
|
|
|
|
calculatetype:true,
|
|
|
|
@ -282,6 +329,8 @@ class EcCompletionCalculation extends Component {
|
|
|
|
|
})
|
|
|
|
|
this.UpdateClassData(true);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
.catch(function (error) {
|
|
|
|
|
console.log(error)
|
|
|
|
@ -295,14 +344,14 @@ class EcCompletionCalculation extends Component {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
render() {
|
|
|
|
|
let {Spintype,calculatesetype,ec_course_id,course_total_scoreaverage,ec_course_targets_count,schooldata,ecComponentState,course_total_score,total_rate_data,ec_course_targets,graduation_list,target_list,target_score,evaluate_result,morelisttype,titlemessage,completiontype,completionlist,ismanager} = this.state;
|
|
|
|
|
let {Spintype,calculatesetype,ec_course_id,course_total_scoreaverage,score_levels,ec_course_targets_count,course_achievement,schooldata,course_rate,ecComponentState,course_total_score,total_rate_data,ec_course_targets,graduation_list,target_list,target_score,evaluate_result,morelisttype,titlemessage,completiontype,completionlist,ismanager} = this.state;
|
|
|
|
|
|
|
|
|
|
let TargetresList = (length) => {
|
|
|
|
|
let target_listres = [];
|
|
|
|
|
for(let i = 0; i < length; i++) {
|
|
|
|
|
// target_listres.push(<span className="column-1 operationleft color-666" key={i}>目标{length-i}</span>)
|
|
|
|
|
// target_listres.push(<span className="column-2 operationleft color-666" key={i}>目标{i+1}</span>)
|
|
|
|
|
target_listres.push(<span className="column-1 operationright color-666" key={i}>目标{length-i}</span>)
|
|
|
|
|
target_listres.push(<span className="column-1 color-666" key={i}>目标{i+1}</span>)
|
|
|
|
|
}
|
|
|
|
|
return target_listres
|
|
|
|
|
}
|
|
|
|
@ -317,22 +366,24 @@ class EcCompletionCalculation extends Component {
|
|
|
|
|
return target_listress
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let TargetresContentList = (length,value) => {
|
|
|
|
|
let TargetresContentList = (data,value) => {
|
|
|
|
|
let target_listres = [];
|
|
|
|
|
if(value!=undefined){
|
|
|
|
|
for(let i = 0; i < length; i++) {
|
|
|
|
|
if(data){
|
|
|
|
|
if(data.length>0){
|
|
|
|
|
for(var i=0;i<data.length;i++){
|
|
|
|
|
console.log("TargetresContentList");
|
|
|
|
|
if(data[i].id===value[0]){
|
|
|
|
|
target_listres.push(<span className={i===0?" column-1 color-green":" column-1 color-green"} key={i}><i class="iconfont icon-gouxuan color-green font-16 mr5"></i></span>)
|
|
|
|
|
} else{
|
|
|
|
|
target_listres.push(<span className={i===0?" column-1 color-666":"column-1 color-666"} key={i}><i class="iconfont icon-guanbi font-14 mr5"></i></span>)
|
|
|
|
|
|
|
|
|
|
if(value[i]===1){
|
|
|
|
|
target_listres.push(<span className="column-1 operationright color-green" key={i}><i class="iconfont icon-gouxuan color-green font-16 mr5"></i></span>)
|
|
|
|
|
}else{
|
|
|
|
|
target_listres.push(<span className="column-1 operationright color-666" key={i}><i class="iconfont icon-guanbi font-14 mr5"></i></span>)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
target_listres.reverse()
|
|
|
|
|
return target_listres
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// target_listres.reverse()
|
|
|
|
|
return target_listres
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -393,7 +444,9 @@ class EcCompletionCalculation extends Component {
|
|
|
|
|
}
|
|
|
|
|
return target_listres
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
// console.log(ec_course_targets_count);
|
|
|
|
|
// console.log("EcCompletionCalculation");
|
|
|
|
|
return (
|
|
|
|
|
<div className="newMain clearfix">
|
|
|
|
|
<Modal
|
|
|
|
@ -429,7 +482,7 @@ class EcCompletionCalculation extends Component {
|
|
|
|
|
|
|
|
|
|
</Modal>
|
|
|
|
|
|
|
|
|
|
<div className="educontent mb290">
|
|
|
|
|
<div className="educontent">
|
|
|
|
|
|
|
|
|
|
{/*<EcTitleCourseEvaluations*/}
|
|
|
|
|
{/* {...this.props}*/}
|
|
|
|
@ -481,7 +534,7 @@ class EcCompletionCalculation extends Component {
|
|
|
|
|
{/* </span>*/}
|
|
|
|
|
{/* </div>*/}
|
|
|
|
|
{/*</div>*/}
|
|
|
|
|
|
|
|
|
|
{/*课程目标*/}
|
|
|
|
|
<div className="ListTableLine newSystem mb20" id="school_major_list">
|
|
|
|
|
|
|
|
|
|
<p className="clearfix padding10im" >
|
|
|
|
@ -511,10 +564,10 @@ class EcCompletionCalculation extends Component {
|
|
|
|
|
<li className={key+1===target_list.length?"clearfix newtarget_target lipadding10im":"clearfix newtarget_scoreclass lipadding10im"} key={key}>
|
|
|
|
|
<span className="column-1 color-05101A">{key+1}</span>
|
|
|
|
|
<span className="column-575 color-05101A">{item.content}</span>
|
|
|
|
|
<span className={item.result==="未达成"?"column-1 operationright Systemnum":"column-1 operationright color-green"}>{item.result}</span>
|
|
|
|
|
<span className="column-1 operationright color-05101A">{item.standard_grade}</span>
|
|
|
|
|
<span className="column-1 operationright">{item.real_grade}</span>
|
|
|
|
|
<span className="column-1 op erationright">{item.weigths}</span>
|
|
|
|
|
<span className={item.status==="not_achieved"?"column-1 operationright Systemnum":"column-1 operationright color-green"}>{item.status==="not_achieved"?"未达成":"已达成"}</span>
|
|
|
|
|
<span className="column-1 operationright color-05101A ">{item.standard_grade}</span>
|
|
|
|
|
<span className="column-1 operationright">{item.actually_grade}</span>
|
|
|
|
|
<span className="column-1 operationright">{item.weight}</span>
|
|
|
|
|
</li>
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
@ -523,7 +576,7 @@ class EcCompletionCalculation extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/*毕业要求指标点达成评价结果*/}
|
|
|
|
|
<div className="edu-back-white eacourse">
|
|
|
|
|
|
|
|
|
|
<div className="padding1030" id="training_objective_contents">
|
|
|
|
@ -540,6 +593,7 @@ class EcCompletionCalculation extends Component {
|
|
|
|
|
<p className="clearfix lipadding20im" style={{minWidth:'1200px'}}>
|
|
|
|
|
<span className="column-1 color-666 mr16">毕业要求</span>
|
|
|
|
|
<span className="nowrap329">{5}</span>
|
|
|
|
|
|
|
|
|
|
<span className="column-1 operationright color-666">达成结果</span>
|
|
|
|
|
<span className="column-1 operationright color-666">达成目标值</span>
|
|
|
|
|
<span className="column-1 operationright color-666">达成实际值</span>
|
|
|
|
@ -560,52 +614,103 @@ class EcCompletionCalculation extends Component {
|
|
|
|
|
<span className={"column-1 operationright Systemnum mrj15"}>{"--"}</span>
|
|
|
|
|
<span className="column-1 operationright color-05101A">{"--"}</span>
|
|
|
|
|
<span className="column-1 operationright">{"--"}</span>
|
|
|
|
|
<span className="column-1 operationright"> <a href={schooldata.requirement_vs_courses} style={{color:'rgb(76, 172, 255)'}}>立即配置</a></span>
|
|
|
|
|
<span className="column-1 operationright"> <a href={`/ecs/major_schools/${this.props.match.params.majorId}/years/${this.props.match.params.yearId}/requirement_vs_courses`} style={{color:'rgb(76, 172, 255)'}}>立即配置</a></span>
|
|
|
|
|
{TargetresContentList(5,[2,2,2,2,2])}
|
|
|
|
|
</li>
|
|
|
|
|
:""
|
|
|
|
|
}
|
|
|
|
|
<style>
|
|
|
|
|
{
|
|
|
|
|
`
|
|
|
|
|
.myliysls{
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction:initial;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
`
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
{
|
|
|
|
|
Spintype===false?graduation_list.map((item,key)=>{
|
|
|
|
|
|
|
|
|
|
if(key===0){
|
|
|
|
|
return(
|
|
|
|
|
<p key={key} className="clearfix lipadding20im" style={{minWidth: ec_course_targets_count > 5 ? (76*(ec_course_targets_count+4)+380+15):1200+"px"}}>
|
|
|
|
|
<li key={key} className="clearfix lipadding20im myliysls" style={{minWidth: ec_course_targets_count > 5 ? (76*(ec_course_targets_count+4)+380+15):1200+"px"}}>
|
|
|
|
|
<div className="myliysls">
|
|
|
|
|
<span className="column-1 color-666 mr16">毕业要求</span>
|
|
|
|
|
<span className="nowrap329">{item.ec_subitem_content}</span>
|
|
|
|
|
<span className="column-1 operationright color-666">达成结果</span>
|
|
|
|
|
<span className="column-1 operationright color-666">达成目标值</span>
|
|
|
|
|
<span className="column-1 operationright color-666">达成实际值</span>
|
|
|
|
|
<span className="column-1 operationright color-666">课程权重</span>
|
|
|
|
|
</div>
|
|
|
|
|
<span className="column-500 ">{item.ec_subitem_content}</span>
|
|
|
|
|
<div className="myliysls" >
|
|
|
|
|
{TargetresList(ec_course_targets_count)}
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="myliysls">
|
|
|
|
|
<span className="column-1 color-666">课程权重</span>
|
|
|
|
|
<span className="column-1 color-666">达成目标值</span>
|
|
|
|
|
<span className="column-1 color-666">达成实际值</span>
|
|
|
|
|
<span className="column-1 color-666">达成结果</span>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}):""
|
|
|
|
|
}
|
|
|
|
|
{/*mynewtarget_scoreclassysls*/}
|
|
|
|
|
<style>
|
|
|
|
|
{
|
|
|
|
|
`
|
|
|
|
|
.myliysls{
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction:initial;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
`
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
<div className="">
|
|
|
|
|
{
|
|
|
|
|
Spintype===false?graduation_list.map((item,key)=>{
|
|
|
|
|
|
|
|
|
|
return(
|
|
|
|
|
<li className={key+1===target_list.length?"clearfix newtarget_target marlr19":"clearfix newtarget_scoreclass marlr19"} key={key} style={{minWidth: ec_course_targets_count > 5 ? (76*(ec_course_targets_count+4)+380):1200+"px"}}>
|
|
|
|
|
{/* <span className="column-1 color-05101A ec_graduation_name">{item.ec_graduation_name}</span> */}
|
|
|
|
|
<span className="column-1 color-05101A ec_graduation_name">{key+1}</span>
|
|
|
|
|
<span className="column-500 color-05101A" data-tip-down={item.content}>{item.ec_subitem_content}</span>
|
|
|
|
|
<span className={item.result==="未达成"?"column-1 operationright Systemnum mrj15":"column-1 operationright color-green mrj15"}>{item.result}</span>
|
|
|
|
|
<span className="column-1 operationright color-05101A">{item.reach_target===null?0:item.reach_target}</span>
|
|
|
|
|
<span className="column-1 operationright">{item.reach_real_target===null?0:item.reach_real_target}</span>
|
|
|
|
|
{item.weight===null||item.weight===0?<span className="column-1 operationright" ><a href={schooldata.requirement_vs_courses} style={{color:'rgb(76, 172, 255)'}}>立即配置</a></span>:<span className="column-1 operationright">{item.weight}</span>}
|
|
|
|
|
{TargetresContentList(ec_course_targets_count,item.target_position)}
|
|
|
|
|
|
|
|
|
|
<li key={key} className="clearfix lipadding20im myliysls" style={{minWidth: ec_course_targets_count > 5 ? (76*(ec_course_targets_count+4)+380+15):1200+"px"}}>
|
|
|
|
|
<div className="myliysls ">
|
|
|
|
|
<span className="column-1 color-05101A mr16" >{key+1}</span>
|
|
|
|
|
</div>
|
|
|
|
|
<span className="column-500 color-05101A" data-tip-down={item.content}>{item.content}</span>
|
|
|
|
|
<div className="myliysls">
|
|
|
|
|
{TargetresContentList(target_list,item.support_course_target_ids)}
|
|
|
|
|
</div>
|
|
|
|
|
<div className="myliysls">
|
|
|
|
|
{item.weights===null||item.weights===undefined||item.weights==="0.00"||item.weights===0.00||item.weights===0?<span className="column-1 " ><a href={`/ecs/major_schools/${this.props.match.params.majorId}/years/${this.props.match.params.yearId}/requirement_vs_courses`} style={{color:'rgb(76, 172, 255)'}}>立即配置</a></span>:<span className="column-1 " style={{textAlign:"center"}}>{item.weights}</span>}
|
|
|
|
|
<span className="column-1 " style={{textAlign:"center"}}>{item.actually_achievement===null?0:item.actually_achievement}</span>
|
|
|
|
|
<span className="column-1 color-05101A" style={{textAlign:"center"}}>{item.objective_achievement===null?0:item.objective_achievement}</span>
|
|
|
|
|
<span className={item.status==="not_achieved"?"column-1 Systemnum mrj15":"column-1 color-green mrj15"} style={{textAlign:"center"}}>{item.status==="not_achieved"?"未完成":"完成"}</span>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// <li className={key+1===target_list.length?"clearfix newtarget_scoreclass marlr19":"clearfix newtarget_scoreclass marlr19"} key={key} style={{minWidth: ec_course_targets_count > 5 ? (76*(ec_course_targets_count+4)+380):1200+"px"}}>
|
|
|
|
|
// {/* <span className="column-1 color-05101A ec_graduation_name">{item.ec_graduation_name}</span> */}
|
|
|
|
|
// <span className="column-1 color-05101A ec_graduation_name " >{key+1}</span>
|
|
|
|
|
// <span className="column-500 color-05101A" data-tip-down={item.content}>{item.content}</span>
|
|
|
|
|
// <span className={item.status==="not_achieved"?"column-1 operationright Systemnum mrj15":"column-1 operationright color-green mrj15"} style={{textAlign:"left"}}>{item.status==="not_achieved"?"未完成":"完成"}</span>
|
|
|
|
|
// <span className="column-1 operationright color-05101A" style={{textAlign:"left"}}>{item.objective_achievement===null?0:item.objective_achievement}</span>
|
|
|
|
|
// <span className="column-1 operationright" style={{textAlign:"left"}}>{item.actually_achievement===null?0:item.actually_achievement}</span>
|
|
|
|
|
// {item.weights===null||item.weights===0?<span className="column-1 operationright" ><a href={schooldata.requirement_vs_courses} style={{color:'rgb(76, 172, 255)'}}>立即配置</a></span>:<span className="column-1 operationright" style={{textAlign:"left"}}>{item.weights}</span>}
|
|
|
|
|
// {TargetresContentList(ec_course_targets_count,item.target_position)}
|
|
|
|
|
// </li>
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
}):""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/*课程总评成绩表*/}
|
|
|
|
|
<div className="edu-back-white eacourse">
|
|
|
|
|
|
|
|
|
|
<div className="padding1030" id="training_objective_contents">
|
|
|
|
@ -653,7 +758,7 @@ class EcCompletionCalculation extends Component {
|
|
|
|
|
{/*<span className="column-1 color-05101A ec_graduation_name mr16 colorTransparent "> 平均数 </span>*/}
|
|
|
|
|
{Total_rate_dataList(course_total_score)}
|
|
|
|
|
{
|
|
|
|
|
course_total_score.length===0? <span className="column-1 operationright">--</span>:""
|
|
|
|
|
course_rate===undefined||course_rate===null||course_rate===""||course_rate==="0"||course_rate===0? <span className="column-1 operationright">--</span>:<span className="column-1 color-red operationright">{course_rate}</span>
|
|
|
|
|
}
|
|
|
|
|
</li>:""
|
|
|
|
|
}
|
|
|
|
@ -687,7 +792,7 @@ class EcCompletionCalculation extends Component {
|
|
|
|
|
{newTotal_rate_dataList(course_total_score-1,course_total_score)}
|
|
|
|
|
{/* <span className="column-1 color-red operationright">{course_total_score.length===0?"":course_total_score[course_total_score-1].total_score}</span> */}
|
|
|
|
|
{
|
|
|
|
|
course_total_score.length===0? <span className="column-1 operationright">--</span>:<span className="column-1 color-red operationright">{course_total_scoreaverage}</span>
|
|
|
|
|
course_achievement===undefined||course_achievement===null||course_achievement===""||course_achievement==="0"||course_achievement===0? <span className="column-1 operationright">--</span>:<span className="column-1 color-red operationright">{course_achievement}</span>
|
|
|
|
|
}
|
|
|
|
|
</li>:""
|
|
|
|
|
}
|
|
|
|
@ -716,47 +821,63 @@ class EcCompletionCalculation extends Component {
|
|
|
|
|
<span className="column-1 color-666">平均分</span>
|
|
|
|
|
<span className="column-1 color-666">最高分数</span>
|
|
|
|
|
<span className="column-1 color-666">最低分数</span>
|
|
|
|
|
<span className="column-1 color-666">90分以上</span>
|
|
|
|
|
<span className="column-1 color-666">80-89分</span>
|
|
|
|
|
<span className="column-1 color-666">70-79分</span>
|
|
|
|
|
<span className="column-1 color-666">60-69分</span>
|
|
|
|
|
<span className="column-1 color-666">50-59分</span>
|
|
|
|
|
<span className="column-1 color-666">低于50分</span>
|
|
|
|
|
{
|
|
|
|
|
score_levels&&score_levels.map((i,k)=>{
|
|
|
|
|
return(
|
|
|
|
|
<span className="column-1 color-666">{i.description}</span>
|
|
|
|
|
)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
Spintype===false?target_score.map((i,k)=>{
|
|
|
|
|
Spintype===false?target_list.map((i,k)=>{
|
|
|
|
|
|
|
|
|
|
return(
|
|
|
|
|
<li className={"clearfix newtarget_scoreclass lipadding10im"} key={k}>
|
|
|
|
|
<span className="column-1 color-05101A">{k+1}</span>
|
|
|
|
|
<span className="column-1 color-05101A">{i.average_score}</span>
|
|
|
|
|
<span className="column-1 colorFF6800">{i.top_score}</span>
|
|
|
|
|
<span className="column-1 color-green">{i.low_score}</span>
|
|
|
|
|
<span className="column-1 color-05101A">
|
|
|
|
|
<div>{i.from90[0]}人</div>
|
|
|
|
|
<div className="color999">{(i.from90[1]).toFixed(2)}%</div>
|
|
|
|
|
</span>
|
|
|
|
|
<span className="column-1 color-05101A">
|
|
|
|
|
<div>{i.from80[0]}人</div>
|
|
|
|
|
<div className="color999">{(i.from80[1]).toFixed(2)}%</div>
|
|
|
|
|
</span>
|
|
|
|
|
<span className="column-1 color-05101A">
|
|
|
|
|
<div>{i.from70[0]}人</div>
|
|
|
|
|
<div className="color999">{(i.from70[1]).toFixed(2)}%</div>
|
|
|
|
|
</span>
|
|
|
|
|
<span className="column-1 color-05101A">
|
|
|
|
|
<div>{i.from60[0]}人</div>
|
|
|
|
|
<div className="color999">{(i.from60[1]).toFixed(2)}%</div>
|
|
|
|
|
</span>
|
|
|
|
|
<span className="column-1 color-05101A">
|
|
|
|
|
<div>{i.from50[0]}人</div>
|
|
|
|
|
<div className="color999">{(i.from50[1]).toFixed(2)}%</div>
|
|
|
|
|
</span>
|
|
|
|
|
<span className="column-1 color-05101A">
|
|
|
|
|
<div>{i.from_down[0]}人</div>
|
|
|
|
|
<div className="color999">{(i.from_down[1]).toFixed(2)}%</div>
|
|
|
|
|
<span className="column-1 color-05101A">{i.standard_grade}</span>
|
|
|
|
|
<span className="column-1 colorFF6800">{i.maximum_score===null || i.maximum_score===undefined ||i.maximum_score===""?"--":i.maximum_score}</span>
|
|
|
|
|
<span className="column-1 color-green">{i.minimum_score===null || i.minimum_score===undefined || i.minimum_score===""?"--":i.minimum_score}</span>
|
|
|
|
|
{
|
|
|
|
|
i.score_levels.map((j,l)=>{
|
|
|
|
|
|
|
|
|
|
return(
|
|
|
|
|
<span key={l} className="column-1 color-05101A">
|
|
|
|
|
<div>{j.count}人</div>
|
|
|
|
|
<div className="color999">{j.rate===null||j.rate===undefined||j.rate===""||j.rate===0?0.00:j.rate}%</div>
|
|
|
|
|
</span>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{/*}*/}
|
|
|
|
|
{/*<span className="column-1 color-05101A">*/}
|
|
|
|
|
{/* <div>{i.from90[0]}人</div>*/}
|
|
|
|
|
{/* <div className="color999">{(i.from90[1]).toFixed(2)}%</div>*/}
|
|
|
|
|
{/*</span>*/}
|
|
|
|
|
{/*<span className="column-1 color-05101A">*/}
|
|
|
|
|
{/* <div>{i.from80[0]}人</div>*/}
|
|
|
|
|
{/* <div className="color999">{(i.from80[1]).toFixed(2)}%</div>*/}
|
|
|
|
|
{/*</span>*/}
|
|
|
|
|
{/*<span className="column-1 color-05101A">*/}
|
|
|
|
|
{/* <div>{i.from70[0]}人</div>*/}
|
|
|
|
|
{/* <div className="color999">{(i.from70[1]).toFixed(2)}%</div>*/}
|
|
|
|
|
{/*</span>*/}
|
|
|
|
|
{/*<span className="column-1 color-05101A">*/}
|
|
|
|
|
{/* <div>{i.from60[0]}人</div>*/}
|
|
|
|
|
{/* <div className="color999">{(i.from60[1]).toFixed(2)}%</div>*/}
|
|
|
|
|
{/*</span>*/}
|
|
|
|
|
{/*<span className="column-1 color-05101A">*/}
|
|
|
|
|
{/* <div>{i.from50[0]}人</div>*/}
|
|
|
|
|
{/* <div className="color999">{(i.from50[1]).toFixed(2)}%</div>*/}
|
|
|
|
|
{/*</span>*/}
|
|
|
|
|
{/*<span className="column-1 color-05101A">*/}
|
|
|
|
|
{/* <div>{i.from_down[0]}人</div>*/}
|
|
|
|
|
{/* <div className="color999">{(i.from_down[1]).toFixed(2)}%</div>*/}
|
|
|
|
|
{/*</span>*/}
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
@ -765,7 +886,7 @@ class EcCompletionCalculation extends Component {
|
|
|
|
|
|
|
|
|
|
{ Spintype===true?<Spin className="Spinlarge" indicator={<Icon type="loading" style={{ fontSize: 30 }} spin />}/>:"" }
|
|
|
|
|
|
|
|
|
|
{target_score.length===0&&Spintype===false?
|
|
|
|
|
{target_list.length===0&&Spintype===false?
|
|
|
|
|
<li className={"clearfix newtarget_scoreclass lipadding10im"}>
|
|
|
|
|
<span className="column-1 color-05101A">--</span>
|
|
|
|
|
<span className="column-1 color-05101A">--</span>
|
|
|
|
|