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/51.7d837e35.chunk.js

1 line
1.5 MiB

5 years ago
webpackJsonp([51,36,40,59,74,99,102,104,105,115,116,120,121,147],{1022:function(e,t,n){"use strict";var a=n(30),r=(n.n(a),n(31)),o=n.n(r),i=n(916),l=(n.n(i),n(917)),s=n.n(l),c=n(292),u=(n.n(c),n(290)),d=n.n(u),p=n(0),f=n.n(p),m=n(5),A=n(172),h=n.n(A),b=n(83),g=n.n(b),v=function(e,t,n){return t&&C(e.prototype,t),n&&C(e,n),e};function C(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}d.a.Group;var y="YYYY-MM-DD HH:mm";function x(e,t){for(var n=[],a=e;a<t;a++)n.push(a);return n}function w(){return{disabledMinutes:function(){return x(1,30).concat(x(31,60))}}}function B(e){return e&&e<g()().endOf("day").subtract(1,"days")}var k=(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)}(E,p.Component),v(E,[{key:"componentDidMount",value:function(){if(null!=this.props.course_groups&&0!=this.props.course_groups.length){var e=this.props.course_groups.map(function(e){return e.id});this.shixunhomeworkedit(e)}null!=this.props.starttimes&&""!=this.props.starttimes&&(null!=this.props.starttimesend&&""!=this.props.starttimesend?this.setState({endtime:this.props.starttimesend}):this.setState({endtime:g()(g()(Object(m.S)(this.props.starttimes)).add(1,"week")).format("YYYY-MM-DD HH:mm")}))}},{key:"render",value:function(){var e=this,t=this.state,n=t.group_ids,a=t.endtime,r=this.props.course_groups;return f.a.createElement("div",null,!0===this.props.visible?f.a.createElement("style",null,"\n body {\n\t\t\t\t\t\t\t overflow: hidden !important;\n\t\t\t\t\t\t\t}\n "):"",!0===this.props.visible?f.a.createElement(o.a,{keyboard:!1,className:"HomeworkModal",title:this.props.modalname,visible:this.props.visible,closable:!1,footer:null,destroyOnClose:!0},f.a.createElement("div",{className:"task-popup-content"},this.props.usingCheckBeforePost?f.a.createElement(f.a.Fragment,null,f.a.createElement("p",{className:"task-popup-text-center font-16"},f.a.createElement("span",null,"发布设置均可修改,"),f.a.createElement("span",{className:"color-blue underline",onClick:this.props.onToPublishClick},"点击修改")),f.a.createElement("p",{className:"task-popup-text-center font-16 mt10"},"此设置将对所有分班生效")):f.a.createElement(f.a.Fragment,null,f.a.createElement("p",{className:"task-popup-text-center font-16"},this.props.Topval,f.a.createElement("span",{className:"color-blue underline"},this.props.Topvalright)),f.a.createElement("p",{className:"task-popup-text-center font-16 mt10"},void 0===this.props.Botvalleft?"":f.a.createElement("span",{className:"colorFF6800"},'"',this.props.Botvalleft,'"'),this.props.Botval)),void 0===this.props.starttime||""===this.props.starttime?"":f.a.createElement("p",{className:"task-popup-text-center font-16 mt20"},f.a.createElement("span",{className:"font-14 mr20 color979797"},this.props.starttime),f.a.createElement("span",{className:"font-14 color979797"},f.a.createElement("span",{className:"mr10"},"截止时间:"),f.a.createElement(s.a,{dropdownClassName:"hideDisable",showTime:{format:"HH:mm"},disabledTime:w,disabledDate:B,showToday:!1,locale:h.a,format:y,placeholder:"请选择截止时间",id:"endTime",width:"210px",value:null===a||""===a?"":g()(a,y),onChange:this.onChangeTimeend,className:!0===this.state.endtimetype?"noticeTip":""}),!0===this.state.endtimetype?f.a.createElement("div",{className:"color-red fr mr90 mt5"},this.state.endtimetypevalue):"")),void 0===this.props.modaltype||2===this.props.modaltype||4===this.props.modaltype||!r||0==r.length||this.props.usingCheckBeforePost?"":f.a.createElement("ul",{className:"upload_select_box fl clearfix mt20 mb30",style:{"overflow-y":"auto",padding:"10px 0px"},id:"search_not_members_list"},f.a.createElement("style",null,"\n .HomeworkModal .ant-checkbox-wrap