unitDetail-legacy.c0076143.js 11 KB

12
  1. !function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function t(t){for(var a=1;a<arguments.length;a++){var i=null!=arguments[a]?arguments[a]:{};a%2?e(Object(i),!0).forEach((function(e){n(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t,n,a,i,r,o){try{var u=e[r](o),l=u.value}catch(s){return void n(s)}u.done?t(l):Promise.resolve(l).then(a,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function u(e){a(o,i,r,u,l,"next",e)}function l(e){a(o,i,r,u,l,"throw",e)}u(void 0)}))}}var r=document.createElement("style");r.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(r),System.register(["./index-legacy.c1f63540.js","./index-legacy.7e71b67e.js","./quest-icon-legacy.8dd60bcc.js","./unit-list-item-legacy.9af6a8b5.js","./icon_teacher-legacy.07765f44.js","./index-legacy.4596d3ae.js","./index-legacy.ec5d708a.js","./index-legacy.3c4cafd9.js","./index-legacy.47196fed.js","./index-legacy.3d6462c3.js","./index-legacy.8a8e9c42.js","./index-legacy.45d07924.js","./index-legacy.8e95ea07.js","./index-legacy.aa9b4ef8.js","./icon-edit-legacy.4520ee5d.js","./icon-muit-message-legacy.68290c1f.js","./index-legacy.2318e5fa.js","./Checker-legacy.1d4a5bb9.js","./use-tab-status-legacy.77a01b2b.js","./index-legacy.49ab1c78.js","./index-legacy.6603017a.js"],(function(e){"use strict";var n,a,r,o,u,l,s,c,_,f,m,d,v,g,p,h,S,y,b,A,x,O,j,C,w,T,I,k,F,L,N,P;return{setters:[function(e){n=e.d,a=e.ag,r=e.ah,o=e.g,u=e.r,l=e.$,s=e.m,c=e.c,_=e.ak,f=e.al,m=e.R,d=e.y,v=e.aj,g=e.a5,p=e.B,h=e.q},function(e){S=e.O},function(e){y=e.q},function(e){b=e.U,A=e.s},function(e){x=e.i},function(e){O=e.O},function(e){j=e.u},function(e){C=e.R,w=e.a},function(e){T=e.T},function(e){I=e.L},function(e){k=e.C},function(e){F=e.I},function(e){L=e.O},function(e){N=e.T,P=e.a},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var E={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 U=n({name:"unit-student-list",props:{type:{type:Number,default:1}},setup:function(e){a();var n=r(),m=o.platformApi,d=u({classGroupUnitExaminationId:n.query.id,status:"",page:1}),v=u({list:[],listState:{dataShow:!0,loading:!1,finished:!1,refreshing:!1,height:0},oldValue:""});l((function(){g()}));var g=function(){var n=i(regeneratorRuntime.mark((function n(){var a,i;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,s.post("".concat(m,"/studentUnitExamination/studentDetail"),{data:t({},d),requestType:"form"});case 3:if(a=n.sent,v.listState.loading=!1,v.listState.refreshing=!1,i=a.data||{},!(v.list.length>0&&1===i.current)){n.next=9;break}return n.abrupt("return");case 9:v.list=v.list=i[e.type]||[],v.listState.dataShow=v.list.length>0,v.listState.finished=!0,n.next=18;break;case 14:n.prev=14,n.t0=n.catch(0),v.listState.dataShow=!1,v.listState.finished=!0;case 18:case"end":return n.stop()}}),n,null,[[0,14]])})));return function(){return n.apply(this,arguments)}}(),p=function(){d.page=1,v.list=[],v.listState.dataShow=!0,v.listState.loading=!1,v.listState.finished=!1,g()},h=function(e){g()},S=function(e){e==v.oldValue?(d.status="",v.oldValue=""):v.oldValue=e};return function(){var e;return c("div",{class:E.unitList},[c(C,{"checked-color":"#FF8057",modelValue:d.status,"onUpdate:modelValue":function(e){return d.status=e},direction:"horizontal",onChange:h},{default:function(){return[c(T,{size:"large",type:"primary",color:"A_PASS"!==d.status?"#EAEAEA":"#FF8057",textColor:"A_PASS"!==d.status?"#AAA":"#FFF",class:E.radioSection},{default:function(){return[c(w,{class:E.radioItem,name:"A_PASS",onClick:function(){return S("A_PASS")}},null),j.A_PASS]}}),c(T,{size:"large",type:"primary",color:"B_NO_PASS"!==d.status?"#EAEAEA":"#FF8057",textColor:"B_NO_PASS"!==d.status?"#AAA":"#FFF",class:E.radioSection},{default:function(){return[c(w,{class:E.radioItem,name:"B_NO_PASS",onClick:function(){return S("B_NO_PASS")}},null)," ",j.B_NO_PASS]}}),c(T,{size:"large",type:"primary",color:"C_ING"!==d.status?"#EAEAEA":"#FF8057",textColor:"C_ING"!==d.status?"#AAA":"#FFF",class:E.radioSection},{default:function(){return[c(w,{class:E.radioItem,name:"C_ING",onClick:function(){return S("C_ING")}},null)," ",j.C_ING]}}),c(T,{size:"large",type:"primary",color:"D_NO_SUBMIT"!==d.status?"#EAEAEA":"#FF8057",textColor:"D_NO_SUBMIT"!==d.status?"#AAA":"#FFF",class:E.radioSection},{default:function(){return[c(w,{class:E.radioItem,name:"D_NO_SUBMIT",onClick:function(){return S("D_NO_SUBMIT")}},null),j.D_NO_SUBMIT]}})]}}),v.listState.dataShow?c(O,{modelValue:v.listState.refreshing,"onUpdate:modelValue":function(e){return v.listState.refreshing=e},onRefresh:p,style:{minHeight:"calc(50vh)"}},{default:function(){return[c(I,{finished:v.listState.finished,finishedText:" ",class:[E.liveList],immediateCheck:!1},(t=e=v.list.map((function(e){return c(k,{center:!0,class:E.manageCell},{icon:function(){return c(F,{class:E.img,src:e.avatar?e.avatar:x},null)},title:function(){return c("div",{class:E.content},[c("div",{class:E.TagWrap},[" ",c("p",{class:[E.name,"van-ellipsis"]},[e.studentName?e.studentName:"--"]),c("div",{class:[E.studentTag,E[e.status]]},[j[e.status]])]),e.submitTime?c("p",{class:E.phone},[e.submitTime]):""])}})})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!f(t)?e:{default:function(){return[e]}}))];var t}}):c(_,{btnStatus:!1,tips:"暂无学员"},null)])}}});e("default",n({name:"unitDetail",setup:function(){var e=a(),t=r(),n=u({studentList:{}});m(!1),m(!1);var _=o.platformApi,f=m(1),x=m({}),O=m(!1),j=function(){var e=i(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,s.post("".concat(_,"/classGroupUnitExamination/detail"),{data:{classGroupUnitExaminationId:t.query.id},requestType:"form"});case 3:n=e.sent,x.value=n.data,console.log("🚀 ~ file: unitDetail.tsx:45 ~ getDetail ~ info.value",x.value),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),console.log(e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),C=function(){var e=i(regeneratorRuntime.mark((function e(){var a,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,s.post("".concat(_,"/studentUnitExamination/studentDetail"),{data:{classGroupUnitExaminationId:t.query.id},requestType:"form"});case 3:a=e.sent,i=a.data,console.log(i),n.studentList=i||{},e.next=11;break;case 9:e.prev=9,e.t0=e.catch(0);case 11:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(){return e.apply(this,arguments)}}(),w=d((function(){return!(n.studentList[f.value]&&n.studentList[f.value].length>0)}));return l((function(){j(),C()})),function(){return c("div",{class:A.unitDetail},[c(v,null,null),c(b,{item:x.value},null),c("div",{class:A.tabsWrap},[c(g,{class:A.tabsWrapIcon,name:y,size:18,color:"#333",onClick:function(){O.value=!0}},null),c(N,{active:f.value,"onUpdate:active":function(e){return f.value=e},class:A.rankTabs,background:"#F8F8F8","title-active-color":"#333333","title-inactive-color":"#777",color:"#FF8057",lineWidth:20,lineHeight:4,shrink:!0},{default:function(){return[c(P,{name:1,title:"单团学员"},{default:function(){return[c(U,{type:1},null)]}}),c(P,{name:2,title:"双团学员"},{default:function(){return[c(U,{type:2},null)]}}),c(P,{name:3,title:"多团学员"},{default:function(){return[c(U,{type:3},null)]}})]}})]),c(S,{position:"bottom"},{default:function(){return[c("div",{class:["btnGroup"]},[c(p,{block:!0,round:!0,type:"primary",disabled:w.value,onClick:function(){e.push({path:"/unit-detail",query:{id:t.query.id,level:f.value}})}},{default:function(){return[h("测试报告")]}})])]}}),c(L,{show:O.value,"onUpdate:show":function(e){return O.value=e},title:"学员分类",message:"根据学员入团的批次对不同训练阶段的学员进行分类,不同训练阶段的学员可布置不同标准的课后作业和阶段自测内容。\n\n单团学员:最新进入本乐团的学员\n双团学员:较早进入本乐团的学员\n多团学员:最早进入本乐团的学员",messageAlign:"left",confirmButtonText:"我知道了"},null)])}}}))}}}))}();