(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[80203],{96278:function(w){w.exports={root:"root___7VXfh",colorWeak:"colorWeak___2fQ5G","ant-layout":"ant-layout___2lk2i",globalSpin:"globalSpin___3wjkL","ant-table":"ant-table___3MoMQ","ant-table-thead":"ant-table-thead___2F4eD","ant-table-tbody":"ant-table-tbody___1iFAX",formBox:"formBox___1MR6m",hrefModal:"hrefModal___GOUPi",shop:"shop___3KrmS"}},64752:function(){},99428:function(w,B,s){"use strict";s.r(B),s.d(B,{default:function(){return C}});var I=s(71194),R=s(50146),Z=s(13062),K=s(71230),te=s(89032),_=s(15746),se=s(63185),V=s(9676),H=s(36877),X=s(18480),ne=s(34792),$=s(48086),L=s(43358),J=s(34041),U=s(67294),S=s(28216),g=s(96278),m=s.n(g),N=s(5283),Y=s.n(N),z=s(41273),M=s(56173),r=s(85893),P,h,A=J.Z.Option,c=J.Z.OptGroup,C=(P=(0,S.$j)(F=>{var e=F.commondesign,a=F.page,l=F.globaldesign;return{commondesign:e,page:a,globaldesign:l}}),P(h=class extends U.PureComponent{constructor(){super(...arguments);this.state={visible:!1,styleType:"xtwlb",classify:[],startNum:1,endNum:10,list:[],options:[],courseId:"",classOptions:[],chapterOptions:[],courseWareIds:[],loading:!1,sPriceDate:0,sNum:0,sDesc:0,sTeacher:0},this.getClassifyList=()=>{var e=this.props.dispatch;e({type:"page/getClassifyList",payload:{needShare:!0},callback:a=>{this.setState({options:a.data})}})},this.updataDomCallBack=e=>{var a=this,l=this.props.differenceType;l==1?a.pcDom(e):a.mobileDom(e)},this.pcDom=e=>{var a=this,l=this.props.commondesign,v=l.Courseware,t=v.element,E=v.callback,b=v.callClose,u="",y;switch(t.css("height","auto"),e.styleType){case"xtwlb":t.css({width:"100%",left:0}),u='
',y=n=>`-
`).concat(parseInt(e.sDesc)==1?n.introduce:"",`
`).concat(n.courseWareName,`
`).concat(parseInt(e.sTeacher)==1?''.concat(n.realName,"
"):"",`
`).concat(parseInt(e.sNum)==1?''.concat(n.popularityCount,""):"",`
`).concat(parseInt(e.sPriceDate)==1?''.concat(n.price?"\uFFE5".concat(JSON.parse(n.price)[0]/100,"/").concat(JSON.parse(n.price)[1],"\u5929"):"\u514D\u8D39",""):"",`
`);break;case"twlb":t.css({width:"100%",left:0}),u='',y=n=>`-
`).concat(n.courseWareName,"").concat(parseInt(e.sPriceDate)==1?''.concat(n.price?"\uFFE5".concat(JSON.parse(n.price)[0]/100,"/").concat(JSON.parse(n.price)[1],"\u5929"):"\u514D\u8D39",""):"",`
`).concat(parseInt(e.sDesc)==1?'
'.concat(n.introduce,"
"):"",`
`).concat(parseInt(e.sTeacher)==1?'
'.concat(n.realName,"
"):"",`
`).concat(parseInt(e.sNum)==1?''.concat(n.popularityCount,""):"",`
`);break;case"btrqlb":t.css({width:"100%",left:0}),u='',y=n=>`-
`).concat(n.courseWareName,"").concat(parseInt(e.sPriceDate)==1?''.concat(n.price?"\uFFE5".concat(JSON.parse(n.price)[0]/100,"/").concat(JSON.parse(n.price)[1],"\u5929"):"\u514D\u8D39",""):"",`
`).concat(parseInt(e.sDesc)==1?'
'.concat(n.introduce,"
"):"",`
`).concat(parseInt(e.sTeacher)==1?'
'.concat(n.realName,"
"):"",`
`).concat(parseInt(e.sNum)==1?''.concat(n.popularityCount,""):"",`
`);break;default:}for(var O=0,f=e.list.length;O";var D=t.find(".boxHtml");D.length>0?D.html(u):t.html(''+u+"
"),t.css({backgroundColor:"#fff"}),t.attr("data-courseware",JSON.stringify({styleType:e.styleType,classify:e.classify,courseId:e.courseId,courseWareIds:e.courseWareIds,sPriceDate:e.sPriceDate,sNum:e.sNum,sDesc:e.sDesc,sTeacher:e.sTeacher}))},this.mobileDom=e=>{var a=this,l=this.props.commondesign,v=l.Courseware,t=v.element,E=v.callback,b=v.callClose,u="",y,O=parseInt(e.sNum),f=parseInt(e.sTeacher);switch(t.css({height:"auto"}),e.styleType){case"wzlb":u='',y=o=>'- '+o.courseWareName+''+o.realName+"
";break;case"xtwlb":t.css({width:"100%",left:0}),u='',y=o=>'- '+o.courseWareName+""+(f==1?''+o.realName+"":"")+(O==1?''+o.popularityCount+"":"")+"
";break;case"twlb":t.css({width:"100%",left:0}),u='',y=o=>'- '+o.courseWareName+''+o.introduce+""+(f==1?''+o.realName+"":"")+(O==1?''+o.popularityCount+"":"")+"
";break;case"ttlb":t.css({width:"100%",left:0}),u='',u+='- '+e.list[0].courseWareName+''+e.list[0].realName+''+e.list[0].introduce+"
",y=o=>'- '+o.courseWareName+''+o.realName+"
";break;case"btrqlb":t.css({width:"100%",left:0}),u='',y=o=>'- '+o.courseWareName+''+o.introduce+""+(f==1?''+o.realName+"":"")+(O==1?''+o.popularityCount+"":"")+"
";break;default:}for(var d=0,D=e.list.length;d0?i.html(u):t.html(''+u+"
"),t.css({backgroundColor:"#fff"}),t.attr("data-courseware",JSON.stringify({styleType:e.styleType,classify:e.classify,courseId:e.courseId,courseWareIds:e.courseWareIds,sNum:e.sNum,sTeacher:e.sTeacher}))},this.show=e=>{var a=this,l=this.props.dispatch;e?(e=JSON.parse(e),this.setState({styleType:e.styleType,classify:e.classify,courseId:e.courseId,courseWareIds:e.courseWareIds,startNum:e.startNum,endNum:e.endNum,sPriceDate:e.sPriceDate||0,sNum:e.sNum||0,sDesc:e.sDesc||0,sTeacher:e.sTeacher||0}),l({type:"page/getCourseListByParams",payload:{mainClassify:e.classify[0],childClassify:e.classify[1],currentPage:1,pageSize:1e3},callback:v=>{a.setState({classOptions:Array.isArray(v.data.list)?v.data.list:[]})}}),e.courseId&&l({type:"page/getCourseWareList",payload:{currentPage:1,pageSize:1e3,courseId:e.courseId},callback:v=>{v.success&&this.setState({chapterOptions:v.data.list})}})):this.setState({styleType:"xtwlb",classify:[],list:[],courseId:"",courseWareIds:[],sPriceDate:0,sNum:0,sDesc:0,sTeacher:0})},this.renderStyle=()=>{var e=this.state.styleType,a=l=>{l.target.classList[0]=="styleli"&&this.setState({styleType:l.target.dataset.type})};return(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"label",children:"\u98CE\u683C\uFF1A"}),(0,r.jsxs)("div",{className:"content",onClick:a,children:[!1,(0,r.jsx)("div",{className:"styleli xtwlb "+(e=="xtwlb"?"on":""),"data-type":"xtwlb"}),(0,r.jsx)("div",{className:"styleli twlb "+(e=="twlb"?"on":""),"data-type":"twlb"}),!1,(0,r.jsx)("div",{className:"styleli btrqlb "+(e=="btrqlb"?"on":""),"data-type":"btrqlb"})]})]})},this.carryCallBack=e=>{var a=this,l=this.props.commondesign,v=l.Courseware.callback,t=this.state,E=t.visible,b=t.styleType,u=t.classify,y=t.courseId,O=t.courseWareIds,f=t.sPriceDate,d=t.sNum,D=t.sDesc,n=t.sTeacher;if(e.length>0){for(var i=0,o=e.length;i{var e=this,a=this.props.dispatch;a({type:"commondesign/setState",payload:{Courseware:{visible:!1,callback:()=>{},callClose:()=>{}}}})}}componentDidMount(){var e=this.props.commondesign,a=e.Courseware,l=a.visible,v=a.element,t=a.callback,E=a.callClose;this.setState({visible:l}),this.getClassifyList();var b=v.attr("data-courseware");this.show(b)}renderClassify(){var e=this,a=this.props.dispatch,l=this.state,v=l.classify,t=l.startNum,E=l.endNum,b=l.options,u=l.classOptions,y=l.courseId,O=l.courseWareIds,f=l.chapterOptions,d=p=>{a({type:"page/getCourseListByParams",payload:{mainClassify:p[0],childClassify:p[1],currentPage:1,pageSize:1e3},callback:x=>{e.setState({classify:p,classOptions:Array.isArray(x.data.list)?x.data.list:[]})}})},D=p=>{this.setState({startNum:p||0})},n=p=>{this.setState({endNum:p||t})},i=p=>{if(this.setState({courseId:p||""}),!p)return!1;a({type:"page/getCourseWareList",payload:{currentPage:1,pageSize:1e3,courseId:p},callback:x=>{x.success&&this.setState({chapterOptions:x.data.list})}})},o=p=>{this.setState({courseWareIds:p})};return(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"label",children:"\u5206\u7C7B\uFF1A"}),(0,r.jsx)("div",{className:"content",children:(0,r.jsx)(X.Z,{fieldNames:{label:"classifyName",value:"courseClassifyId",children:"children"},changeOnSelect:!0,value:v,options:b,onChange:d,placeholder:"\u8BF7\u9009\u62E9\u5206\u7C7B",style:{width:440}})}),(0,r.jsx)("div",{className:"label",children:"\u8BFE\u7A0B\uFF1A"}),(0,r.jsx)("div",{className:"content",children:(0,r.jsx)(J.Z,{showSearch:!0,allowClear:!0,style:{width:440},value:y,placeholder:"\u9009\u62E9\u8BFE\u7A0B",optionFilterProp:"children",onChange:i,disabled:v.length<1,filterOption:(p,x)=>x.props.children.toLowerCase().indexOf(p.toLowerCase())>=0,children:u.map(p=>(0,r.jsx)(A,{value:p.courseId,children:p.courseName},p.courseId))})}),(0,r.jsx)("div",{className:"label",children:"\u7AE0\u8282\uFF1A"}),(0,r.jsx)("div",{className:"content",style:{marginBottom:50},children:(0,r.jsx)(J.Z,{allowClear:!0,mode:"multiple",disabled:y=="",placeholder:"\u9009\u62E9\u8BFE\u4EF6",style:{width:440},value:O,onChange:o,children:f.map(p=>(0,r.jsx)(c,{label:p.directoryName,children:p.courseWares.map(x=>(0,r.jsx)(A,{value:x.courseWareId,children:x.courseWareName},x.courseWareId))},p.courseDirectoryId))})}),(0,r.jsx)("div",{className:"label",children:"\u8BBE\u7F6E\uFF1A"}),this.renderSetting()]})}renderSetting(){var e=this.props.differenceType,a=this.state,l=a.sPriceDate,v=a.sNum,t=a.sDesc,E=a.sTeacher,b=d=>parseInt(d),u=d=>{this.setState({sPriceDate:d.target.checked?1:0})},y=d=>{this.setState({sNum:d.target.checked?1:0})},O=d=>{this.setState({sDesc:d.target.checked?1:0})},f=d=>{this.setState({sTeacher:d.target.checked?1:0})};return(0,r.jsx)("div",{className:"content",style:{marginBottom:30,lineHeight:"34px"},children:(0,r.jsxs)(K.Z,{children:[e==1&&(0,r.jsxs)(_.Z,{children:[" ",(0,r.jsx)(V.Z,{onChange:u,checked:b(l)==1,style:{marginRight:52},children:"\u5C55\u793A\u4EF7\u683C\u3001\u6709\u6548\u671F "})," "]}),(0,r.jsxs)(_.Z,{children:[" ",(0,r.jsx)(V.Z,{onChange:y,checked:b(v)==1,style:{marginRight:52},children:"\u5C55\u793A\u67E5\u770B\u6B21\u6570 "})," "]}),e==1&&(0,r.jsxs)(_.Z,{children:[" ",(0,r.jsx)(V.Z,{onChange:O,checked:b(t)==1,style:{marginRight:52},children:"\u5C55\u793A\u8BFE\u4EF6\u63CF\u8FF0 "})," "]}),(0,r.jsxs)(_.Z,{children:[" ",(0,r.jsx)(V.Z,{onChange:f,checked:b(E)==1,style:{marginRight:52},children:"\u5C55\u793A\u8BB2\u5E08 "})," "]})]})})}render(){var e=this.state,a=e.visible,l=e.styleType,v=e.classify,t=e.startNum,E=e.endNum,b=e.loading,u=e.courseId,y=e.chapterOptions,O=e.courseWareIds,f=this.props.dispatch,d=n=>{this.cancelEvent()},D=n=>{var i=E-t+1,o=parseInt(t/10),p=(t-1)%10,x=E%10,Q=[],G={};O.map(T=>{G[T]=!0}),y.map(T=>{T.courseWares.map(j=>{G[j.courseWareId]&&Q.push(j)})}),this.carryCallBack(Q)};return(0,r.jsx)(R.Z,{title:"\u8BFE\u4EF6",visible:a,onOk:b?()=>{}:D,width:600,confirmLoading:b,onCancel:d,maskClosable:!1,className:m().hrefModal,children:(0,r.jsxs)("div",{className:"divRow",children:[this.renderStyle(),this.renderClassify()]})})}})||h)},5283:function(w){w.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFwAAAA1CAYAAADMFIzKAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAmNSURBVHhe7Vxrb9vIFb2k3rIVWXm6ceI63Y27yGKBFigK9GOBAv3F/dDv/dAWSLdB1tms83Kc2JIt62G9JVJkzxmSNiNRlOTokbg6wITkcPiYM+feuXcoR7MBWWFh0N3tCguCZkHhbdOSVt+SldRnCw0lpmuyHo1IhAesMyzLrvb6YlgruucB8K0IX4s6zkSnBzdXZM8NpLbvmyYV7Su65ws/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Et1RrkPgASWSuHKNw0pV69PE8hsV/nUPTBUV4tMXMdf9ihOuCnwvOeLYcNW17V4NYQHk+zpExdKTflQyDhJah7sOGywNdgLsAsN2jWnwTsC10DB08tKbv104CLVwwiXoP4Ou4zKcYqvAW74TfJeSCVuyPRZMo9ukQ8nZFk9pZ7NIxIHBFMYk2RToV6fYhEdEyeG+7RMGw9Ilp6Q61yMpfwu4R07q67Nxl4HckjN+8bFqxj/M/weFoJ19duiHCqwJ/pzRK3Ef6t3dp0Pv650BAa3tjclo2H37o1w0isb0j65qb0EULQl5J4LnTpibTc3tq56A87x/oa3EABhBx1YxK9s4PrEOf4Ox2JqFD0KuB9OOh0LycTZODKrbj7xCeE02QbkMG4m1wVmXsP5Nd//IvkQC5DwAhi6JuPvpOHf/gzBuKe22oYsVRaDcj63QdiR+PSsyNip3OS2v5emsnbKlfwSh5mX4BvJiG1fkRSmzuS3foGlpVGGBqR+NoNkP097rXl3v1qoMWcwfWWxySG/N2D3xI+icOpDE4Q85gwPRjthhR+firVj29ERxye296VO7u/kxgICYNlGtI8yyPKyaskKJnJgcjfDCVMg7CtvrSrJamffBCz11HuK3v/EYjPuC2uDtppGinA/TSsFFuf4V6Av07YTGlyO+lo+4JwDgInBZYZh9/XGuR4I6GBdP4Fh1PnB5Ofezh31yX8wqXQnXBCWJE9HUgXQ0fG6kHcseqT+cPdqsmIP4JfYXqQUGarQb/NGYzF+RceSvYd1HqfuFaYHvzTGeYvQxEeuKXb8aDHwHgmpimyw2bbFcJB6s7hVqhyj0YSnY4gOgO/Htz/EchWi1WdwdFZYSqQ1rUo//rOPQBwiMlUc3/gKfI/khWYkjc2jh8AAAAASUVORK5CYII="},9676:function(w,B,s){"use strict";s.d(B,{Z:function(){return r}});var I=s(96156),R=s(22122),Z=s(94184),K=s.n(Z),te=s(50132),_=s(67294),se=s(53124),V=s(65223),H=s(85061),X=s(28481),ne=s(98423),$=function(P,h){var A={};for(var c in P)Object.prototype.hasOwnProperty.call(P,c)&&h.indexOf(c)<0&&(A[c]=P[c]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,c=Object.getOwnPropertySymbols(P);C0&&(C=x().map(function(W){return _.createElement(z,{prefixCls:j,key:W.value.toString(),disabled:"disabled"in W?W.disabled:E.disabled,value:W.value,checked:d.includes(W.value),onChange:W.onChange,className:"".concat(ae,"-item"),style:W.style},W.label)}));var le={toggleOption:T,value:d,disabled:E.disabled,name:E.name,registerValue:G,cancelValue:Q},ue=K()(ae,(0,I.Z)({},"".concat(ae,"-rtl"),y==="rtl"),l);return _.createElement("div",(0,R.Z)({className:ue,style:v},re,{ref:A}),_.createElement(L.Provider,{value:le},C))},U=_.forwardRef(J),S=_.memo(U),g=s(98866),m=function(P,h){var A={};for(var c in P)Object.prototype.hasOwnProperty.call(P,c)&&h.indexOf(c)<0&&(A[c]=P[c]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,c=Object.getOwnPropertySymbols(P);C