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

1 line
8.8 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([[1401],{82395:function(e,n,t){t.d(n,{Z:function(){return j}});var s=t(79800),i=t.n(s),r=t(59301),o=t(20834),a=t(92832),c=t(24905),l=t(3113),d=t(38854),u="bottomControlContainer___woAeo",h="buttonWrap___iRw4K",m="moveCategory___oiQqw",x=t(84099),p=t(43501),f=t(37712),j=function(e){var n=e.buttonDataSource,t=e.onButtonClick,s=e.useBatchStatus,j=e.allSelect,v=e.setAllSelect,_=e.selectArrs,g=e.onMenuClick,y=e.setSeleArr,C=e.catalogue,Z=e.addCatalogue,N=(0,r.useState)(!1),S=i()(N,2),b=S[0],k=S[1],w=(0,r.useState)(""),I=i()(w,2),B=I[0],L=I[1];console.log("---",C);var M=(0,f.jsx)("div",{className:m,onMouseLeave:function(e){return k(!1)},children:(0,f.jsxs)(o.Z,{onClick:g,style:{maxHeight:300,width:240,overflow:"auto"},children:[(0,f.jsx)("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child",children:(0,f.jsx)(a.Z,{onChange:function(e){L(e.target.value)}})}),null==C?void 0:C.map((function(e,n){var t;if(!(""!==B&&e.category_name.indexOf(B)<0))return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(o.Z.Item,{className:"multi-llipsis1e",title:e.category_name,children:e.category_name},e.category_id),null==e||null===(t=e.third_category)||void 0===t?void 0:t.map((function(e){return(0,f.jsx)(o.Z.Item,{style:{marginLeft:20},className:"multi-llipsis1e",title:e.category_name,children:e.category_name},e.category_id)}))]})})),Z&&(0,f.jsx)("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child",onClick:Z,children:"新建子目录..."})]})});return(0,f.jsxs)("div",{className:u,children:[(0,f.jsxs)("div",{children:[(0,f.jsx)("div",{children:(0,f.jsxs)(c.Z,{checked:j,onChange:v,children:["全选本页(",_.length,""]})}),(0,x.GJ)()&&n.map((function(e){return(0,f.jsx)("div",{children:(0,f.jsx)(l.ZP,{type:"primary",icon:e.icon,className:h,onClick:function(){return t(e)},children:e.name})},e.name)})),(0,x.GJ)()&&(Z||C)&&(0,f.jsx)("div",{children:(0,f.jsx)(d.Z,{open:b,placement:"topLeft",autoAdjustOverflow:!1,dropdownRender:function(){return M},getPopupContainer:function(e){return e.parentNode},children:(0,f.jsx)("span",{className:"ant-dropdown-link",onMouseEnter:function(e){return k(!0)},children:(0,f.jsx)(l.ZP,{type:"primary",className:h,icon:(0,f.jsx)("i",{className:"iconfont icon-yidongmulu"}),children:(0,f.jsxs)("span",{children:["移动到目录 ",(0,f.jsx)(p.Z,{})]})})})})})]}),(0,f.jsx)("div",{children:(0,f.jsx)(l.ZP,{type:"primary",ghost:!0,onClick:function(){s(!1),y([])},children:"取消操作"})})]})}},65638:function(e,n,t){t.d(n,{Z:function(){return b}});var s=t(7557),i=t.n(s),r=t(37205),o=t.n(r),a=t(41498),c=t.n(a),l=t(79800),d=t.n(l),u=t(59301),h=t(20834),m=t(24905),x=t(3113),p=t(38854),f=t(6848),j=t(92832),v={searchSortControllerContainer:"searchSortControllerContainer___Xca1m",btn:"btn___sNJPX",btnSort:"btnSort___Fx9OM",tips:"tips___LrmpR"},_=t(84099),g=t(53547),y=t(43501),C=t(26724),Z=t.n(C),N=t(57318),S=t(37712),b=function(e){e.isAdmin,e.dataSource,e.batchStatus;var n=e.SortMenuName,t=e.setSortMenuName,s=e.detailCourseGroupsList,r=e.onSearch,a=e.onBoard,l=e.onSort,C=e.isboard,b=e.dispatch,k=(e.onBatch,e.SortMenus),w=(0,u.useState)(!1),I=d()(w,2),B=I[0],L=I[1],M=(0,u.useState)([]),P=d()(M,2),A=P[0],R=P[1],O=(0,u.useState)(!0),T=d()(O,2),G=T[0],z=T[1],E=(0,u.useState)([]),H=d()(E,2),J=H[0],K=H[1],D=(0,u.useState)(1),F=d()(D,2),W=F[0],X=F[1],q=(0,u.useState)(!1),Q=d()(q,2),U=Q[0],V=Q[1],Y=(0,N.useParams)();(0,u.useEffect)((function(){C&&$()}),[C]);var $=function(){var e=c()(i()().mark((function e(){var n,t,s;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!G||U){e.next=10;break}return V(!0),X(W+1),e.next=5,b({type:"classroomList/getCourseGroupsList",payload:{page:W,id:Y.coursesId,limit:20,nonenavigate:!0}});case 5:t=e.sent,s=o()((null==t?void 0:t.course_groups)||[]),(null==t||null===(n=t.course_groups)||void 0===n?void 0:n.length)<20&&(z(!1),s.push({id:0,name:"未分班"})),V(!1),K([].concat(o()(J),o()(s)));case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ee=(0,S.jsxs)("section",{className:v.dropmenu,children:[(0,S.jsx)("div",{style:{maxHeight:200,overflow:"auto"},children:(0,S.jsx)(Z(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(e){$()},hasMore:G,useWindow:!1,children:(0,S.jsx)(h.Z,{style:{width:240,zIndex:10},children:(null==s?void 0:s.group_count)>0&&(null==J?void 0:J.filter((function(e){return e.edit_auth||"未分班"===e.name})).map((function(e,n){return(0,S.jsx)(h.Z.Item,{children:(0,S.jsx)(m.Z,{checked:A.includes(e.id),value:e.id,onChange:function(n){A.indexOf(e.id);A.indexOf(e.id)>-1?R(A.filter((function(n){return n!==e.id}))):R(A.concat(e.id))},children:e.name})},e.id)})))})})}),(0,S.jsx)("aside",{style:{background:"#fff"},children:(0,S.jsxs)("div",{children:[(0,S.jsx)(x.ZP,{type:"link",onClick:function(){a(A)},children:"确定"}),(0,S.jsx)(x.ZP,{type:"link",onClick:function(){R([])},children:"重置"})]})})]}),ne="默认排序"===n;return(0,S.jsxs)("div",{className:v.searchSortControllerContainer,children:[!(null==k||!k.length)&&(0,S.jsx)("div",{children:(0,S.jsx)(p.Z,{dropdownRender:function(){return(0,S.jsx)(h.Z,{selectedKeys:[n],children:k.map((function(e){return(0,S.jsx)(h.Z.Item,{onClick:function(){return t((n=e).name),void l(n);var n},children:e.name},e.name)}))})},children:(0,S.jsx)("div",{children:(0,S.jsxs)("span",{className:"".concat(v.btn," ").concat(ne?v.btnSort:""),children:[(0,S.jsx)("i",{className:"iconfont icon-paixu font14 mr5"}),n]})})})}),ne&&(0,S.jsx)(f.Z,{title:"优先按照调整排序结果展示,未设置排序时,按照创建时间降序排列",children:(0,S.jsx)("span",{className:v.tips,children:(0,S.jsx)("i",{className:"iconfont icon-a-wenhaobeifen2"})})}),(0,S.jsx)(j.Z.Search,{allowClear:!0,placeholder:"请输入名称进行搜索",onSearch:r,style:{width:220,marginLeft:"auto",marginRight:10}}),(0,_.eB)()&&C&&(0,S.jsx)(p.Z,{dropdownRender:function(){return ee},open:B,onOpenChange:function(e){L(e)},children:(0,S.jsxs)("a",{children:["分班",B?(0,S.jsx)(g.Z,{style:{marginLeft:6}}):(0,S.jsx)(y.Z,{style:{marginLeft:6}})]})})]})}},6476:function(e,n,t){t.d(n,{Z:function(){return u}});t(59301);var s=t(95237),i=t(43604),r=t(20834),o=t(38854),a=t(6848),c={tabMenuContainer:"tabMenuContainer___uf5IP",control:"control___GheLs",iconH:"iconH___Wzw_r",selectBtn:"selectBtn___mfEnI",selectBtn1:"selectBtn1___rJF8S"},l=t(57318),d=t(37712),u=function(e){var n,t,u,h=e.isLoading,m=e.addText,x=e.tabDataSource,p=e.isAdmin,f=e.dispatch,j=e.type,v=e.isExercise,_=e.defaultSelectedKeys,g=e.onTabMenuClick,y=e.getDropdownMenu,C=e.showControlButton,Z=e.buttonText,N=e.buttonIcon,S=void 0===N?"icon-tianjiadaohang":N,b=e.extraNode,k=e.user,w=e.onButtonClick,I=void 0===w?function(){}:w,B=(0,l.useParams)();return(0,d.jsx)("div",{className:c.tabMenuContainer,children:(0,d.jsxs)(s.Z,{children:[(0,d.jsx)(i.Z,{flex:"1",children:(0,d.jsx)(r.Z,{onSelect:function(e){return h?{}:g(e)},mode:"horizontal",selectedKeys:_,children:x.map((function(e){return(0,d.jsxs)(r.Z.Item,{children:[(0,d.jsx)("span",{className:"c-grey-666",children:e.name}),void 0!==e.total&&p&&(0,d.jsx)("span",{className:"c-grey-999 ml20",children:e.total||0})]},"number"==typeof e.index?e.index:e.id)}))})}),p&&(0,d.jsxs)(i.Z,{className:"mr20 gutter-row",style:{display:"flex",alignItems:"center",color:"#0152d9",paddingBottom:3},children:[v&&(0,d.jsx)(o.Z,{className:"mr15",placement:"bottom",arrow:!0,dropdownRender:function(){return(0,d.jsxs)(r.Z,{children:[(0,d.jsx)(r.Z.Item,{onClick:function(){f({type:"classroomList/setActionTabs",payload:{key:"导出成绩",type:j,exportType:"exercise",category_id:B.categoryId}})},children:"学生成绩"},1),(0,d.jsx)(r.Z.Item,{onClick:function(){l.history.push("/classrooms/".concat(null==B?void 0:B.coursesId,"/exportlist/exercise_score,export_exercise_users"))},children:"历史导出"},3)]})},children:(0,d.jsx)("div",{className:"c-blue font16 ml20 current",style:{marginTop:2},children:(0,d.jsx)("span",{style:{color:"#666666",cursor:"pointer"},children:(0,d.jsx)("i",{className:"iconfont icon-xiazai6"})})})}),(0,d.jsxs)("div",{className:c.control,children:[(0,d.jsx)("div",{className:c.extra,children:b}),C&&(0,d.jsxs)("span",{onClick:I,style:{cursor:"pointer"},className:c.selectBtn,children:[(0,d.jsx)("span",{children:(0,d.jsx)("i",{className:"iconfont ".concat(S)})}),(0,d.jsx)("span",{children:Z})]}),!!y&&(0,d.jsx)(o.Z,{disabled:2===(null==k||null===(n=k.userInfo)||void 0===n?void 0:n.user_status),className:"ml10",dropdownRender:y,children:(0,d.jsxs)("span",{className:2===(null==k||null===(t=k.userInfo)||void 0===t?void 0:t.user_status)?c.selectBtn1:c.selectBtn,children:[(0,d.jsx)("span",{children:(0,d.jsx)("i",{className:"iconfont icon-tianjiadaohang"})}),(0,d.jsx)(a.Z,{title:2===(null==k||null===(u=k.userInfo)||void 0===u?void 0:u.user_status)&&"教学课堂试用期已结束,平台已暂停提供在线考试创建功能",children:(0,d.jsx)("span",{children:m||"创建试卷"})})]})})]})]})]})})}}}]);