|
|
(self.webpackChunk=self.webpackChunk||[]).push([[1702],{33853:function(e,o,t){"use strict";t.d(o,{Z:function(){return c}});var n=t(54476),s=t(59301),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},a=t(7657),l=function(e,o){return s.createElement(a.Z,(0,n.Z)({},e,{ref:o,icon:r}))};var c=s.forwardRef(l)},38819:function(e,o,t){"use strict";t.d(o,{Z:function(){return c}});var n=t(54476),s=t(59301),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},a=t(7657),l=function(e,o){return s.createElement(a.Z,(0,n.Z)({},e,{ref:o,icon:r}))};var c=s.forwardRef(l)},62888:function(e,o,t){"use strict";t.d(o,{Z:function(){return D}});var n=t(7557),s=t.n(n),r=t(41498),a=t.n(r),l=t(79800),c=t.n(l),i=t(39647),d=t.n(i),u=t(59301),p=t(49389),m=t(10249),f=t(78241),h=t(8591),x=t(43418),v=t(19842),y=t(3113),_=t(56656),g=t.n(_),b=t(29679),w=t(19248),j=t(57725),C="flexRow___wVzmN",N="flexColumn___gLZgJ",A="formWrap___z7EIz",k="example___dy_gt",Z="footerWrap___Y3nmz",S=t(37712),O=["newClassroom","globalSetting","loading","dispatch","schoolName","onSuccess"],E=function(e,o){return o.some((function(o){return o.label.toLowerCase().indexOf(e.toLowerCase())>-1}))},P=m.Z.TextArea,D=(0,p.connect)((function(e){var o=e.newClassroom,t=e.loading;return{newClassroom:o,globalSetting:e.globalSetting,loading:t.effects}}))((function(e){var o=e.newClassroom,t=(e.globalSetting,e.loading),n=e.dispatch,r=e.schoolName,l=e.onSuccess,i=void 0===l?function(){}:l,p=(d()(e,O),f.Z.useForm()),_=c()(p,1)[0];(0,u.useEffect)((function(){_.setFieldsValue({name:r})}),[r]);var D=function(){var e=a()(s()().mark((function e(o){var t,r,a,l,c,d,u;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(t=o||{}).name,a=t.city,l=void 0===a?[]:a,c=t.address,d=t.remarks,e.next=3,n({type:"newClassroom/appplySchool",payload:{name:r,province:l[0],city:l[1],address:c,remarks:d}});case 3:u=e.sent,n({type:"newClassroom/setActionTabs",payload:{}}),u&&(h.ZP.success("新增学校/单位成功!"),i(r));case 6:case"end":return e.stop()}}),e)})));return function(o){return e.apply(this,arguments)}}();return(0,S.jsx)(x.Z,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:"NewClassroom-AppplySchool"===o.actionTabs.key,title:"申请添加单位名称",width:"600px",footer:null,children:(0,S.jsxs)(f.Z,{className:A,form:_,labelCol:{span:4},wrapperCol:{span:20},onFinish:D,children:[(0,S.jsx)(f.Z.Item,{label:"单位全称:",name:"name",rules:[{required:!0,message:"请输入学校或工作单位"}],children:(0,S.jsx)(m.Z,{placeholder:"学校或工作单位"})}),(0,S.jsxs)("div",{className:"".concat(C," ").concat(k),children:[(0,S.jsx)("div",{children:"示例:"}),(0,S.jsxs)("div",{className:N,children:[(0,S.jsxs)("div",{children:[(0,S.jsx)(b.Z,{style:{color:"rgb(82, 196, 26)"}}),(0,S.jsx)("span",{className:"font14 ml5",children:"正确示例:数据结构"})]}),(0,S.jsxs)("div",{children:[(0,S.jsx)(w.Z,{style:{color:"red"}}),(0,S.jsxs)("span",{className:"font14 ml5",children:["错误示例:数据结构",g()().format("YYYY"),"春"]})]})]})]}),(0,S.jsx)(f.Z.Item,{label:"地区:",name:"city",children:(0,S.jsx)(v.Z,{allowClear:!0,size:"middle",options:j.P,placeholder:"请选择所在地",showSearch:{matchInputWidth:!0,filter:E}})}),(0,S.jsx)(f.Z.Item,{label:"详细地址:",name:"address",children:(0,S.jsx)(m.Z,{placeholder:"请填写完整的地址信息"})}),(0,S.jsx)(f.Z.Item,{label:"说明:",name:"remarks",children:(0,S.jsx)(P,{placeholder:"再次说明特别情况(选填)"})}),(0,S.jsx)("div",{className:Z,children:(0,S.jsxs)(f.Z.Item,{children:[(0,S.jsx)(y.ZP,{className:"mr5",size:"middle",onClick:function(){n({type:"newClassroom/setActionTabs",payload:{}})},children:"取消"}),(0,S.jsx)(y.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:t["newClassroom/appplySchool"],children:"保存"})]})})]})})}))},74298:function(e,o,t){"use strict";t.r(o),t.d(o,{default:function(){return T}});var n=t(7557),s=t.n(n),r=t(82242),a=t.n(r),l=t(41498),c=t.n(l),i=t(79800),d=t.n(i),u=t(59301),p=t(49389),m=t(78241),f=t(8591),h=t(43418),x=t(3113),v=t(88522),y=t(10249),_=t(5083),g=t(24905),b=t(5112),w=t(56656),j=t.n(w),C=t(10527),N=t(62888),A=t(94171),k=t(44933),Z={bg:"bg___scGBN",wrap:"wrap___h5b4S",crumbs:"crumbs___JJo3q",titleWrap:"titleWrap___Cnywx",flexRow:"flexRow___FVlte",flexJustifyCenter:"flexJustifyCenter___Q_2Lz",flexAlignCenter:"flexAlignCenter___d6nhw",flexColumn:"flexColumn___mCDIJ",fieldWrap:"fieldWrap___dOMry",checkUsersFromCode:"checkUsersFromCode___toyn5",courseField:"courseField___qQV_5",courseExample:"courseExample___IY_Tc",period:"period___vIGwk",credit:"credit___aOpp2",endTime:"endTime___E5PEn",width655:"width655___Zwxr5",color999:"color999___ZFcVB",colorCDCDCD:"colorCDCDCD___Cb3mH",color0152d9:"color0152d9___bDkNR",backgroundFa:"backgroundFa___lmMKC",bBtn:"bBtn____iNQx",schoolHintWrap:"schoolHintWrap___VeMJ3",w700:"w700___YWsgj",classromediv:"classromediv___Ee2n7",glow:"glow___uTEgy",modal:"modal___xWdwx",content:"content___b2kXV",box:"box___iMIt6"},S="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAf5JREFUOE+tVT1oE2EYft5LgqF3/lBqaWMTiE1ahYpLJpFCNydbFQUzZBDppkuJCJXSUUxpOwgOQkHFDqVNi4tVcHOsDiKGXNqhYi4ilUByPbQx98p3ckfIT5Ngbny/53m+5/353iPU+ZjZs61/n2DiCWaOAOT7B2ONiLaIaSOk9G0QUamaTtWBtKFdoTISDB6sd5kdI9AOuxAf7vKtV+IcQWaWMvvaQ2bEDxOqcURIhGXffSIyxZkjqOrZR+2KOW4JiSHl1D1HUKSJMifbcVaDddFVkT6JBmT0XKpZzZpdJmoaVvrPUqaYu27CXGlGaOVcgnSDVF17yczRVgg25knuHdb2trBwOopzst+hEtEypYvZNIChVgR/myVM767ibf4zJBCeDU/ivByopKqULmpFgBU7upn/hLlvrzETGMfo8TMO+EepgLs7L/DF0KC4vJgL3sSFY6EqH6TXCL76+REPdtfglTxYCt/GiDxgiQgxIeo/0o3HgzEEvSfrJGUJ1qY8+zWJ5N4HdLtlTPaPYTH7Br/MEiJHg5gPRnHC3dWoQmrdppRh4s72c7wvZBzitZ4Ipv2X4SZXw3JbTWk0NoZ5gFvqU6SMHKYGLiHWe7Fp36yxOWywhdP8HwM9bqdnjd3Zgy0QHX169pUdXQ7W6uz0+rKddmzBVlb7f34BfwEB2vw97tKWNAAAAABJRU5ErkJggg==",O="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAkNJREFUOE+tlUtLG1EUx/9nRidpCEm6EKGQiBYC3Wfjxp24EIwJNNHiA/EraMnSZWnUha4EQRRaTBet6MKVn8CqCGqpGskDIgqaBGPSPGZOmbHGPCaCNHd5Hr97Xvdcgs5h5tZCLDZIzIMMuIjojWrGzAkCfjLRhuRwbBBRsdadagWleNwjK0oQzG/1LivLiMKiIEy32O0/Ku3KQGYWCrHYJzBPPwuqC4mCksMRICJFVZWB+Wj084thj3CioKGj42MZqKUpy99fFFmNsSiKXjV9+teAX5U1Kx0doXh4iFdDQ4AoVrmWLi6Q39qCaWICZLE86YjCksPxjvLR6Hswf6v0Sk9OIr+zA4PbDev8fBlaOj9Hyu+HcnMD69ISDH191XES+agQiXxh4EOlpnhwgNToKDiTKUPleBxJnw/K9TWknh7YlpcBSaoCEvCV8pHIbwDO2voV9/aQGhsD399D6u2FfHwMOZGA1N0N28oKYDTqlfyUCtHoHTOb9bQadGQEnMtp6laXC7a1NZDJpNs/Iso8C1TTS7rdkC8vNYCxvx+WxUVAEBoDG6Ws3N4i6fdDPjuD2NkJ5eoKnM3C6PHAMjfXCHqq2xROp5EcHkbp5ASi04nXoRDkcPihpirU64VldrYO+tAUnbG5CwSQW19HS1cXbKEQhLY2LcXi7i5S4+Ma1LqwAMPAQP3Y6A32n+1tFDY3YZ6ZgdDeXuVU3N9HdnUV5qkpiHZ7/WCrkqY+vccrmrocVGjT19djpE1bsJWV/58v4C/igjuIQ13SqQAAAABJRU5ErkJggg==",E=t(56102),P=t(83287),D=t(7338),I=t(37712),Y=function(e){return e&&e<j()().endOf("day").subtract(1,"days")},T=(0,p.connect)((function(e){var o=e.user,t=e.newClassroom,n=e.loading,s=e.globalSetting,r=e.classroomList,a=e.shixunHomeworks;return{user:o,newClassroom:t,globalSetting:s,loading:n.effects,classroomList:r,shixunHomeworks:a}}))((function(e){var o,t,n,r,l,i,w,T,M,R,F=e.user,W=e.newClassroom,H=e.globalSetting,U=(e.classroomList,e.shixunHomeworks),V=e.loading,L=e.dispatch,B=(0,p.useParams)(),q=(0,p.useSearchParams)(),J=d()(q,1)[0],G=m.Z.useForm(),Q=d()(G,1)[0],z=(0,u.useState)({}),K=d()(z,2),X=K[0],$=K[1],ee=(0,u.useState)(),oe=d()(ee,2),te=oe[0],ne=oe[1],se=(0,u.useState)({}),re=d()(se,2),ae=re[0],le=re[1],ce=(0,u.useState)([]),ie=d()(ce,2),de=ie[0],ue=ie[1];(0,u.useEffect)((function(){if(!B.coursesId)return ne(!1),function(){me.apply(this,arguments)}(),Q.setFieldsValue({set:0,is_show_conceal:!1}),void $({set:0,is_show_conceal:!1});ne(!0),pe()}),[B.coursesId]),(0,u.useEffect)((function(){if(de.user_school){var e=de.user_school;Q.setFieldsValue({school:e}),fe(e)}}),[de]);var pe=function(){var e=c()(s()().mark((function e(){var o,t;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,k.EO)({coursesId:B.coursesId});case 2:null!=(o=e.sent)&&o.course_id&&(le(a()({},o)||{}),t={course:o.course_list_name,classroom:o.name,period:o.class_period,credit:o.credit,allowed_quit:null==o?void 0:o.allowed_quit,endTime:o.end_date&&j()(o.end_date),publicClassroom:1===o.is_public,classModule:o.course_module_types,school:o.school,set:o.invite_code_halt,allow_copy:null==o?void 0:o.allow_copy,is_show_conceal:null==o?void 0:o.is_show_conceal,student_join_approve:null==o?void 0:o.student_join_approve},fe(o.school),$(a()({},t)),Q.setFieldsValue(a()({},t)));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();function me(){return(me=c()(s()().mark((function e(){var o;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,A.ZP)("/api/courses/new.json",{method:"get"});case 2:0===(null==(o=e.sent)?void 0:o.status)&&(ue(o),Q.setFieldValue("classModule",null==o?void 0:o.course_module_types));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var fe=function(e){L({type:"newClassroom/getSchoolList",payload:{search:e}})},he=function(e){fe(e)},xe=function(){J.get("username")?p.history.push("/users/".concat(J.get("username"),"/classrooms")):p.history.push(te?"/classrooms/".concat(B.coursesId):"/classrooms")},ve=function(){var e=c()(s()().mark((function e(o){var t,n,r,l,c,i,d,u,m,v,y,_,g,b,w,C,N,S,O,Y,T,M,R,F;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((0,D.aN)()||!te){e.next=3;break}return f.ZP.info("课堂信息只有课堂管理员可以调整"),e.abrupt("return");case 3:if(n=(t=o||{}).course,r=t.credit,l=t.classroom,c=t.period,i=t.endTime,d=t.publicClassroom,u=t.classModule,m=t.school,v=t.set,y=void 0===v?0:v,_=t.allow_copy,g=t.allowed_quit,b=t.is_show_conceal,w=t.student_join_approve,C=void 0!==w&&w,N=i&&j()(i).format("YYYY-MM-DD"),S={course_list_name:n,name:l,class_period:c,allowed_quit:g,credit:r,end_date:N,is_public:d?1:0,course_module_types:u,school:m,set:y,allow_copy:_,is_show_conceal:b,student_join_approve:C},!te){e.next=17;break}return e.next=9,(0,k.fr)(a()(a()({},S),{coursesId:B.coursesId}));case 9:if(O=e.sent,0!==(null===(Y=O)||void 0===Y?void 0:Y.status)){e.next=15;break}return e.next=13,(0,A.ZP)("/api/courses/".concat(B.coursesId,"/left_banner.json"),{method:"get",params:{id:B.coursesId}});case 13:(T=e.sent)&&p.history.push("".concat(null==T||null===(M=T.course_modules)||void 0===M?void 0:M[0].category_url));case 15:e.next=21;break;case 17:return e.next=19,L({type:"newClassroom/submitCourses",payload:S});case 19:-1!==(O=e.sent).status&&("0"===localStorage.getItem("Noviceguide")||L({type:"shixunHomeworks/setActionTabs",payload:{key:"底部弹窗",type:7,text:(0,I.jsx)("div",{children:"非常棒!教学课堂已经新建完成!接下来您可以点击 “进入课堂详情”去邀请您的学生、设置课堂内容了~"})}}),(0,P.L9)(["教学课堂","新建课堂"]),h.Z.info({title:"课堂创建成功",width:600,className:"custom-modal-divider ".concat(Z.modal),icon:null,okText:"进入课堂详情",content:(0,I.jsxs)("div",{className:Z.content,children:[(0,I.jsxs)("p",{children:["您的课堂《",n,"》已经创建成功,可复制下方的邀请码,邀请老师、助教和学生加入课堂进行教学和学习。"]}),(0,I.jsx)("p",{children:"被邀请用户可以在加入课堂弹窗中输入邀请码加入课堂中。"}),(0,I.jsxs)("div",{className:Z.box,children:[(0,I.jsx)("span",{children:"邀请码:"}),(0,I.jsx)("div",{children:null===(R=O)||void 0===R?void 0:R.invite_code}),(0,I.jsx)(E.CopyToClipboard,{text:null===(F=O)||void 0===F?void 0:F.invite_code,onCopy:function(){return f.ZP.success("复制成功")},children:(0,I.jsx)(x.ZP,{type:"primary",children:"复制邀请码"})})]})]}),onOk:function(){window.scrollTo(0,0),O&&p.history.push(O.first_category_url),"0"===localStorage.getItem("Noviceguide")||L({type:"shixunHomeworks/setActionTabs",payload:{key:"底部弹窗",type:11,text:(0,I.jsx)("div",{children:"接下来,咱们给教学课堂添加一个“课程实验”~点击“选用实践项目”,选择一个作业,然后点击“立即发布”就给实践课堂添加了一个课程实验。"})}})}}));case 21:O&&window.localStorage.setItem("yslGuideone","true");case 22:case"end":return e.stop()}}),e)})));return function(o){return e.apply(this,arguments)}}(),ye=([{label:"公告栏",value:"announcement"},{label:"实训作业",value:"shixun_homework"},{label:"普通作业",value:"common_homework"},(null===(o=F.userInfo)||void 0===o?void 0:o.main_site)&&{label:"分组作业",value:"group_homework"},{label:"试卷",value:"exercise"},{label:"问卷",value:"poll"},{label:"教学资料",value:"attachment"},{label:"视频直播",value:"video"},{label:"讨论",value:"board"},{label:"分班",value:"course_group"},{label:"统计",value:"statistics"},{label:"签到",value:"attendance"},(null===(t=F.userInfo)||void 0===t?void 0:t.admin)&&{label:"模板管理",value:"template"}].filter((function(e){var o;return!!e&&(null==H||null===(o=H.setting)||void 0===o||!o.is_local||"视频直播"!==e.label)})),{display:"block",height:"30px",lineHeight:"30px"});return(0,I.jsx)("div",{className:Z.wrap,children:(0,I.jsxs)("div",{className:Z.bg,children:[(0,I.jsxs)("div",{className:Z.crumbs,children:[(0,I.jsx)("span",{children:"教学课堂"}),(0,I.jsx)("i",{className:"iconfont icon-zhankai1"}),(0,I.jsxs)("b",{children:[te?"编辑":"创建","课堂"]})]}),(0,I.jsxs)("div",{className:Z.titleWrap,children:[(0,I.jsxs)("span",{children:[te?"编辑":"创建","课堂"]}),(0,I.jsx)("b",{onClick:xe,children:"返回"})]}),(0,I.jsxs)(m.Z,{form:Q,className:Z.formWrap,scrollToFirstError:!0,colon:!1,layout:"vertical",initialValues:{allowed_quit:!1,classModule:["shixun_homework","common_homework","group_homework","exercise","attachment","course_group","video","attendance","statistics"]},onValuesChange:function(e,o){$(a()({},Q.getFieldsValue()))},onFinish:ve,children:[(0,I.jsx)("div",{className:Z.fieldWrap,style:{marginTop:28},children:(0,I.jsxs)("div",{className:Z.flexRow,children:[(0,I.jsx)(m.Z.Item,{className:Z.width655,name:"course",label:"课程名称",rules:[{required:!0,message:"不能为空"}],children:(0,I.jsx)(v.Z,{className:Z.courseField,onSearch:function(e){Q.setFieldsValue({classroom:e}),function(e){L({type:"newClassroom/getSearchCourseList",payload:{search:e}})}(e)},onSelect:function(e){e&&Q.setFieldsValue({classroom:e})},options:W.searchCourseList.map((function(e){return{value:e.name}})),children:(0,I.jsx)(y.Z,{placeholder:"例如:数据结构",maxLength:60,addonAfter:"".concat((null===(n=X.course)||void 0===n?void 0:n.length)||0,"/60")})})}),(0,I.jsxs)("div",{className:Z.courseExample,children:[(0,I.jsxs)("div",{className:"".concat(Z.flexRow," ").concat(Z.flexAlignCenter),children:[(0,I.jsx)("img",{src:S,width:12}),(0,I.jsx)("span",{className:"".concat(Z.color999," font12 ml5"),children:"正确示例:数据结构"})]}),(0,I.jsxs)("div",{className:"".concat(Z.flexRow," ").concat(Z.flexAlignCenter),children:[(0,I.jsx)("img",{src:O,width:12}),(0,I.jsxs)("span",{className:"".concat(Z.color999," font12 ml5"),children:["错误示例:数据结构",j()().format("YYYY"),"春"]})]})]})]})}),(0,I.jsx)("div",{className:Z.fieldWrap,children:(0,I.jsxs)("div",{className:Z.flexRow,children:[(0,I.jsx)(m.Z.Item,{className:Z.width655,name:"classroom",label:"课堂名称",rules:[{required:!0,message:"不能为空"}],children:(0,I.jsx)(y.Z,{placeholder:"例如:数据结构2016秋季班级",maxLength:60,addonAfter:"".concat((null===(r=Q.getFieldValue("classroom"))||void 0===r?void 0:r.length)||0,"/60")})}),(0,I.jsxs)("div",{className:Z.courseExample,children:[(0,I.jsxs)("div",{className:"".concat(Z.flexRow," ").concat(Z.flexAlignCenter),children:[(0,I.jsx)("img",{src:S,width:12}),(0,I.jsxs)("span",{className:"".concat(Z.color999," font12 ml5"),children:["正确示例:数据结构",j()().format("YYYY"),"春季班级"]})]}),(0,I.jsxs)("div",{className:"".concat(Z.flexRow," ").concat(Z.flexAlignCenter),children:[(0,I.jsx)("img",{src:O,width:12}),(0,I.jsxs)("span",{className:"".concat(Z.color999," font12 ml5"),children:["错误示例:",j()().format("YYYY"),"春季班级数据结构"]})]})]})]})}),(0,I.jsx)("div",{className:Z.fieldWrap,children:(0,I.jsxs)("div",{className:Z.flexColumn,children:[(0,I.jsx)(m.Z.Item,{className:Z.period,name:"period",label:"总学时",rules:[{pattern:new RegExp(/^[0-9]+([.]{1}[0-9]+){0,1}$/,"g"),message:"必须是数值"}],children:(0,I.jsx)(y.Z,{placeholder:"例如:30",maxLength:5,addonAfter:"".concat((null===(l=X.period)||void 0===l?void 0:l.toString().length)||0,"/5")})}),(0,I.jsx)(m.Z.Item,{className:Z.credit,name:"credit",label:"学分",rules:[{pattern:new RegExp(/^[0-9]+([.]{1}[0-9]+){0,1}$/,"g"),message:"必须是数值"}],children:(0,I.jsx)(y.Z,{placeholder:"例如:3",maxLength:5,addonAfter:"".concat((null===(i=X.credit)||void 0===i?void 0:i.toString().length)||0,"/5")})}),(0,I.jsx)(m.Z.Item,{className:Z.endTime,name:"endTime",label:"结束时间",children:(0,I.jsx)(_.default,{showToday:!1,placeholder:"请选择结束时间",locale:C.Z,format:"YYYY-MM-DD",disabledDate:Y})})]})}),(0,I.jsx)("div",{className:Z.fieldWrap,children:(0,I.jsx)("div",{className:Z.flexRow,children:(0,I.jsx)(m.Z.Item,{className:Z.courseFormItem,name:"classModule",label:"课堂模块",children:(0,I.jsx)(g.Z.Group,{children:te?null==ae||null===(w=ae.course_modules)||void 0===w?void 0:w.map((function(e,o){return(0,I.jsx)(g.Z,{value:e.module_type,style:{fontSize:"14px"},children:e.module_name},e.module_type)})):null==de||null===(T=de.course_modules)||void 0===T?void 0:T.map((function(e,o){return(0,I.jsx)(g.Z,{value:e.module_type,style:{fontSize:"14px"},children:e.module_name},e.module_type)}))})})})}),(0,I.jsxs)("div",{className:Z.fieldWrap,children:[(0,I.jsx)(m.Z.Item,{style:{marginBottom:0},name:"publicClassroom",label:"公开设置",valuePropName:"checked",children:(0,I.jsxs)(g.Z,{children:["公开课堂",(0,I.jsx)("span",{style:{color:"#5f6367"},children:"(选中后所有用户均可进入并浏览本课堂,否则仅本课堂成员可进入)"})]})}),!!X.publicClassroom&&(0,I.jsx)(m.Z.Item,{style:{marginBottom:0},className:"ml20",name:"allow_copy",valuePropName:"checked",children:(0,I.jsxs)(g.Z,{children:["允许非本课堂教师复制课堂",(0,I.jsx)("span",{style:{color:"#5f6367"},children:"(选中后,平台上任何教师都可以复制本课堂)"})]})}),(0,I.jsx)(m.Z.Item,{style:{marginBottom:0},name:"allowed_quit",valuePropName:"checked",children:(0,I.jsxs)(g.Z,{children:["允许退出课堂",(0,I.jsx)("span",{style:{color:"#5f6367"},children:"(选中后,学生可以主动退出课堂,否则学生无法主动退出。)"})]})}),(0,I.jsx)(m.Z.Item,{name:"is_show_conceal",valuePropName:"checked",children:(0,I.jsxs)(g.Z,{children:["允许学生查看手机号和邮箱地址",(0,I.jsx)("span",{style:{color:"#5f6367"},children:"(选中后,学生可以查看课堂内其他成员完整的手机号和邮箱地址,否则对手机号和邮箱进行脱敏处理)"})]})})]}),te&&(0,I.jsx)("div",{className:Z.fieldWrap,children:(0,I.jsx)(m.Z.Item,{className:Z.courseFormItem,name:"set",label:"邀请码设置",children:(0,I.jsxs)(b.ZP.Group,{children:[(0,I.jsxs)(b.ZP,{style:ye,value:0,children:["对所有角色启用",(0,I.jsx)("span",{style:{color:"#5f6367"},children:"(选中后用户可以以任意身份加入课堂)"})]}),0===X.set&&(0,I.jsx)(m.Z.Item,{name:"student_join_approve",className:Z.checkUsersFromCode,valuePropName:"checked",children:(0,I.jsxs)(g.Z,{children:["使用邀请码加入课堂的所有角色均需要审核",(0,I.jsx)("span",{style:{color:"#5f6367"},children:"(选中后,申请加入的学生、助教、老师均需要通过审核才能加入课堂,否则仅教师和助教加入时需要审核)"})]})}),(0,I.jsxs)(b.ZP,{style:ye,value:2,children:["对学生停用",(0,I.jsx)("span",{style:{color:"#5f6367"},children:"(选中后用户以学生身份加入课堂时,邀请码无效)"})]}),(0,I.jsxs)(b.ZP,{style:ye,value:1,children:["对所有角色停用",(0,I.jsx)("span",{style:{color:"#5f6367"},children:"(选中后本邀请码失效,用户不能主动加入课堂)"})]})]})})}),(0,I.jsxs)("div",{className:Z.fieldWrap,style:{marginTop:20},children:[(0,I.jsx)("div",{className:"".concat(Z.flexRow," ").concat(Z.flexAlignCenter," ").concat(Z.school),children:(0,I.jsx)(m.Z.Item,{className:Z.courseFormItem,name:"school",label:"课堂所属单位",rules:[{required:!0,message:"不能为空"}],children:(0,I.jsx)(v.Z,{maxTagTextLength:60,className:Z.w700,placeholder:"请输入并选择课本堂的所属单位",onSearch:he,onChange:he,options:null===(M=W.schoolList)||void 0===M?void 0:M.map((function(e){return{value:e}}))})})}),X.school&&!(null!==(R=W.schoolList)&&void 0!==R&&R.find((function(e){return e===X.school})))&&(0,I.jsxs)("div",{className:Z.schoolHintWrap,children:[(0,I.jsxs)("span",{className:Z.colorCDCDCD,children:["未找到包含“",X.school,"”的高校,"]}),(0,I.jsx)("span",{className:"".concat(Z.color0152d9," current"),onClick:function(){L({type:"newClassroom/setActionTabs",payload:{key:"NewClassroom-AppplySchool"}})},children:"申请新增"})]})]}),(0,I.jsxs)("div",{className:Z.backgroundFa,children:[(0,I.jsx)("div",{className:Z.bBtn,onClick:xe,children:"取消"}),(0,I.jsx)(x.ZP,{className:"".concat(6===U.actionTabs.type?Z.classromediv:""),onClick:function(){return Q.submit()},loading:V["newClassroom/submitCourses"],children:"提交"})]})]}),(0,I.jsx)(N.Z,{schoolName:X.school})]})})}))},8378:function(e,o){"use strict";o.Z=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}})},10527:function(e,o,t){"use strict";var n=t(25569).default;o.Z=void 0;var s=n(t(65835)),r=n(t(6432));const a={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},s.default),timePickerLocale:Object.assign({},r.default)};a.lang.ok="确定";var l=a;o.Z=l},6432:function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var t={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};o.default=t},25769:function(e,o,t){"use strict";var n=t(98040),s={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,o){var t,r,a,l,c,i,d=!1;o||(o={}),t=o.debug||!1;try{if(a=n(),l=document.createRange(),c=document.getSelection(),(i=document.createElement("span")).textContent=e,i.ariaHidden="true",i.style.all="unset",i.style.position="fixed",i.style.top=0,i.style.clip="rect(0, 0, 0, 0)",i.style.whiteSpace="pre",i.style.webkitUserSelect="text",i.style.MozUserSelect="text",i.style.msUserSelect="text",i.style.userSelect="text",i.addEventListener("copy",(function(n){if(n.stopPropagation(),o.format)if(n.preventDefault(),void 0===n.clipboardData){t&&console.warn("unable to use e.clipboardData"),t&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var r=s[o.format]||s.default;window.clipboardData.setData(r,e)}else n.clipboardData.clearData(),n.clipboardData.setData(o.format,e);o.onCopy&&(n.preventDefault(),o.onCopy(n.clipboardData))})),document.body.appendChild(i),l.selectNodeContents(i),c.addRange(l),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");d=!0}catch(n){t&&console.error("unable to copy using execCommand: ",n),t&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(o.format||"text",e),o.onCopy&&o.onCopy(window.clipboardData),d=!0}catch(n){t&&console.error("unable to copy using clipboardData: ",n),t&&console.error("falling back to prompt"),r=function(e){var o=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,o)}("message"in o?o.message:"Copy to clipboard: #{key}, Enter"),window.prompt(r,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(l):c.removeAllRanges()),i&&document.body.removeChild(i),a()}return d}},65835:function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0;var t={locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH时mm分ss秒",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"};o.default=t},83145:function(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.CopyToClipboard=void 0;var n=r(t(59301)),s=r(t(25769));function r(e){return e&&e.__esModule?e:{default:e}}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function l(e,o){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);o&&(n=n.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),t.push.apply(t,n)}return t}function c(e,o){if(null==e)return{};var t,n,s=function(e,o){if(null==e)return{};var t,n,s={},r=Object.keys(e);for(n=0;n<r.length;n++)t=r[n],o.indexOf(t)>=0||(s[t]=e[t]);return s}(e,o);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(n=0;n<r.length;n++)t=r[n],o.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(s[t]=e[t])}return s}function i(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}function d(e,o){for(var t=0;t<o.length;t++){var n=o[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,o){return!o||"object"!==a(o)&&"function"!=typeof o?m(e):o}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e,o){return f=Object.setPrototypeOf||function(e,o){return e.__proto__=o,e},f(e,o)}function h(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}var x=function(e){function o(){var e,t;i(this,o);for(var r=arguments.length,a=new Array(r),l=0;l<r;l++)a[l]=arguments[l];return h(m(t=u(this,(e=p(o)).call.apply(e,[this].concat(a)))),"onClick",(function(e){var o=t.props,r=o.text,a=o.onCopy,l=o.children,c=o.options,i=n.default.Children.only(l),d=(0,s.default)(r,c);a&&a(r,d),i&&i.props&&"function"==typeof i.props.onClick&&i.props.onClick(e)})),t}var t,r,a;return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(o&&o.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),o&&f(e,o)}(o,e),t=o,r=[{key:"render",value:function(){var e=this.props,o=(e.text,e.onCopy,e.options,e.children),t=c(e,["text","onCopy","options","children"]),s=n.default.Children.only(o);return n.default.cloneElement(s,function(e){for(var o=1;o<arguments.length;o++){var t=null!=arguments[o]?arguments[o]:{};o%2?l(t,!0).forEach((function(o){h(e,o,t[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):l(t).forEach((function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(t,o))}))}return e}({},t,{onClick:this.onClick}))}}],r&&d(t.prototype,r),a&&d(t,a),o}(n.default.PureComponent);o.CopyToClipboard=x,h(x,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(e,o,t){"use strict";var n=t(83145).CopyToClipboard;n.CopyToClipboard=n,e.exports=n},98040:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var o=document.activeElement,t=[],n=0;n<e.rangeCount;n++)t.push(e.getRangeAt(n));switch(o.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":o.blur();break;default:o=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||t.forEach((function(o){e.addRange(o)})),o&&o.focus()}}},25569:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}}]); |