|
|
webpackJsonp([241],{4383:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var l=t(70),n=(t.n(l),t(71)),N=t.n(n),c=t(169),s=(t.n(c),t(26)),y=t.n(s),o=t(30),r=(t.n(o),t(31)),f=t.n(r),m=t(0),v=t.n(m),i=t(3),u=(t.n(i),t(12)),p=t.n(u),d=t(5),g=t(1800),_=(t.n(g),t(2288),t(3249)),h=(t.n(_),t(3014)),E=(t.n(h),function(e,a,t){return a&&b(e.prototype,a),t&&b(e,t),e});function b(e,a){for(var t=0;t<a.length;t++){var l=a[t];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}window.$;var w=(function(e,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);e.prototype=Object.create(a&&a.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(e,a):e.__proto__=a)}(x,m.Component),E(x,[{key:"componentWillMount",value:function(){window.document.title="课程达成评价结果"}},{key:"componentDidMount",value:function(){var a=this;console.log("componentDidMount"),console.log("EcCompletionCalculation"),p.a.get("/ec_courses/706/evaluation.json").then(function(e){200===e.status&&a.setState({schooldata:e.data,ec_course_id:706,graduation_list:e.data.graduation_subitem_evaluations,target_list:e.data.course_targets,ec_course_targets_count:e.data.course_targets.length,course_achievement:e.data.course_achievement,course_rate:e.data.course_rate,score_levels:e.data.score_levels})}).catch(function(e){console.log(e)}),this.props.Ontitine("competition_calculation_info");try{this.props.triggerRef(this)}catch(e){}}},{key:"render",value:function(){function t(e){for(var a=[],t=0;t<e;t++)a.push(v.a.createElement("span",{className:"column-1 color-666",key:t},"目标",t+1));return a}function l(e,a){var t=[];if(e&&0<e.length)for(var l=0;l<e.length;l++)console.log("TargetresContentList"),e[l].id===a[0]?t.push(v.a.createElement("span",{className:" column-1 color-green",key:l},v.a.createElement("i",{class:"iconfont icon-gouxuan color-green font-16 mr5"}))):t.push(v.a.createElement("span",{className:0===l?" column-1 color-666":"column-1 color-666",key:l},v.a.createElement("i",{class:"iconfont icon-guanbi font-14 mr5"})));return t}var n=this,e=this.state,a=e.Spintype,c=e.calculatesetype,s=(e.ec_course_id,e.course_total_scoreaverage,e.score_levels),o=e.ec_course_targets_count,r=e.course_achievement,m=(e.schooldata,e.course_rate),i=(e.ecComponentState,e.course_total_score),u=e.total_rate_data,p=(e.ec_course_targets,e.graduation_list),d=e.target_list,g=(e.target_score,e.evaluate_result,e.morelisttype),_=e.titlemessage,h=e.completiontype,E=e.completionlist;return e.ismanager,v.a.createElement("div",{className:"newMain clearfix"},v.a.createElement(f.a,{title:_,visible:h,className:"ecmodeldelet",closable:!1,footer:null},v.a.createElement("div",{className:"task-popup-content"},v.a.createElement("div",{className:"task-popup-text-center font-14"},E)),!0===c?v.a.createElement("div",{className:"task-popup-submit clearfix",style:{width:"69px"}},v.a.createElement("a",{className:"task-btn task-btn-orange fr",style:{fontWeight:"400"},onClick:this.hidecompletion},"知道啦")):v.a.createElement("div",{className:"task-popup-submit clearfix"},v.a.createElement("a",{onClick:this.hidecompletion,className:"task-btn fl"},"取消"),v.a.createElement("a",{className:"task-btn task-btn-orange fr",onClick:this.hidecompletion},"确定"))),v.a.createElement("div",{className:"educontent"},v.a.createElement("div",{className:"ListTableLine newSystem mb20",id:"school_major_list"},v.a.createElement("p",{className:"clearfix padding10im"},v.a.createElement("span",{className:"column-1 color-666"},"课程目标"),v.a.createElement("span",{className:"column-1 operationright color-666"},"达成结果"),v.a.createElement("span",{className:"column-1 operationright color-666"},"达成标准(分)"),v.a.createElement("span",{className:"column-1 operationright color-666"},"实际达成"),v.a.createElement("span",{className:"column-1 operationright color-666"},"权重")),!0===a?v.a.createElement(N.a,{className:"Spinlarge",indicator:v.a.createElement(y.a,{type:"loading",style:{fontSize:30},spin:!0})}):"",0===d.length&&!1===a?v.a.createElement("li",{className:"clearfix newtarget_scoreclass lipadding10im"},v.a.createElement("span",{className:"column-1 color-05101A"},"--"),v.a.createElement("span",{className:"column-575 color-05101A"},"--"),v.a.createElement("span",{className:"column-1 operationright Systemnum"},"--"),v.a.createElement("span",{className:"column-1 operationright color-05101A"},"--"),v.a.createElement("span",{className:"column-1 operationright"},"--"),v.a.createElement("span",{className:"column-1 operationright"},"--")):"",!1===a?d.map(function(e,a){return v.a.createElement("li",{className:a+1===d.length?"clearfix newtarget_target lipadding10im":"clearfix newtarget_scoreclass lipadding10im",key:a},v.a.createElement("span",{className:"column-1 color-05101A"},a+1),v.a.createElement("span",{className:"column-575 color-05101A"},e.content),v.a.createElement("span",{className:"not_achieved"===e.status?"column-1 operationright Systemnum":"column-1 operationright color-green"},"not_achieved"===e.status?"未达成":"已达成"),v.a.createElement("span",{className:"column-1 operationright color-05101A "},e.standard_grade),v.a.createElement("span",{className:"column-1 operationright"},e.actually_grade),v.a.createElement("span",{className:"column-1 operationright"},e.weight))}):""),v.a.createElement("div",{className:"edu-back-white eacourse"},v.a.createElement("div",{className:"padding1030",id:"training_objective_contents"},v.a.createElement("span",{className:"fl SystemParameters lineheight60",style:{height:"46px"}}," 毕业要求指标点达成评价结果"),v.a.createElement("span",{className:"right ml20 SystemParameters",style:{height:"46px"}},"注:",v.a.createElement("span",{className:"color-green"},v.a.createElement("i",{class:"iconfont icon-gouxuan color-green font-16 mr5"}))," 代表支持指标点;",v.a.createElement("i",{class:"iconfont icon-guanbi font-14 mr5"}),"代表不支持指标点"))),v.a.createElement("div",{className:"ListTableLine newSystem mb20 graduateRequirement ",id:"school_major_list"},0===p.length?v.a.createElement("p",{className:"clearfix lipadding20im",style:{minWidth:"1200px"}},v.a.createElement("span",{className:"column-1 color-666 mr16"},"毕业要求"),v.a.createElement("span",{className:"nowrap329"},5),v.a.createElement("span",{className:"column-1 operationright color-666"},"达成结果"),v.a.createElement("span",{className:"column-1 operationright color-666"},"达成目标值"),v.a.createElement("span",{className:"column-1 operationright color-666"},"达成实际值"),v.a.createElement("span",{className:"column-1 operationright color-666"},"课程权重"),t(5)):"",!0===a?v.a.createElement(N.a,{className:"Spinlarge",indicator:v.a.createElement(y.a,{type:"loading",style:{fontSize:30},spin:!0})}):"",0===p.length&&!1===a?v.a.createElement("li",{className:"clearfix newtarget_scoreclass marlr19",style:{minWidth:"1137px"}},v.a.createElement("span",{className:"column-1 color-05101A ec_graduation_name"},1),v.a.createElement("span",{className:"column-500 color-05101A"},"--"),v.a.createElement("span",{className:"column-1 operationright Systemnum mrj15"},"--"),v.a.createElement("span",{className:"column-1 operationright color-05101A"},"--"),v.a.createElement("span",{className:"column-1 operationright"},"--"),v.a.createElement("span",{className:"column-1 operationright"}," ",v.a.createElement("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)"}},"立即配置")),l(5,[2,2,2,2,2])):"",v.a.createElement("style",null,"\n\t\t\t\t\t\t\t\t\t\t\t\t\t.myliysls{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t display: flex;\n\t\t\t\t\t\t\t\t\t\t flex-direction:initial;\n\t\t\t\t\t\t\t\t\t }\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t"),!1===a?p.map(function(e,a){if(0===a)return v.a.createElement("li",{key:a,className:"clearfix lipadding20im myliysls",style:{minWidth:5<o?76*(o+4)+380+15:"1200px"}},v.a.createElement("div",{className:"myliysls"},v.a.createElement("span",{className:"column-1 color-666 mr16"},"毕业要求")),v.a.createElement("span",{className:"column-500 "},e.ec_subitem_content),v.a.createElement("div",{className:"myliysls"},t(o)),v.a.createElement("div",{className:"myliysls"},v.a.createElement("span",{className:"column-1 color-666"},"课程权重"),v.a.createElement("span",{className:"column-1 color-666"},"达成目标值"),v.a.createElement("span",{className:"column-1 color-666"},"达成实际值"),v.a.createElement("span",{className:"column-1 color-666"},"达成结果")))}):"",v.a.createElement("style",null,"\n\t\t\t\t\t\t\t\t\t\t\t\t\t.myliysls{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t display: flex;\n\t\t\t\t\t\t\t\t\t\t flex-direction:initial;\n\t\t\t\t\t\t\t\t\t }\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t"),v.a.createElement("div",{className:""},!1===a?p.map(function(e,a){return v.a.createElement("li",{key:a,className:"clearfix lipadding20im myliysls",style:{minWidth:5<o?76*(o+4)+380+15:"1200px"}},v.a.createElement("div",{className:"myliysls "},v.a.createElement("span",{className:"column-1 color-05101A mr16"},a+1)),v.a.createElement("span",{className:"column-500 color-05101A","data-tip-down":e.content},e.content),v.a.createElement("div",{className:"myliysls"},l(d,e.support_course_target_ids)),v.a.createElement("div",{className:"myliysls"},null===e.weights||void 0===e.weights||"0.00"===e.weights||0===e.weights||0===e.weights?v.a.createElement("span",{className:"column-1 "},v.a.createElement("a",{href:"/ecs/major_schools/"+n.props.match.params.majorId+"/years/"+n.props.match.params.yearId+"/requirement_vs_courses",style:{color:"rgb(76, 172, 255)"}},"立即配置")):v.a.createElement("span",{className:"column-1 ",style:{textAlign:"center"}},e.weights),v.a.createElement("span",{className:"column-1 ",style:{textAlign:"center"}},null===e.actually_achievement?0:e.actually_achievement),v.a.createElement("span",{className:"column-1 color-05101A",style:{textAlign:"center"}},null===e.objective_achievement?0:e.objective_achievement),v.a.createElement("span",{className:"not_achieved"===e.status?"column-1 Systemnum mrj15":"column-1 color-green mrj15",style:{textAlign:"center"}},"not_achieved"===e.status?"未完成":"完成")))}):"")),v.a.createElement("div",{className:"edu-back-white eacourse"},v.a.createElement("div",{className:"padding1030",id:"training_objective_contents"},v.a.createElement("span",{className:"fl SystemParameters lineheight60",style:{height:"46px"}},"课程总评成绩表"))),v.a.createElement("div",{className:"ListTableLine newSystem mb20",id:"school_major_list"},v.a.createElement("p",{className:"clearfix padding10im",style:{width:5<u?180*u+226+16:"1200px"}},v.a.createElement("span",{className:"column-1 color-666 mr16 width86"},"课程目标"),function(e){for(var a=[],t=0;t<e;t++)a.push(v.a.createElement("span",{className:"column-2 operationleft color-666",key:t},"目标",t+1));return a}(u-1),v.a.createElement("span",{className:"column-1 operationright color-666"},"总评成绩")),!0===a?v.a.createElement(N.a,{className:"Spinlarge",indicator:v.a.createElement(y.a,{type:"loading",style:{fontSize:30},spin:!0})}):"",!1===a?v.a.createElement("li",{className:"clearfix newtarget_scoreclass lipadding10im margin64px",style:{width:5<u?180*u+226+16:"1200px"}},v.a.createElement("span",{className:"column-1 color-05101A mr16 width86"},"占比"),function(e){var a=[];if(null==e)return a.push(v.a.createElement("span",{className:"column-1 operationright"},v.a.createElement("div",{className:""},"--"))),a;for(var t=0;t<e.length;t++)t===e.length-1?a.push(v.a.createElement("span",{className:"column-1 operationright",key:t},v.a.createElement("div",{className:"color-red"},"100%"))):a.push(v.a.createElement("span",{className:0===t?" column-2 operationleft":"column-2 operationleft",key:t},v.a.createElement("div",null,(100*e[t].rate).toFixed(2),"%")));return a}(i),null==m||""===m||"0"===m||0===m?v.a.createElement("span",{className:"column-1 operationright"},"--"):v.a.createElement("span",{className:"column-1 color-red operationright"},m)):"",!1===a?v.a.createElement("li",{className:"clearfix newtarget_scoreclass lipadding10im bordereaeaea",style:{width:1200<113*(u+4)?113*(u+4.5)+63:"1200px"}},v.a.createElement("span",{className:"column-1 color-05101A mr16 width86"},"平均分"),function(e,a){var t=[];if(null!=a){for(var l=0;l<a.length;l++)l<a.length-1&&t.push(v.a.createElement("span",{className:"column-2 color-05101A",key:l},v.a.createElement("div",null,a[l].score.toFixed(2))));return t}}(0,i),null==r||""===r||"0"===r||0===r?v.a.createElement("span",{className:"column-1 operationright"},"--"):v.a.createElement("span",{className:"column-1 color-red operationright"},r)):"",v.a.createElement("li",{class:"clearfix newtarget_scoreclass",style:{width:1136<113*(u+4)?113*(u+4):"1136px",display:!0===g?"block":"none"}},v.a.createElement("a",{className:"ecmorelist",onClick:function(){return n.showmorelist()}},"加载更多"))),v.a.createElement("div",{className:"edu-back-white eacourse"},v.a.createElement("div",{className:"padding1030",id:"training_objective_contents"},v.a.createElement("span",{className:"fl SystemParameters lineheight60",style:{height:"46px"}},"课程目标成绩分析"))),v.a.createElement("div",{className:"ListTableLine newSystem mb20",id:"school_major_list"},v.a.createElement("p",{className:"clearfix padding10im"},v.a.createElement("span",{className:"column-1 color-666"},"课程目标"),v.a.createElement("span",{className:"column-1 color-666"},"平均分"),v.a.createElement("span",{className:"column-1 color-666"},"最高分数"),v.a.createElement("span",{className:"column-1 color-666"},"最低分数"),s&&s.map(function(e,a){return v.a.createElement("span",{className:"column-1 color-666"},e.description)})),!1===a?d.map(function(e,a){return v.a.createElement("li",{className:"clearfix newtarget_scoreclass lipadding10im",key:a},v.a.createElement("span",{className:"column-1 color-05101A"},a+1),v.a.createElement("span",{className:"column-1 color-05101A"},e.standard_grade),v.a.createElement("span",{className:"column-1 colorFF6800"},null===e.maximum_score||void 0===e.maximum_score||""===e.maximum_score?"--":e.maximum_score),v.a.createElement("span",{className:"column-1 color-green"},null===e.minimum_score||void 0===e.minimum_score||""===e.minimum_score?"--":e.minimum_score),e.score_levels.map(function(e,a){return v.a.createElement("span",{key:a,className:"column-1 color-05101A"},v.a.createElement("div",null,e.count,"人"),v.a.createElement("div",{className:"color999"},null===e.rate||void 0===e.rate||""===e.rate||0===e.rate?0:e.rate,"%"))}))}):"",!0===a?v.a.createElement(N.a,{className:"Spinlarge",indicator:v.a.createElement(y.a,{type:"loading",style:{fontSize:30},spin:!0})}):"",0===d.length&&!1===a?v.a.createElement("li",{className:"clearfix newtarget_scoreclass lipadding10im"},v.a.createElement("span",{className:"column-1 color-05101A"},"--"),v.a.createElement("span",{className:"column-1 color-05101A"},"--"),v.a.createElement("span",{className:"column-1 colorFF6800"},"--"),v.a.createElement("span",{className:"column-1 color-green"},"--"),v.a.createElement("span",{className:"column-1 color-05101A"},v.a.createElement("div",null,"--人"),v.a.createElement("div",{className:"color999"},"--%")),v.a.createElement("span",{className:"column-1 color-05101A"},v.a.createElement("div",null,"--人"),v.a.createElement("div",{className:"color999"},"--%")),v.a.createElement("span",{className:"column-1 color-05101A"},v.a.createElement("div",null,"--人"),v.a.createElement("div",{className:"color999"},"--%")),v.a.createElement("span",{className:"column-1 color-05101A"},v.a.createElement("div",null,"--人"),v.a.createElement("div",{className:"color999"},"--%")),v.a.createElement("span",{className:"column-1 color-05101A"},v.a.createElement("div",null,"--人"),v.a.createElement("div",{className:"color999"},"--%")),v.a.createElement("span",{className:"column-1 color-05101A"},v.a.createElement("div",null,"--人"),v.a.createElement("div",{className:"color999"},"--%"))):"")))}}]),x);function x(e){!function(e,a){if(!(e instanceof a))throw new TypeError("Cannot call a class as a function")}(this,x);var c=function(e,a){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!=typeof a&&"function"!=typeof a?e:a}(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,e));return c.targetsget_navigation_data=function(e,a){var t="/ec_major_schools/get_navigation_data?ec_year_id="+e+"&ec_course_id="+a;p.a.get(t,{withCredentials:!0}).then(function(e){200===e.status&&c.setState({schooldata:e.data,ec_course_id:a})}).catch(function(e){console.log(e)})},c.showmorelist=function(){c.setState({morelisttype:!1}),c.UpdateClassData(!1)},c.UpdateClassData=function(e){var l=c.state.calculatetype;c.setState({ec_course_id:n});var n=706,a="/ec_courses/"+n+"/calculation_info_data";p.a.get(a,{withCredentials:!0}).then(function(e){if(200===e.status){10<e.data.course_total_score&&!0;for(var a=e.data.course_total_score[e.data.course_total_score.length-1].total_rate,t=0;t<a.length;t++)t===a.length-1&&a[t].total_score;c.setState({graduation_list:e.data.graduation_subitem_evaluations,target_list:e.data.course_targets,ec_course_targets_count:e.data.course_targets.length,course_achievement:e.data.course_achievement,course_rate:e.data.course_rate,score_levels:e.data.score_levels}),c.targetsget_navigation_data(e.data.ec_year_id,n),!0===l&&c.setState({calculatetype:!1,completiontype:!0,completionlist:"刷新列表数据成功",calculatesetype:!0})}}).catch(function(e){console.log(e)})},c.newrightcalculatebutton=function(){console.log("调用了计算"),c.setState({Spintype:!0});p.a.get("/ec_courses/706/evaluation.json").then(function(e){e&&1===e.data.status&&(c.setState({calculatetype:!0,completiontype:!0,completionlist:"计算成功",calculatesetype:!0,Spintype:!1}),c.UpdateClassData(!0))}).catch(function(e){console.log(e)})},c.hidecompletion=function(){c.setState({completiontype:!1,completionlist:"",calculatesetype:!1})},c.state={schooldata:{},ecComponentState:"ecCompletion",course_total_score:[],ec_course_targets:0,graduation_list:[],target_list:[],target_score:[],evaluate_result:"",ec_course_targets_count:0,new_target_ec_year_id:0,total_rate_data:void 0,calculatetype:!1,ec_course_id:0,morelisttype:!1,titlemessage:"提示",completiontype:!1,completionlist:"",course_total_scoreaverage:0,calculatesetype:!1,Spintype:!1,ismanager:!1,course_achievement:"--",course_rate:"--",score_levels:[],score_levelsdata:[],hife:"/ecs/major_schools/3/years/60/requirement_vs_courses"},c}a.default=Object(d.w)()(w)}}); |