1 |
- !function(){function e(e,t,n,a,s,i,r){try{var c=e[i](r),u=c.value}catch(o){return void n(o)}c.done?t(u):Promise.resolve(u).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 c(t){e(r,s,i,c,u,"next",t)}function u(t){e(r,s,i,c,u,"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(["./index-legacy.fba2875c.js","./index-legacy.e7460ea1.js","./index-legacy.fc679d65.js","./organ-search-legacy.5ed69723.js","./index-legacy.a7012d0a.js","./index-legacy.edb65d0c.js","./index-legacy.ad82b591.js","./index-legacy.40eca993.js","./use-height-legacy.233a2ec8.js","./index-legacy.7dcec7b3.js","./index-legacy.8921f068.js","./use-id-legacy.db87b112.js","./index-legacy.78361179.js","./use-tab-status-legacy.8752ccde.js","./icon_student-legacy.45be2fa9.js"],(function(e){"use strict";var n,a,s,i,r,c,u,o,l,d,f,h,m,g,p,b;return{setters:[function(e){n=e.d,a=e.w,s=e.X,i=e.j,r=e.M,c=e.F,u=e.z,o=e.C,l=e.aR,d=e.Z},function(e){f=e.C},function(e){h=e.S},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",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,i,r;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(),i=s(e.$refs.headers),r=i.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,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 i(c,null,[i(p,null,{default:function(){return[i("div",{ref:"headers"},[i(f,{isFixed:!1,border:!1},null),i(h,{placeholder:"请输入学员名称",onSearch:n.onSearch},{left:function(){return i("div",{class:j.label,onClick:function(){n.searchStatus=!n.searchStatus,n.openStatus=!n.openStatus}},[n.params.subjectName,i(r,{classPrefix:"iconfont",name:"down",size:12,color:"#333"},null)])}})])]}}),this.dataShow?i(g,{loading:this.loading,"onUpdate:loading":function(e){return n.loading=e},finished:this.finished,finishedText:" ",class:[j.liveList,"mb12"],immediateCheck:!1,onLoad:this.getList},(t=e=this.list.map((function(e){return i(b,{item:{userName:e.userName,subjectName:e.subjectName,avatar:e.avatar}},{default:function(){return[0!==e.lastEndClass&&i(c,null,[u("上次课程 "),e.lastEndClass,u(" 天前")])]}})})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!d(t)?e:{default:function(){return[e]}})):i(o,{btnStatus:!1,classImgSize:"SMALL",tips:"暂无学员"},null),i(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&&i(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)]}})])}}))}}}))}();
|