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

1 line
9.6 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([[66651],{14839:function(e,t,a){a.r(t),a.d(t,{default:function(){return k}});var n=a(26801),i=a.n(n),l=a(27161),r=a.n(l),s=a(59301),o=a(22211),c="evaluateDetailContainer___I2lI8",d="headerContainer___RP60j",u="breadcrumd___SFPna",h=a(24037),g=a(37712),x=(0,o.connect)((function(e){var t=e.loading,a=e.engineeringEvaluteDetail;return i()({loading:t},a)}))((function(){return(0,g.jsxs)("div",{className:d,children:[(0,g.jsxs)("div",{className:u,children:[(0,g.jsx)("span",{onClick:function(){o.history.push("/engineering/evaluate/course")},children:"课程评价"}),(0,g.jsx)("span",{children:">>"}),(0,g.jsx)("span",{children:"评价详情"})]}),(0,g.jsx)(h.p,{title:"评价详情",style:{padding:"12px 0 0 0"}})]})})),p="evaluateDetailContainer___YrmXK",v="red___MLKvr",m="green___Dwseg",y="name___mNPwy",f=a(6848),_=a(72315),S=(0,o.connect)((function(e){var t=e.engineeringEvaluteDetail,a=e.loading;return i()({loading:a},t)}))((function(e){var t=e.loading,a=e.name,n=e.tabListData,i=[{title:"分项",dataIndex:"position",width:96,align:"center"},{title:"课程目标",dataIndex:"content",ellipsis:{showTitle:!1},render:function(e){return(0,g.jsx)(f.Z,{placement:"topLeft",title:e,children:e})}},{title:"课程权重",dataIndex:"weigths",align:"center",width:80},{title:"考核方式",dataIndex:"ways",width:230,ellipsis:{showTitle:!1},render:function(e){if(e&&e.length>0){var t=e.toString();return(0,g.jsx)(f.Z,{placement:"top",title:t,children:t})}return"--"}},{title:"达成分值",dataIndex:"standard_grade",align:"center",width:80},{title:"实际分值",dataIndex:"actual_grade",align:"center",width:80},{title:"评价结果",dataIndex:"status",width:94,align:"center",render:function(e){return(0,g.jsx)("div",{className:e?m:v,children:e?"达成":"未达成"})}}];return(0,g.jsxs)("div",{className:p,children:[(0,g.jsxs)("div",{className:y,children:[a,"达成评价说明"]}),(0,g.jsx)(_.Z,{loading:t.effects["engineeringEvaluteDetail/getCourseResultDetail"],rowKey:"id",columns:i,bordered:!1,dataSource:n,pagination:!1})]})})),D=a(42441),j="evaluateEchartContainer___w4ehu",w="echartsWrap___zXCuT",b="no___IWJUT",E="title___hJp0r",C={evaluateSelectContainer:"evaluateSelectContainer___JjsG0",title:"title___cyEig"},L=a(57809),N=(0,o.connect)((function(e){var t=e.engineeringEvaluteDetail,a=e.loading;return i()({loading:a},t)}))((function(e){var t=e.dispatch,a=e.classDataSource;console.log(a,"classDataSource");var n=a.active,l=a.dataList,r=(0,o.useParams)();return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{style:{height:20,backgroundColor:"#fafafa"}}),(0,g.jsxs)("div",{className:C.evaluateSelectContainer,children:[(0,g.jsx)("div",{className:C.title,children:"学生能力达成情况图"}),(0,g.jsxs)("div",{className:C.s,children:["班级:",(0,g.jsxs)(L.default,{style:{width:138,marginRight:32},value:n,onChange:function(e){t({type:"engineeringEvaluteDetail/setClassActive",payload:{active:e,dataList:l}}),t({type:"engineeringEvaluteDetail/getCourseResultDetail",payload:i()(i()({},r),{},{class_name:e})})},children:[(0,g.jsx)(L.default.Option,{value:null,children:"全部"}),null==l?void 0:l.map((function(e){return(0,g.jsx)(L.default.Option,{value:e,children:e})}))]})]})]})]})})),z=["#5470C6","#91CC75","#EE6666"],B=(0,o.connect)((function(e){var t=e.engineeringEvaluteDetail;return i()({},t)}))((function(e){var t=e.echartsData,a=function(e){return{tooltip:{position:"top",formatter:function(t){var a,n,i,l=t.seriesName,r=(t.name,t.value),s=t.dataIndex;return console.log(e,"list"),["平均分值","目标分值"].includes(l)?"":"姓名:".concat(null==e||null===(a=e.name_data)||void 0===a?void 0:a[s],"<br>学号:").concat(null==e||null===(n=e.student_ids)||void 0===n?void 0:n[s],"<br>班级:").concat(null==e||null===(i=e.class_data)||void 0===i?void 0:i[s],"<br>分数:").concat(r)}},legend:{right:42,data:[{name:"已达标",icon:"path://M512 896c281.6 0 512-230.4 512-512S793.6-128 512-128 0 102.4 0 384s230.4 512 512 512z",textStyle:{color:"#464F66",fontSize:12,padding:[0,44,0,0]}},{name:"未达标",icon:"path://M512 896c281.6 0 512-230.4 512-512S793.6-128 512-128 0 102.4 0 384s230.4 512 512 512z",textStyle:{color:"#464F66",fontSize:12,padding:[0,12,0,0]}}]},grid:{left:70,right:115},title:{text:"课程目标".concat(e.name,"学生能力达成情况图"),left:20,textStyle:{color:"#6B758B",fontSize:14,fontWeight:400}},xAxis:{name:"学生序号",nameTextStyle:{color:"#6B758B",fontWeight:400,fontSize:12,padding:[50,0,0,0]},axisTick:{alignWithLabel:!0,show:!1},splitLine:{show:!1},axisLine:{lineStyle:{color:"#E0E2EC"}},axisLabel:{color:"#6B758B",margin:20,showMaxLabel:!0},data:e.xData},yAxis:{type:"value",name:"分数",nameTextStyle:{padding:[0,35,0,0]},position:"left",alignTicks:!0,axisTick:{show:!1},splitLine:{show:!0,lineStyle:{color:"#E0E2EC"}},axisLine:{show:!1,lineStyle:{color:"#6B758B"}}},series:[{name:"已达标",type:"scatter",symbolSize:12,itemStyle:{color:"#0152D9"},data:e.yData.max},{name:"未达标",type:"scatter",symbolSize:12,itemStyle:{color:"#98BDF7"},data:e.yData.min},{name:"平均分值",type:"line",symbolSize:1,cursor:"default",data:e.average_scoreData,lineStyle:{color:"#0152D9",type:"dashed"},label:{show:!0,position:"right",formatter:function(t){var a;return t.dataIndex===e.average_scoreData.length-1?"平均分值"+(null==e||null===(a=e.average_scoreData)||void 0===a?void 0:a[0]):""},color:"#0152D9"}},{name:"目标分值",type:"line",symbolSize:1,cursor:"default",data:e.goal_scoreData,lineStyle:{color:"#1CA261",type:"dashed"},label:{show:!0,position:"right",formatter:function(t){var a;return t.dataIndex===e.goal_scoreData.length-1?"目标分值"+(null==e||null===(a=e.goal_scoreData)||void 0===a?void 0:a[0]):""},color:"#1CA261"}}]}};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:j,children:[(0,g.jsxs)("div",{className:w,children:[(0,g.jsxs)("div",{className:E,children:[t.barData.name,"达成分析"]}),(0,g.jsx)(D.Z,{option:{color:z,tooltip:{show:!0,trigger:"axis",formatter:function(e){var t="课程目标"+e[0].name;return e.forEach((function(e){t+="<br/>",t+='<span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:'+e.color+'"></span>',t+=e.seriesName+"",t+=isNaN(e.value)?0:e.value})),t}},grid:{left:70,right:45},legend:{right:42,data:[{name:"实际分值",icon:"path://M0 0h204.8v1024H0zM409.6 409.6h204.8v614.4H409.6zM819.2 204.8h204.8v819.2H819.2z",textStyle:{color:"#464F66",fontSize:12,padding:[0,25,0,0]}},{name:"达成分值",icon:"path://M1405.66347426 933.875L1042.7602489 271.57661309 625.42153893 924.8024191 307.88121642 643.55241937l54.43548375-72.58064557L607.27637795 788.71370968 1051.83282897 90.125 1423.80863607 770.5685487 1768.56670046 362.30241965l235.88709686 381.04838718-81.65322647 45.36290285-163.3064513-272.17741964z",textStyle:{color:"#464F66",fontSize:12}}]},xAxis:[{type:"category",axisTick:{alignWithLabel:!0,show:!1},axisLine:{lineStyle:{color:"#E0E2EC"}},axisLabel:{color:"#6B758B",margin:20,formatter:function(e){return"课程目标".concat(e)}},data:t.barData.dataSource.xData}],yAxis:{type:"value",name:"分数",nameTextStyle:{padding:[0,35,0,0]},position:"left",alignTicks:!0,axisTick:{show:!1},splitLine:{show:!0,lineStyle:{color:"#E0E2EC"}},axisLine:{show:!1,lineStyle:{color:"#6B758B"}},axisLabel:{}},series:[{name:"实际分值",type:"bar",data:t.barData.dataSource.yBarData},{name:"达成分值",type:"line",symbol:"circle",symbolSize:6,data:t.barData.dataSource.yLineData}]},style:{width:"100%"}})]}),(0,g.jsx)(N,{}),Object.values(t.scatterData).map((function(e,t){return(0,g.jsx)("div",{className:w,children:(0,g.jsx)(D.Z,{option:a(e)})},t)}))]}),(0,g.jsx)("div",{className:j,children:(0,g.jsxs)("div",{className:"".concat(w," ").concat(b),children:[(0,g.jsxs)("div",{className:E,children:[t.lineData.name,"达成分析"]}),(0,g.jsx)(D.Z,{option:{tooltip:{show:!0,trigger:"axis",formatter:"分数: {c}"},legend:{right:42,data:[{name:"课程达成度",icon:"path://M1337.668817 1024L897.23871 220.215054 390.744086 1012.989247 5.367742 671.655914l66.064516-88.086022L368.722581 847.827957 908.249462 0 1359.690323 825.806452 1778.098925 330.322581l286.27957 462.451613-99.096775 55.053763-198.193548-330.322581z",textStyle:{color:"#464F66"}}]},grid:{left:60,right:45},xAxis:{type:"category",axisTick:{alignWithLabel:!0,show:!1},splitLine:{show:!1},axisLine:{show:!1,lineStyle:{color:"#E0E2EC"}},axisLabel:{color:"#6B758B",rotate:45,margin:20},data:t.lineData.xData},yAxis:{type:"value",name:"分数",nameTextStyle:{padding:[0,35,0,0]},position:"left",alignTicks:!0,axisTick:{show:!1},splitLine:{show:!0,lineStyle:{color:"#E0E2EC"}},axisLine:{show:!1,lineStyle:{color:"#6B758B"}}},series:[{name:"课程达成度",symbol:"circle",symbolSize:6,itemStyle:{color:"#0152D9"},data:t.lineData.seriesData,type:"line"}]}})]})})]})})),T=["dispatch"],k=(0,o.connect)((function(e){var t=e.engineeringEvaluteDetail;return i()({},t)}))((function(e){var t=e.dispatch,a=(r()(e,T),(0,o.useParams)());return(0,s.useEffect)((function(){a.ec_year_id&&a.id&&(t({type:"engineeringEvaluteDetail/getCourseResultDetail",payload:a}),t({type:"engineeringEvaluteDetail/getCourseResultDetailClass",payload:a}))}),[]),(0,g.jsxs)("div",{className:c,children:[(0,g.jsx)(x,{}),(0,g.jsx)(S,{}),(0,g.jsx)(B,{})]})}))},24037:function(e,t,a){a.d(t,{p:function(){return l},v:function(){return s}});a(59301);var n="panelTitleContainer___Ypuh_",i=a(37712),l=function(e){var t=e.title,a=e.style,l=void 0===a?{}:a;return(0,i.jsx)("div",{className:n,style:l,children:(0,i.jsx)("div",{children:t})})},r="selectWrapContainer___qocIH",s=function(e){var t=e.title,a=e.children;return(0,i.jsxs)("div",{className:r,children:[(0,i.jsx)("span",{children:t}),a]})}}}]);