index-legacy.e21b31e8.js 22 KB

12
  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(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t,n,r,a,i,o){try{var l=e[i](o),c=l.value}catch(s){return void n(s)}l.done?t(c):Promise.resolve(c).then(r,a)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function l(e){a(o,r,i,l,c,"next",e)}function c(e){a(o,r,i,l,c,"throw",e)}l(void 0)}))}}var o=document.createElement("style");o.innerHTML="._tips_ehifr_1{display:flex;margin:.32rem .34667rem;background:#ffebdd;border-radius:.26667rem;padding:.18667rem .32rem;font-size:.34667rem;color:#f67146;line-height:.53333rem}._tips_ehifr_1 ._icon_ehifr_11{font-size:.53333rem;margin-right:.16rem}._informationBottom_ehifr_15 .van-sticky{position:absolute}._cellGroup_ehifr_18{margin:0 .34667rem;border-radius:.26667rem;overflow:hidden}._cellGroup_ehifr_18 ._classType_ehifr_23{flex:0 auto}._cellGroup_ehifr_18 .van-cell{font-size:.42667rem;padding:.48rem .32rem}._cellGroup_ehifr_18 .van-cell__value{color:#333}._cellGroup_ehifr_18 .van-radio-group,._cellGroup_ehifr_18 .van-checkbox-group{justify-content:flex-end}._cellGroup_ehifr_18 ._radioSection_ehifr_37{position:relative;min-width:.85333rem;justify-content:center}._cellGroup_ehifr_18 ._radioItem_ehifr_42{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}._cellGroup_ehifr_18 ._radioSection_ehifr_37+._radioSection_ehifr_37{margin-left:.32rem}._classList_13nhk_1 ._cell_13nhk_1{margin:.34667rem;border-radius:.26667rem;width:calc(100% - .69333rem);padding:.4rem}._classList_13nhk_1 ._content_13nhk_7 ._title_13nhk_7{display:flex;align-items:center;font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem}._classList_13nhk_1 ._content_13nhk_7 ._title_13nhk_7 i{margin-right:.16rem;width:.10667rem;height:.32rem;background:#ff8057;border-radius:.05333rem}._classList_13nhk_1 ._content_13nhk_7 ._name_13nhk_22{padding-top:.26667rem;font-size:.37333rem;color:#777;line-height:.53333rem;max-width:6.13333rem}._classList_13nhk_1 ._teacherName_13nhk_29{display:inline-block;font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem;max-width:2.13333rem}._standard_8h5p6_1{--van-dialog-message-font-size: .42667rem !important}._tips_8h5p6_4{display:flex;margin:.32rem .34667rem;background:#ffebdd;border-radius:.26667rem;padding:.18667rem .32rem;font-size:.34667rem;color:#f67146;line-height:.53333rem}._tips_8h5p6_4 ._icon_8h5p6_14{font-size:.53333rem;margin-right:.16rem}._informationBottom_8h5p6_18 .van-sticky{position:absolute}._cellGroup_8h5p6_21{margin:0 .34667rem;border-radius:.26667rem;overflow:hidden}._cellGroup_8h5p6_21 .van-cell{font-size:.42667rem;padding:.48rem .32rem}._cellGroup_8h5p6_21 .van-cell__value{color:#333}._cellGroup_8h5p6_21 .van-radio-group{justify-content:flex-end}._cellGroup_8h5p6_21 ._radioSection_8h5p6_36{position:relative;min-width:.85333rem;justify-content:center}._cellGroup_8h5p6_21 ._radioItem_8h5p6_41{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}._cellGroup_8h5p6_21 ._radioSection_8h5p6_36+._radioSection_8h5p6_36{margin-left:.32rem}._dialogTitle_8h5p6_52{padding-left:.66667rem;text-align:left;font-size:.48rem;font-weight:500;color:#333;line-height:.66667rem;padding-bottom:.32rem}._dialogTitle_8h5p6_52 i{display:inline-block;width:.10667rem;height:.37333rem;background:#ff8057;border-radius:.05333rem;margin-right:.16rem}._train_r2wxa_1{--van-tab-active-text-color: var(--van-primary-color);--van-tab-text-color: #333;--van-tab-font-size: .42667rem}\n",document.head.appendChild(o),System.register(["./index-legacy.48c8d62c.js","./index-legacy.f3037807.js","./index-legacy.8cf5f94f.js","./create-legacy.61029d25.js","./index-legacy.269a0b91.js","./index-legacy.087e0425.js","./index-legacy.4e061cf8.js","./index-legacy.93204044.js","./index-legacy.23554efd.js","./index-legacy.55fe5b03.js","./index-legacy.085e5a7e.js","./index-legacy.384d768f.js","./index-legacy.a53f47a7.js","./index-legacy.d1078003.js","./index-legacy.de1a4bff.js","./teacher-list-legacy.c3dfc8db.js","./index-legacy.a2ac81dd.js","./index-legacy.ef66d7bb.js","./index-legacy.ac553194.js","./Checker-legacy.3526dce7.js","./utils-legacy.60f652b8.js","./index-legacy.c75fe8a2.js","./isSameOrBefore-legacy.e0108432.js","./index-legacy.ac2e8bc2.js","./icon_teacher-legacy.07765f44.js","./index-legacy.87ef53c1.js","./index-legacy.04f465c8.js","./use-tab-status-legacy.6949b1de.js","./index-legacy.0e0de364.js","./index-legacy.71047e87.js"],(function(r){"use strict";var a,o,l,c,s,u,d,f,p,m,h,_,y,g,v,b,S,k,w,x,T,A,C,j,E,F,D,L,I,G,O,H,V,N,U,z,R,M,B,P,Y,W;return{setters:[function(e){a=e.d,o=e.ag,l=e.$,c=e.c,s=e.a5,u=e.q,d=e.ah,f=e.o,p=e.B,m=e.P,h=e.aj,_=e.r,y=e.Z,g=e.ai,v=e.m,b=e.aV,S=e.aW,k=e.f,w=e.R},function(e){x=e.O},function(e){T=e.O},function(e){A=e.f,C=e.w,j=e.a,E=e.r},function(e){F=e.C},function(e){D=e.C},function(e){L=e.C},function(e){I=e.T},function(e){G=e.C},function(e){O=e.F},function(e){H=e.R,V=e.a},function(e){N=e.P},function(e){U=e.D},function(e){z=e.O},function(e){R=e.C,M=e.T},function(e){B=e.T},function(e){P=e.S},function(e){Y=e.T,W=e.a},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var $={tips:"_tips_ehifr_1",icon:"_icon_ehifr_11",informationBottom:"_informationBottom_ehifr_15",cellGroup:"_cellGroup_ehifr_18",classType:"_classType_ehifr_23",radioSection:"_radioSection_ehifr_37",radioItem:"_radioItem_ehifr_42"},q=a({name:"practice",props:{address:{type:String,default:""}},setup:function(e){var t=o(),n=function(){if(A.classList.length>0)A.status=!0;else if(A.classType.length<=0)f("请选择课程类型");else if(A.trainStartDate)if(A.week)if(e.address){var n=[];A.classType.forEach((function(e){n.push({classType:e,startTime:null,endTime:null,trainTimer:null,times:null,classIdList:[]})})),A.classPracticeList=n,t.push("/practice-detail")}else f("您所在的学校暂未设置地址");else f("请选择周次");else f("请选择课程开始日期")};return l((function(){})),function(){return c("div",{class:$.practice,style:{minHeight:"calc(100vh - var(--header-height) - var(--van-tabs-line-height))",overflow:"hidden"}},[c("div",{class:$.tips},[c(s,{name:"warning",class:$.icon},null),u("自定义训练可对任意班级进行排课,课程类型可多选")]),c(F,{inset:!0,class:$.cellGroup},{default:function(){return[c(D,{title:"课程类型",titleClass:$.classType},{value:function(){return c(L,{"checked-color":"#FF8057",modelValue:A.classType,"onUpdate:modelValue":function(e){return A.classType=e},direction:"horizontal"},{default:function(){return[c(I,{size:"large",type:"primary",color:A.classType.includes("SINGLE")?"#FF8057":"#EAEAEA",textColor:A.classType.includes("SINGLE")?"#FFF":"#AAA",class:$.radioSection},{default:function(){return[c(G,{class:$.radioItem,name:"SINGLE"},null),u("声部课")]}}),c(I,{size:"large",type:"primary",color:A.classType.includes("MUSIC_THEORY")?"#FF8057":"#EAEAEA",textColor:A.classType.includes("MUSIC_THEORY")?"#FFF":"#AAA",class:$.radioSection},{default:function(){return[c(G,{class:$.radioItem,name:"MUSIC_THEORY"},null),u("乐理课")]}}),c(I,{size:"large",type:"primary",color:A.classType.includes("INSTRUMENTAL_ENSEMBLE")?"#FF8057":"#EAEAEA",textColor:A.classType.includes("INSTRUMENTAL_ENSEMBLE")?"#FFF":"#AAA",class:$.radioSection},{default:function(){return[c(G,{class:$.radioItem,name:"INSTRUMENTAL_ENSEMBLE"},null),u("合奏课")]}})]}})}}),c(O,{label:"课程开始日期",inputAlign:"right",placeholder:"请选择课程开始日期",readonly:!0,isLink:!0,modelValue:A.trainStartDate?d(A.trainStartDate).format("YYYY年MM月DD日"):"",onClick:function(){return A.calendarTimeStatus=!0}},null),c(O,{label:"课程周次",inputAlign:"right",placeholder:"请选择课程周次",readonly:!0,modelValue:C(A.week),onClick:function(){A.trainStartDate||f("请选择课程开始日期")}},null),c(D,{title:"跳过节假日"},{value:function(){return c(H,{"checked-color":"#FF8057",modelValue:A.skipHoliday,"onUpdate:modelValue":function(e){return A.skipHoliday=e},direction:"horizontal"},{default:function(){return[c(I,{size:"large",type:"primary",color:1!==A.skipHoliday?"#EAEAEA":"#FF8057",textColor:1!==A.skipHoliday?"#AAA":"#FFF",class:$.radioSection,round:!0},{default:function(){return[c(V,{class:$.radioItem,name:1},null),u("是")]}}),c(I,{size:"large",type:"primary",color:0!==A.skipHoliday?"#EAEAEA":"#FF8057",textColor:0!==A.skipHoliday?"#AAA":"#FFF",class:$.radioSection,round:!0},{default:function(){return[c(V,{class:$.radioItem,name:0},null),u("否")]}})]}})}})]}}),c(T,{position:"bottom",class:$.informationBottom},{default:function(){return[c("div",{class:"btnGroup",style:{marginTop:"24px"}},[c(p,{type:"primary",block:!0,round:!0,onClick:n},{default:function(){return[u("下一步")]}})])]}}),c(m,{show:A.weekStatus,"onUpdate:show":function(e){return A.weekStatus=e},position:"bottom",round:!0,class:"popupBottomSearch",teleport:"body"},{default:function(){return[c(N,{columns:j,onCancel:function(){return A.weekStatus=!1},onConfirm:function(e){A.week=e.selectedValues[0],A.weekStatus=!1}},null)]}}),c(m,{show:A.calendarTimeStatus,"onUpdate:show":function(e){return A.calendarTimeStatus=e},position:"bottom",round:!0,class:"popupBottomSearch",teleport:"body"},{default:function(){return[c(U,{minDate:new Date,modelValue:A.classDate,"onUpdate:modelValue":function(e){return A.classDate=e},formatter:h,onCancel:function(){return A.calendarTimeStatus=!1},onConfirm:function(e){A.calendarTimeStatus=!1,A.trainStartDate=e.selectedValues.join("-");var t=d(A.trainStartDate).day(),n=j[0===t?6:t-1];A.week=n.value}},null)]}})])}}}),Z="_classList_13nhk_1",J="_cell_13nhk_1",K="_content_13nhk_7",Q="_title_13nhk_7",X="_name_13nhk_22",ee="_teacherName_13nhk_29",te=a({name:"class-list",props:{classList:{type:Array,default:function(){return[]}}},emits:["close","confirm"],setup:function(e,t){t.slots,t.attrs;var r=t.emit,a=_({teacherStatus:!1,list:[],isClick:!1,selectItem:{}}),o=function(){var e=i(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,t=[],a.list.forEach((function(e){e.teacherId&&t.push({classGroupId:e.id,teacherId:e.teacherId})})),!(t.length<=0)){e.next=6;break}return r("close"),e.abrupt("return");case 6:return a.isClick=!0,e.next=9,v.post("/api-school/classGroup/updateTeacher",{data:t});case 9:a.isClick=!1,r("confirm"),r("close"),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(0),a.isClick=!1;case 17:case"end":return e.stop()}}),e,null,[[0,14]])})));return function(){return e.apply(this,arguments)}}();return y((function(){return e.classList}),(function(){a.list=n(e.classList)})),l((function(){a.list=n(e.classList)})),function(){return c("div",{class:[Z,a.list.length<=0&&"emptyRootContainer"]},[c(x,{title:"指定伴学指导",desotry:!1},null),a.list.map((function(e){return c(D,{class:J,center:!0,isLink:!0,onClick:function(){a.selectItem=e,a.teacherStatus=!0},valueClass:[ee,"van-ellipsis"]},{title:function(){return c("div",{class:K},[c("div",{class:Q},[c("i",null,null),e.name]),c("div",{class:[X,"van-ellipsis"]},[e.orchestraName])])},value:function(){return c("div",{style:{color:e.teacherName?"":"var(--van-primary)"}},[e.teacherName?e.teacherName:"去设置"])}})})),e.classList.length<=0&&c(g,{btnStatus:!1,tips:"暂无班级"},null),c(P,{position:"bottom",style:{width:"100%"}},{default:function(){return[c("div",{class:"btnGroup"},[c(p,{round:!0,block:!0,type:"primary",onClick:o,disabled:a.isClick},{default:function(){return[u("完成")]}})])]}}),c(m,{show:a.teacherStatus,"onUpdate:show":function(e){return a.teacherStatus=e},position:"bottom",round:!0,style:{height:"80%"}},{default:function(){return[c(B,{header:!1,mode:"sticky",courseType:a.selectItem.courseType,onClose:function(){return a.teacherStatus=!1},onSelect:function(e){a.selectItem.teacherId=e.id,a.selectItem.teacherName=e.nickname}},null)]}})])}}}),ne="_standard_8h5p6_1",re="_tips_8h5p6_4",ae="_icon_8h5p6_14",ie="_informationBottom_8h5p6_18",oe="_cellGroup_8h5p6_21",le="_radioSection_8h5p6_36",ce="_radioItem_8h5p6_41",se="_dialogTitle_8h5p6_52",ue=a({name:"standard",props:{address:{type:String,default:""}},setup:function(n){b();var r=o(),a=function(){var e=i(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,v.post("/api-school/orchestra/trainingPlanTime",{data:{schoolId:k.user.data.school.id,skipHoliday:!!A.skipHoliday,type:"STANDARD",calendarDate:d(t).format("YYYY-MM-DD")}});case 3:n=e.sent,r=n.data,A.calendarList=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(t){return e.apply(this,arguments)}}(),h=function(){var e=i(regeneratorRuntime.mark((function e(){var t,n,r,a=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=!(a.length>0&&void 0!==a[0])||a[0],e.prev=1,e.next=4,v.post("/api-school/classGroup/page",{data:{page:1,rows:200,schoolId:k.user.data.school.id,hasTeacher:!1,orchestraType:"DELIVERY"}});case 4:n=e.sent,r=n.data,A.classList=r.rows||[],A.classList.length>0&&t&&(A.status=!0),e.next=12;break;case 10:e.prev=10,e.t0=e.catch(1);case 12:case"end":return e.stop()}}),e,null,[[1,10]])})));return function(){return e.apply(this,arguments)}}(),_=function(){var e=i(regeneratorRuntime.mark((function e(){var t,n,r,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,v.get("/api-school/orchestra/semesterStandardCourseNum/"+k.user.data.school.id);case 3:for(t=e.sent,n=t.data,r=Number(A.pickerNum-n),A.times=r,a=0;a<r;a++)A.timerPickerList.push({text:a+1+"次",value:a+1});r<=0&&(A.numberDialogStatus=!0),e.next=13;break;case 11:e.prev=11,e.t0=e.catch(0);case 13:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(){return e.apply(this,arguments)}}(),y=function(){A.times<=0?A.numberDialogStatus=!0:A.classList.length>0?A.status=!0:A.trainStartDate?A.trainStartTime?A.week?n.address?r.push("/train-content"):f("您所在的学校暂未设置地址"):f("请选择周次"):f("请选择训练开始时间"):f("请选择训练开始日期")};return l((function(){a(A.calendarDate||new Date),h(),_()})),function(){return c("div",{class:ne,style:{minHeight:"calc(100vh - var(--header-height) - var(--van-tabs-line-height))",overflow:"hidden"}},[c("div",{class:re},[c(s,{name:"warning",class:ae},null),u("标准训练可对交付团进行整学期标准训练排课")]),c(F,{inset:!0,class:oe},{default:function(){return[c(D,{title:"跳过节假日"},{value:function(){return c(H,{"checked-color":"#FF8057",modelValue:A.skipHoliday,"onUpdate:modelValue":function(e){return A.skipHoliday=e},direction:"horizontal",onChange:function(){A.trainStartDate=null,A.trainStartTime=null,A.calendarDate=null,a()}},{default:function(){return[c(I,{size:"large",type:"primary",color:1!==A.skipHoliday?"#EAEAEA":"#FF8057",textColor:1!==A.skipHoliday?"#AAA":"#FFF",class:le,round:!0},{default:function(){return[c(V,{class:ce,name:1},null),u("是")]}}),c(I,{size:"large",type:"primary",color:0!==A.skipHoliday?"#EAEAEA":"#FF8057",textColor:0!==A.skipHoliday?"#AAA":"#FFF",class:le,round:!0},{default:function(){return[c(V,{class:ce,name:0},null),u("否")]}})]}})}}),c(O,{label:"训练开始日期",placeholder:"请选择训练开始日期",isLink:!0,readonly:!0,inputAlign:"right",onClick:function(){return A.calendarStatus=!0},modelValue:A.trainStartDate?d(A.trainStartDate).format("YYYY年MM月DD日"):""},null),c(O,{label:"训练开始时间",isLink:!0,readonly:!0,placeholder:"请选择训练开始日期",inputAlign:"right",modelValue:A.trainStartTime?d(A.trainStartTime).format("HH:mm"):"",onClick:function(){A.trainStartDate?A.timerStatus=!0:f("请选择训练开始日期")}},null),c(D,{title:"训练时长",value:A.trainTimer+"分钟"},{"right-icon":function(){return c(s,{class:"van-cell__right-icon",name:"arrow",color:"#fff"},null)}}),c(O,{label:"训练周次",isLink:!0,clickable:!1,placeholder:"请选择训练周次",modelValue:C(A.week),inputAlign:"right",class:"form-control-icon",readonly:!0},null),c(D,{title:"训练次数",isLink:!(A.times<=0),value:A.times+"次",onClick:function(){A.times<=0||(A.numberStatus=!0)}},null)]}}),c(T,{position:"bottom",class:ie},{default:function(){return[c("div",{class:"btnGroup",style:{marginTop:"24px"}},[c(p,{type:"primary",block:!0,round:!0,onClick:y},{default:function(){return[u("下一步")]}})])]}}),c(m,{show:A.weekStatus,"onUpdate:show":function(e){return A.weekStatus=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[c(N,{columns:j,onCancel:function(){return A.weekStatus=!1},onConfirm:function(e){A.week=e.selectedValues[0],A.weekStatus=!1}},null)]}}),c(z,{modelValue:A.calendarStatus,"onUpdate:modelValue":function(e){return A.calendarStatus=e},position:"bottom",destroy:!0,teleport:"body"},{default:function(){return[c(R,{list:A.calendarList,nextMonth:function(e){return a(e)},prevMonth:function(e){return a(e)},toDayMonth:function(e){return a(e)},onSelect:function(n){A.calendarStatus=!1,A.trainStartDate=n,A.trainStartTime=null;var r=d(n).day(),a=j[0===r?6:r-1];A.week=a.value,A.calendarList.forEach((function(r){d(r.calendarDate).isSame(n)&&(A.timerList=function(n){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?e(Object(a),!0).forEach((function(e){t(n,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(a,e))}))}return n}({},r),setTimeout((function(){A.timerStatus=!0}),100))}))},onDestory:function(){A.trainStartDate?a(A.trainStartDate):a()},calendarDate:A.calendarDate,"onUpdate:calendarDate":function(e){return A.calendarDate=e}},null)]}}),c(z,{modelValue:A.timerStatus,"onUpdate:modelValue":function(e){return A.timerStatus=e},position:"bottom",style:{background:"#F6F6F6"},destroy:!0,teleport:"body"},{default:function(){return[A.timerStatus&&c(M,{timerList:A.timerList,times:A.trainTimer,onClose:function(){return A.timerStatus=!1},onConfirm:function(e){A.trainStartTime=e}},null)]}}),c(m,{show:A.numberStatus,"onUpdate:show":function(e){return A.numberStatus=e},position:"bottom",round:!0,class:"popupBottomSearch",teleport:"body"},{default:function(){return[c(N,{columns:A.timerPickerList,onCancel:function(){return A.numberStatus=!1},onConfirm:function(e){var t=e.selectedValues[0];A.times=t,A.numberStatus=!1}},null)]}}),c(S,{show:A.status,"onUpdate:show":function(e){return A.status=e},message:'您有<span style="color: #F44541;">'.concat(A.classList.length,"个</span>班级尚未指定伴学指导,请完成指定后再进行训练规划。"),messageAlign:"left",allowHtml:!0,confirmButtonText:"去设置",cancelButtonText:"暂不设置",teleport:"body",showCancelButton:!0,onConfirm:function(){A.classStatus=!0}},{title:function(){return c("div",{class:se},[c("i",null,null),u("指定伴学指导")])}}),c(S,{show:A.numberDialogStatus,"onUpdate:show":function(e){return A.numberDialogStatus=e},message:"暂无可训练次数",messageAlign:"center",confirmButtonText:"确定",teleport:"body"},{title:function(){return c("div",{class:se},[c("i",null,null),u("训练次数")])}}),c(z,{modelValue:A.classStatus,"onUpdate:modelValue":function(e){return A.classStatus=e},position:"bottom",style:{background:"#F6F6F6"},destroy:!0,teleport:"body"},{default:function(){return[c(te,{classList:A.classList,onClose:function(){return A.classStatus=!1},onConfirm:function(){h(!1)}},null)]}})])}}}),de="_train_r2wxa_1";r("default",a({name:"train-planning",setup:function(){var e=sessionStorage.getItem("trainType"),t=w(e||"standard"),n=w(""),r=function(){var e=i(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,v.get("/api-school/school/detail/".concat(k.user.data.school.id));case 3:t=e.sent,r=t.data,n.value=r.address||"",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)}}(),a=w(0);return l((function(){r()})),function(){return c("div",{class:de},[c(T,{position:"top",onGetHeight:function(e){console.log(e,"height"),a.value=e,document.documentElement.style.setProperty("--header-height",e+"px")}},{default:function(){return[c(x,{border:!1},null)]}}),c(Y,{sticky:!0,lineWidth:20,lineHeight:4,swipeable:!0,animated:!0,offsetTop:a.value,active:t.value,"onUpdate:active":function(e){return t.value=e},onChange:function(e){E(),sessionStorage.setItem("trainType",e)}},{default:function(){return[c(W,{title:"标准训练",name:"standard"},{default:function(){return["standard"===t.value&&c(ue,{address:n.value},null)]}}),c(W,{title:"自定义训练",name:"practice"},{default:function(){return["practice"===t.value&&c(q,{address:n.value},null)]}})]}})])}}}))}}}))}();