index-legacy.9117ef4d.js 5.1 KB

1
  1. !function(){function e(e,t,n,i,a,r,o){try{var s=e[r](o),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(i,a)}function t(t){return function(){var n=this,i=arguments;return new Promise((function(a,r){var o=t.apply(n,i);function s(t){e(o,a,r,s,c,"next",t)}function c(t){e(o,a,r,s,c,"throw",t)}s(void 0)}))}}var n=document.createElement("style");n.innerHTML="._searchList_1bbiv_1{display:flex;padding:.32rem .42667rem;background-color:#fff}._dataItem_1bbiv_6{font-size:.37333rem;color:#333;padding-right:.64rem}._countTimer_1bbiv_11{padding:.85333rem .64rem .58667rem;background-color:#fff}._countTimer_1bbiv_11 ._timer_1bbiv_15{padding-left:.05333rem;font-size:.85333rem;font-weight:600;color:#333;padding-bottom:.26667rem}._countTimer_1bbiv_11 ._timer_1bbiv_15 span{color:#666;font-size:.37333rem}._countTimer_1bbiv_11 ._title_1bbiv_26{display:flex;align-items:center;font-size:.37333rem;color:#333;line-height:.45333rem}\n",document.head.appendChild(n),System.register(["./index-legacy.fba2875c.js","./index-legacy.fc77fe4f.js","./index-legacy.9960fd48.js","./index-legacy.a7012d0a.js","./index-legacy.6d4c6e5a.js","./index-legacy.e8375c6b.js","./use-tab-status-legacy.8752ccde.js","./title_timers-legacy.563f8ecd.js","./icon_name_active-legacy.98cddefe.js","./icon_tips-legacy.1911ff27.js","./index-legacy.7dcec7b3.js","./index-legacy.f231f1c5.js","./icon_timer2-legacy.b6c78faa.js","./index-legacy.4b2a6a63.js","./utils-legacy.e8546185.js","./index-legacy.70851652.js"],(function(e){"use strict";var n,i,a,r,o,s,c,u,m,l,f,d,h,g,p,b;return{setters:[function(e){n=e.d,i=e.u,a=e.w,r=e.j,o=e.z,s=e.M,c=e.C,u=e.aR,m=e.b1,l=e.F,f=e.Z},function(e){d=e.R,h=e.C},function(){},function(e){g=e.L},function(e){p=e.C},function(e){b=e.D},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var _={searchList:"_searchList_1bbiv_1",dataItem:"_dataItem_1bbiv_6",countTimer:"_countTimer_1bbiv_11",timer:"_timer_1bbiv_15",title:"_title_1bbiv_26"};e("default",n({name:"courseRecord",data:function(){return{list:[],dataShow:!0,loading:!1,finished:!1,monthTxt:i().format("YYYY年MM月"),month:new Date,params:{status:"COMPLETE",month:i().format("YYYY-MM"),page:1,rows:20},timeShow:!1,studentStatus:!1,consumeTime:0}},mounted:function(){var e=this;return t(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.getConsumeTime(),e.getList();case 2:case"end":return t.stop()}}),t)})))()},methods:{onSearch:function(){this.dataShow=!0,this.loading=!1,this.finished=!1,this.list=[],this.params.page=1,this.getConsumeTime(),this.getList()},getConsumeTime:function(){var e=this;return t(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,a.get("/api-teacher/courseSchedule/selectConsumeTime",{params:{month:e.params.month}});case 3:return t.next=5,t.sent;case 5:n=t.sent,console.log(n),e.consumeTime=n.data.consumeTime||0,t.next=12;break;case 10:t.prev=10,t.t0=t.catch(0);case 12:case"end":return t.stop()}}),t,null,[[0,10]])})))()},getList:function(){var e=this;return t(regeneratorRuntime.mark((function t(){var n,i;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/selectConsumeTimeList",{data:e.params});case 3:if(n=t.sent,e.loading=!1,i=n.data||{},!(e.list.length>0&&1===i.pageNo)){t.next=8;break}return t.abrupt("return");case 8:e.list=e.list.concat(i.rows||[]),e.finished=i.pageNo>=i.totalPage,e.params.page=i.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(l,null,[r(d,{class:[_.countTimer,"van-hairline--bottom"]},{default:function(){return[r(h,{span:9},{default:function(){return[r("p",{class:_.timer},[n.consumeTime,r("span",null,[o("分钟")])]),r("p",{class:_.title},[r("span",null,[o("已消耗时长")])])]}})]}}),r("div",{class:_.searchList},[r("div",{class:_.dataItem,onClick:function(){n.timeShow=!0}},[this.monthTxt,r(s,{classPrefix:"iconfont",name:"down",size:8,style:{marginLeft:"4px"},color:"#CCCCCC"},null)])]),this.dataShow?r(g,{loading:this.loading,"onUpdate:loading":function(e){return n.loading=e},finished:this.finished,finishedText:" ",class:[_.liveList,"mb12"],immediateCheck:!1,onLoad:this.getList},(t=e=this.list.map((function(e){return r(p,{item:e,operation:!1},null)})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!f(t)?e:{default:function(){return[e]}})):r(c,{btnStatus:!1,classImgSize:"SMALL",tips:"暂无课程"},null),r(u,{position:"bottom",show:this.timeShow,"onUpdate:show":function(e){return n.timeShow=e},round:!0},{default:function(){return[r("div",{class:_.picker},[r(b,{modelValue:n.month,"onUpdate:modelValue":function(e){return n.month=e},type:"year-month",formatter:m,onConfirm:function(e){n.monthTxt=i(e).format("YYYY年MM月"),n.params.month=i(e).format("YYYY-MM"),n.timeShow=!1,n.onSearch()},onCancel:function(){return n.timeShow=!1}},null)])]}})])}}))}}}))}();