1 |
- !function(){function e(e,t,n,a,s,r,i){try{var c=e[r](i),o=c.value}catch(u){return void n(u)}c.done?t(o):Promise.resolve(o).then(a,s)}function t(t){return function(){var n=this,a=arguments;return new Promise((function(s,r){var i=t.apply(n,a);function c(t){e(i,s,r,c,o,"next",t)}function o(t){e(i,s,r,c,o,"throw",t)}c(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(["./ResizeObserver.es-legacy.44b91b4c.js","./index-legacy.6ac2a941.js","./index-legacy.bdbc14c4.js","./organ-search-legacy.d54ba7b7.js","./index-legacy.43e69380.js","./index-legacy.3ccba950.js","./index-legacy.0a73c231.js","./index-legacy.c8c5bc4e.js","./index-legacy.cae55a25.js","./use-id-legacy.ef8b5e97.js","./index-legacy.9d25098b.js","./use-tab-status-legacy.d7434e0b.js","./icon_student-legacy.49eef9e9.js"],(function(e){"use strict";var n,a,s,r,i,c,o,u,l,d,f,h,m,b,g,p;return{setters:[function(e){n=e.d,a=e.y,s=e.Y,r=e.j,i=e.N,c=e.F,o=e.A,u=e.C,l=e.aS,d=e.$},function(e){f=e.C},function(e){h=e.S},function(e){m=e.O},function(e){b=e.L},function(e){g=e.S},function(e){p=e.S},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var S={label:"_label_1m3l4_1"};e("default",n({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,r,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,a.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(),r=s(e.$refs.headers),i=r.height,e.height=i;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,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,a.post("/api-teacher/courseSchedule/selectStudent",{data:e.params});case 3:if(n=t.sent,e.loading=!1,s=n.data||{},!(e.list.length>0&&1===s.pageNo)){t.next=8;break}return t.abrupt("return");case 8:e.list=e.list.concat(s.rows||[]),e.finished=s.pageNo>=s.totalPage,e.params.page=s.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,n=this;return r(c,null,[r(g,null,{default:function(){return[r("div",{ref:"headers"},[r(f,{isFixed:!1,border:!1},null),r(h,{placeholder:"请输入学员名称",onSearch:n.onSearch},{left:function(){return r("div",{class:S.label,onClick:function(){n.searchStatus=!n.searchStatus,n.openStatus=!n.openStatus}},[n.params.subjectName,r(i,{classPrefix:"iconfont",name:"down",size:12,color:"#333"},null)])}})])]}}),this.dataShow?r(b,{loading:this.loading,"onUpdate:loading":function(e){return n.loading=e},finished:this.finished,finishedText:" ",class:[S.liveList,"mb12"],immediateCheck:!1,onLoad:this.getList},(t=e=this.list.map((function(e){return r(p,{item:{userName:e.userName,subjectName:e.subjectName,avatar:e.avatar}},{default:function(){return[0!==e.lastEndClass&&r(c,null,[o("上次课程 "),e.lastEndClass,o(" 天前")])]}})})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!d(t)?e:{default:function(){return[e]}})):r(u,{btnStatus:!1,classImgSize:"SMALL",tips:"暂无学员"},null),r(l,{show:this.searchStatus,position:"bottom",round:!0,closeable:!0,"safe-area-inset-bottom":!0,onClose:function(){return n.searchStatus=!1},onClosed:function(){return n.openStatus=!1}},{default:function(){return[n.openStatus&&r(m,{subjectList:n.subjectList,onSort:n.onSort,isReset:!0,modelValue:n.params.subjectId,"onUpdate:modelValue":function(e){return n.params.subjectId=e},subjectName:n.params.subjectName,"onUpdate:subjectName":function(e){return n.params.subjectName=e}},null)]}})])}}))}}}))}();
|