index-legacy.96f0ca3e.js 21 KB

1
  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_c6w34_1{display:flex;align-items:center;margin:.32rem .34667rem;background:#ffebdd;border-radius:.26667rem;padding:.18667rem .32rem;font-size:.34667rem;color:#f67146;line-height:.53333rem}._tips_c6w34_1 ._icon_c6w34_12{font-size:.53333rem;margin-right:.16rem}._informationBottom_c6w34_16 .van-sticky{position:absolute}._cellGroup_c6w34_19{margin:0 .34667rem;border-radius:.26667rem;overflow:hidden}._cellGroup_c6w34_19 ._classType_c6w34_24{flex:0 auto}._cellGroup_c6w34_19 .van-cell{font-size:.42667rem;padding:.48rem .32rem}._cellGroup_c6w34_19 .van-cell__value{color:#333}._cellGroup_c6w34_19 .van-radio-group,._cellGroup_c6w34_19 .van-checkbox-group{justify-content:flex-end}._cellGroup_c6w34_19 ._radioSection_c6w34_38{position:relative;min-width:.85333rem;justify-content:center}._cellGroup_c6w34_19 ._radioItem_c6w34_43{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}._cellGroup_c6w34_19 ._radioSection_c6w34_38+._radioSection_c6w34_38{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_gbr3a_1{--van-tab-active-text-color: var(--van-primary-color);--van-tab-text-color: #333;--van-tab-font-size: .42667rem}._train_gbr3a_1 .van-tab{font-weight:400}\n",document.head.appendChild(o),System.register(["./index-legacy.81fd4e6f.js","./index-legacy.00d82922.js","./index-legacy.a9944503.js","./create-legacy.1c633555.js","./index-legacy.75e78f7b.js","./index-legacy.16d013c6.js","./index-legacy.3652aee1.js","./index-legacy.c74636d9.js","./index-legacy.1f2c4a24.js","./index-legacy.0256f666.js","./index-legacy.e7b78143.js","./index-legacy.40afcdaf.js","./index-legacy.55bd130c.js","./index-legacy.50ceab3b.js","./index-legacy.0b23806e.js","./teacher-list-legacy.db01f603.js","./index-legacy.2a9471c6.js","./index-legacy.e997fd26.js","./index-legacy.819d05e3.js","./Checker-legacy.a8f83c3c.js","./utils-legacy.0c949fd0.js","./index-legacy.c75fe8a2.js","./isSameOrBefore-legacy.49c5bb4a.js","./index-legacy.85ba4dc7.js","./icon_teacher-legacy.07765f44.js","./index-legacy.c7f919fb.js","./index-legacy.8271e59c.js","./use-tab-status-legacy.7b80393c.js","./index-legacy.aa24f77a.js","./index-legacy.8bfb99fc.js"],(function(r){"use strict";var a,o,l,c,s,u,d,f,p,m,h,_,g,y,v,b,S,k,w,x,T,A,C,j,E,F,D,L,I,G,O,H,V,U,N,z,R,M,B,P,Y;return{setters:[function(e){a=e.O},function(e){o=e.O},function(e){l=e.d,c=e.ag,s=e.$,u=e.c,d=e.a5,f=e.q,p=e.ah,m=e.o,h=e.B,_=e.P,g=e.r,y=e.Z,v=e.ai,b=e.m,S=e.aU,k=e.aV,w=e.f,x=e.R},function(e){T=e.f,A=e.w,C=e.a,j=e.r},function(e){E=e.C},function(e){F=e.C},function(e){D=e.C},function(e){L=e.T},function(e){I=e.C},function(e){G=e.F},function(e){O=e.R,H=e.a},function(e){V=e.P},function(e){U=e.D},function(e){N=e.O},function(e){z=e.C,R=e.T},function(e){M=e.T},function(e){B=e.S},function(e){P=e.T,Y=e.a},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var $={tips:"_tips_c6w34_1",icon:"_icon_c6w34_12",informationBottom:"_informationBottom_c6w34_16",cellGroup:"_cellGroup_c6w34_19",classType:"_classType_c6w34_24",radioSection:"_radioSection_c6w34_38",radioItem:"_radioItem_c6w34_43"},q=l({name:"practice",props:{address:{type:String,default:""}},setup:function(e){var t=c(),n=function(){if(T.classList.length>0)T.status=!0;else if(T.classType.length<=0)m("请选择课程类型");else if(T.trainStartDate)if(T.week)if(e.address){var n=[];T.classType.forEach((function(e){n.push({classType:e,startTime:null,endTime:null,trainTimer:null,times:null,classIdList:[]})})),T.classPracticeList=n,t.push("/practice-detail")}else m("您所在的学校暂未设置地址");else m("请选择周次");else m("请选择课程开始日期")};return s((function(){})),function(){return u("div",{class:$.practice,style:{minHeight:"calc(100vh - var(--header-height) - var(--van-tabs-line-height))",overflow:"hidden"}},[u("div",{class:$.tips},[u(d,{name:"warning",class:$.icon},null),f("自定义训练可对任意班级进行排课,课程类型可多选")]),u(E,{inset:!0,class:$.cellGroup},{default:function(){return[u(F,{title:"课程类型",titleClass:$.classType},{value:function(){return u(D,{"checked-color":"#FF8057",modelValue:T.classType,"onUpdate:modelValue":function(e){return T.classType=e},direction:"horizontal"},{default:function(){return[u(L,{size:"large",type:"primary",color:T.classType.includes("SINGLE")?"#FF8057":"#EAEAEA",textColor:T.classType.includes("SINGLE")?"#FFF":"#AAA",class:$.radioSection},{default:function(){return[u(I,{class:$.radioItem,name:"SINGLE"},null),f("声部课")]}}),u(L,{size:"large",type:"primary",color:T.classType.includes("MUSIC_THEORY")?"#FF8057":"#EAEAEA",textColor:T.classType.includes("MUSIC_THEORY")?"#FFF":"#AAA",class:$.radioSection},{default:function(){return[u(I,{class:$.radioItem,name:"MUSIC_THEORY"},null),f("乐理课")]}}),u(L,{size:"large",type:"primary",color:T.classType.includes("INSTRUMENTAL_ENSEMBLE")?"#FF8057":"#EAEAEA",textColor:T.classType.includes("INSTRUMENTAL_ENSEMBLE")?"#FFF":"#AAA",class:$.radioSection},{default:function(){return[u(I,{class:$.radioItem,name:"INSTRUMENTAL_ENSEMBLE"},null),f("合奏课")]}})]}})}}),u(G,{label:"课程开始日期",inputAlign:"right",placeholder:"请选择课程开始日期",readonly:!0,isLink:!0,modelValue:T.trainStartDate?p(T.trainStartDate).format("YYYY年MM月DD日"):"",onClick:function(){return T.calendarTimeStatus=!0}},null),u(G,{label:"课程周次",inputAlign:"right",placeholder:"请选择课程周次",readonly:!0,modelValue:A(T.week),onClick:function(){T.trainStartDate||m("请选择课程开始日期")}},null),u(F,{title:"跳过节假日"},{value:function(){return u(O,{"checked-color":"#FF8057",modelValue:T.skipHoliday,"onUpdate:modelValue":function(e){return T.skipHoliday=e},direction:"horizontal"},{default:function(){return[u(L,{size:"large",type:"primary",color:1!==T.skipHoliday?"#EAEAEA":"#FF8057",textColor:1!==T.skipHoliday?"#AAA":"#FFF",class:$.radioSection,round:!0},{default:function(){return[u(H,{class:$.radioItem,name:1},null),f("是")]}}),u(L,{size:"large",type:"primary",color:0!==T.skipHoliday?"#EAEAEA":"#FF8057",textColor:0!==T.skipHoliday?"#AAA":"#FFF",class:$.radioSection,round:!0},{default:function(){return[u(H,{class:$.radioItem,name:0},null),f("否")]}})]}})}})]}}),u(o,{position:"bottom",class:$.informationBottom},{default:function(){return[u("div",{class:"btnGroup",style:{marginTop:"24px"}},[u(h,{type:"primary",block:!0,round:!0,onClick:n},{default:function(){return[f("下一步")]}})])]}}),u(_,{show:T.weekStatus,"onUpdate:show":function(e){return T.weekStatus=e},position:"bottom",round:!0,class:"popupBottomSearch",teleport:"body"},{default:function(){return[u(V,{columns:C,onCancel:function(){return T.weekStatus=!1},onConfirm:function(e){T.week=e.selectedValues[0],T.weekStatus=!1}},null)]}}),u(_,{show:T.calendarTimeStatus,"onUpdate:show":function(e){return T.calendarTimeStatus=e},position:"bottom",round:!0,class:"popupBottomSearch",teleport:"body"},{default:function(){return[u(U,{minDate:new Date,modelValue:T.classDate,"onUpdate:modelValue":function(e){return T.classDate=e},onCancel:function(){return T.calendarTimeStatus=!1},onConfirm:function(e){T.calendarTimeStatus=!1,T.trainStartDate=e.selectedValues.join("-");var t=p(T.trainStartDate).day(),n=C[0===t?6:t-1];T.week=n.value}},null)]}})])}}}),W="_classList_13nhk_1",Z="_cell_13nhk_1",J="_content_13nhk_7",K="_title_13nhk_7",Q="_name_13nhk_22",X="_teacherName_13nhk_29",ee=l({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,o=g({teacherStatus:!1,list:[],isClick:!1,selectItem:{}}),l=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=[],o.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 o.isClick=!0,e.next=9,b.post("/api-school/classGroup/updateTeacher",{data:t});case 9:o.isClick=!1,r("confirm"),r("close"),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(0),o.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(){o.list=n(e.classList)})),s((function(){o.list=n(e.classList)})),function(){return u("div",{class:[W,o.list.length<=0&&"emptyRootContainer"]},[u(a,{title:"指定伴学指导",desotry:!1},null),o.list.map((function(e){return u(F,{class:Z,center:!0,isLink:!0,onClick:function(){o.selectItem=e,o.teacherStatus=!0},valueClass:[X,"van-ellipsis"]},{title:function(){return u("div",{class:J},[u("div",{class:K},[u("i",null,null),e.name]),u("div",{class:[Q,"van-ellipsis"]},[e.orchestraName])])},value:function(){return u("div",{style:{color:e.teacherName?"":"var(--van-primary)"}},[e.teacherName?e.teacherName:"去设置"])}})})),e.classList.length<=0&&u(v,{btnStatus:!1,tips:"暂无班级"},null),u(B,{position:"bottom",style:{width:"100%"}},{default:function(){return[u("div",{class:"btnGroup"},[u(h,{round:!0,block:!0,type:"primary",onClick:l,disabled:o.isClick},{default:function(){return[f("完成")]}})])]}}),u(_,{show:o.teacherStatus,"onUpdate:show":function(e){return o.teacherStatus=e},position:"bottom",round:!0,style:{height:"80%"}},{default:function(){return[u(M,{header:!1,mode:"sticky",courseType:o.selectItem.courseType,onClose:function(){return o.teacherStatus=!1},onSelect:function(e){o.selectItem.teacherId=e.id,o.selectItem.teacherName=e.nickname}},null)]}})])}}}),te="_standard_8h5p6_1",ne="_tips_8h5p6_4",re="_icon_8h5p6_14",ae="_informationBottom_8h5p6_18",ie="_cellGroup_8h5p6_21",oe="_radioSection_8h5p6_36",le="_radioItem_8h5p6_41",ce="_dialogTitle_8h5p6_52",se=l({name:"standard",props:{address:{type:String,default:""}},setup:function(n){S();var r=c(),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,b.post("/api-school/orchestra/trainingPlanTime",{data:{schoolId:w.user.data.school.id,skipHoliday:!!T.skipHoliday,type:"STANDARD",calendarDate:p(t).format("YYYY-MM-DD")}});case 3:n=e.sent,r=n.data,T.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)}}(),l=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,b.post("/api-school/classGroup/page",{data:{page:1,rows:200,schoolId:w.user.data.school.id,hasTeacher:!1,orchestraType:"DELIVERY"}});case 4:n=e.sent,r=n.data,T.classList=r.rows||[],T.classList.length>0&&t&&(T.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)}}(),g=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,b.get("/api-school/orchestra/semesterStandardCourseNum/"+w.user.data.school.id);case 3:for(t=e.sent,n=t.data,r=Number(T.pickerNum-n),T.times=r,a=0;a<r;a++)T.timerPickerList.push({text:a+1+"次",value:a+1});r<=0&&(T.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(){T.times<=0?T.numberDialogStatus=!0:T.classList.length>0?T.status=!0:T.trainStartDate?T.trainStartTime?T.week?n.address?r.push("/train-content"):m("您所在的学校暂未设置地址"):m("请选择周次"):m("请选择训练开始时间"):m("请选择训练开始日期")};return s((function(){a(T.calendarDate||new Date),l(),g()})),function(){return u("div",{class:te,style:{minHeight:"calc(100vh - var(--header-height) - var(--van-tabs-line-height))",overflow:"hidden"}},[u("div",{class:ne},[u(d,{name:"warning",class:re},null),f("标准训练可对交付团进行整学期标准训练排课")]),u(E,{inset:!0,class:ie},{default:function(){return[u(F,{title:"跳过节假日"},{value:function(){return u(O,{"checked-color":"#FF8057",modelValue:T.skipHoliday,"onUpdate:modelValue":function(e){return T.skipHoliday=e},direction:"horizontal",onChange:function(){T.trainStartDate=null,T.trainStartTime=null,T.calendarDate=null,a()}},{default:function(){return[u(L,{size:"large",type:"primary",color:1!==T.skipHoliday?"#EAEAEA":"#FF8057",textColor:1!==T.skipHoliday?"#AAA":"#FFF",class:oe,round:!0},{default:function(){return[u(H,{class:le,name:1},null),f("是")]}}),u(L,{size:"large",type:"primary",color:0!==T.skipHoliday?"#EAEAEA":"#FF8057",textColor:0!==T.skipHoliday?"#AAA":"#FFF",class:oe,round:!0},{default:function(){return[u(H,{class:le,name:0},null),f("否")]}})]}})}}),u(G,{label:"训练开始日期",placeholder:"请选择训练开始日期",isLink:!0,readonly:!0,inputAlign:"right",onClick:function(){return T.calendarStatus=!0},modelValue:T.trainStartDate?p(T.trainStartDate).format("YYYY年MM月DD日"):""},null),u(G,{label:"训练开始时间",isLink:!0,readonly:!0,placeholder:"请选择训练开始日期",inputAlign:"right",modelValue:T.trainStartTime?p(T.trainStartTime).format("HH:mm"):"",onClick:function(){T.trainStartDate?T.timerStatus=!0:m("请选择训练开始日期")}},null),u(F,{title:"训练时长",value:T.trainTimer+"分钟"},null),u(G,{label:"训练周次",placeholder:"请选择训练周次",modelValue:A(T.week),inputAlign:"right",readonly:!0},null),u(F,{title:"训练次数",isLink:!(T.times<=0),value:T.times+"次",onClick:function(){T.times<=0||(T.numberStatus=!0)}},null)]}}),u(o,{position:"bottom",class:ae},{default:function(){return[u("div",{class:"btnGroup",style:{marginTop:"24px"}},[u(h,{type:"primary",block:!0,round:!0,onClick:y},{default:function(){return[f("下一步")]}})])]}}),u(_,{show:T.weekStatus,"onUpdate:show":function(e){return T.weekStatus=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[u(V,{columns:C,onCancel:function(){return T.weekStatus=!1},onConfirm:function(e){T.week=e.selectedValues[0],T.weekStatus=!1}},null)]}}),u(N,{modelValue:T.calendarStatus,"onUpdate:modelValue":function(e){return T.calendarStatus=e},position:"bottom",destroy:!0,teleport:"body"},{default:function(){return[u(z,{list:T.calendarList,nextMonth:function(e){return a(e)},prevMonth:function(e){return a(e)},toDayMonth:function(e){return a(e)},onSelect:function(n){T.calendarStatus=!1,T.trainStartDate=n,T.trainStartTime=null;var r=p(n).day(),a=C[0===r?6:r-1];T.week=a.value,T.calendarList.forEach((function(r){p(r.calendarDate).isSame(n)&&(T.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(){T.timerStatus=!0}),100))}))},onDestory:function(){T.trainStartDate?a(T.trainStartDate):a()},calendarDate:T.calendarDate,"onUpdate:calendarDate":function(e){return T.calendarDate=e}},null)]}}),u(N,{modelValue:T.timerStatus,"onUpdate:modelValue":function(e){return T.timerStatus=e},position:"bottom",style:{background:"#F6F6F6"},destroy:!0,teleport:"body"},{default:function(){return[T.timerStatus&&u(R,{timerList:T.timerList,times:T.trainTimer,onClose:function(){return T.timerStatus=!1},onConfirm:function(e){T.trainStartTime=e}},null)]}}),u(_,{show:T.numberStatus,"onUpdate:show":function(e){return T.numberStatus=e},position:"bottom",round:!0,class:"popupBottomSearch",teleport:"body"},{default:function(){return[u(V,{columns:T.timerPickerList,onCancel:function(){return T.numberStatus=!1},onConfirm:function(e){var t=e.selectedValues[0];T.times=t,T.numberStatus=!1}},null)]}}),u(k,{show:T.status,"onUpdate:show":function(e){return T.status=e},message:'您有<span style="color: #F44541;">'.concat(T.classList.length,"个</span>班级尚未指定伴学指导,请完成指定后再进行训练规划。"),messageAlign:"left",allowHtml:!0,confirmButtonText:"去设置",cancelButtonText:"暂不设置",teleport:"body",showCancelButton:!0,onConfirm:function(){T.classStatus=!0}},{title:function(){return u("div",{class:ce},[u("i",null,null),f("指定伴学指导")])}}),u(k,{show:T.numberDialogStatus,"onUpdate:show":function(e){return T.numberDialogStatus=e},message:"暂无可训练次数",messageAlign:"center",confirmButtonText:"确定",teleport:"body"},{title:function(){return u("div",{class:ce},[u("i",null,null),f("训练次数")])}}),u(N,{modelValue:T.classStatus,"onUpdate:modelValue":function(e){return T.classStatus=e},position:"bottom",style:{background:"#F6F6F6"},destroy:!0,teleport:"body"},{default:function(){return[u(ee,{classList:T.classList,onClose:function(){return T.classStatus=!1},onConfirm:function(){l(!1)}},null)]}})])}}}),ue="_train_gbr3a_1";r("default",l({name:"train-planning",setup:function(){var e=sessionStorage.getItem("trainType"),t=x(e||"standard"),n=x(""),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,b.get("/api-school/school/detail/".concat(w.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)}}(),l=x(0);return s((function(){r()})),function(){return u("div",{class:ue},[u(o,{position:"top",onGetHeight:function(e){l.value=e,document.documentElement.style.setProperty("--header-height",e+"px")}},{default:function(){return[u(a,null,null)]}}),u(P,{sticky:!0,lineWidth:20,lineHeight:4,swipeable:!0,animated:!0,offsetTop:l.value,active:t.value,"onUpdate:active":function(e){return t.value=e},onChange:function(e){j(),sessionStorage.setItem("trainType",e)}},{default:function(){return[u(Y,{title:"标准训练",name:"standard"},{default:function(){return["standard"===t.value&&u(se,{address:n.value},null)]}}),u(Y,{title:"自定义训练",name:"practice"},{default:function(){return["practice"===t.value&&u(q,{address:n.value},null)]}})]}})])}}}))}}}))}();