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__Engineering__Lists__Grad...

1 line
29 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([[73183],{680:function(e,n,t){t.d(n,{Z:function(){return c}});var o=t(33614),r=t(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},a=t(22589),s=function(e,n){return r.createElement(a.Z,(0,o.Z)({},e,{ref:n,icon:i}))};var c=r.forwardRef(s)},22893:function(e,n,t){t.d(n,{Z:function(){return c}});var o=t(33614),r=t(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},a=t(22589),s=function(e,n){return r.createElement(a.Z,(0,o.Z)({},e,{ref:n,icon:i}))};var c=r.forwardRef(s)},50382:function(e,n,t){t.d(n,{Z:function(){return c}});var o=t(33614),r=t(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},a=t(22589),s=function(e,n){return r.createElement(a.Z,(0,o.Z)({},e,{ref:n,icon:i}))};var c=r.forwardRef(s)},8887:function(e,n,t){t.d(n,{Z:function(){return c}});var o=t(33614),r=t(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},a=t(22589),s=function(e,n){return r.createElement(a.Z,(0,o.Z)({},e,{ref:n,icon:i}))};var c=r.forwardRef(s)},13261:function(e,n,t){var o=t(82242),r=t.n(o),i=(t(59301),t(93314)),a=t(3113),s=t(37712);n.Z=function(e){var n=e.img,t=e.buttonProps,o=void 0===t?{}:t,c=e.styles,l=void 0===c?{}:c,u=e.customText,d=e.ButtonText,p=e.ButtonClick,f=e.Buttonclass,m=e.ButtonTwo,v=e.imgStyles,h=e.loading,x=void 0!==h&&h;return(0,s.jsxs)("section",{className:"tc animated fadeIn",style:r()(r()({},{color:"#999",margin:"100px auto",visibility:x?"hidden":"visible"}),l),children:[(0,s.jsx)("img",{src:n||i,style:r()(r()({},v),{},{pointerEvents:"none",userSelect:"none"})}),(0,s.jsx)("p",{className:"mt20 font14",children:u||"暂时还没有相关数据哦!"}),d&&(0,s.jsx)(a.ZP,r()(r()({className:f,onClick:p},o),{},{children:d})),m&&m]})}},84908:function(e,n,t){t.r(n),t.d(n,{default:function(){return A}});var o=t(7557),r=t.n(o),i=t(37205),a=t.n(i),s=t(82242),c=t.n(s),l=t(41498),u=t.n(l),d=t(79800),p=t.n(d),f=t(59301),m="wrap___omwUF",v="control___pKisE",h="label___lFCWF",x="exportWrapContainer___lOtwr",_="step1___MyZoh",g=t(51876),y=t(8591),b=t(57809),j=t(3113),C=t(43418),w=t(95237),Z=t(43604),k=t(59028),O=t(680),S=t(8887),N=t(79311),P=t(92832),E=t(6848),I="listItemContainer___JK46x",z=t(37712);var M=function(e){var n=e.item,t=e.index,o=e.getData,i=e.params,a=e.indextwo,s=e.id,c=e.datas,l=(0,f.useState)(!1),d=p()(l,2),m=d[0],v=d[1],h=(0,f.useState)(!1),x=p()(h,2),_=x[0],g=x[1],b=(0,f.useState)(!1),j=p()(b,2),w=j[0],Z=j[1];return(0,f.useEffect)((function(){n.content||v(!0)}),[n.content]),console.log("-----item",c),(0,z.jsxs)("div",{className:I,children:[(0,z.jsxs)("div",{children:["指标点",a+1+"-"+(t+1)]}),(0,z.jsx)("div",{children:m?(0,z.jsx)(P.Z,{defaultValue:n.content,onChange:function(e){return n.name=e.target.value},onBlur:function(e){n.content=e.target.value}}):n.content}),(0,z.jsxs)("div",{onClick:function(){},children:[(0,z.jsx)(E.Z,{title:m?"保存":"编辑",children:(0,z.jsx)("i",{onClick:u()(r()().mark((function e(){var t,a;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(m){e.next=4;break}if(!(c.filter((function(e){var n;return"新增"===e.id||e.isupdate||(null==e||null===(n=e.ec_graduation_subitems)||void 0===n?void 0:n.filter((function(e){return"新增"===e.id||e.isupdate})).length)>0})).length>0)){e.next=4;break}return y.ZP.info("请先保存或取消当前正在编辑的内容。"),e.abrupt("return");case 4:if(n.content&&null!=n&&null!==(t=n.content)&&void 0!==t&&t.replace(/\s+/g,"")){e.next=7;break}return y.ZP.info("内容不能为空"),e.abrupt("return");case 7:if(!w){e.next=9;break}return e.abrupt("return");case 9:if(!m){e.next=16;break}return Z(!0),a=_?"/api/ec_years/".concat(i.ec_year_id,"/graduation_subitems/").concat(n.id,".json"):"/api/ec_years/".concat(i.ec_year_id,"/graduation_subitems.json"),e.next=14,(0,N.ZP)(a,{method:_?"put":"post",body:{content:n.content,graduation_requirement_id:s}});case 14:0===e.sent.status&&(o(i),g(!1));case 16:Z(!1),g(!0),v(!m),n.isupdate=!m;case 20:case"end":return e.stop()}}),e)}))),className:m?"iconfont icon-baocun1":"iconfont icon-bianji6"})}),m&&(0,z.jsx)(E.Z,{title:"取消",children:(0,z.jsx)("i",{onClick:u()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o(i),v(!1);case 2:case"end":return e.stop()}}),e)}))),className:"iconfont icon-quxiao"})}),(0,z.jsx)(E.Z,{title:"删除",children:(0,z.jsx)("i",{onClick:u()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:C.Z.confirm({title:"删除",content:"确认是否删除?",okText:"确认",cancelText:"取消",onOk:function(){var e=u()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("新增"!==(null==n?void 0:n.id)){e.next=3;break}return o(i),e.abrupt("return");case 3:return e.next=5,(0,N.ZP)("/api/ec_years/".concat(i.ec_year_id,"/graduation_subitems/").concat(null==n?void 0:n.id,".json"),{method:"delete",body:{graduation_requirement_id:s}});case 5:0===e.sent.status&&o(i);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()});case 1:case"end":return e.stop()}}),e)}))),style:{color:"#0152D9",cursor:"pointer"},className:"iconfont icon-shanchu9"})})]})]})},$="requirementItemContainer___H2hvF",D="thead___TA6ry";var R=function(e){var n,t=e.item,o=e.index,i=e.params,s=e.getData,c=e.setDatas,l=e.datas,d=(0,f.useState)(!1),m=p()(d,2),v=m[0],h=m[1],x=(0,f.useState)(!0),_=p()(x,2),g=_[0],b=_[1],j=(0,f.useState)(!1),w=p()(j,2),Z=w[0],k=w[1],O=(0,f.useState)(!1),S=p()(O,2),I=S[0],R=S[1];return(0,f.useEffect)((function(){t.content||h(!0)}),[t.content]),(0,z.jsxs)("div",{className:$,children:[(0,z.jsxs)("div",{className:D,children:[(0,z.jsxs)("span",{children:[(0,z.jsxs)("span",{children:["毕业要求",o+1]}),(0,z.jsx)("span",{onClick:function(){b(!g)},style:{marginLeft:"18px",transform:"scale(0.4)",display:"inline-block",cursor:"pointer",color:"#0152D9"},children:(0,z.jsx)("i",{className:"iconfont icon-".concat(g?"xiala3":"shangla-copy")})})]}),(0,z.jsx)("span",{onClick:function(){},children:v?(0,z.jsx)(P.Z,{defaultValue:null==t?void 0:t.content,onChange:function(e){return t.name=e.target.value},onBlur:function(e){t.content=e.target.value}}):t.content}),(0,z.jsxs)("span",{onClick:function(){},children:[(0,z.jsx)(E.Z,{title:"新增指标点",children:(0,z.jsx)("i",{style:{color:"#0152D9",cursor:"pointer",marginRight:"10px",fontSize:14},className:"iconfont icon-xinzeng",onClick:u()(r()().mark((function e(){var n,o;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(b(!0),!(l.filter((function(e){var n;return"新增"===e.id||e.isupdate||(null==e||null===(n=e.ec_graduation_subitems)||void 0===n?void 0:n.filter((function(e){return"新增"===e.id||e.isupdate})).length)>0})).length>0)){e.next=4;break}return y.ZP.info("请先保存或取消当前正在编辑的内容。"),e.abrupt("return");case 4:o={id:"新增",content:""},null==t||null===(n=t.ec_graduation_subitems)||void 0===n||n.push(o),c(a()(l));case 7:case"end":return e.stop()}}),e)})))})}),(0,z.jsx)(E.Z,{title:v?"保存":"编辑",children:(0,z.jsx)("i",{onClick:u()(r()().mark((function e(){var n,o;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(v){e.next=4;break}if(!(l.filter((function(e){var n;return"新增"===e.id||e.isupdate||(null==e||null===(n=e.ec_graduation_subitems)||void 0===n?void 0:n.filter((function(e){return"新增"===e.id||e.isupdate})).length)>0})).length>0)){e.next=4;break}return y.ZP.info("请先保存或取消当前正在编辑的内容。"),e.abrupt("return");case 4:if(t.content&&null!=t&&null!==(n=t.content)&&void 0!==n&&n.replace(/\s+/g,"")){e.next=7;break}return y.ZP.info("内容不能为空"),e.abrupt("return");case 7:if(!I){e.next=9;break}return e.abrupt("return");case 9:if(!v){e.next=16;break}return R(!0),o=Z?"/api/ec_years/".concat(i.ec_year_id,"/ec_graduation_requirements/").concat(t.id,".json"):"/api/ec_years/".concat(i.ec_year_id,"/ec_graduation_requirements.json"),e.next=14,(0,N.ZP)(o,{method:Z?"put":"post",body:{content:t.content}});case 14:0===e.sent.status&&(s(i),k(!1));case 16:R(!1),k(!0),h(!v),t.isupdate=!v;case 20:case"end":return e.stop()}}),e)}))),style:{color:"#0152D9",cursor:"pointer",marginRight:"10px",fontSize:14},className:v?"iconfont icon-baocun1":"iconfont icon-bianji6"})}),v&&(0,z.jsx)(E.Z,{title:"取消",children:(0,z.jsx)("i",{onClick:u()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s(i),h(!v);case 2:case"end":return e.stop()}}),e)}))),style:{color:"#0152D9",cursor:"pointer",marginRight:"10px",fontSize:14},className:"iconfont icon-quxiao"})}),(0,z.jsx)(E.Z,{title:"删除",children:(0,z.jsx)("i",{onClick:u()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:C.Z.confirm({title:"删除",content:"确认是否删除?",okText:"确认",cancelText:"取消",onOk:function(){var e=u()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("新增"!==t.id){e.next=5;break}s(i),h(!v),e.next=9;break;case 5:return e.next=7,(0,N.ZP)("/api/ec_years/".concat(i.ec_year_id,"/ec_graduation_requirements/").concat(null==t?void 0:t.id,".json"),{method:"delete"});case 7:0===e.sent.status&&s(i);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()});case 1:case"end":return e.stop()}}),e)}))),style:{color:"#0152D9",cursor:"pointer",fontSize:14},className:"iconfont icon-shanchu9"})})]})]}),g&&(0,z.jsx)(z.Fragment,{children:null==t||null===(n=t.ec_graduation_subitems)||void 0===n?void 0:n.map((function(e,n){return(0,z.jsx)(M,{datas:l,item:e,id:null==t?void 0:t.id,indextwo:o,index:n,params:i,getData:s},n)}))})]})},T=t(47670),B=t(91997),q=t(13261),F=t(15309),L=t(20927),A=(0,g.connect)((function(e){return{user:e.user}}))((function(e){var n,t=e.user,o=(0,f.useState)({page:1,per_page:20,total:0,ec_major_school_id:0,ec_year_id:"",category:1,sort_by:null,sort_direction:null,school_id:null}),i=p()(o,2),s=i[0],l=i[1],d=(0,f.useState)(!0),P=p()(d,2),E=(P[0],P[1],(0,f.useState)([])),I=p()(E,2),M=I[0],$=I[1],D=(0,f.useState)([]),A=p()(D,2),H=A[0],W=A[1],U=(0,f.useState)([]),V=p()(U,2),Q=V[0],Y=V[1],X=(0,f.useState)(!1),G=p()(X,2),K=G[0],J=G[1],ee=(0,f.useState)([]),ne=p()(ee,2),te=ne[0],oe=ne[1],re=(0,f.useState)(!1),ie=p()(re,2),ae=ie[0],se=ie[1],ce=(0,f.useState)(!1),le=p()(ce,2),ue=le[0],de=le[1],pe=(0,g.useLocation)();function fe(e){return me.apply(this,arguments)}function me(){return me=u()(r()().mark((function e(n){var o,i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return L.U.setItem(null==t||null===(o=t.userInfo)||void 0===o?void 0:o.login,[null==n?void 0:n.ec_major_school_id,null==n?void 0:n.ec_year_id]),e.next=3,(0,N.ZP)("/api/ec_years/".concat(null==n?void 0:n.ec_year_id,"/ec_graduation_requirements.json"),{method:"get"});case 3:i=e.sent,Y(i.graduation_requirements);case 5:case"end":return e.stop()}}),e)}))),me.apply(this,arguments)}(0,f.useEffect)((function(){var e;null!==(e=t.userInfo)&&void 0!==e&&e.school_id&&function(){he.apply(this,arguments)}()}),[null==t||null===(n=t.userInfo)||void 0===n?void 0:n.school_id]);var ve={onRemove:function(){oe([])},beforeUpload:function(e){if(console.log(e),(null==e?void 0:e.size)>52428800)return y.ZP.info("文件超过50M不符合上传要求"),!1;var n=[];return n.push(e),oe([].concat(n)),!1},fileList:te,accept:".xls,.xlsx"};function he(){return(he=u()(r()().mark((function e(){var n,o,i,a,u,d,p;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,N.ZP)("/api/schools/".concat(null==t||null===(n=t.userInfo)||void 0===n?void 0:n.school_id,"/ec_majors/get_major_list.json"),{method:"get"});case 2:if(!((null==(d=e.sent)||null===(o=d.data)||void 0===o?void 0:o.length)<=0)){e.next=8;break}return de(!0),s.ec_major_school_id="",l(c()({},s)),e.abrupt("return");case 8:$(null==d?void 0:d.data),p=L.U.getItem(null==t||null===(i=t.userInfo)||void 0===i?void 0:i.login),xe(Number(null==pe||null===(a=pe.query)||void 0===a?void 0:a.ec_major_school_id)||p[0]||(null==d||null===(u=d.data)||void 0===u||null===(u=u[0])||void 0===u?void 0:u.ec_major_school_id));case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function xe(e,n){return _e.apply(this,arguments)}function _e(){return(_e=u()(r()().mark((function e(n,o){var i,a,u,d,p,f,m,v;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,N.ZP)("/api/ec_major_schools/".concat(n,"/ec_years/get_year_list.json"),{method:"get"});case 2:if(f=e.sent,m=L.U.getItem(null==t||null===(i=t.userInfo)||void 0===i?void 0:i.login),v=o?null==f||null===(a=f.data)||void 0===a||null===(a=a[0])||void 0===a?void 0:a.ec_year_id:Number(null==pe||null===(u=pe.query)||void 0===u?void 0:u.ec_year_id)||m[1]||(null==f||null===(d=f.data)||void 0===d||null===(d=d[0])||void 0===d?void 0:d.ec_year_id),!((null==f||null===(p=f.data)||void 0===p?void 0:p.length)<=0)){e.next=10;break}return de(!0),s.ec_year_id="",l(c()({},s)),e.abrupt("return");case 10:s.ec_year_id=v,s.ec_major_school_id=n,l(c()({},s)),W(null==f?void 0:f.data),fe(s);case 15:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var ge=function(e,n){s.page=1,s[n]="number"==typeof e?e:null,l(c()({},s)),"ec_major_school_id"===n&&xe(e,!0),"ec_year_id"===n&&fe(s)};return(0,z.jsxs)("div",{className:m,children:[(0,z.jsx)(B.p,{title:"毕业指标"}),(0,z.jsxs)("div",{className:v,children:[(0,z.jsx)("div",{className:h,children:"认证专业"}),(0,z.jsx)(b.default,{style:{width:240},placeholder:"专业",value:null==s?void 0:s.ec_major_school_id,onChange:function(e){return ge(e,"ec_major_school_id")},children:null==M?void 0:M.map((function(e,n){return(0,z.jsx)(b.default.Option,{value:null==e?void 0:e.ec_major_school_id,children:null==e?void 0:e.name})}))}),(0,z.jsx)("div",{className:h,children:"认证届别"}),(0,z.jsx)(b.default,{style:{width:140},disabled:ue,placeholder:"请选择届别",value:null==s?void 0:s.ec_year_id,onChange:function(e){return ge(e,"ec_year_id")},children:null==H?void 0:H.map((function(e,n){return(0,z.jsx)(b.default.Option,{value:null==e?void 0:e.ec_year_id,children:null==e?void 0:e.year})}))}),(0,z.jsxs)("div",{style:{flex:1,textAlign:"end"},children:[(0,z.jsxs)(j.ZP,{disabled:ue,onClick:function(){if(Q.filter((function(e){var n;return"新增"===e.id||e.isupdate||(null==e||null===(n=e.ec_graduation_subitems)||void 0===n?void 0:n.filter((function(e){return"新增"===e.id||e.isupdate})).length)>0})).length>0)y.ZP.info("请先保存或取消当前正在编辑的内容。");else{Q.push({id:"新增",content:""}),Y(a()(Q))}},type:"primary",children:[(0,z.jsx)("span",{style:{marginRight:"5px",fontSize:"12px"},className:"iconfont icon-xinzeng"})," 新增毕业要求"]}),(0,z.jsxs)(j.ZP,{disabled:ue,onClick:u()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:C.Z.confirm({title:"是否确认删除",icon:(0,z.jsx)(O.Z,{}),content:"删除之后不可恢复,是否确认删除",okText:"确认",okType:"danger",cancelText:"取消",onOk:function(){var e=u()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,N.ZP)("/api/ec_years/".concat(s.ec_year_id,"/ec_graduation_requirements/destroy_by_year.json"),{method:"post"});case 2:0===e.sent.status&&fe(s);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()});case 1:case"end":return e.stop()}}),e)}))),type:"default",children:[(0,z.jsx)("span",{style:{marginRight:"5px",fontSize:"12px"},className:"iconfont icon-piliangshanchubeifen translateY1"})," ","删除"]}),(0,z.jsxs)(j.ZP,{disabled:ue,onClick:function(){J(!0)},type:"default",children:[(0,z.jsx)("span",{style:{marginRight:"5px",fontSize:"12px"},className:"iconfont icon-piliangdaoru translateY1"})," ","批量导入"]}),(0,z.jsxs)(j.ZP,{disabled:ue,onClick:function(){(0,T.xo)({ec_year_id:null==s?void 0:s.ec_year_id})},type:"default",children:[(0,z.jsx)("span",{style:{marginRight:"5px",fontSize:"12px"},className:"iconfont icon-daochubeifen translateY1"})," ","导出"]})]})]}),(0,z.jsxs)("div",{style:{background:"#F5F5F5",height:"38px",display:"flex",alignItems:"center",padding:"0px 15px",fontSize:"14px"},children:[(0,z.jsx)("span",{style:{flex:"1"},children:"毕业要求及指标点"}),(0,z.jsx)("span",{style:{flex:3,margin:"0px 15px"},children:"内容"}),(0,z.jsx)("span",{style:{width:65},children:"操作"})]}),!(null!=Q&&Q.length)&&(0,z.jsx)(q.Z,{customText:"暂无毕业要求,可点击右上角按钮“新增毕业要求”"}),null==Q?void 0:Q.map((function(e,n){return(0,z.jsx)(R,{setDatas:Y,datas:Q,item:e,index:n,params:s,getData:fe},n)})),K&&(0,z.jsxs)(C.Z,{width:700,title:"批量导入",open:K,centered:!0,okButtonProps:{loading:ae},wrapClassName:x,onCancel:function(){J(!1),oe([])},onOk:u()(r()().mark((function e(){var n,t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=new FormData,!(te.length>0)){e.next=5;break}n.append("file",te[0]),e.next=7;break;case 5:return y.ZP.warning("请选择文件"),e.abrupt("return");case 7:return n.append("ec_year_id",s.ec_year_id),se(!0),e.next=11,(0,N.ZP)("/api/ec_years/".concat(s.ec_year_id,"/ec_graduation_requirements/import_requirements.json"),{method:"post",body:n},!0);case 11:t=e.sent,se(!1),0===(null==t?void 0:t.status)&&(y.ZP.info("添加成功"),oe([]),J(!1),fe(s));case 14:case"end":return e.stop()}}),e)}))),children:[(0,z.jsxs)("div",{className:_,children:["步骤1下载",(0,z.jsx)("i",{className:"iconfont icon-moban1"}),(0,z.jsx)("a",{href:F.Z.API_SERVER+"/api/ec_years/1/ec_graduation_requirements/import_template.xlsx",download:"模版.xlsx",children:"毕业要求导入模板"}),",批量导入毕业要求及指标点。",(0,z.jsx)("span",{style:{color:"#FA6400"},children:"注目前仅支持Excel格式模板"})]}),(0,z.jsxs)(w.Z,{align:"middle",children:[(0,z.jsx)(Z.Z,{children:"步骤2上传填写完成的模板。"}),(0,z.jsx)(Z.Z,{children:(0,z.jsx)(k.Z,c()(c()({},ve),{},{children:(0,z.jsx)(j.ZP,{type:"primary",icon:(0,z.jsx)(S.Z,{}),children:"选择文件"})}))})]})]})]})}))},91997:function(e,n,t){t.d(n,{p:function(){return i},v:function(){return s}});t(59301);var o="panelTitleContainer___Ypuh_",r=t(37712),i=function(e){var n=e.title,t=e.style,i=void 0===t?{}:t;return(0,r.jsx)("div",{className:o,style:i,children:(0,r.jsx)("div",{children:n})})},a="selectWrapContainer___qocIH",s=function(e){var n=e.title,t=e.children;return(0,r.jsxs)("div",{className:a,children:[(0,r.jsx)("span",{children:n}),t]})}},56762:function(e,n,t){t.d(n,{Z:function(){return r}});var o=t(59301);function r(){const[,e]=o.useReducer((e=>e+1),0);return e}},92832:function(e,n,t){t.d(n,{Z:function(){return N}});var o=t(92310),r=t.n(o),i=t(59301),a=t(36355),s=t(32441),c=t(9937);var l=e=>{const{getPrefixCls:n,direction:t}=(0,i.useContext)(a.E_),{prefixCls:o,className:l}=e,u=n("input-group",o),d=n("input"),[p,f]=(0,c.ZP)(d),m=r()(u,{[`${u}-lg`]:"large"===e.size,[`${u}-sm`]:"small"===e.size,[`${u}-compact`]:e.compact,[`${u}-rtl`]:"rtl"===t},f,l),v=(0,i.useContext)(s.aM),h=(0,i.useMemo)((()=>Object.assign(Object.assign({},v),{isFormItemInput:!1})),[v]);return p(i.createElement("span",{className:m,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},i.createElement(s.aM.Provider,{value:h},e.children)))},u=t(9432),d=t(22893),p=t(50382),f=t(55405),m=t(25629),v=t(59412),h=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]])}return t};const x=e=>e?i.createElement(p.Z,null):i.createElement(d.Z,null),_={click:"onClick",hover:"onMouseOver"};var g=i.forwardRef(((e,n)=>{const{visibilityToggle:t=!0}=e,o="object"==typeof t&&void 0!==t.visible,[s,c]=(0,i.useState)((()=>!!o&&t.visible)),l=(0,i.useRef)(null);i.useEffect((()=>{o&&c(t.visible)}),[o,t]);const d=(0,v.Z)(l),p=()=>{const{disabled:n}=e;n||(s&&d(),c((e=>{var n;const o=!e;return"object"==typeof t&&(null===(n=t.onVisibleChange)||void 0===n||n.call(t,o)),o})))},{className:g,prefixCls:y,inputPrefixCls:b,size:j}=e,C=h(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:w}=i.useContext(a.E_),Z=w("input",b),k=w("input-password",y),O=t&&(n=>{const{action:t="click",iconRender:o=x}=e,r=_[t]||"",a=o(s),c={[r]:p,className:`${n}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return i.cloneElement(i.isValidElement(a)?a:i.createElement("span",null,a),c)})(k),S=r()(k,g,{[`${k}-${j}`]:!!j}),N=Object.assign(Object.assign({},(0,f.Z)(C,["suffix","iconRender","visibilityToggle"])),{type:s?"text":"password",className:S,prefixCls:Z,suffix:O});return j&&(N.size=j),i.createElement(u.Z,Object.assign({ref:(0,m.sQ)(n,l)},N))})),y=t(42653),b=t(92343),j=t(3113),C=t(19716),w=t(33234),Z=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]])}return t};var k=i.forwardRef(((e,n)=>{const{prefixCls:t,inputPrefixCls:o,className:s,size:c,suffix:l,enterButton:d=!1,addonAfter:p,loading:f,disabled:v,onSearch:h,onChange:x,onCompositionStart:_,onCompositionEnd:g}=e,k=Z(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:O,direction:S}=i.useContext(a.E_),N=i.useRef(!1),P=O("input-search",t),E=O("input",o),{compactSize:I}=(0,w.ri)(P,S),z=(0,C.Z)((e=>{var n;return null!==(n=null!=c?c:I)&&void 0!==n?n:e})),M=i.useRef(null),$=e=>{var n;document.activeElement===(null===(n=M.current)||void 0===n?void 0:n.input)&&e.preventDefault()},D=e=>{var n,t;h&&h(null===(t=null===(n=M.current)||void 0===n?void 0:n.input)||void 0===t?void 0:t.value,e,{source:"input"})},R="boolean"==typeof d?i.createElement(y.Z,null):null,T=`${P}-button`;let B;const q=d||{},F=q.type&&!0===q.type.__ANT_BUTTON;B=F||"button"===q.type?(0,b.Tm)(q,Object.assign({onMouseDown:$,onClick:e=>{var n,t;null===(t=null===(n=null==q?void 0:q.props)||void 0===n?void 0:n.onClick)||void 0===t||t.call(n,e),D(e)},key:"enterButton"},F?{className:T,size:z}:{})):i.createElement(j.ZP,{className:T,type:d?"primary":void 0,size:z,disabled:v,key:"enterButton",onMouseDown:$,onClick:D,loading:f,icon:R},d),p&&(B=[B,(0,b.Tm)(p,{key:"addonAfter"})]);const L=r()(P,{[`${P}-rtl`]:"rtl"===S,[`${P}-${z}`]:!!z,[`${P}-with-button`]:!!d},s);return i.createElement(u.Z,Object.assign({ref:(0,m.sQ)(M,n),onPressEnter:e=>{N.current||f||D(e)}},k,{size:z,onCompositionStart:e=>{N.current=!0,null==_||_(e)},onCompositionEnd:e=>{N.current=!1,null==g||g(e)},prefixCls:E,addonAfter:B,suffix:l,onChange:e=>{e&&e.target&&"click"===e.type&&h&&h(e.target.value,e,{source:"clear"}),x&&x(e)},className:L,disabled:v}))})),O=t(1643);const S=u.Z;S.Group=l,S.Search=k,S.TextArea=O.Z,S.Password=g;var N=S},57809:function(e,n,t){var o=t(92310),r=t.n(o),i=t(77861),a=t(55405),s=t(59301),c=t(53487),l=t(62892),u=t(19080),d=t(36355),p=t(1684),f=t(93891),m=t(19716),v=t(32441),h=t(33234),x=t(14154),_=t(58582),g=t(84443),y=t(66339),b=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]])}return t};const j="SECRET_COMBOBOX_MODE_DO_NOT_USE",C=(e,n)=>{var t,{prefixCls:o,bordered:c=!0,className:C,rootClassName:w,getPopupContainer:Z,popupClassName:k,dropdownClassName:O,listHeight:S=256,placement:N,listItemHeight:P=24,size:E,disabled:I,notFoundContent:z,status:M,builtinPlacements:$,dropdownMatchSelectWidth:D,popupMatchSelectWidth:R,direction:T,style:B,allowClear:q}=e,F=b(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:L,getPrefixCls:A,renderEmpty:H,direction:W,virtual:U,popupMatchSelectWidth:V,popupOverflow:Q,select:Y}=s.useContext(d.E_),X=A("select",o),G=A(),K=null!=T?T:W,{compactSize:J,compactItemClassnames:ee}=(0,h.ri)(X,K),[ne,te]=(0,x.Z)(X),oe=s.useMemo((()=>{const{mode:e}=F;if("combobox"!==e)return e===j?"combobox":e}),[F.mode]),re="multiple"===oe||"tags"===oe,ie=(0,g.Z)(F.suffixIcon,F.showArrow),ae=null!==(t=null!=R?R:D)&&void 0!==t?t:V,{status:se,hasFeedback:ce,isFormItemInput:le,feedbackIcon:ue}=s.useContext(v.aM),de=(0,u.F)(se,M);let pe;pe=void 0!==z?z:"combobox"===oe?null:(null==H?void 0:H("Select"))||s.createElement(f.Z,{componentName:"Select"});const{suffixIcon:fe,itemIcon:me,removeIcon:ve,clearIcon:he}=(0,y.Z)(Object.assign(Object.assign({},F),{multiple:re,hasFeedback:ce,feedbackIcon:ue,showSuffixIcon:ie,prefixCls:X,showArrow:F.showArrow,componentName:"Select"})),xe=!0===q?{clearIcon:he}:q,_e=(0,a.Z)(F,["suffixIcon","itemIcon"]),ge=r()(k||O,{[`${X}-dropdown-${K}`]:"rtl"===K},w,te),ye=(0,m.Z)((e=>{var n;return null!==(n=null!=E?E:J)&&void 0!==n?n:e})),be=s.useContext(p.Z),je=null!=I?I:be,Ce=r()({[`${X}-lg`]:"large"===ye,[`${X}-sm`]:"small"===ye,[`${X}-rtl`]:"rtl"===K,[`${X}-borderless`]:!c,[`${X}-in-form-item`]:le},(0,u.Z)(X,de,ce),ee,null==Y?void 0:Y.className,C,w,te),we=s.useMemo((()=>void 0!==N?N:"rtl"===K?"bottomRight":"bottomLeft"),[N,K]),Ze=(0,_.Z)($,Q);return ne(s.createElement(i.ZP,Object.assign({ref:n,virtual:U,showSearch:null==Y?void 0:Y.showSearch},_e,{style:Object.assign(Object.assign({},null==Y?void 0:Y.style),B),dropdownMatchSelectWidth:ae,builtinPlacements:Ze,transitionName:(0,l.m)(G,"slide-up",F.transitionName),listHeight:S,listItemHeight:P,mode:oe,prefixCls:X,placement:we,direction:K,suffixIcon:fe,menuItemSelectedIcon:me,removeIcon:ve,allowClear:xe,notFoundContent:pe,className:Ce,getPopupContainer:Z||L,dropdownClassName:ge,disabled:je})))};const w=s.forwardRef(C),Z=(0,c.Z)(w);w.SECRET_COMBOBOX_MODE_DO_NOT_USE=j,w.Option=i.Wx,w.OptGroup=i.Xo,w._InternalPanelDoNotUseOrYouWillBeFired=Z,n.default=w},8378:function(e,n){n.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`}}})}}]);