index-legacy.e8c24867.js 5.2 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(["./ResizeObserver.es-legacy.8d60aee1.js","./index-legacy.87bcd48f.js","./index-legacy.f8f0c467.js","./index-legacy.e25b6312.js","./index-legacy.c07bb851.js","./index-legacy.afebcffe.js","./index-legacy.28c9b5a3.js","./use-tab-status-legacy.1f35f332.js","./title_timers-legacy.563f8ecd.js","./icon_name_active-legacy.98cddefe.js","./icon_tips-legacy.1911ff27.js","./index-legacy.610f0a70.js","./index-legacy.fd89cccf.js","./icon_timer2-legacy.b6c78faa.js","./index-legacy.ce3d9289.js","./utils-legacy.52f341ca.js","./index-legacy.8b0998bf.js"],(function(e){"use strict";var n,i,a,r,o,s,c,u,l,m,f,d,h,g,p,b,_;return{setters:[function(e){n=e.d,i=e.w,a=e.y,r=e.j,o=e.A,s=e.N,c=e.C,u=e.aS,l=e.b8,m=e.F,f=e.$},function(e){d=e.C},function(e){h=e.R,g=e.C},function(){},function(e){p=e.L},function(e){b=e.C},function(e){_=e.D},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var v={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(m,null,[r(d,null,null),r(h,{class:[v.countTimer,"van-hairline--bottom"]},{default:function(){return[r(g,{span:9},{default:function(){return[r("p",{class:v.timer},[n.consumeTime,r("span",null,[o("分钟")])]),r("p",{class:v.title},[r("span",null,[o("已消耗时长")])])]}})]}}),r("div",{class:v.searchList},[r("div",{class:v.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(p,{loading:this.loading,"onUpdate:loading":function(e){return n.loading=e},finished:this.finished,finishedText:" ",class:[v.liveList,"mb12"],immediateCheck:!1,onLoad:this.getList},(t=e=this.list.map((function(e){return r(b,{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:v.picker},[r(_,{modelValue:n.month,"onUpdate:modelValue":function(e){return n.month=e},type:"year-month",formatter:l,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)])]}})])}}))}}}))}();