index-legacy.484eceb0.js 4.5 KB

1
  1. !function(){function e(e,t,n,a,s,i,r){try{var u=e[i](r),o=u.value}catch(c){return void n(c)}u.done?t(o):Promise.resolve(o).then(a,s)}function t(t){return function(){var n=this,a=arguments;return new Promise((function(s,i){var r=t.apply(n,a);function u(t){e(r,s,i,u,o,"next",t)}function o(t){e(r,s,i,u,o,"throw",t)}u(void 0)}))}}var n=document.createElement("style");n.innerHTML="._label_1m3l4_1{margin-right:.21333rem;font-size:.37333rem}._label_1m3l4_1 .van-list__loading,._label_1m3l4_1 .van-list__finished-text,._label_1m3l4_1 .van-list__error-text{width:100%}._label_1m3l4_1 .iconfont-down{margin-left:.10667rem}\n",document.head.appendChild(n),System.register(["./index-legacy.81a64bb6.js","./index-legacy.b2528a15.js","./index-legacy.a87134f4.js","./organ-search-legacy.f6ba267e.js","./index-legacy.9cbe7ce8.js","./index-legacy.4f922f18.js","./index-legacy.969e76b6.js","./index-legacy.f75b8290.js","./use-height-legacy.2a153aaf.js","./index-legacy.207dc8c2.js","./index-legacy.ab501af1.js","./use-id-legacy.4f071235.js","./index-legacy.edff980f.js","./use-tab-status-legacy.5c2c2da3.js","./icon_student-legacy.45be2fa9.js"],(function(e){"use strict";var n,a,s,i,r,u,o,c,l,d,f,h,m,g,p,b;return{setters:[function(e){n=e.C},function(e){a=e.d,s=e.e,i=e.Y,r=e.i,u=e.N,o=e.F,c=e.A,l=e.C,d=e.aT,f=e.$},function(e){h=e.C},function(e){m=e.O},function(e){g=e.L},function(e){p=e.S},function(e){b=e.S},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var j={label:"_label_1m3l4_1"};e("default",a({name:"myStudent",data:function(){return{searchStatus:!1,openStatus:!1,subjectList:[],list:[],dataShow:!0,loading:!1,finished:!1,params:{userName:"",subjectName:"全部声部",subjectId:null,page:1,rows:20},height:"auto"}},mounted:function(){var e=this;return t(regeneratorRuntime.mark((function t(){var n,a,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,s.get("/api-teacher/subject/subjectSelect");case 3:n=t.sent,e.subjectList=n.data||[],t.next=9;break;case 7:t.prev=7,t.t0=t.catch(0);case 9:e.getList(),a=i(e.$refs.headers),r=a.height,e.height=r;case 12:case"end":return t.stop()}}),t,null,[[0,7]])})))()},methods:{onSort:function(){this.params.page=1,this.list=[],this.dataShow=!0,this.loading=!1,this.finished=!1,this.searchStatus=!1,this.getList()},onSearch:function(e){this.params.userName=e,this.onSort()},getList:function(){var e=this;return t(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,s.post("/api-teacher/courseSchedule/selectStudent",{data:e.params});case 3:if(n=t.sent,e.loading=!1,a=n.data||{},!(e.list.length>0&&1===a.pageNo)){t.next=8;break}return t.abrupt("return");case 8:e.list=e.list.concat(a.rows||[]),e.finished=a.pageNo>=a.totalPage,e.params.page=a.pageNo+1,e.dataShow=e.list.length>0,t.next=18;break;case 14:t.prev=14,t.t0=t.catch(0),e.dataShow=!1,e.finished=!0;case 18:case"end":return t.stop()}}),t,null,[[0,14]])})))()}},render:function(){var e,t,a=this;return r(o,null,[r(p,null,{default:function(){return[r("div",{ref:"headers"},[r(n,{isFixed:!1,border:!1},null),r(h,{placeholder:"请输入学员名称",onSearch:a.onSearch},{left:function(){return r("div",{class:j.label,onClick:function(){a.searchStatus=!a.searchStatus,a.openStatus=!a.openStatus}},[a.params.subjectName,r(u,{classPrefix:"iconfont",name:"down",size:12,color:"#333"},null)])}})])]}}),this.dataShow?r(g,{loading:this.loading,"onUpdate:loading":function(e){return a.loading=e},finished:this.finished,finishedText:" ",class:[j.liveList,"mb12"],immediateCheck:!1,onLoad:this.getList},(t=e=this.list.map((function(e){return r(b,{item:{userName:e.userName,subjectName:e.subjectName,avatar:e.avatar}},{default:function(){return[0!==e.lastEndClass&&r(o,null,[c("上次课程 "),e.lastEndClass,c(" 天前")])]}})})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!f(t)?e:{default:function(){return[e]}})):r(l,{btnStatus:!1,classImgSize:"SMALL",tips:"暂无学员"},null),r(d,{show:this.searchStatus,position:"bottom",round:!0,closeable:!0,"safe-area-inset-bottom":!0,onClose:function(){return a.searchStatus=!1},onClosed:function(){return a.openStatus=!1}},{default:function(){return[a.openStatus&&r(m,{subjectList:a.subjectList,onSort:a.onSort,isReset:!0,modelValue:a.params.subjectId,"onUpdate:modelValue":function(e){return a.params.subjectId=e},subjectName:a.params.subjectName,"onUpdate:subjectName":function(e){return a.params.subjectName=e}},null)]}})])}}))}}}))}();