1 |
- !function(){var e=document.createElement("style");e.innerHTML="._radioSection_fvm6e_1{position:relative;min-width:.85333rem;line-height:.53333rem;justify-content:center;font-weight:500}._radioItem_fvm6e_8{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}._radioSection_fvm6e_1+._radioSection_fvm6e_1{margin-left:.53333rem}._unitList_fvm6e_19{padding-top:.32rem}._unitList_fvm6e_19 ._liveList_fvm6e_22{margin-top:.32rem;border-radius:.26667rem;overflow:hidden}._unitList_fvm6e_19 ._manageCell_fvm6e_27{padding:.4rem .34667rem}._unitList_fvm6e_19 ._manageCell_fvm6e_27 ._TagWrap_fvm6e_30{display:flex;flex-direction:row;align-items:center}._unitList_fvm6e_19 ._manageCell_fvm6e_27 ._TagWrap_fvm6e_30 ._studentTag_fvm6e_35{background-color:#ff8057;border-radius:.10667rem;line-height:.50667rem;padding:0 .21333rem;color:#fff;margin-left:.16rem;font-weight:500;font-size:.32rem}._unitList_fvm6e_19 ._manageCell_fvm6e_27 ._TagWrap_fvm6e_30 ._A_PASS_fvm6e_45{background:rgba(255,128,87,.18);color:#f67146}._unitList_fvm6e_19 ._manageCell_fvm6e_27 ._TagWrap_fvm6e_30 ._B_NO_PASS_fvm6e_49{background:rgba(255,92,95,.18);color:#f67146}._unitList_fvm6e_19 ._manageCell_fvm6e_27 ._TagWrap_fvm6e_30 ._C_ING_fvm6e_53{background:rgba(96,218,161,.18);color:#4ab78e}._unitList_fvm6e_19 ._manageCell_fvm6e_27 ._TagWrap_fvm6e_30 ._D_NO_SUBMIT_fvm6e_57{background:rgba(100,169,255,.18);color:#64a9ff}._unitList_fvm6e_19 ._manageCell_fvm6e_27 ._img_fvm6e_61{width:1.28rem;height:1.28rem;overflow:hidden;border-radius:50%;margin-right:.26667rem}._unitList_fvm6e_19 ._manageCell_fvm6e_27 ._name_fvm6e_68{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem;max-width:5.33333rem}._unitList_fvm6e_19 ._manageCell_fvm6e_27 ._phone_fvm6e_75{padding-top:.10667rem;font-size:.34667rem;color:#777;line-height:.48rem}._unitList_fvm6e_19 ._manageCell_fvm6e_27 ._status_fvm6e_81{font-size:.42667rem;font-weight:500;color:#333}._unitList_fvm6e_19 ._manageCell_fvm6e_27 ._frozen_fvm6e_86{color:#f44541}\n",document.head.appendChild(e),System.register(["./index-legacy.eb062188.js","./index-legacy.ad813f4d.js","./quest-icon-legacy.8dd60bcc.js","./unit-list-item-legacy.93d9b3b6.js","./icon_teacher-legacy.07765f44.js","./index-legacy.d64e5695.js","./index-legacy.4e015ad0.js","./index-legacy.23ddccbf.js","./index-legacy.11f1ea5f.js","./index-legacy.fad72574.js","./index-legacy.918b8c74.js","./index-legacy.fecc738b.js","./index-legacy.e0860c0a.js","./index-legacy.ac7c51db.js","./icon-edit-legacy.4520ee5d.js","./icon-muit-message-legacy.68290c1f.js","./index-legacy.148f784c.js","./Checker-legacy.9bbda964.js","./use-tab-status-legacy.91417466.js","./index-legacy.fab451f1.js","./index-legacy.10d8486a.js"],(function(e){"use strict";var t,a,i,n,l,s,_,o,r,c,u,m,d,f,g,v,p,S,h,y,A,b,C,T,x,I,F,L,N,j,O,w;return{setters:[function(e){t=e.d,a=e.ag,i=e.ah,n=e.g,l=e.r,s=e.$,_=e.m,o=e.c,r=e.ak,c=e.al,u=e.R,m=e.y,d=e.aj,f=e.a5,g=e.B,v=e.q},function(e){p=e.O},function(e){S=e.q},function(e){h=e.U,y=e.s},function(e){A=e.i},function(e){b=e.O},function(e){C=e.u},function(e){T=e.R,x=e.a},function(e){I=e.T},function(e){F=e.L},function(e){L=e.C},function(e){N=e.I},function(e){j=e.O},function(e){O=e.T,w=e.a},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var k={radioSection:"_radioSection_fvm6e_1",radioItem:"_radioItem_fvm6e_8",unitList:"_unitList_fvm6e_19",liveList:"_liveList_fvm6e_22",manageCell:"_manageCell_fvm6e_27",TagWrap:"_TagWrap_fvm6e_30",studentTag:"_studentTag_fvm6e_35",A_PASS:"_A_PASS_fvm6e_45",B_NO_PASS:"_B_NO_PASS_fvm6e_49",C_ING:"_C_ING_fvm6e_53",D_NO_SUBMIT:"_D_NO_SUBMIT_fvm6e_57",img:"_img_fvm6e_61",name:"_name_fvm6e_68",phone:"_phone_fvm6e_75",status:"_status_fvm6e_81",frozen:"_frozen_fvm6e_86"};var E=t({name:"unit-student-list",props:{type:{type:Number,default:1}},setup(e){a();const t=i(),u=n.platformApi,m=l({classGroupUnitExaminationId:t.query.id,status:"",page:1}),d=l({list:[],listState:{dataShow:!0,loading:!1,finished:!1,refreshing:!1,height:0},oldValue:""});s((()=>{f()}));const f=async()=>{try{const t=await _.post(`${u}/studentUnitExamination/studentDetail`,{data:{...m},requestType:"form"});d.listState.loading=!1,d.listState.refreshing=!1;const a=t.data||{};if(d.list.length>0&&1===a.current)return;d.list=d.list=a[e.type]||[],d.listState.dataShow=d.list.length>0,d.listState.finished=!0}catch{d.listState.dataShow=!1,d.listState.finished=!0}},g=()=>{m.page=1,d.list=[],d.listState.dataShow=!0,d.listState.loading=!1,d.listState.finished=!1,f()},v=e=>{f()},p=e=>{e==d.oldValue?(m.status="",d.oldValue=""):d.oldValue=e};return()=>{let e;return o("div",{class:k.unitList},[o(T,{"checked-color":"#FF8057",modelValue:m.status,"onUpdate:modelValue":e=>m.status=e,direction:"horizontal",onChange:v},{default:()=>[o(I,{size:"large",type:"primary",color:"A_PASS"!==m.status?"#EAEAEA":"#FF8057",textColor:"A_PASS"!==m.status?"#AAA":"#FFF",class:k.radioSection},{default:()=>[o(x,{class:k.radioItem,name:"A_PASS",onClick:()=>p("A_PASS")},null),C.A_PASS]}),o(I,{size:"large",type:"primary",color:"B_NO_PASS"!==m.status?"#EAEAEA":"#FF8057",textColor:"B_NO_PASS"!==m.status?"#AAA":"#FFF",class:k.radioSection},{default:()=>[o(x,{class:k.radioItem,name:"B_NO_PASS",onClick:()=>p("B_NO_PASS")},null)," ",C.B_NO_PASS]}),o(I,{size:"large",type:"primary",color:"C_ING"!==m.status?"#EAEAEA":"#FF8057",textColor:"C_ING"!==m.status?"#AAA":"#FFF",class:k.radioSection},{default:()=>[o(x,{class:k.radioItem,name:"C_ING",onClick:()=>p("C_ING")},null)," ",C.C_ING]}),o(I,{size:"large",type:"primary",color:"D_NO_SUBMIT"!==m.status?"#EAEAEA":"#FF8057",textColor:"D_NO_SUBMIT"!==m.status?"#AAA":"#FFF",class:k.radioSection},{default:()=>[o(x,{class:k.radioItem,name:"D_NO_SUBMIT",onClick:()=>p("D_NO_SUBMIT")},null),C.D_NO_SUBMIT]})]}),d.listState.dataShow?o(b,{modelValue:d.listState.refreshing,"onUpdate:modelValue":e=>d.listState.refreshing=e,onRefresh:g,style:{minHeight:"calc(50vh)"}},{default:()=>{return[o(F,{finished:d.listState.finished,finishedText:" ",class:[k.liveList],immediateCheck:!1},(t=e=d.list.map((e=>o(L,{center:!0,class:k.manageCell},{icon:()=>o(N,{class:k.img,src:e.avatar?e.avatar:A},null),title:()=>o("div",{class:k.content},[o("div",{class:k.TagWrap},[" ",o("p",{class:[k.name,"van-ellipsis"]},[e.studentName?e.studentName:"--"]),o("div",{class:[k.studentTag,k[e.status]]},[C[e.status]])]),e.submitTime?o("p",{class:k.phone},[e.submitTime]):""])}))),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!c(t)?e:{default:()=>[e]}))];var t}}):o(r,{btnStatus:!1,tips:"暂无学员"},null)])}}});e("default",t({name:"unitDetail",setup(){const e=a(),t=i(),r=l({studentList:{}});u(!1),u(!1);const c=n.platformApi,A=u(1),b=u({}),C=u(!1),T=m((()=>!(r.studentList[A.value]&&r.studentList[A.value].length>0)));return s((()=>{(async()=>{try{const e=await _.post(`${c}/classGroupUnitExamination/detail`,{data:{classGroupUnitExaminationId:t.query.id},requestType:"form"});b.value=e.data,console.log("🚀 ~ file: unitDetail.tsx:45 ~ getDetail ~ info.value",b.value)}catch(e){console.log(e)}})(),(async()=>{try{const{data:e}=await _.post(`${c}/studentUnitExamination/studentDetail`,{data:{classGroupUnitExaminationId:t.query.id},requestType:"form"});console.log(e),r.studentList=e||{}}catch{}})()})),()=>o("div",{class:y.unitDetail},[o(d,null,null),o(h,{item:b.value},null),o("div",{class:y.tabsWrap},[o(f,{class:y.tabsWrapIcon,name:S,size:18,color:"#333",onClick:()=>{C.value=!0}},null),o(O,{active:A.value,"onUpdate:active":e=>A.value=e,class:y.rankTabs,background:"#F8F8F8","title-active-color":"#333333","title-inactive-color":"#777",color:"#FF8057",lineWidth:20,lineHeight:4,shrink:!0},{default:()=>[o(w,{name:1,title:"单团学员"},{default:()=>[o(E,{type:1},null)]}),o(w,{name:2,title:"双团学员"},{default:()=>[o(E,{type:2},null)]}),o(w,{name:3,title:"多团学员"},{default:()=>[o(E,{type:3},null)]})]})]),o(p,{position:"bottom"},{default:()=>[o("div",{class:["btnGroup"]},[o(g,{block:!0,round:!0,type:"primary",disabled:T.value,onClick:()=>{e.push({path:"/unit-detail",query:{id:t.query.id,level:A.value}})}},{default:()=>[v("测试报告")]})])]}),o(j,{show:C.value,"onUpdate:show":e=>C.value=e,title:"学员分类",message:"根据学员入团的批次对不同训练阶段的学员进行分类,不同训练阶段的学员可布置不同标准的课后作业和阶段自测内容。\\n\\n单团学员:最新进入本乐团的学员\\n双团学员:较早进入本乐团的学员\\n多团学员:最早进入本乐团的学员",messageAlign:"left",confirmButtonText:"我知道了"},null)])}}))}}}))}();
|