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],{10400:function(e,n,s){s.r(n),s.d(n,{default:function(){return ve}});var a=s(93923),i=s.n(a),l=s(22060),t=s.n(l),r=s(26801),o=s.n(r),c=s(10574),d=s.n(c),u=s(39343),h=s.n(u),p=s(11006),m=s.n(p),_=s(27161),x=s.n(_),v=s(59301),f=s(22211),g=s(1056),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(48826),W=s(3113),P=s(22387),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(85578),D=s(67871),F=s(15830),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(99174),K=s(22311),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(9498),se=s.n(ne),ae=s(95934),ie=s(48796),le=s(3567),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,l=e.globalSetting,r=e.loading,c=e.dispatch,u=(x()(e,_e),(0,f.useSearchParams)()),p=m()(u,1)[0],_=(0,f.useParams)(),j=b.Z.useForm(),R=m()(j,1)[0],V=(0,v.useState)({}),A=m()(V,2),B=A[0],L=A[1],z=(0,v.useState)(),O=m()(z,2),q=O[0],Y=O[1],H=(0,v.useRef)(),M=(0,v.useState)(!0),K=m()(M,2),U=K[0],X=K[1],G=(0,v.useState)(!1),$=m()(G,2),ee=$[0],ne=$[1],se=(0,v.useState)(),ae=m()(se,2),ie=ae[0],le=ae[1],te=(0,v.useState)(),re=m()(te,2),oe=re[0],ce=re[1],de=(0,v.useState)(!0),ue=m()(de,2),he=ue[0],pe=ue[1],ve=(0,v.useState)(!1),fe=m()(ve,2),ge=fe[0],je=fe[1],be=(0,v.useState)(!1),Ce=m()(be,2),ye=Ce[0],we=Ce[1],Ze=(0,v.useState)(-1),Ne=m()(Ze,2),ke=Ne[0],Se=Ne[1],Te=(0,v.useState)(!0),We=m()(Te,2),Pe=We[0],Ee=We[1],Ie=(0,v.useState)([]),De=m()(Ie,2),Fe=De[0],Re=De[1],Ve=(0,v.useState)([]),Ae=m()(Ve,2),Be=Ae[0],Le=Ae[1],ze=(0,v.useState)(!1),Oe=m()(ze,2),qe=Oe[0],Ye=Oe[1],He=(0,v.useState)(!1),Me=m()(He,2),Ke=Me[0],Je=Me[1],Ue=(0,v.useState)([]),Xe=m()(Ue,2),Ge=Xe[0],Qe=Xe[1],$e=(0,v.useState)([]),en=m()($e,2),nn=en[0],sn=en[1];(0,v.useEffect)((function(){var e;an(),ln(),H.current=_.pathId,Y(!!H.current),(0,I.Dk)(null==l||null===(e=l.setting)||void 0===e?void 0:e.name),R.setFieldsValue({learning_notes_title:"课程须知"}),H.current&&rn()}),[]);var 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 e.next=2,(0,F.ZP)("/api/disciplines.json",{method:"get",params:{source:"subject"}});case 2:n=e.sent,Qe(n.disciplines);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ln=function(){var e=h()(d()().mark((function e(){var n;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Ee(!0),e.next=3,c({type:"newCourse/getSchoolOption"});case 3:n=e.sent,Ee(!1),Re(null==n?void 0:n.schools),Le(null==n?void 0:n.schools);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),tn=function(){p.get("username")?f.history.push("/users/".concat(p.get("username"),"/paths")):f.history.push(q?"/paths/".concat(H.current):"/paths")},rn=function(){var e=h()(d()().mark((function e(){var n,s,a,i,l,t,r,o,u,h,p,m,_,x;return d()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c({type:"newCourse/getEditCourseData",payload:{id:H.current}});case 2:(n=e.sent)&&(o={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&&sn(n.disciplines),R.setFieldsValue(o),we(null==n||null===(a=n.toast)||void 0===a?void 0:a.is_open),Se(null==n||null===(i=n.toast)||void 0===i?void 0:i.open_num),X(null==n?void 0:n.cust_seq),ne(null==n?void 0:n.show_spoc),je(null==n?void 0:n.show_history),Je(null==n?void 0:n.show_course_section),Ye(null==n?void 0:n.allow_download),pe(null==n?void 0:n.show_tag),(null==n||null===(l=n.attachments)||void 0===l?void 0:l.length)>0&&le([{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&&ce([{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}}]),L({name:n.name,intro:n.description,notice:n.learning_notes,content:null==n||null===(r=n.toast)||void 0===r?void 0:r.content}));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),on=function(){var e=h()(d()().mark((function e(n){var s,a,i,l,t,r,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,r=i.notice,u=i.name_en,h=i.learning_notes_title,p=i.sub_discipline_ids,m=i.school_id,_=q?"newCourse/editCourse":"newCourse/submitCourse",x=!1,v=null,Fe.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:H.current,name:l,name_en:u,description:t,learning_notes:r,cust_seq:U,show_spoc:ee,school_id:v,show_tag:he,show_history:ge,show_course_section:Ke,allow_download:qe,learning_notes_title:h,attachment_ids:[null==ie||null===(s=ie[0])||void 0===s||null===(s=s.response)||void 0===s?void 0:s.id],attachment_ids_b:[null==oe||null===(a=oe[0])||void 0===a||null===(a=a.response)||void 0===a?void 0:a.id],sub_discipline_ids:p,subject_toast_attributes:{is_open:ye,open_num:ke,content:n.content}},e.next=10,c({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:[q?"编辑":"创建","实践课程"]})]}),(0,J.jsxs)("div",{className:E.titleWrap,children:[(0,J.jsxs)("span",{children:[q?"编辑":"创建","实践课程"]}),(0,J.jsx)("b",{onClick:tn,children:"返回"})]}),(0,J.jsxs)(b.Z,{form:R,className:E.formWrap,scrollToFirstError:!0,layout:"vertical",colon:!1,onValuesChange:function(){var e=R.getFieldsValue();"school_id"in e&&Le(Fe.filter((function(n){return n.name.includes(e.school_id)}))),L(o()({},e))},onFinish:on,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=B.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,(a={style:{marginTop:"-24px"},name:"name_en",label:"英文课程名称"},t()(a,"style",{marginTop:"-24px"}),t()(a,"extra",(0,J.jsx)("div",{className:"tr c-grey-333 font12 mt3",children:"".concat((null===(s=B.name_en)||void 0===s?void 0:s.length)||0,"/200")})),t()(a,"rules",[{message:"请输入英文课程名称"}]),t()(a,"children",(0,J.jsx)(xe,{maxLength:200,placeholder:"College Computer Fundamentals - Computational Thinking"})),a)),(0,J.jsx)(b.Z.Item,{name:"sub_discipline_ids",label:"方向&课程",style:{marginTop:"-24px"},children:(0,J.jsx)(Q,{defaultValue:nn,dataSource:Ge,onChange:function(e){return R.setFieldsValue({sub_discipline_ids:e})}})}),(0,J.jsx)(b.Z.Item,{label:"发布单位",name:"school_id",wrapperCol:{span:24},extra:!Pe&&B.school_id&&!(null!=Fe&&Fe.find((function(e){return e.name===B.school_id})))&&(0,J.jsxs)("div",{className:E.schoolHintWrap,children:[(0,J.jsxs)("span",{className:E.colorCDCDCD,children:["未找到包含“",B.school_id,"”的发布单位,"]}),(0,J.jsx)("span",{className:"".concat(E.color0152d9),onClick:function(){c({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==Be?void 0:Be.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:B.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:B.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:ye,style:{marginRight:11,minWidth:32},onChange:function(e){we(e)}}),(0,J.jsxs)("span",{className:E.spanText,children:["课程公告",(0,J.jsx)("span",{children:"(支持老师自定义公告内容,以弹框形式提醒课程的学习用户)"})]})]}),ye&&(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:B.content})}),ye&&(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:ke,onChange:function(e){Se(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:U,onChange:function(e){X(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:ee,onChange:function(e){return ne(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:he,onChange:function(e){return pe(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:ge,onChange:function(e){return je(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:qe,onChange:function(e){return Ye(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:Ke,onChange:function(e){return Je(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:ie,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?le(null==e||null===(s=e.fileList)||void 0===s?void 0:s.slice(-1)):le(i()(ie))},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){le([])},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:oe,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?ce(null==e||null===(s=e.fileList)||void 0===s?void 0:s.slice(-1)):ce(i()(oe))},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){ce([])},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:tn,children:"取消"}),(0,J.jsx)(W.ZP,{className:E.cBtn,onClick:function(){return R.submit()},loading:r["newCourse/editCourse"]||r["newCourse/submitCourse"],children:"提交 "})]})]}),(0,J.jsx)(me,{schoolName:B.school_id,onSuccess:function(e){ln(),L(o()({},R.getFieldsValue()))}})]})})})))}}]);