You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
p6tsc84h5/static/js/180.56266378.chunk.js

1 line
24 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

webpackJsonp([180],{4380:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(165),s=(a.n(n),a(164)),y=a.n(s),l=a(66),o=(a.n(l),a(67)),f=a.n(o),i=a(70),c=(a.n(i),a(71)),E=a.n(c),r=a(169),u=(a.n(r),a(26)),N=a.n(u),m=a(30),d=(a.n(m),a(31)),w=a.n(d),v=a(296),p=(a.n(v),a(291)),S=a.n(p),_=a(0),C=a.n(_),h=(a(45),a(3)),g=(a.n(h),a(12)),b=a.n(g),k=a(5),x=a(1800),A=(a.n(x),a(3014)),j=(a.n(A),a(2288),a(4381)),M=(a.n(j),function(e,t,a){return t&&O(e.prototype,t),a&&O(e,a),e});function O(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function I(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}window.$;var P=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(L,_.Component),M(L,[{key:"componentDidMount",value:function(){var t=this;this.props.match.params.ec_course_id,b.a.get("/ec_courses/706/course_targets/with_achievement_methods.json").then(function(e){t.setState({achievement_list:e.data.course_targets,spinningstate:!1,ismanager:!0})}).catch(function(e){console.log(e)}),this.setState({newec_course_idbottom:706}),this.props.Ontitine("evaluation_methods")}},{key:"render",value:function(){var s=this,l=S.a.Option,e=this.state,o=(e.schooldata,e.achievement_list),t=e.spinningstate,i=e.evaluations_list,c=e.evaluations_lists,r=(e.newec_course_target_id,e.achievement_methods),u=e.ec_course_target_name,m=e.buttomSaveCourseEvaluationsbottom,d=(e.sequenceid,e.target_id),a=e.titlemessages,v=e.Modallists,n=e.eacoursetype,p=e.eacoursesavetypes,_=e.methodologytype,h=(e.newec_course_idbottom,e.meweacoursetype),g=e.percentagetype,b=e.ismanager;return C.a.createElement("div",{className:"newMain clearfix"},C.a.createElement("div",{className:"educontent mb50"},C.a.createElement(w.a,{title:a,visible:n,className:"ecmodeldelet",closable:!1,footer:null},C.a.createElement("div",{className:"task-popup-content"},C.a.createElement("div",{className:"task-popup-text-center font-14"},v)),C.a.createElement("div",{className:"task-popup-submit clearfix"},C.a.createElement("a",{onClick:this.hidemodeleacourse,className:"task-btn fl"},"取消"),C.a.createElement("a",{className:"task-btn task-btn-orange fr",onClick:this.hidemodeleacourse},"确定"))),C.a.createElement("div",{className:"ListTableLine newSystem",id:"school_major_list"},C.a.createElement("p",{className:"clearfix Coursetitle",style:{width:"1200px"}},C.a.createElement("span",{className:"column-1 color-666"},"课程目标"),C.a.createElement("span",{className:"column-1 color-666"},"评价环节"),C.a.createElement("span",{className:"column-1 ml15 color-666"},"数据内容"),C.a.createElement("span",{className:"column-1 operationright color-666 f5f5f5"},"操作"),C.a.createElement("span",{className:"column-1 ml30 operationright color-666"},"评价占比"),C.a.createElement("span",{className:"column-1 ml15 operationright color-666"},"支撑总分值")),void 0===o?"":o&&0===o.length?C.a.createElement(E.a,{spinning:t,className:"Spinlarge",indicator:C.a.createElement(N.a,{type:"loading",style:{fontSize:30},spin:!0})}):o&&o.map(function(a,n){return C.a.createElement("div",{key:n},0===a.course_achievement_methods.length?C.a.createElement("li",{key:n,className:"clearfix"},C.a.createElement("div",I({style:{width:"99.8%"},className:"yslpadding"},"style",{display:parseInt(d)===a.id?"none":"block"}),C.a.createElement("span",{className:"column-1 mt4 textaligncenters"},C.a.createElement("span",null,n+1)),C.a.createElement("span",null,C.a.createElement("span",{className:"column-1 textaligncenters mt4"},C.a.createElement("span",null)),C.a.createElement("span",{className:"column-1 ml15 textaligncenters color99 mt4 newtextaligncenter evaluationdataClassy"},C.a.createElement("span",null)),C.a.createElement("span",{className:"column-1 operationright mt4"},C.a.createElement("div",{className:"operationColumn"},C.a.createElement("div",{className:"right operationalter nulleditSubentry",style:{display:!1===b?"none":"block"}},C.a.createElement("a",{className:"mr16 editSubentry","data-tip-down":"编辑"},C.a.createElement("i",{target_id:a.id,name:n,onClick:s.editecCourseEvaluationslist.bind(s),className:"iconfont icon-bianjidaibeijing color-green"}))))),C.a.createElement("span",{className:"column-1 operationright mt4 percentages"},C.a.createElement("div",null)),C.a.createElement("span",{className:"column-1 mr20 operationright mt4"},C.a.createElement("div",{className:"ColorF68"})))),C.a.createElement("div",{className:"ListTableLine newSystem",id:"EvaluationsList"},C.a.createElement("div",{style:{display:parseInt(d)===a.id?"block":"none"}},C.a.createElement("div",{className:"edu-back-white eacourse",id:"SystemParametersbottom",style:{display:parseInt(d)===a.id?"block":"none"}},C.a.createElement("div",{className:"padding20-30",id:"SystemParameters",style:{paddingLeft:"0px"}},C.a.createElement("span",{className:"fl SystemParameters"},"课程目标",n+1,"",u))),void 0===r?" ":r.map(function(e,t){return C.a.createElement("div",{key:t,className:"clearfix editorModify"},C.a.createElement("div",{className:""},C.a.createElement("span",{className:"column-1 mr12",style:{paddingLeft:"0px"}},"评价环节"),C.a.createElement(S.a,{className:void 0===e.course_select_value&&!0===p&&"提交失败,评价环节不能为空"===v?"inputWeight bor-red":"inputWeight",placeholder:"请选择该目标的评价环节",size:"large",style:{width:"20%"},value:e.course_select_value,onChange:s.handleevaluations_list.bind(s)},i.map(function(e){return C.a.createElement(l,{value:e,key:t},e)})),C.a.createElement("span",{className:"column-1 mr13"}),C.a.createElement(S.a,{mode:"multiple",className:void 0===e.selectevaluation_phase&&!0===p&&"提交失败,支撑项内容不能为空"===v?"inputWeight bor-red":"inputWeight",placeholder:"请选择具体数据内容",size:"large",id:"Coursemultiple",style:{width:"37%"},onChange:s.handevaluation_subitems_list.bind(s),onDeselect:s.handevaluation_Addlist.bind(s),value:e.selectevaluation_phase,onFocus:function(){return s.selectsonFocuslist(e,t)}},c.map(function(e){return C.a.createElement(l,{value:e,key:t},e)})),C.a.createElement("span",{className:"column-1 mr14"}),C.a.createElement(f.a,{size:"large",type:"number",value:e.score,className:void 0===e.score&&!0===p&&"提交失败,支撑分数不能为空"===v?"bor-red":"",onInput:s.handevaluation_CourseScore.bind(s),id:t,style:{width:"11%"},placeholder:"请输入支撑分数"}),C.a.createElement("span",{className:"column-1 ml5 mr10"},"分"),C.a.createElement(f.a,{size:"large",type:"number",value:e.percentage,className:void 0===e.percentage&&!0===p||100<e.percentage&&!0===p||!0===g?"bor-red":"",onInput:s.handevaluation_CoursePercentag.bind(s),id:t,style:{width:"11%"},placeholder:"请输入占比"}),C.a.createElement("span",{className:"column-1 ml5 mr10"},"%"),C.a.createElement("span",{className:"buttoninline SetTheAssociated",style:{marginLeft:"10px"}},C.a.createElement("div",{className:"left operatebutton",style:{display:!1===b?"none":"block"}},C.a.createElement("a",{className:"mr15 delSubentry",style:{display:0===t?"none":"inline-block"}},C.a.createElement(y.a,{placement:"bottom",title:"删除"},C.a.createElement("i",{className:"iconfont icon-shanchu color-grey-c font-17",index:t,onClick:s.Delethandevaluation.bind(s)}))),C.a.createElement("a",{className:"newAddSubentry","data-tip-down":"添加",style:{display:t===r.length-1?"inline-block":"none"}},C.a.createElement("i",{className:"iconfont icon-tianjiafangda color-green",index:t,onClick:s.Addhandevaluation.bind(s)}))))),C.a.createElement("br",null))}),C.a.createElement("span",{className:"c_red none ml30",id:"error_tip",style:{display:!0===h?"inline-block":"none"}},v),C.a.createElement("div",{className:"right editglybuttonbox mb10",id:"ecCourseEvaluationsbottomsubmit",style:{display:parseInt(d)===a.target_id?"block":"none"}},C.a.createElement("div",{className:"defalutSubmitbtn fr",onClick:m},"保存"),C.a.createElement("div",{className:"defalutCancelbtn fr mr20",onClick:s.CancelecCourseEvaluationsbottom},"取消"))))):a.course_achievement_methods.map(function(e,t){return C.a.createElement("li",{key:n,className:o&&o.length-1===n?a.course_achievement_methods.length-1===t?"clearfix yslinitials ":" yslinitials bordereaeaea clearfix":a.course_achievement_methods.length-1===t?" yslinitials bordereaeaeas clearfix":" yslinitials bordereaeaea clearfix",style:{display:parseInt(d)===a.target_id&&!0===_?a.course_achievement_methods.length-1===t?"block":"none":"block"}},C.a.createElement("div",I({style:{width:"99.8%"},className:"yslpadding"},"style",{display:parseInt(d)===a.target_id&&!0===_?"none":"block"}),C.a.createElement("span",{className:"column-1 mt4 textaligncenters"},n-t===n?n+1:""),C.a.createElement("span",null,C.a.createElement("span",{className:"column-1 textaligncenters mt4 "},e.course_evaluation.name),C.a.createElement("span",{className:"column-1 ml15 textaligncenters color99 mt4 newtextaligncenter evaluationdataClassy"},e.course_evaluation_subitems.map(function(e,t){return C.a.createElement("div",{key:e},e.name+" "," ")})),n-t===n?C.a.createElement("span",{className:"column-1 operationright mt4"},C.a.createElement("div",{className:"operationColumn"},C.a.createElement("div",{className:"right operationalter neweditSubentry",style:{display:!1===b?"none":"block"}},C.a.createElement("a",{className:"mr20 editSubentry","data-tip-down":"编辑"},C.a.createElement("i",{target_id:a.target_id,name:n,onClick:s.editecCourseEvaluationslist.bind(s),className:"iconfont icon-bianjidaibeijing color-green"}))))):C.a.createElement("span",{className:"column-1 operationright mt4"},C.a.createElement("div",{className:"operationColumn"},C.a.createElement("div",{className:"left operationalter neweditSubentry"},C.a.createElement("a",{className:"mr20 editSubentry"})))),C.a.createElement("span",{className:"column-1 operationright mt4 percentages"},C.a.createElement("div",null,e.percentage+"%")),C.a.createElement("span",{className:"column-1 mr20 operationright mt4"},C.a.createElement("div",{className:"ColorF68"},e.score)))),C.a.createElement("div",{className:"ListTableLine newSystem",id:"EvaluationsList"},C.a.createElement("div",{style:{display:parseInt(d)===a.target_id&&a.course_achievement_methods.length-1===t?"block":"none"}},C.a.createElement("div",{className:"edu-back-white eacourse",id:"SystemParametersbottom",style:{display:parseInt(d)===a.target_id&&a.course_achievement_methods.length-1===t?"block":"none"}},C.a.createElement("div",{className:"padding20-30",id:"SystemParameters",style:{paddingLeft:"0px"}},C.a.createElement("span",{className:"fl SystemParameters"},"课程目标",n+1,"",u))),void 0===r?" ":r.map(function(e,t){return C.a.createElement("div",{key:t,className:"clearfix editorModify"},C.a.createElement("div",{className:""},C.a.createElement("span",{className:"column-1 mr12",style:{paddingLeft:"0px"}},"评价环节"),C.a.createElement(S.a,{className:void 0===e.course_select_value&&!0===p&&"提交失败,评价环节不能为空"===v?"inputWeight bor-red":"inputWeight",placeholder:"请选择该目标的评价环节",size:"large",style:{width:"20%"},value:e.course_select_value,onChange:s.handleevaluations_list.bind(s)},i.map(function(e){return C.a.createElement(l,{value:e,key:t},e)})),C.a.createElement("span",{className:"column-1 mr13"}),C.a.createElement(S.a,{mode:"multiple",className:void 0===e.selectevaluation_phase&&!0===p&&"提交失败,支撑项内容不能为空"===v?"inputWeight bor-red":"inputWeight",placeholder:"请选择具体支撑项",size:"large",id:"Coursemultiple",style:{width:"37%"},onChange:s.handevaluation_subitems_list.bind(s),onDeselect:s.handevaluation_Addlist.bind(s),value:e.selectevaluation_phase,onFocus:function(){return s.selectsonFocuslist(e,t)}},c.map(function(e){return C.a.createElement(l,{value:e,key:t},e)})),C.a.createElement("span",{className:"column-1 mr14"}),C.a.createElement(f.a,{size:"large",type:"number",value:e.score,className:void 0===e.score&&!0===p&&"提交失败,支撑分数不能为空"===v?"bor-red":"",onInput:s.handevaluation_CourseScore.bind(s),id:t,style:{width:"11%"},placeholder:"请输入支撑分数"}),C.a.createElement("span",{className:"column-1 ml5 mr10"},"分"),C.a.createElement(f.a,{size:"large",type:"number",value:e.percentage,className:void 0===e.percentage&&!0===p||100<e.percentage&&!0===p||!0===g?"bor-red":"",onInput:s.handevaluation_CoursePercentag.bind(s),id:t,style:{width:"11%"},placeholder:"请输入占比"}),C.a.createElement("span",{className:"column-1 ml5 mr10"},"%"),C.a.createElement("span",{className:"buttoninline SetTheAssociated",style:{marginLeft:"10px"}},C.a.createElement("div",{className:"left operatebutton",style:{display:!1===b?"none":"block"}},C.a.createElement("a",{className:"mr15 delSubentry",style:{display:1===r.length?"none":"inline-block"}},C.a.createElement(y.a,{placement:"bottom",title:"删除"},C.a.createElement("i",{className:"iconfont icon-shanchu color-grey-c font-17",index:t,onClick:s.Delethandevaluation.bind(s)}))),C.a.createElement("a",{className:"newAddSubentry","data-tip-down":"添加",style:{display:t===r.length-1?"inline-block":"none"}},C.a.createElement("i",{className:"iconfont icon-tianjiafangda color-green",index:t,onClick:s.Addhandevaluation.bind(s)}))))),C.a.createElement("br",null))}),C.a.createElement("span",{className:"c_red none ml30",id:"error_tip",style:{display:!0===h?"inline-block":"none"}},v),C.a.createElement("div",{className:"right editglybuttonbox mb10",id:"ecCourseEvaluationsbottomsubmit",style:{display:parseInt(d)===a.target_id?"block":"none"}},C.a.createElement("div",{className:"defalutSubmitbtn fr",onClick:m},"保存"),C.a.createElement("div",{className:"defalutCancelbtn fr mr20",onClick:s.CancelecCourseEvaluationsbottom},"取消")))))}))}))))}}]),L);function L(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,L);var _=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(L.__proto__||Object.getPrototypeOf(L)).call(this,e));return _.getec_course_achievement_methods=function(){if(null!=_.state.newec_course_idbottom){b.a.get("/ec_courses/706/course_targets/course_achievement_methods.json",{withCredentials:!0}).then(function(e){_.setState({achievement_list:e.data.course_targets,spinningstate:!1,ismanager:!0})}).catch(function(e){console.log(e)})}},_.getNavigationData=function(e){var t="/ec_major_schools/get_navigation_data?ec_course_id="+e;b.a.get(t,{withCredentials:!0}).then(function(e){200===e.status&&_.setState({schooldata:e.data})}).catch(function(e){console.log(e)})},_.editecCourseEvaluationslist=function(e){var m=e.target.getAttribute("target_id"),t=e.target.name;_.setState({buttomSaveCourseEvaluationsbottom:_.SaveCourseEvaluationsbottom,target_id:m,percentagetype:!1});var a=_.state;a.evaluations_list,a.evaluation_subitems_list,a.achievement_methods;_.setState({achievement_methods:void 0,selectevaluation_phase:[],course_select_value:"",evaluations_lists:[],sequenceid:t,methodologytype:!1,Modallists:" ",meweacoursetype:!1,eacoursesavetypes:!1,newshowredvalue:!1});var d=[],v=new Object,p=[],n="/ec_course_achievement_methods/edit_course_target?ec_course_target_id="+m;b.a.get(n,{withCredentials:!0}).then(function(e){if(200===e.status){if(0===e.data.evaluation_phase_list.length){_.setState({achievement_methods:void 0});var t=new Object;p.push(t)}if(0<e.data.evaluation_phase_list.length)for(var a=e.data.evaluation_phase_list,n=e.data.evaluations_list,s=0;s<a.length;s++){for(var l=null,o=a[s].evaluation_phase,i=[],c=0;c<e.data.evaluations_list.length;c++)a[s].evaluation_id===n[c].id&&(l=n[c].name);for(var r=0;r<o.length;r++)i.push(o[r].name);var u={course_evaluation_id:a[s].evaluation_id,score:a[s].score,percentage:a[s].percentage,evaluation_subitems:a[s].evaluation_phase,course_select_value:l,selectevaluation_phase:i};p.push(u)}for(s=0;s<e.data.evaluations_list.length;s++){d.push(e.data.evaluations_list[s].name),v[e.data.evaluations_list[s].name]=[];for(c=0;c<e.data.evaluations_list[s].evaluation_subitems_list.length;c++)v[e.data.evaluations_list[s].name].push(e.data.evaluations_list[s].evaluation_subitems_list[c].name)}_.setState({achievement_methods:p,totalevaluations_list:e.data,evaluations_list:d,evaluation_subitems_list:v,newec_course_target_id:m,methodologytype:!0,ec_course_target_name:e.data.ec_course_target_name,ismanager:!0})}}).catch(function(e){console.log(e)})},_.handleevaluations_list=function(e,t){for(var a=_.state,n=a.evaluation_subitems_list,s=a.totalevaluations_list,l=a.achievement_methods,o=new Object,i=t.key,c=s.evaluations_list,r=0;r<l.length;r++)r===i&&(l[r].evaluation_subitems=[]);if(_.setState({evaluations_lists:n[e],evaluation_subitems_lists:n[e][0],achievement_methods:l}),0===l.length){for(var u=0;u<c.length;u++)c[u].name===e&&(o.course_evaluation_id=c[u].id);l.push(o)}else if(0<l.length){void 0===l[i]&&l.push(o);for(u=0;u<c.length;u++)c[u].name===e&&(l[i].course_evaluation_id=c[u].id,l[i].course_select_value=e,l[i].selectevaluation_phase=[])}_.setState({achievement_methods:l})},_.handevaluation_subitems_list=function(e,t){var a=_.state,n=a.totalevaluations_list,s=a.achievement_methods,l=[],o=void 0;if(0<e.length){l=s;for(var i=0;i<e.length;i++)isNaN(t[i].key)||(o=t[i].key);for(var c=[],r=0;r<e.length;r++)for(var u=0;u<n.evaluations_list.length;u++)for(var m=n.evaluations_list[u].evaluation_subitems_list,d=0;d<m.length;d++)if(e[r]===m[d].name){var v=new Object;v.id=m[d].id,v.position=m[d].position,c.push(v)}l[o].evaluation_subitems=c,l[o].selectevaluation_phase=e,_.setState({evaluation_subitems_lists:e,achievement_methods:l})}},_.handevaluation_Addlist=function(e,t){for(var a=parseInt(t.key),n=_.state.achievement_methods,s=0;s<n.length;s++)if(isNaN(a))for(var l=0;l<n[s].evaluation_subitems.length;l++)n[s].evaluation_subitems[l].name===e&&(n[s].evaluation_subitems.splice(l,1),n[s].selectevaluation_phase.splice(l,1));else a===s&&(n[s].evaluation_subitems.splice(s,1),n[s].selectevaluation_phase.splice(s,1));_.setState({achievement_methods:n})},_.handevaluation_CourseScore=function(e){for(var t=_.state.achievement_methods,a=e.target.id,n=parseFloat(e.target.value),s=0;s<t.length;s++)t[a].score=n;_.setState({achievement_methods:t})},_.handevaluation_CoursePercentag=function(e){var t=_.state.achievement_methods,a=e.target.id,n=parseFloat(e.target.value);100<n&&(_.setState({Modallists:"占比请输入0~100的数",meweacoursetype:!0,newshowredvalue:!0}),n=100),n<0&&(_.setState({Modallists:"占比不能小于0",meweacoursetype:!0,newshowredvalue:!0}),n=0),""!==n&&null!=n||(_.setState({Modallists:"占比不能为空",meweacoursetype:!0,newshowredvalue:!0}),n=0);for(var s=0;s<t.length;s++)t[a].percentage=n;_.setState({achievement_methods:t})},_.Addhandevaluation=function(e){var t=_.state.achievement_methods,a=new Object;t.push(a),_.setState({achievement_methods:t})},_.Delethandevaluation=function(e){var t=_.state.achievement_methods,a=e.target.getAttribute("index"),n=t;n.splice(a,1),_.setState({achievement_methods:n})},_.EvaluationsSaveonloadgetdata=function(e){b.a.get("/ec_courses/706/course_targets/with_achievement_methods.json",{withCredentials:!0}).then(function(e){_.setState({achievement_list:e.data.course_targets,spinningstate:!1,ismanager:!0})}).catch(function(e){console.log(e),this.setState({spinningstate:!1})})},_.ecrestoration=function(){_.setState({buttomSaveCourseEvaluationsbottom:_.SaveCourseEvaluationsbottom})},_.SaveCourseEvaluationsbottom=function(){var t=_.props.match.params.ec_course_id;_.setState({buttomSaveCourseEvaluationsbottom:"",percentagetype:!0});for(var e=_.state,a=e.newec_course_target_id,n=e.achievement_methods,s=0;s<n.length;s++){if(void 0===n[s].course_evaluation_id)return _.setState({Modallists:"提交失败,评价环节不能为空",meweacoursetype:!0,eacoursesavetypes:!0}),void _.ecrestoration();if(void 0===n[s].evaluation_subitems)return _.setState({Modallists:"提交失败,支撑项内容不能为空",meweacoursetype:!0,eacoursesavetypes:!0}),void _.ecrestoration();if(void 0===n[s].score||NaN===n[s].score||null===n[s].score)return _.setState({Modallists:"提交失败,支撑分数不能为空",meweacoursetype:!0,eacoursesavetypes:!0}),void _.ecrestoration();if(void 0===n[s].percentage||NaN===n[s].percentage||null===n[s].percentage)return _.setState({Modallists:"提交失败,占比不能为空",meweacoursetype:!0,eacoursesavetypes:!0,newshowredvalue:!0}),void _.ecrestoration()}for(var l=0,o=0;o<n.length;o++)l+=n[o].percentage;if(100<l)return _.setState({Modallists:"提交失败,支撑占比不能超过总和100%",meweacoursetype:!0,newshowredvalue:!0,percentagetype:!0}),void _.setState({buttomSaveCourseEvaluationsbottom:_.SaveCourseEvaluationsbottom});if(l<100)return _.setState({Modallists:"提交失败,支撑占比总和要等于100%",meweacoursetype:!0,newshowredvalue:!0,percentagetype:!0}),void _.setState({buttomSaveCourseEvaluationsbottom:_.SaveCourseEvaluationsbottom});for(var i=0;i<n.length;i++)if("{}"===JSON.stringify(n[i]))n.splice(i,1);else{delete n[i].course_select_value,delete n[i].selectevaluation_phase;for(s=0;s<n[i].evaluation_subitems.length;s++)delete n[i].evaluation_subitems[s].evaluation_subitem_id,delete n[i].evaluation_subitems[s].name}b.a.post("/ec_courses/:course_id/course_targets/:target_id/course_achievement_methods.json",{ec_course_target_id:a,achievement_methods:n},{withCredentials:!0}).then(function(e){0===e.data.status?(_.setState({target_id:null,newec_course_idbottom:e.data.ec_course_id,buttomSaveCourseEvaluationsbottom:_.SaveCourseEvaluationsbottom,Modallists:" ",meweacoursetype:!1,achievement_methods:void 0,eacoursesavetypes:!1,newshowredvalue:!1,ismanager:!0}),_.EvaluationsSaveonloadgetdata(e.data.ec_course_id),_.getNavigationData(t)):-1===e.data.status&&_.setState({buttomSaveCourseEvaluationsbottom:_.SaveCourseEvaluationsbottom,Modallists:e.data.message,eacoursetype:!0})}).catch(function(e){console.log(e)})},_.CancelecCourseEvaluationsbottom=function(){_.setState({achievement_methods:void 0,target_id:null,methodologytype:!1,Modallists:" ",meweacoursetype:!1,eacoursesavetypes:!1,newshowredvalue:!1,percentagetype:!1}),_.getec_course_achievement_methods()},_.selectsonFocuslist=function(e,t){var a=e.course_select_value,n=_.state,s=n.evaluation_subitems_list,l=n.totalevaluations_list,o=n.achievement_methods,i=new Object,c=t,r=l.evaluations_list;if(_.setState({evaluations_lists:s[a],evaluation_subitems_lists:s[a][0]}),0===o.length){for(var u=0;u<r.length;u++)r[u].name===a&&(i.course_evaluation_id=r[u].id);o.push(i)}else if(0<o.length){void 0===o[c]&&o.push(i);for(u=0;u<r.length;u++)r[u].name===a&&(o[c].course_evaluation_id=r[u].id)}_.setState({achievement_methods:o})},_.hidemodeleacourse=function(){_.setState({eacoursetype:!1})},_.state={totalevaluations_list:[],ec_course_target_id:0,achievement_list:[],evaluations_listSelec:[],evaluations_lists:[],evaluation_subitems_lists:[],evaluations_list:[],evaluation_subitems_list:{},achievement_methods:[],ec_course_target_name:"",buttomSaveCourseEvaluationsbottom:_.SaveCourseEvaluationsbottom,spinningstate:!0,schooldata:{},sequenceid:0,target_id:null,titlemessages:"提示",Modallists:"",eacoursetype:!1,eacoursesavetypes:!1,newec_course_idbottom:void 0,methodologytype:!1,meweacoursetype:!1,newshowredvalue:!1,percentagetype:!1,ismanager:!0},_}t.default=Object(k.w)()(P)},4381:function(e,t,a){var n=a(4382);"string"==typeof n&&(n=[[e.i,n,""]]);var s={hmr:!1,transform:void 0};a(289)(n,s);n.locals&&(e.exports=n.locals)},4382:function(e,t,a){(e.exports=a(288)(!0)).push([e.i,".yslinitials{display:-ms-flexbox;display:flex;-ms-flex-direction:initial;flex-direction:row}.yslpadding{padding:0 30px}","",{version:3,sources:["/Users/yangshuming/Desktop/new__educode/educoder/public/react/src/modules/ecs/subroute/ecCourseEvaluations/eccourseevalut.css"],names:[],mappings:"AAAA,aAEI,oBAAqB,AAErB,aAAc,AACd,2BAA2B,AACvB,kBAAuB,CAC9B,AACD,YACI,cAAkB,CACrB",file:"eccourseevalut.css",sourcesContent:[".yslinitials{\n\n display: -ms-flexbox;\n\n display: flex;\n -ms-flex-direction:initial;\n flex-direction:initial;\n}\n.yslpadding{\n padding: 0px 30px;\n}"],sourceRoot:""}])}});