1 |
- !function(){var e=document.createElement("style");e.innerHTML='._gridContainer_a6cas_1{margin:.32rem .34667rem;background:#ffffff;border-radius:.26667rem;overflow:hidden}._gridContainer_a6cas_1 ._title_a6cas_7{font-size:.64rem;font-weight:700;color:#333}._gridContainer_a6cas_1 ._title_a6cas_7 i{font-style:normal;font-size:.32rem;color:#333}._gridContainer_a6cas_1 ._title_a6cas_7 span{font-family:DINA;font-family:DINAlternate-Bold,DINAlternate}._gridContainer_a6cas_1 ._red_a6cas_21{color:#f67146}._gridContainer_a6cas_1 ._name_a6cas_24{padding-top:.21333rem;font-size:.32rem;color:#777}._gridClass_a6cas_29 ._title_a6cas_7{font-size:.64rem;font-family:DINA;font-family:DINAlternate-Bold,DINAlternate}._gridClass_a6cas_29 ._teacher_a6cas_34{font-size:.42667rem;line-height:.64rem;max-width:2.53333rem;font-size:500}._gridClass_a6cas_29 ._className_a6cas_40{padding:.45333rem .4rem 0;font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem}._gridClass_a6cas_29 ._className_a6cas_40 ._line_a6cas_47{display:inline-block;width:.10667rem;height:.32rem;background:#ff8057;border-radius:.08rem;margin-right:.16rem}._gridClass_a6cas_29 .van-grid-item:after{content:" ";position:absolute;top:50%;right:0;margin-top:-.26667rem;width:.02667rem;height:.53333rem;background:#eaeaea;border-radius:.02667rem}._gridClass_a6cas_29 .van-grid-item:last-child:after{display:none}._informationBottom_a6cas_69 .van-sticky{position:absolute}._codeContainer_a6cas_72 ._codeImg_a6cas_72{width:8.61333rem;height:12.4rem;background:url(./assets/download.d4e802c2.png) no-repeat center center;background-size:contain;margin:0 auto}._codeContainer_a6cas_72 ._codeImg_a6cas_72 ._codeContent_a6cas_79{padding-left:.21333rem}._codeContainer_a6cas_72 ._codeImg_a6cas_72 ._codeTitle_a6cas_82{text-align:center;padding-top:.37333rem;font-size:.64rem;font-weight:700;color:#fff;text-shadow:.02667rem .02667rem .18667rem #f4672a}._codeContainer_a6cas_72 ._codeImg_a6cas_72 ._codeName_a6cas_90{padding:1.06667rem .32rem 0;font-size:.48rem;font-weight:600;color:#fff;text-align:center}._codeContainer_a6cas_72 ._codeImg_a6cas_72 ._codeQr_a6cas_97{margin:.61333rem auto 0;width:6.42667rem;height:6.42667rem;background:linear-gradient(180deg,#ffffff 0%,#ffffff 100%);border-radius:.29333rem;overflow:hidden}._codeContainer_a6cas_72 ._codeImg_a6cas_72 ._codeQr_a6cas_97 img{width:100%;height:100%}._codeContainer_a6cas_72 ._codeImg_a6cas_72 ._codeBtnText_a6cas_109{margin:.4rem auto 0;display:inline-block;background:linear-gradient(135deg,#ff9c63 0%,#ff7144 100%);border-radius:.48rem;padding:.16rem .42667rem;font-size:.42667rem;font-weight:600;color:#fff}._codeContainer_a6cas_72 ._codeImg_a6cas_72 ._codeTips_a6cas_119{padding-top:.26667rem;font-size:.34667rem;font-weight:600;color:#f16437;line-height:.48rem;text-align:center}._codeContainer_a6cas_72 ._close_a6cas_127{position:absolute;top:.32rem;right:.4rem}._codeContainer_a6cas_72 ._codeBottom_a6cas_132{position:relative;margin-top:.85333rem;background:#ffffff;border-radius:.53333rem .53333rem 0 0;padding-bottom:.26667rem}._codeContainer_a6cas_72 ._title_a6cas_7{font-size:.42667rem;font-weight:600;color:#333;line-height:.58667rem;padding:.4rem .4rem 0}._codeContainer_a6cas_72 ._title_a6cas_7 i{display:inline-block;margin-right:.16rem;width:.10667rem;height:.32rem;background:#ff8057;border-radius:.05333rem}._codeContainer_a6cas_72 ._shareImg_a6cas_154{width:1.25333rem;height:1.25333rem}._codeContainer_a6cas_72 ._shareText_a6cas_158{padding-top:.16rem;font-size:.37333rem;color:#333;line-height:.53333rem}._gridContainer_xmx94_1{margin:.32rem .34667rem;padding:0 .4rem .26667rem;background:#ffffff;border-radius:.26667rem;overflow:hidden}._gridContainer_xmx94_1 ._title_xmx94_8{font-size:.69333rem;font-weight:700;color:#333}._gridContainer_xmx94_1 ._title_xmx94_8 span{font-size:.32rem;color:#333}._gridContainer_xmx94_1 ._red_xmx94_17{color:#f67146}._gridContainer_xmx94_1 ._name_xmx94_20{padding-top:.21333rem;font-size:.32rem;color:#777}._gridClass_xmx94_25{padding-bottom:.53333rem}._gridClass_xmx94_25 ._title_xmx94_8{font-size:.64rem}._gridClass_xmx94_25 ._teacher_xmx94_31{font-size:.48rem;line-height:.64rem}._gridClass_xmx94_25 ._className_xmx94_35{padding:.45333rem 0 0;font-size:.42667rem;font-weight:600;color:#333;line-height:.58667rem}._gridClass_xmx94_25 ._className_xmx94_35 ._line_xmx94_42{display:inline-block;width:.10667rem;height:.32rem;background:#ff8057;border-radius:.08rem;margin-right:.16rem}._gridClass_xmx94_25 ._gridCell_xmx94_50{padding-top:.4rem;padding-bottom:.42667rem}._gridClass_xmx94_25 ._img_xmx94_54{width:1.2rem;height:1.2rem;border-radius:50%;overflow:hidden}._gridClass_xmx94_25 ._class_xmx94_35{font-size:.53333rem;font-weight:700;color:#f67146;line-height:.64rem;font-family:DINA}._gridClass_xmx94_25 ._courseware_xmx94_67{font-size:.42667rem;font-weight:600;color:#333;line-height:.64rem}._gridClass_xmx94_25 ._teacherDesc_xmx94_73{padding-top:.16rem;font-size:.32rem;color:#777;line-height:.45333rem}._gridClass_xmx94_25 .van-cell__title{flex:0 auto;padding-left:.53333rem;min-width:1.86667rem}._gridClass_xmx94_25 .van-cell__value{text-align:left}._gridClass_xmx94_25 ._classNum_xmx94_87{padding-top:.53333rem;padding-bottom:.53333rem;font-size:.32rem;color:#333;display:flex;align-items:center}._gridClass_xmx94_25 ._classNum_xmx94_87 ._classNumItem_xmx94_95{padding-left:.34667rem;padding-right:.13333rem;display:flex;align-items:center}._gridClass_xmx94_25 ._classNum_xmx94_87 ._classNumItem_xmx94_95 ._use_xmx94_101{color:#777}._gridClass_xmx94_25 ._classNum_xmx94_87 ._classNumItem_xmx94_95 ._nums_xmx94_104{font-size:.42667rem;color:#333;padding:0 .16rem;font-family:DINA}._gridClass_xmx94_25 ._classNum_xmx94_87 ._block_xmx94_110{display:inline-block;width:.32rem;height:.32rem;border-radius:.05333rem;background-color:#ececec;margin-right:.16rem}._orchestraDetail_xtf76_1{--van-tab-active-text-color: var(--van-primary-color);--van-tab-text-color: #333;--van-tab-font-size: .42667rem}\n',document.head.appendChild(e),System.register(["./index-legacy.eb062188.js","./index-legacy.ad813f4d.js","./countUp.min-legacy.feec0c73.js","./isSameOrBefore-legacy.07b1529b.js","./index-legacy.d552a2f3.js","./index-legacy.761bf286.js","./index-legacy.fad72574.js","./index-legacy.5f462740.js","./index-legacy.c5d0ca8d.js","./index-legacy.ac7c51db.js","./index-legacy.8c254533.js","./use-tab-status-legacy.91417466.js","./utils-legacy.6e8de97c.js","./Picker-legacy.95f03705.js","./index-legacy.38b799d5.js","./index-legacy.fab451f1.js","./index-legacy.10d8486a.js"],(function(e){"use strict";var a,t,r,s,i,o,n,c,m,l,d,_,u,f,g,h,p,x,y,v,b,C,w,Y,D,N,T,S,M,H;return{setters:[function(e){e.ao,a=e.d,t=e.y,r=e.ah,s=e.ag,i=e.r,o=e.ai,n=e.$,c=e.c,m=e.q,l=e.ak,d=e.B,_=e.P,u=e.b2,f=e.F,g=e.al,h=e.m,p=e._,x=e.R,y=e.aj},function(e){v=e.O},function(e){b=e.i},function(e){C=e.i},function(e){w=e.O},function(e){Y=e.G,D=e.a},function(e){N=e.L},function(e){T=e.D},function(e){S=e.P},function(e){M=e.T,H=e.a},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var I={gridContainer:"_gridContainer_a6cas_1",title:"_title_a6cas_7",red:"_red_a6cas_21",name:"_name_a6cas_24",gridClass:"_gridClass_a6cas_29",teacher:"_teacher_a6cas_34",className:"_className_a6cas_40",line:"_line_a6cas_47",informationBottom:"_informationBottom_a6cas_69",codeContainer:"_codeContainer_a6cas_72",codeImg:"_codeImg_a6cas_72",codeContent:"_codeContent_a6cas_79",codeTitle:"_codeTitle_a6cas_82",codeName:"_codeName_a6cas_90",codeQr:"_codeQr_a6cas_97",codeBtnText:"_codeBtnText_a6cas_109",codeTips:"_codeTips_a6cas_119",close:"_close_a6cas_127",codeBottom:"_codeBottom_a6cas_132",shareImg:"_shareImg_a6cas_154",shareText:"_shareText_a6cas_158"},k={exports:{}};k.exports=function(e,a){a.prototype.isSameOrAfter=function(e,a){return this.isSame(e,a)||this.isAfter(e,a)}};var z=k.exports;o.extend(C,z);var j=a({name:"detail-information",props:{termTimes:{type:Object,default:{}}},setup(e){const a=t((()=>e.termTimes.start)),x=t((()=>e.termTimes.end)),y=r(),C=s(),S=i({timeShow:!1,currentData:[o().year()+""],actionText:"上学期",actionType:"up",actionTerm:[{name:"上学期",selected:!0,value:"up"},{name:"下学期",value:"down"}],oPopover:!1,check:[],checkboxRefs:[],isLoading:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},bottomHeight:0,params:{startTime:o(o().year()+a.value).format("YYYY-MM-DD HH:mm:ss"),endTime:o(o().year()+x.value).add(1,"year").subtract(1,"day").format("YYYY-MM-DD HH:mm:ss"),page:1,rows:20},statistics:{},orchestraInfo:{}}),M=e=>{S.actionTerm.forEach((e=>{e.selected=!1})),e.selected=!0,S.actionText=e.name,S.actionType=e.value,"up"===e.value?(S.params.startTime=o(Number(S.currentData[0])+a.value).format("YYYY-MM-DD HH:mm:ss"),S.params.endTime=o(Number(S.currentData[0])+x.value).add(1,"year").subtract(1,"day").format("YYYY-MM-DD HH:mm:ss")):"down"===e.value&&(S.params.startTime=o(Number(S.currentData[0])+x.value).add(1,"year").format("YYYY-MM-DD HH:mm:ss"),S.params.endTime=o(Number(S.currentData[0])+a.value).add(1,"year").subtract(1,"day").format("YYYY-MM-DD HH:mm:ss")),S.oPopover=!1,z()},H=e=>{S.currentData=e.selectedValues;const t=Number(S.currentData[0])+1;"up"===S.actionType?(S.params.startTime=o(t+a.value).format("YYYY-MM-DD HH:mm:ss"),S.params.endTime=o(t+x.value).add(1,"year").subtract(1,"day").format("YYYY-MM-DD HH:mm:ss")):"down"===S.actionType&&(S.params.startTime=o(t+x.value).format("YYYY-MM-DD HH:mm:ss"),S.params.endTime=o(t+a.value).subtract(1,"day").format("YYYY-MM-DD HH:mm:ss")),S.timeShow=!1,z()},k=async()=>{try{if(S.isLoading)return;S.isLoading=!0;const e=await h.post("/api-school/classGroup/page",{data:{...S.params,orchestraId:y.query.id}});S.listState.loading=!1;const a=e.data||{};if(S.list.length>0&&1===a.current)return;const t=a.rows||[];S.list=S.list.concat(t),S.listState.finished=a.current>=a.pages,S.params.page=a.current+1,S.listState.dataShow=S.list.length>0,S.isLoading=!1}catch{S.listState.dataShow=!1,S.listState.finished=!0,S.isLoading=!1}},z=()=>{S.params.page=1,S.list=[],S.listState.dataShow=!0,S.listState.loading=!1,S.listState.finished=!1,k()},j=()=>{p((()=>{const e=S.statistics;new b("currentStudentNum",e.currentStudent||0).start(),new b("time1",100*e.attendanceRate||0).start(),new b("time2",100*e.homeworkSubmissionRate||0).start(),new b("time3",100*e.practicePassRate||0).start()}))};return n((async()=>{const e=o(o().year()+a.value).format("YYYY-MM-DD"),t=o(o().year()+x.value).format("YYYY-MM-DD"),r=o().format("YYYY-MM-DD");console.log(r,e);const s=o(r).isBefore(o(e)),i=o(r).isBefore(o(t)),n=o().year();s&&i&&(S.currentData=[n-1+""],S.params.startTime=o(n-1+a.value).format("YYYY-MM-DD HH:mm:ss"),S.params.endTime=o(o().year()+x.value).subtract(1,"day").format("YYYY-MM-DD HH:mm:ss")),s||i||(S.params.startTime=o(o().year()+a.value).format("YYYY-MM-DD HH:mm:ss"),S.params.endTime=o(o().year()+x.value).add(1,"year").subtract(1,"day").format("YYYY-MM-DD HH:mm:ss")),s&&!i&&(S.params.startTime=o(n+x.value).format("YYYY-MM-DD HH:mm:ss"),S.params.endTime=o(n+a.value).subtract(1,"day").format("YYYY-MM-DD HH:mm:ss"),S.actionTerm.forEach((e=>{"down"===e.value?(e.color="var(--van-primary-color)",S.actionText=e.text,S.actionType=e.value):e.color=""})),S.currentData=[n-1+""],S.actionText="下学期",S.actionType="down",S.actionTerm.forEach((e=>{"down"===e.value?e.selected=!0:e.selected=!1}))),await(async()=>{try{const{data:e}=await h.get("/api-school/orchestra/detail/"+y.query.id);S.orchestraInfo=e||{}}catch{}})(),await(async()=>{try{const{data:e}=await h.post("/api-school/school/schoolSummaryStat",{data:{orchestraId:y.query.id}});S.statistics=e||{},j()}catch{}})(),await k()})),()=>{let e;return c(f,null,[c("div",{class:["searchGroup","van-hairline--top"]},[c("div",{class:["searchItem",S.timeShow?"searchItem-active":""],onClick:()=>S.timeShow=!0},[S.currentData[0],m("年 "),c("i",{class:"arrow"},null)]),c("div",{class:["searchItem",S.oPopover?"searchItem-active":""],onClick:()=>S.oPopover=!0},[S.actionText,m(" "),c("i",{class:"arrow"},null)])]),c("div",{style:{height:"calc(100vh - var(--header-height) - var(--van-tabs-line-height) - 1.17333rem)",overflow:"hidden",overflowY:"auto"}},[c(Y,{border:!1,class:I.gridContainer},{default:()=>[c(D,null,{default:()=>[c("p",{class:[I.title,I.red]},[c("span",{id:"currentStudentNum"},[S.statistics.studentNum||0]),c("i",null,[m(" 名")])]),c("p",{class:I.name},[m("在读学员")])]}),c(D,null,{default:()=>[c("p",{class:[I.title,I.red]},[c("span",{id:"time1"},[S.statistics.attendanceRate||0]),m("%")]),c("p",{class:I.name},[m("到课率")])]}),c(D,null,{default:()=>[c("p",{class:[I.title,I.red]},[c("span",{id:"time2"},[S.statistics.homeworkRate||0]),m("%")]),c("p",{class:I.name},[m("作业提交率")])]}),c(D,null,{default:()=>[c("p",{class:[I.title,I.red]},[c("span",{id:"time3"},[S.statistics.homeworkQualifiedRate||0]),m("%")]),c("p",{class:I.name},[m("练习合格率")])]})]}),S.listState.dataShow?c(N,{finished:S.listState.finished,finishedText:" ",class:[I.liveList],onLoad:k,immediateCheck:!1},(a=e=S.list.map((e=>c("div",{class:[I.gridContainer,I.gridClass]},[c("div",{class:I.className},[c("i",{class:I.line},null),e.name]),c(Y,{border:!1,columnNum:3},{default:()=>[c(D,null,{default:()=>[c("p",{class:I.title},[e.preStudentNum||0]),c("p",{class:I.name},[m("在读学员")])]}),c(D,null,{default:()=>[c("p",{class:[I.title,I.teacher,"van-ellipsis"]},[e.teacherName||"-"]),c("p",{class:I.name},[m("伴学老师")])]}),c(D,null,{default:()=>[c("p",{class:I.title},[e.completeCourseScheduleNum||0,m("/"),e.courseScheduleNum||0]),c("p",{class:I.name},[m("课时")])]})]})]))),"function"==typeof a||"[object Object]"===Object.prototype.toString.call(a)&&!g(a)?e:{default:()=>[e]})):c(l,{btnStatus:!1,tips:"暂无班级"},null),S.orchestraInfo.canSignUp&&c(v,{position:"bottom",class:I.informationBottom,onGetHeight:e=>{S.bottomHeight=e}},{default:()=>[c("div",{class:"btnGroup"},[c(d,{round:!0,block:!0,type:"primary",onClick:()=>{C.push({path:"save-share-image",query:{type:"orchestra",id:y.query.id}})}},{default:()=>[m("报名二维码")]})])]})]),c(w,{show:S.oPopover,"onUpdate:show":e=>S.oPopover=e,actions:S.actionTerm,onSelect:M,teleport:"body"},null),c(_,{show:S.timeShow,"onUpdate:show":e=>S.timeShow=e,position:"bottom",round:!0,class:"popupBottomSearch",teleport:"body"},{default:()=>[c(T,{modelValue:S.currentData,"onUpdate:modelValue":e=>S.currentData=e,columnsType:["year"],formatter:u,onConfirm:H,onCancel:()=>S.timeShow=!1},null)]})]);var a}}});var B="_gridContainer_xmx94_1",F="_gridClass_xmx94_25",P="_className_xmx94_35",A="_line_xmx94_42",L="_classNum_xmx94_87",q="_classNumItem_xmx94_95",E="_use_xmx94_101",R="_nums_xmx94_104",O="_block_xmx94_110";o.extend(C,z);var G=a({name:"plan",props:{termTimes:{type:Object,default:{}},height:{type:[String,Number],default:0}},setup(e){const a=r(),t=i({isLoading:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{page:1,rows:100}});return n((async()=>{await(async()=>{try{const{data:e}=await h.post("/api-school/orchestraDataStatistics/orchestraTrainingProgress",{data:{orchestraId:a.query.id}});t.list=e||[],t.listState.dataShow=t.list.length>0}catch{t.listState.dataShow=!1}})()})),()=>c("div",{style:"height: calc(100vh - var(--header-height) - var(--van-tabs-line-height)); overflow: hidden; overflow-y: auto;"},[t.listState.dataShow?c("div",{class:[B]},[t.list.map((e=>c("div",{class:F},[c("div",{class:P},[c("i",{class:A,style:{backgroundColor:e.coursewareNum<e.endCourseNum?"#FF928D":"#64A9FF"}},null),e.classGroupName]),c("div",{class:L},[c("div",{class:q},[c("i",{class:O,style:{backgroundColor:e.coursewareNum<e.endCourseNum?"#FF9B96":"#A2CDFF"}},null),c("span",{class:E},[m("已使用")]),c("span",{class:R,style:{color:e.coursewareNum<e.endCourseNum?"#F44541":"#333"}},[e.coursewareNum||0]),m("课件")]),c("div",{class:q},[c("i",{class:O},null),c("span",{class:E},[m("已结束")]),c("span",{class:R},[e.endCourseNum||0]),m("节课")])]),c(S,{color:e.coursewareNum<e.endCourseNum?"linear-gradient(90deg, #FFC3A1 0%, #FF9895 100%)":"linear-gradient(90deg, #CDF1FF 0%, #A0CBFF 100%)",trackColor:"#ECECEC",showPivot:!1,style:{borderRadius:"10px"},percentage:e.endCourseNum?e.coursewareNum/e.endCourseNum*100:0,strokeWidth:8},null)])))]):c(l,{btnStatus:!1,tips:"暂无班级"},null)])}});var U="_orchestraDetail_xtf76_1";e("default",a({name:"orchestra-detail",setup(){const e=r(),a=sessionStorage.getItem("orchestra-detail-tab"),t=x(a||e.query.tabs||"information");sessionStorage.removeItem("orchestra-detail-tab");const s=x("auto"),i=x({start:"09-01",end:"03-01"});return(async()=>{const{data:e}=await h.get("/api-school/sysParamConfig/queryByParamNameList",{params:{paramNames:"last_term_time,next_term_time"}});(e||[]).forEach((e=>{"last_term_time"===e.paramName?i.value.start=e.paramValue:"next_term_time"===e.paramName&&(i.value.end=e.paramValue)}))})(),()=>c("div",{class:U},[c(v,{position:"top",onGetHeight:e=>{s.value=e,document.documentElement.style.setProperty("--header-height",e+"px")}},{default:()=>[c(y,{border:!1},null)]}),c(M,{sticky:!0,lineWidth:20,lineHeight:4,active:t.value,"onUpdate:active":e=>t.value=e,animated:!0,offsetTop:s.value,swipeable:!0,onChange:e=>{sessionStorage.setItem("orchestra-detail-tab",e)}},{default:()=>[c(H,{title:"乐团信息",name:"information"},{default:()=>[c(j,{termTimes:i.value},null)]}),c(H,{title:"训练进度",name:"plan"},{default:()=>[c(G,{height:s.value,termTimes:i.value},null)]})]})])}}))}}}))}();
|