webpackJsonp([239],{4063:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a(162),n=(a.n(l),a(161)),c=a.n(n),s=a(65),o=(a.n(s),a(66)),r=a.n(o),i=a(166),d=(a.n(i),a(165)),u=a.n(d),m=a(0),p=a.n(m),v=a(12),f=a.n(v),h=function(e,t,a){return t&&y(e.prototype,t),a&&y(e,a),e};function y(e,t){for(var a=0;a= ",e.score))})),p.a.createElement("div",{className:"ListTableLine newSystem",id:"school_major_list",style:{display:!1===s?"none":"block"}},p.a.createElement("div",{className:"ant-spin ant-spin-spinning"},p.a.createElement("div",null,p.a.createElement("div",{className:"ListTableLine newSystem",id:"school_major_list"},p.a.createElement("p",{className:"clearfix Coursetitle GRADENEWFFF",style:{width:"1200px"}},p.a.createElement("span",{className:"column-1 color-666 textalign font-16"},"等级名称"),p.a.createElement("span",{className:"column-1 color-666 textalign font-16"},"规则"),p.a.createElement("span",{className:"column-1 color-666 textalign font-16"},"分值"),p.a.createElement("span",{className:"column-3 textalign",style:{color:"#989898"}},"(请按照分数的降序方式进行等级的划分设置)"))),p.a.createElement("ul",{className:"edu-back-white"},void 0===n?"":n.map(function(e,t){return p.a.createElement("li",{className:"clearfix GRADENbottom",key:t},p.a.createElement("span",{className:"column-1 textalign textalign "},p.a.createElement(r.a,{size:"large",className:parseInt(l)===t?"bor-red textalign":"textalign",style:{width:"100%"},value:e.level,index:t,onInput:function(e){return a.editlevelslist(e,t)}})),t===n.length-1?p.a.createElement("span",{className:"column-1 task-hid a05101 textalign mt8"},"小于"):p.a.createElement("span",{className:"column-1 task-hid a05101 textalign mt8"},"大于或等于"),p.a.createElement("span",{className:"column-1 textalign textalign "},p.a.createElement(r.a,{size:"large",className:"textalign",style:{width:"100%"},value:e.score,index:t,onInput:function(e){return a.editlevelslists(e,t)}})),t===n.length-1?p.a.createElement("span",{className:"column-3 GRADENpadding"},p.a.createElement("a",{className:"mr15 delSubentry"},p.a.createElement(c.a,{placement:"bottom",title:"删除"},p.a.createElement("i",{className:"iconfont icon-shanchu color-grey-c font-17",onClick:function(){return a.deleteditecGrade(t)}}))),p.a.createElement("a",{className:"newAddSubentry"},p.a.createElement(c.a,{placement:"bottom",title:"添加"},p.a.createElement("i",{className:"iconfont icon-tianjiafangda color-green additecGrade",onClick:function(){return a.additecGrade(t)}})))):"")}),p.a.createElement("span",{className:"c_red none ml30",id:"error_tip",style:{display:!0===o?"block":"none",width:"100px"}},"内容不能为空")),p.a.createElement("div",{className:"right editglybuttonbox mt20 mb20 mr20"},p.a.createElement("div",{className:"defalutSubmitbtn fr",onClick:this.SaveecCourseEvaluationstop},"提交"),p.a.createElement("div",{className:"defalutCancelbtn fr mr20",onClick:this.CancelecCourseEvaluationstop},"取消")))))))}}]),_);function _(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,_);var s=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,(_.__proto__||Object.getPrototypeOf(_)).call(this,e));return s.updalevels=function(){var e="/ec_courses/"+s.props.match.params.ec_course_id+"/score_level_data";f.a.get(e,{withCredentials:!0}).then(function(e){200===e.status&&s.setState({levels:e.data.levels,ismanager:e.data.ismanager,editlevels:e.data.levels})}).catch(function(e){console.log(e)})},s.editecGrade=function(){s.setState({editecGradetype:!0})},s.CancelecCourseEvaluationstop=function(){s.updalevels(),s.setState({editecGradetype:!1})},s.SaveecCourseEvaluationstop=function(){for(var e=s.state.editlevels,t=e,a=s.props.match.params.ec_course_id,l=0;l