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.
NewEduCoderBuild/p__Paths__New__index.async.js

1 line
21 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.

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[28982],{49747:function(e,n,s){s.r(n),s.d(n,{default:function(){return ve}});var a=s(37205),i=s.n(a),l=s(85573),t=s.n(l),r=s(82242),o=s.n(r),c=s(7557),d=s.n(c),u=s(41498),h=s.n(u),p=s(79800),m=s.n(p),_=s(39647),x=s.n(_),v=s(59301),f=s(96707),g=s(98135),j=s(98228),b=s(78241),C=s(8591),y=s(88522),w=s(95237),Z=s(43604),N=s(78673),k=s(5112),S=s(24905),T=s(46651),W=s(3113),P=s(26683),E={bg:"bg____raBL",wrap:"wrap___HeK2P",crumbs:"crumbs___bamBY",titleWrap:"titleWrap___UpC0c",flexRow:"flexRow___WjoyK",flexJustifyCenter:"flexJustifyCenter___V6ndk",flexAlignEnd:"flexAlignEnd___So64w",flexAlignCenter:"flexAlignCenter___WWRXs",flexColumn:"flexColumn___b0Fz8",formWrap:"formWrap___Bmhgz",fieldWrap:"fieldWrap___pR4UB",mdWrap:"mdWrap___FPskk",backgroundFa:"backgroundFa___ghlCO",aBtn:"aBtn___M7dWu",bBtn:"bBtn___XycZO",cascaderWrap:"cascaderWrap___CPNAV",listItem:"listItem____eV5T",right:"right___x8wr7",one:"one___wdYdi",schoolHintWrap:"schoolHintWrap___AWsQj",colorCDCDCD:"colorCDCDCD___xguLh",color0152d9:"color0152d9___MEYYd",spanText:"spanText___Srs_u"},I=s(76279),D=s(68339),F=s(51836),R=s(64165),V="cascaderContainer___uz26h",A="valueWrap___zTHXb",B="valueItem___vBNoA",L="placeholder___bJTkn",z="modalWrap___uhROO",O="left___oZrbl",q="right___y9QjL",Y="disabled___LVx0f",H="emptyWrap___KG5pK",M=s(14834),K=s(88845),J=s(37712),U=["sub_discipline"],X=["sub_disciplines"],G=(0,v.createRef)(),Q=function(e){var n=e.dataSource,s=e.placeholder,a=e.defaultValue,l=e.onChange,r=(0,v.useState)(!1),c=m()(r,2),d=c[0],u=c[1],h=(0,v.useState)({data:[],objData:{},ids:[]}),p=m()(h,2),_=p[0],f=p[1],g=(0,v.useState)({}),j=m()(g,2),b=j[0],C=j[1];(0,v.useEffect)((function(){window.addEventListener("click",(function(){u(!1),C({})}))}),[]),(0,v.useEffect)((function(){if(a){var e={},n=[];a.forEach((function(s){var a=s.sub_discipline,i=x()(s,U);a&&(e[a.id]=o()(o()({},i),{},{sub_disciplines:[a]}),n.push(a.id))})),f({ids:n,data:Object.values(e),objData:e}),l(n)}}),[a]);var y=function(){return(0,J.jsx)("div",{className:H,children:(0,J.jsx)(R.Z,{image:R.Z.PRESENTED_IMAGE_SIMPLE})})},w=45;return G&&G.current&&G.current.clientHeight>45&&(w=G.current.clientHeight+5),(0,J.jsxs)("div",{className:V,onClick:function(e){e.stopPropagation()},children:[(0,J.jsxs)("div",{ref:G,className:A,onClick:function(){return u(!d)},children:[0===_.data.length&&(0,J.jsx)("span",{className:L,children:s||"请选择方向&课程"}),_.data.map((function(e){return(0,J.jsxs)("div",{className:B,children:[(0,J.jsx)("span",{children:e.name}),(0,J.jsx)("span",{children:"/"}),(0,J.jsx)("span",{children:e.sub_disciplines[0].name}),(0,J.jsx)("span",{onClick:function(n){n.stopPropagation(),n.preventDefault(),function(e){var n=_.objData;delete n[e];var s=_.ids.filter((function(n){return n!==e}));f({data:Object.values(n),objData:n,ids:s}),l(s)}(e.sub_disciplines[0].id)},children:(0,J.jsx)(M.Z,{})})]},e.id)}))]}),d&&(0,J.jsxs)("div",{className:z,style:{top:w},children:[(0,J.jsxs)("div",{className:O,children:[0===n.length&&y(),n.length>0&&n.map((function(e){return(0,J.jsxs)("div",{onClick:function(){C(e)},children:[(0,J.jsx)("span",{children:e.name}),(0,J.jsx)("span",{children:(0,J.jsx)(K.Z,{})})]},e.id)}))]}),b.sub_disciplines&&(0,J.jsxs)("div",{className:q,children:[0===b.sub_disciplines.length&&y(),b.sub_disciplines.length>0&&b.sub_disciplines.map((function(e){var n=_.ids.includes(e.id);return(0,J.jsx)("div",{className:n?Y:"",onClick:function(){!function(e){if(_.ids.includes(e.id))return!1;b.sub_disciplines;var n=x()(b,X),s=o()(o()({},_.objData),{},t()({},e.id,o()(o()({},n),{},{sub_disciplines:[e]})));f({ids:[].concat(i()(_.ids),[e.id]),data:Object.values(s),objData:s}),l([].concat(i()(_.ids),[e.id]))}(e),u(!1)},children:e.name},e.id)}))]})]})]})},$=s(43418),ee=s(19842),ne=s(99232),se=s.n(ne),ae=s(2720),ie=s(97650),le=s(50970),te="flexRow___qY1Ro",re="flexColumn___xTKsc",oe="formWrap___OJ1NZ",ce="example___XZnZv",de="footerWrap___DSZCv",ue=["newCourse","globalSetting","loading","dispatch","schoolName","onSuccess"],he=function(e,n){return n.some((function(n){return n.label.toLowerCase().indexOf(e.toLowerCase())>-1}))},pe=g.Z.TextArea,me=(0,f.connect)((function(e){var n=e.newCourse,s=e.loading;return{newCourse:n,globalSetting:e.globalSetting,loading:s.effects}}))((function(e){var n=e.newCourse,s=(e.globalSetting,e.loading),a=e.dispatch,i=e.schoolName,l=e.onSuccess,t=void 0===l?function(){}:l,r=(x()(e,ue),b.Z.useForm()),o=m()(r,1)[0];(0,v.useEffect)((function(){o.setFieldsValue({name:i})}),[i]);var c=function(){var e=h()(d()().mark((function e(n){var s,i,l,r,o,c,u;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=(s=n||{}).name,l=s.city,r=void 0===l?[]:l,o=s.address,c=s.remarks,e.next=3,a({type:"newCourse/appplySchool",payload:{name:i,province:r[0],city:r[1],address:o,remarks:c}});case 3:u=e.sent,a({type:"newCourse/setActionTabs",payload:{}}),u&&(C.ZP.success("新增发布单位成功!"),t(i));case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,J.jsx)($.Z,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:"NewCourse-AppplySchool"===n.actionTabs.key,title:"申请发布单位",width:"600px",footer:null,children:(0,J.jsxs)(b.Z,{className:oe,form:o,labelCol:{span:4},wrapperCol:{span:20},onFinish:c,children:[(0,J.jsx)(b.Z.Item,{label:"发布单位:",name:"name",rules:[{required:!0,message:"请输入学校或工作单位"}],children:(0,J.jsx)(g.Z,{placeholder:"请输入发布单位"})}),(0,J.jsxs)("div",{className:"".concat(te," ").concat(ce),children:[(0,J.jsx)("div",{children:"示例:"}),(0,J.jsxs)("div",{className:re,children:[(0,J.jsxs)("div",{children:[(0,J.jsx)(ae.Z,{style:{color:"rgb(82, 196, 26)"}}),(0,J.jsx)("span",{className:"font14 ml5",children:"正确示例:数据结构"})]}),(0,J.jsxs)("div",{children:[(0,J.jsx)(ie.Z,{style:{color:"red"}}),(0,J.jsxs)("span",{className:"font14 ml5",children:["错误示例:数据结构",se()().format("YYYY"),"春"]})]})]})]}),(0,J.jsx)(b.Z.Item,{label:"地区:",name:"city",children:(0,J.jsx)(ee.Z,{allowClear:!0,size:"middle",options:le.P,placeholder:"请选择所在地",showSearch:{matchInputWidth:!0,filter:he}})}),(0,J.jsx)(b.Z.Item,{label:"详细地址:",name:"address",children:(0,J.jsx)(g.Z,{placeholder:"请填写完整的地址信息"})}),(0,J.jsx)(b.Z.Item,{label:"说明:",name:"remarks",children:(0,J.jsx)(pe,{placeholder:"再次说明特别情况(选填)"})}),(0,J.jsx)("div",{className:de,children:(0,J.jsxs)(b.Z.Item,{children:[(0,J.jsx)(W.ZP,{className:"mr5",size:"middle",onClick:function(){a({type:"newCourse/setActionTabs",payload:{}})},children:"取消"}),(0,J.jsx)(W.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:s["newCourse/appplySchool"],children:"保存"})]})})]})})})),_e=["user","newCourse","globalSetting","loading","dispatch"],xe=g.Z.TextArea,ve=(j.Z.TreeNode,(0,f.connect)((function(e){var n=e.user,s=e.newCourse,a=e.loading;return{user:n,newCourse:s,globalSetting:e.globalSetting,loading:a.effects}}))((function(e){e.user,e.newCourse;var n,s,a=e.globalSetting,l=e.loading,r=e.dispatch,c=(x()(e,_e),(0,f.useSearchParams)()),u=m()(c,1)[0],p=(0,f.useParams)(),_=b.Z.useForm(),j=m()(_,1)[0],R=(0,v.useState)({}),V=m()(R,2),A=V[0],B=V[1],L=(0,v.useState)(),z=m()(L,2),O=z[0],q=z[1],Y=(0,v.useRef)(),H=(0,v.useState)(!0),M=m()(H,2),K=M[0],U=M[1],X=(0,v.useState)(!1),G=m()(X,2),$=G[0],ee=G[1],ne=(0,v.useState)(),se=m()(ne,2),ae=se[0],ie=se[1],le=(0,v.useState)(),te=m()(le,2),re=te[0],oe=te[1],ce=(0,v.useState)(!0),de=m()(ce,2),ue=de[0],he=de[1],pe=(0,v.useState)(!1),ve=m()(pe,2),fe=ve[0],ge=ve[1],je=(0,v.useState)(!1),be=m()(je,2),Ce=be[0],ye=be[1],we=(0,v.useState)(-1),Ze=m()(we,2),Ne=Ze[0],ke=Ze[1],Se=(0,v.useState)(!0),Te=m()(Se,2),We=Te[0],Pe=Te[1],Ee=(0,v.useState)([]),Ie=m()(Ee,2),De=Ie[0],Fe=Ie[1],Re=(0,v.useState)([]),Ve=m()(Re,2),Ae=Ve[0],Be=Ve[1],Le=(0,v.useState)(!1),ze=m()(Le,2),Oe=ze[0],qe=ze[1],Ye=(0,v.useState)(!1),He=m()(Ye,2),Me=He[0],Ke=He[1],Je=(0,v.useState)([]),Ue=m()(Je,2),Xe=Ue[0],Ge=Ue[1],Qe=(0,v.useState)([]),$e=m()(Qe,2),en=$e[0],nn=$e[1];(0,v.useEffect)((function(){var e;sn(),an(),Y.current=p.pathId,q(!!Y.current),(0,I.Dk)(null==a||null===(e=a.setting)||void 0===e?void 0:e.name),j.setFieldsValue({learning_notes_title:"课程须知"}),Y.current&&tn()}),[]);var sn=function(){var e=h()(d()().mark((function e(){var n;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,F.ZP)("/api/disciplines.json",{method:"get",params:{source:"subject"}});case 2:n=e.sent,Ge(n.disciplines);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),an=function(){var e=h()(d()().mark((function e(){var n;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Pe(!0),e.next=3,r({type:"newCourse/getSchoolOption"});case 3:n=e.sent,Pe(!1),Fe(null==n?void 0:n.schools),Be(null==n?void 0:n.schools);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ln=function(){u.get("username")?f.history.push("/users/".concat(u.get("username"),"/paths")):f.history.push(O?"/paths/".concat(Y.current):"/paths")},tn=function(){var e=h()(d()().mark((function e(){var n,s,a,i,l,t,o,c,u,h,p,m,_,x;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"newCourse/getEditCourseData",payload:{id:Y.current}});case 2:(n=e.sent)&&(c={name:n.name,name_en:n.name_en,intro:n.description,content:null==n||null===(s=n.toast)||void 0===s?void 0:s.content,notice:n.learning_notes,school_id:null==n?void 0:n.school,learning_notes_title:n.learning_notes_title||"课程须知"},n.disciplines&&n.disciplines.length>0&&nn(n.disciplines),j.setFieldsValue(c),ye(null==n||null===(a=n.toast)||void 0===a?void 0:a.is_open),ke(null==n||null===(i=n.toast)||void 0===i?void 0:i.open_num),U(null==n?void 0:n.cust_seq),ee(null==n?void 0:n.show_spoc),ge(null==n?void 0:n.show_history),Ke(null==n?void 0:n.show_course_section),qe(null==n?void 0:n.allow_download),he(null==n?void 0:n.show_tag),(null==n||null===(l=n.attachments)||void 0===l?void 0:l.length)>0&&ie([{uid:null==n||null===(u=n.attachments)||void 0===u||null===(u=u[0])||void 0===u?void 0:u.id,name:null==n||null===(h=n.attachments)||void 0===h||null===(h=h[0])||void 0===h?void 0:h.title,response:{id:null==n||null===(p=n.attachments)||void 0===p||null===(p=p[0])||void 0===p?void 0:p.id}}]),(null==n||null===(t=n.attachments_b)||void 0===t?void 0:t.length)>0&&oe([{uid:null==n||null===(m=n.attachments_b)||void 0===m||null===(m=m[0])||void 0===m?void 0:m.id,name:null==n||null===(_=n.attachments_b)||void 0===_||null===(_=_[0])||void 0===_?void 0:_.title,response:{id:null==n||null===(x=n.attachments_b)||void 0===x||null===(x=x[0])||void 0===x?void 0:x.id}}]),B({name:n.name,intro:n.description,notice:n.learning_notes,content:null==n||null===(o=n.toast)||void 0===o?void 0:o.content}));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),rn=function(){var e=h()(d()().mark((function e(n){var s,a,i,l,t,c,u,h,p,m,_,x,v,g,j;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l=(i=n||{}).name,t=i.intro,c=i.notice,u=i.name_en,h=i.learning_notes_title,p=i.sub_discipline_ids,m=i.school_id,_=O?"newCourse/editCourse":"newCourse/submitCourse",x=!1,v=null,De.map((function(e){m===e.name&&(x=!0,v=e.id)})),x){e.next=7;break}return e.abrupt("return",C.ZP.error("未找到包含'".concat(m,"'的发布单位")));case 7:return g={id:Y.current,name:l,name_en:u,description:t,learning_notes:c,cust_seq:K,show_spoc:$,school_id:v,show_tag:ue,show_history:fe,show_course_section:Me,allow_download:Oe,learning_notes_title:h,attachment_ids:[null==ae||null===(s=ae[0])||void 0===s||null===(s=s.response)||void 0===s?void 0:s.id],attachment_ids_b:[null==re||null===(a=re[0])||void 0===a||null===(a=a.response)||void 0===a?void 0:a.id],sub_discipline_ids:p,subject_toast_attributes:{is_open:Ce,open_num:Ne,content:n.content}},e.next=10,r({type:_,payload:o()({},g)});case 10:(null==(j=e.sent)?void 0:j.subject_id)&&f.history.push("/paths/".concat(j.subject_id));case 12:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,J.jsx)("div",{className:E.wrap,children:(0,J.jsxs)("div",{className:E.bg,children:[(0,J.jsxs)("div",{className:E.crumbs,children:[(0,J.jsx)("span",{children:"实践课程"}),(0,J.jsx)("i",{className:"iconfont icon-zhankai1"}),(0,J.jsxs)("b",{children:[O?"编辑":"创建","实践课程"]})]}),(0,J.jsxs)("div",{className:E.titleWrap,children:[(0,J.jsxs)("span",{children:[O?"编辑":"创建","实践课程"]}),(0,J.jsx)("b",{onClick:ln,children:"返回"})]}),(0,J.jsxs)(b.Z,{form:j,className:E.formWrap,scrollToFirstError:!0,layout:"vertical",colon:!1,onValuesChange:function(){var e=j.getFieldsValue();"school_id"in e&&Be(De.filter((function(n){return n.name.includes(e.school_id)}))),B(o()({},e))},onFinish:rn,children:[(0,J.jsxs)("div",{className:E.fieldWrap,children:[(0,J.jsx)(b.Z.Item,{extra:(0,J.jsx)("div",{className:"tr c-grey-333 font12 mt3",children:"".concat((null===(n=A.name)||void 0===n?void 0:n.length)||0,"/60")}),name:"name",label:"实践课程名称",rules:[{required:!0,message:"请输入实践课程名称"}],children:(0,J.jsx)(xe,{maxLength:60,placeholder:"例如:大学计算机基础 —— 计算思维"})}),(0,J.jsx)(b.Z.Item,t()(t()(t()(t()({style:{marginTop:"-24px"},name:"name_en",label:"英文课程名称"},"style",{marginTop:"-24px"}),"extra",(0,J.jsx)("div",{className:"tr c-grey-333 font12 mt3",children:"".concat((null===(s=A.name_en)||void 0===s?void 0:s.length)||0,"/200")})),"rules",[{message:"请输入英文课程名称"}]),"children",(0,J.jsx)(xe,{maxLength:200,placeholder:"College Computer Fundamentals - Computational Thinking"}))),(0,J.jsx)(b.Z.Item,{name:"sub_discipline_ids",label:"方向&课程",style:{marginTop:"-24px"},children:(0,J.jsx)(Q,{defaultValue:en,dataSource:Xe,onChange:function(e){return j.setFieldsValue({sub_discipline_ids:e})}})}),(0,J.jsx)(b.Z.Item,{label:"发布单位",name:"school_id",wrapperCol:{span:24},extra:!We&&A.school_id&&!(null!=De&&De.find((function(e){return e.name===A.school_id})))&&(0,J.jsxs)("div",{className:E.schoolHintWrap,children:[(0,J.jsxs)("span",{className:E.colorCDCDCD,children:["未找到包含“",A.school_id,"”的发布单位,"]}),(0,J.jsx)("span",{className:"".concat(E.color0152d9),onClick:function(){r({type:"newCourse/setActionTabs",payload:{key:"NewCourse-AppplySchool"}})},children:"申请新增"})]}),rules:[{required:!0,message:"请输入发布单位"}],children:(0,J.jsx)(y.Z,{placeholder:"请输入发布单位",showSearch:!0,size:"large",options:null==Ae?void 0:Ae.map((function(e){return{value:e.name}}))})})]}),(0,J.jsx)("div",{className:E.mdWrap,children:(0,J.jsx)(b.Z.Item,{name:"intro",label:"简介",rules:[{required:!0,message:"请输入实践课程的简介"},{whitespace:!0,message:"请输入实践课程的简介"},{max:65e3,message:"实践课程的简介最大限制65000个字符"}],children:(0,J.jsx)(P.Z,{watch:!0,defaultValue:A.intro})})}),(0,J.jsxs)("div",{className:E.mdWrap,children:[(0,J.jsxs)(w.Z,{align:"top",className:"mb10 mt10",children:[(0,J.jsx)(Z.Z,{children:(0,J.jsx)("span",{className:"c-red mr10",children:"*"})}),(0,J.jsx)(Z.Z,{flex:"1",children:(0,J.jsx)(b.Z.Item,{name:"learning_notes_title",label:"",style:{marginBottom:0},rules:[{required:!0,message:"请输课程须知标题"},{max:15,message:"请输课程须知标题最大限制15个字符"}],children:(0,J.jsx)(g.Z,{style:{height:38},placeholder:"请输入"})})})]}),(0,J.jsx)(b.Z.Item,{name:"notice",label:"",rules:[{required:!0,message:"请输入实践课程的课程须知"},{whitespace:!0,message:"请输入实践课程的课程须知"},{max:65e3,message:"实践课程的课程须知最大限制65000个字符"}],children:(0,J.jsx)(P.Z,{insertTemp:"1",watch:!0,defaultValue:A.notice})})]}),(0,J.jsxs)("div",{className:E.mdWrap,children:[(0,J.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,J.jsx)(N.Z,{checked:Ce,style:{marginRight:11,minWidth:32},onChange:function(e){ye(e)}}),(0,J.jsxs)("span",{className:E.spanText,children:["课程公告",(0,J.jsx)("span",{children:"(支持老师自定义公告内容,以弹框形式提醒课程的学习用户)"})]})]}),Ce&&(0,J.jsx)(b.Z.Item,{style:{marginTop:10},name:"content",label:"",rules:[{required:!0,message:"请输入实践课程的课程提示"},{max:1e4,message:"实践课程的课程提示最大限制10000个字符"}],children:(0,J.jsx)(P.Z,{insertTemp:"1",watch:!0,defaultValue:A.content})}),Ce&&(0,J.jsxs)("div",{style:{marginTop:20,borderBottom:"1px solid #DBDCE0",paddingBottom:7},children:[(0,J.jsx)("label",{style:{color:"#000",marginRight:10},children:"提示次数"}),(0,J.jsxs)(k.ZP.Group,{value:Ne,onChange:function(e){ke(e.target.value)},children:[(0,J.jsx)(k.ZP,{className:"c-black",value:-1,children:"每次"}),(0,J.jsx)(k.ZP,{className:"ml20 c-black",value:1,children:"一次"})]})]})]}),(0,J.jsxs)("div",{className:E.mdWrap,style:{marginTop:25},children:[(0,J.jsx)(S.Z,{checked:K,onChange:function(e){U(null==e?void 0:e.target.checked)},children:(0,J.jsxs)("span",{className:E.spanText,children:["展示默认章节序号",(0,J.jsx)("span",{children:"(选中,则为章节下所有项目添加排序编号)"})]})}),(0,J.jsx)("br",{}),(0,J.jsx)(S.Z,{style:{marginTop:"10px"},checked:$,onChange:function(e){return ee(null==e?void 0:e.target.checked)},children:(0,J.jsxs)("span",{className:E.spanText,children:["自选并展示SPOC课堂",(0,J.jsx)("span",{children:"选中则在教学团队下方添加SPOC课堂模块团队成员可管理模块中课堂的展示"})]})}),(0,J.jsx)("br",{}),(0,J.jsx)(S.Z,{style:{marginTop:"10px"},checked:ue,onChange:function(e){return he(null==e?void 0:e.target.checked)},children:(0,J.jsxs)("span",{className:E.spanText,children:["展示技术标签模块",(0,J.jsx)("span",{children:"(选中,则在教学团队下方添加技术标签模块)"})]})}),(0,J.jsx)("br",{}),(0,J.jsx)(S.Z,{style:{marginTop:"10px"},checked:fe,onChange:function(e){return ge(null==e?void 0:e.target.checked)},children:(0,J.jsxs)("span",{className:E.spanText,children:["展示历史课堂模块",(0,J.jsx)("span",{children:"(选中,则在教学团队下方添加历史课堂模块,团队成员可管理模块中课堂的展示)"})]})}),(0,J.jsx)("br",{}),(0,J.jsx)(S.Z,{style:{marginTop:"10px"},checked:Oe,onChange:function(e){return qe(null==e?void 0:e.target.checked)},children:(0,J.jsxs)("span",{className:E.spanText,children:["允许下载教学课件",(0,J.jsx)("span",{children:"(选中,则允许学习用户下载课程章节中上传的教学课件)"})]})}),(0,J.jsx)("br",{}),(0,J.jsx)(S.Z,{style:{marginTop:"10px"},checked:Me,onChange:function(e){return Ke(null==e?void 0:e.target.checked)},children:(0,J.jsxs)("span",{className:E.spanText,children:["默认展开课程小节内容",(0,J.jsx)("span",{children:"(选中,则用户在进入是将课程详情页面时,默认展开所有小节内容)"})]})}),(0,J.jsx)("br",{}),(0,J.jsxs)("div",{className:"mt10",children:[(0,J.jsx)("div",{className:"c-black mb10",children:"自定义顶部背景图"}),(0,J.jsxs)(T.Z,{action:D.Z.API_SERVER+"/api/attachments.json",withCredentials:!0,fileList:ae,onChange:function(e){var n,s,a=(null==e?void 0:e.file.size)/1024/1024<2;if(null===(n=e.fileList)||void 0===n||!n.length)return!1;a?ie(null==e||null===(s=e.fileList)||void 0===s?void 0:s.slice(-1)):ie(i()(ae))},beforeUpload:function(e){var n="image/jpeg"===e.type||"image/png"===e.type;if(!n)return C.ZP.error("只能上传jpg 或者png图片"),!1;var s=e.size/1024/1024<2;return s?n&&s:(C.ZP.error("文件大小不能大于2m"),!1)},onRemove:function(e){ie([])},children:[(0,J.jsx)("div",{className:E.aBtn,children:"上传图片"}),(0,J.jsx)("span",{style:{color:"#5F6367",pointerEvents:"none"},children:"本项非必需。如不上传则使用系统默认图片如上传请选择jpg、png格式大小不超过2M建议尺寸1920*240像素"})]})]}),(0,J.jsxs)("div",{className:"mt10",children:[(0,J.jsx)("div",{className:"c-black mb10",children:"自定义顶部内容图"}),(0,J.jsxs)(T.Z,{action:D.Z.API_SERVER+"/api/attachments.json",withCredentials:!0,fileList:re,onChange:function(e){var n,s,a=(null==e?void 0:e.file.size)/1024/1024<2;if(null===(n=e.fileList)||void 0===n||!n.length)return!1;a?oe(null==e||null===(s=e.fileList)||void 0===s?void 0:s.slice(-1)):oe(i()(re))},beforeUpload:function(e){var n="image/jpeg"===e.type||"image/png"===e.type;if(!n)return C.ZP.error("只能上传jpg 或者png图片"),!1;var s=e.size/1024/1024<2;return s?n&&s:(C.ZP.error("文件大小不能大于2m"),!1)},onRemove:function(e){oe([])},children:[(0,J.jsx)("div",{className:E.aBtn,children:"上传图片"}),(0,J.jsx)("span",{style:{color:"#5F6367",pointerEvents:"none"},children:"本项非必需。如不上传则使用系统默认图片如上传请选择jpg、png格式大小不超过2M建议尺寸1200*240像素"})]})]})]}),(0,J.jsxs)("div",{className:E.backgroundFa,children:[(0,J.jsx)("div",{className:E.bBtn,onClick:ln,children:"取消"}),(0,J.jsx)(W.ZP,{className:E.cBtn,onClick:function(){return j.submit()},loading:l["newCourse/editCourse"]||l["newCourse/submitCourse"],children:"提交 "})]})]}),(0,J.jsx)(me,{schoolName:A.school_id,onSuccess:function(e){an(),B(o()({},j.getFieldsValue()))}})]})})})))}}]);