1 |
- !function(){function e(e,t,n,a,s,r,i){try{var o=e[r](i),u=o.value}catch(c){return void n(c)}o.done?t(u):Promise.resolve(u).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 o(t){e(i,s,r,o,u,"next",t)}function u(t){e(i,s,r,o,u,"throw",t)}o(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.8d60aee1.js","./index-legacy.87bcd48f.js","./index-legacy.897f3849.js","./organ-search-legacy.8734fb40.js","./index-legacy.c07bb851.js","./index-legacy.6a5df59c.js","./index-legacy.2c804b14.js","./index-legacy.610f0a70.js","./index-legacy.78ce4f6b.js","./use-id-legacy.54528695.js","./index-legacy.a85d660d.js","./use-tab-status-legacy.1f35f332.js","./icon_student-legacy.49eef9e9.js"],(function(e){"use strict";var n,a,s,r,i,o,u,c,l,d,f,h,m,g,p,b;return{setters:[function(e){n=e.d,a=e.y,s=e.Y,r=e.j,i=e.N,o=e.F,u=e.A,c=e.C,l=e.aS,d=e.$},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(){}],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(o,null,[r(p,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(g,{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(b,{item:{userName:e.userName,subjectName:e.subjectName,avatar:e.avatar}},{default:function(){return[0!==e.lastEndClass&&r(o,null,[u("上次课程 "),e.lastEndClass,u(" 天前")])]}})})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!d(t)?e:{default:function(){return[e]}})):r(c,{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)]}})])}}))}}}))}();
|