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/116.f6693cc2.chunk.js

1 line
544 KiB

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