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.
1 line
12 KiB
1 line
12 KiB
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[4973],{89136:function(e,t,n){n.d(t,{Z:function(){return s}});var i=n(1565),a=n(59301),r={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"},o=n(68475),l=function(e,t){return a.createElement(o.Z,(0,i.Z)({},e,{ref:t,icon:r}))};var s=a.forwardRef(l)},63695:function(e,t,n){n.r(t),n.d(t,{default:function(){return w}});var i=n(82242),a=n.n(i),r=n(79800),o=n.n(r),l=n(59301),s=n(7880),c="evaluateContainer___ywXNF",u="header___pX29F",d="select___QJc1x",p="button___Z7ioB",f=n(71074),v=n(57809),g=n(71418),h=n(3113),m={evaluateContainer:"evaluateContainer___UtSup",red:"red___4997a",green:"green___sNh2a"},y=n(6848),x=n(81327),C=n(71796),j=n(14491),b=n(23115),E=n(37712),k=(0,s.connect)((function(e){var t=e.engineeringEvaluteList,n=e.loading;return a()({loading:n},t)}))((function(e){var t=e.headerData,n=e.tabListData,i=e.loading,a=e.dispatch,r=[{title:"序号",dataIndex:"key",width:67,align:"center",render:function(e){return(0,E.jsx)("div",{children:e||"--"})}},{title:"课程名称",dataIndex:"name",ellipsis:{showTitle:!1},render:function(e){return(0,E.jsx)(y.Z,{placement:"topLeft",title:e,children:e})}},{title:"授课教师",dataIndex:"course_teachers",ellipsis:{showTitle:!1},width:100,render:function(e){return(0,E.jsx)(y.Z,{placement:"topLeft",title:e,children:e||"--"})}},{title:"认证工作教师",dataIndex:"work_teachers",align:"left",width:120,render:function(e){return(0,E.jsx)(y.Z,{placement:"topLeft",title:e,children:e||"--"})}},{title:"课程目标达成度",dataIndex:"course_target",align:"center",width:120,render:function(e){var t=e.split("/")||[],n="";return t.length>1&&(n=t[0]===t[1]?"green":"red"),(0,E.jsx)("div",{className:m[n],children:e})}},{title:"评价结果",dataIndex:"result",align:"center",width:75,render:function(e){return(0,E.jsx)("div",{className:["已达成","达成"].includes(e)?m.green:m.red,children:e})}},{title:"状态",dataIndex:"status",width:60},{title:"计算时间",dataIndex:"evaluation_time",width:170,render:function(e){return(0,E.jsx)("div",{children:e||"--"})}},{title:"操作",width:68,render:function(e){return(0,E.jsxs)(x.Z,{children:[(0,E.jsx)(C.Z.Link,{onClick:function(){return o(e.id)},children:(0,E.jsx)("i",{className:"iconfont icon-jisuan",style:{color:"#0152D9"}})}),(0,E.jsx)(C.Z.Link,{onClick:function(){return s.history.push("/engineering/evaluate/course/".concat(t.active[b.k[1]],"/").concat(e.id))},children:(0,E.jsx)("i",{className:"iconfont icon-chakansvg",style:{color:"#0152D9"}})})]})}}],o=function(e){a({type:"engineeringEvaluteList/compute",payload:{all:!1,ec_course_id:e}})};return(0,E.jsx)("div",{className:m.evaluateContainer,children:(0,E.jsx)(j.Z,{loading:i.effects["engineeringEvaluteList/getCourseResults"]||i.effects["engineeringEvaluteList/compute"],rowKey:"id",columns:r,bordered:!1,dataSource:n.dataSource,pagination:{onChange:function(e,t){a({type:"engineeringEvaluteList/getCourseResults",payload:{page:e,per_page:t}})},position:["bottomCenter"],total:n.total,current:n.pageNo,pageSize:n.pageSize,showQuickJumper:!0,showSizeChanger:!0,size:"default",pageSizeOptions:["10","20","50","100"]}})})})),_=v.default.Option,w=(0,s.connect)((function(e){var t=e.user,n=e.engineeringEvaluteList,i=e.loading;return a()({loading:i,user:t},n)}))((function(e){var t,n=e.user,i=e.headerData,a=e.tabListData,r=e.dispatch,s=e.loading,m=(0,l.useRef)(!0);(0,l.useEffect)((function(){var e;return null!==(e=n.userInfo)&&void 0!==e&&e.login&&r({type:"engineeringEvaluteList/getMajorList"}),function(){r({type:"engineeringEvaluteList/save",payload:{actionTabs:{key:"",params:{}}}}),r({type:"engineeringEvaluteList/setMajorOrYearActive",payload:{key:b.k[0],value:""}}),r({type:"engineeringEvaluteList/setMajorOrYearActive",payload:{key:b.k[1],value:""}})}}),[null===(t=n.userInfo)||void 0===t?void 0:t.login]),(0,l.useEffect)((function(){i.active[b.k[0]]&&(r({type:"engineeringEvaluteList/getYearList",payload:{id:i.active[b.k[0]],firstEnter:m.current}}),m.current=!1),r({type:"engineeringEvaluteList/setMajorOrYearDataSource",payload:{key:b.k[1],value:[]}}),r({type:"engineeringEvaluteList/setMajorOrYearActive",payload:{key:b.k[1],value:""}})}),[i.active[b.k[0]]]),(0,l.useEffect)((function(){r({type:"engineeringEvaluteList/getCourseResults"})}),[i.active[b.k[1]]]);return(0,E.jsx)(g.Z,{spinning:s.effects["engineeringEvaluteList/compute"]||!1,children:(0,E.jsxs)("div",{className:c,children:[(0,E.jsx)(f.p,{title:"课程评价"}),(0,E.jsxs)("div",{className:u,children:[(0,E.jsx)("div",{className:d,children:Object.entries(i.dataSource).map((function(e){var t=o()(e,2),n=t[0],a=t[1];return(0,E.jsx)(f.v,{title:n,children:(0,E.jsx)(v.default,{style:{width:a.width},value:i.active[n]||void 0,bordered:!1,placeholder:a.placeholder,loading:s.effects[a.loading],onChange:function(e){return function(e,t){r({type:"engineeringEvaluteList/setMajorOrYearActive",payload:{key:e,value:t}})}(n,e)},children:a.dataList.map((function(e){return(0,E.jsx)(_,{value:e.value,children:e.label},e.value)}))})},n)}))}),(0,E.jsxs)("div",{className:p,children:[(0,E.jsx)(h.ZP,{type:"primary",icon:(0,E.jsx)("i",{className:"iconfont icon-jisuan"}),disabled:!i.active[b.k[1]]||!a.dataSource.length,onClick:function(){a.dataSource.length&&i.active[b.k[1]]&&r({type:"engineeringEvaluteList/compute",payload:{all:!0,ec_year_id:i.active[b.k[1]]}})},children:"全部计算"}),(0,E.jsx)(h.ZP,{disabled:!i.active[b.k[1]]||!a.dataSource.length,onClick:function(){r({type:"engineeringEvaluteList/exportCourse"})},type:"default",icon:(0,E.jsx)("i",{className:"iconfont icon-daochubeifen "}),children:"导出"})]})]}),(0,E.jsx)(k,{})]})})}))},71074:function(e,t,n){n.d(t,{p:function(){return r},v:function(){return l}});n(59301);var i="panelTitleContainer___Ypuh_",a=n(37712),r=function(e){var t=e.title,n=e.style,r=void 0===n?{}:n;return(0,a.jsx)("div",{className:i,style:r,children:(0,a.jsx)("div",{children:t})})},o="selectWrapContainer___qocIH",l=function(e){var t=e.title,n=e.children;return(0,a.jsxs)("div",{className:o,children:[(0,a.jsx)("span",{children:t}),n]})}},98135:function(e,t,n){n.d(t,{Z:function(){return M}});var i=n(92310),a=n.n(i),r=n(59301),o=n(36355),l=n(32441),s=n(9937);var c=e=>{const{getPrefixCls:t,direction:n}=(0,r.useContext)(o.E_),{prefixCls:i,className:c}=e,u=t("input-group",i),d=t("input"),[p,f]=(0,s.ZP)(d),v=a()(u,{[`${u}-lg`]:"large"===e.size,[`${u}-sm`]:"small"===e.size,[`${u}-compact`]:e.compact,[`${u}-rtl`]:"rtl"===n},f,c),g=(0,r.useContext)(l.aM),h=(0,r.useMemo)((()=>Object.assign(Object.assign({},g),{isFormItemInput:!1})),[g]);return p(r.createElement("span",{className:v,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},r.createElement(l.aM.Provider,{value:h},e.children)))},u=n(9432),d=n(1565),p={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"},f=n(68475),v=function(e,t){return r.createElement(f.Z,(0,d.Z)({},e,{ref:t,icon:p}))};var g=r.forwardRef(v),h=n(89136),m=n(70521),y=n(16863),x=n(59412),C=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(n[i[a]]=e[i[a]])}return n};const j=e=>e?r.createElement(h.Z,null):r.createElement(g,null),b={click:"onClick",hover:"onMouseOver"};var E=r.forwardRef(((e,t)=>{const{visibilityToggle:n=!0}=e,i="object"==typeof n&&void 0!==n.visible,[l,s]=(0,r.useState)((()=>!!i&&n.visible)),c=(0,r.useRef)(null);r.useEffect((()=>{i&&s(n.visible)}),[i,n]);const d=(0,x.Z)(c),p=()=>{const{disabled:t}=e;t||(l&&d(),s((e=>{var t;const i=!e;return"object"==typeof n&&(null===(t=n.onVisibleChange)||void 0===t||t.call(n,i)),i})))},{className:f,prefixCls:v,inputPrefixCls:g,size:h}=e,E=C(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:k}=r.useContext(o.E_),_=k("input",g),w=k("input-password",v),L=n&&(t=>{const{action:n="click",iconRender:i=j}=e,a=b[n]||"",o=i(l),s={[a]:p,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return r.cloneElement(r.isValidElement(o)?o:r.createElement("span",null,o),s)})(w),O=a()(w,f,{[`${w}-${h}`]:!!h}),N=Object.assign(Object.assign({},(0,m.Z)(E,["suffix","iconRender","visibilityToggle"])),{type:l?"text":"password",className:O,prefixCls:_,suffix:L});return h&&(N.size=h),r.createElement(u.Z,Object.assign({ref:(0,y.sQ)(t,c)},N))})),k=n(11013),_=n(92343),w=n(3113),L=n(19716),O=n(33234),N=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(n[i[a]]=e[i[a]])}return n};var Z=r.forwardRef(((e,t)=>{const{prefixCls:n,inputPrefixCls:i,className:l,size:s,suffix:c,enterButton:d=!1,addonAfter:p,loading:f,disabled:v,onSearch:g,onChange:h,onCompositionStart:m,onCompositionEnd:x}=e,C=N(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:j,direction:b}=r.useContext(o.E_),E=r.useRef(!1),Z=j("input-search",n),z=j("input",i),{compactSize:S}=(0,O.ri)(Z,b),M=(0,L.Z)((e=>{var t;return null!==(t=null!=s?s:S)&&void 0!==t?t:e})),P=r.useRef(null),I=e=>{var t;document.activeElement===(null===(t=P.current)||void 0===t?void 0:t.input)&&e.preventDefault()},D=e=>{var t,n;g&&g(null===(n=null===(t=P.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},R="boolean"==typeof d?r.createElement(k.Z,null):null,T=`${Z}-button`;let $;const A=d||{},B=A.type&&!0===A.type.__ANT_BUTTON;$=B||"button"===A.type?(0,_.Tm)(A,Object.assign({onMouseDown:I,onClick:e=>{var t,n;null===(n=null===(t=null==A?void 0:A.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),D(e)},key:"enterButton"},B?{className:T,size:M}:{})):r.createElement(w.ZP,{className:T,type:d?"primary":void 0,size:M,disabled:v,key:"enterButton",onMouseDown:I,onClick:D,loading:f,icon:R},d),p&&($=[$,(0,_.Tm)(p,{key:"addonAfter"})]);const Q=a()(Z,{[`${Z}-rtl`]:"rtl"===b,[`${Z}-${M}`]:!!M,[`${Z}-with-button`]:!!d},l);return r.createElement(u.Z,Object.assign({ref:(0,y.sQ)(P,t),onPressEnter:e=>{E.current||f||D(e)}},C,{size:M,onCompositionStart:e=>{E.current=!0,null==m||m(e)},onCompositionEnd:e=>{E.current=!1,null==x||x(e)},prefixCls:z,addonAfter:$,suffix:c,onChange:e=>{e&&e.target&&"click"===e.type&&g&&g(e.target.value,e,{source:"clear"}),h&&h(e)},className:Q,disabled:v}))})),z=n(1643);const S=u.Z;S.Group=c,S.Search=Z,S.TextArea=z.Z,S.Password=E;var M=S}}]); |