1 |
- !function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?e(Object(a),!0).forEach((function(e){n(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t,n,r,a,i,s){try{var o=e[i](s),c=o.value}catch(u){return void n(u)}o.done?t(c):Promise.resolve(c).then(r,a)}function a(e){return function(){var t=this,n=arguments;return new Promise((function(a,i){var s=e.apply(t,n);function o(e){r(s,a,i,o,c,"next",e)}function c(e){r(s,a,i,o,c,"throw",e)}o(void 0)}))}}var i=document.createElement("style");i.innerHTML="._cellGroup_ju50i_1{margin:.32rem .34667rem}._cellGroup_ju50i_1 .van-cell{padding:.32rem .4rem}._cellGroup_ju50i_1 ._classType_ju50i_7{display:flex;align-items:center;font-size:.42667rem;font-weight:600;color:#333;line-height:.58667rem}._cellGroup_ju50i_1 ._classType_ju50i_7 ._classNum_ju50i_15{margin-left:.16rem}._cellGroup_ju50i_1 ._classTime_ju50i_18{font-size:.37333rem;font-weight:500;color:#333;line-height:.53333rem}._cellGroup_ju50i_1 ._orchestra_ju50i_24{font-size:.37333rem;color:#333}._cellGroup_ju50i_1 ._orchestra_ju50i_24 ._name_ju50i_28{color:#777;line-height:.53333rem;padding-bottom:.08rem;font-weight:400}._cellGroup_ju50i_1 ._orchestra_ju50i_24 span{padding:0 .13333rem;font-size:.53333rem;color:#f67146;font-family:DINA}\n",document.head.appendChild(i),System.register(["./index-legacy.48c8d62c.js","./index-legacy.5a3e4145.js","./index-legacy.f3037807.js","./index-legacy.8cf5f94f.js","./index-legacy.8895675d.js","./create-legacy.61029d25.js","./index-legacy.269a0b91.js","./index-legacy.087e0425.js","./index-legacy.93204044.js","./index-legacy.ac553194.js"],(function(e){"use strict";var n,r,i,s,o,c,u,l,f,p,d,m,_,g,h,y,j,v,T,b;return{setters:[function(e){n=e.d,r=e.ag,i=e.r,s=e.$,o=e.c,c=e.q,u=e.ah,l=e.ai,f=e.B,p=e.m,d=e.f},function(e){m=e.O},function(e){_=e.O},function(e){g=e.O},function(e){h=e.f},function(e){y=e.f,j=e.w},function(e){v=e.C},function(e){T=e.C},function(e){b=e.T},function(){}],execute:function(){var L={cellGroup:"_cellGroup_ju50i_1",classType:"_classType_ju50i_7",classNum:"_classNum_ju50i_15",classTime:"_classTime_ju50i_18",orchestra:"_orchestra_ju50i_24",name:"_name_ju50i_28"};e("default",n({name:"train-content",setup:function(){var e=r(),n=i({dialogStatus:!1,dialogMessage:"",contentList:[],SINGLE_DELIVERY:{SINGLE:120,MUSIC_THEORY:120},MULTIPLE_DELIVERY:{SINGLE:45,MUSIC_THEORY:60,INSTRUMENTAL_ENSEMBLE:60},MULTIPLE_DELIVERY_SCHOOL:{SINGLE:60,MUSIC_THEORY:60,INSTRUMENTAL_ENSEMBLE:60},disabled:!1}),E=function(){var e=a(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,p.get("/api-school/orchestra/trainingContent/"+d.user.data.school.id);case 3:t=e.sent,r=t.data,n.contentList=r||[],e.next=10;break;case 8:e.prev=8,e.t0=e.catch(0);case 10:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),O=function(){var r=a(regeneratorRuntime.mark((function r(){var a,i,s,o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,!(n.contentList.length<=0)){r.next=5;break}return n.dialogStatus=!0,n.dialogMessage="暂无可排课班级",r.abrupt("return");case 5:return a=n.contentList,i=[],console.log(y,"forms"),a.forEach((function(e){i.push({orchestraId:e.orchestraId,classGroupIdList:e.classGroupIdList,courseNum:y.times,startTime:u(y.trainStartTime).format("HH:mm:ss"),endTime:u(y.trainStartTime).add(120,"minute").format("HH:mm:ss"),singleCourseTime:n[e.deliveryType][e.classType]})})),s={week:y.week,schoolId:d.user.data.school.id,skipHoliday:!!y.skipHoliday,type:"STANDARD",startDate:u(y.trainStartDate).format("YYYY-MM-DD"),trainingPlanClassList:i},r.next=12,p.post("/api-school/orchestra/trainingPlanList",{hideLoading:!1,data:t({},s)});case 12:if(999!==(o=r.sent).code){r.next=17;break}return n.dialogStatus=!0,n.dialogMessage=o.message,r.abrupt("return");case 17:y.selectOrchestraId=null,y.selectClassGroupId=null,console.log(o.data,"date"),e.push({path:"/course-preview",query:{cacheId:o.data}}),r.next=25;break;case 23:r.prev=23,r.t0=r.catch(0);case 25:case"end":return r.stop()}}),r,null,[[0,23]])})));return function(){return r.apply(this,arguments)}}();return s((function(){E()})),function(){return o("div",{class:n.contentList.length<=0&&"emptyRootContainer"},[o(_,null,null),n.contentList.map((function(e){return o(v,{inset:!0,class:L.cellGroup},{default:function(){return[o(T,{center:!0},{title:function(){return o("div",{class:L.classType},[h[e.classType],o(b,{round:!0,type:"primary",size:"medium",class:L.classNum},{default:function(){return[y.times,c("课时")]}})])},value:function(){return o("span",{class:L.classTime},[c("每"),j(y.week),c(" "),u(y.trainStartTime||"").format("HH:mm"),c("-"),u(y.trainStartTime||"").add(n[e.deliveryType][e.classType],"minute").format("HH:mm")])}}),o(T,{center:!0},{title:function(){return o("div",{class:L.orchestra},[o("p",{class:L.name},[e.orchestraName]),o("p",{class:L.class},[c("共"),o("span",null,[e.classGroupIdList&&e.classGroupIdList.length]),c("个班级")])])}})]}})})),n.contentList&&n.contentList.length<=0&&o(l,{btnStatus:!1,tips:"暂无训练内容"},null),o(g,{position:"bottom"},{default:function(){return[o("div",{class:"btnGroup"},[o(f,{round:!0,type:"primary",block:!0,onClick:O},{default:function(){return[c("下一步")]}})])]}}),o(m,{title:"提示",show:n.dialogStatus,"onUpdate:show":function(e){return n.dialogStatus=e},message:n.dialogMessage,confirmButtonText:"确定",onConfirm:function(){e.back()}},null)])}}}))}}}))}();
|