1 |
- !function(){var e=["endTime","startTime"];function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function r(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?t(Object(a),!0).forEach((function(t){n(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):t(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function i(e,t,r,n,a,i,o){try{var s=e[i](o),c=s.value}catch(_){return void r(_)}s.done?t(c):Promise.resolve(c).then(n,a)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function s(e){i(o,n,a,s,c,"next",e)}function c(e){i(o,n,a,s,c,"throw",e)}s(void 0)}))}}var s=document.createElement("style");s.innerHTML='._itemWrap_15s53_1{width:calc(100% - .8rem);height:3.22667rem;background:#ffffff;border-radius:.26667rem;margin:0 .4rem .32rem}._itemWrap_15s53_1 ._itemTop_15s53_8{padding:.21333rem .4rem;display:flex;flex-direction:row;align-items:center;justify-content:space-between;border-bottom:.02667rem solid #f2f2f2}._itemWrap_15s53_1 ._itemTop_15s53_8 ._itemTopLeft_15s53_16{display:flex;flex-direction:row;align-items:center}._itemWrap_15s53_1 ._itemTop_15s53_8 ._itemTopLeft_15s53_16 ._headIcon_15s53_21{width:.8rem;height:.8rem;border-radius:50%;overflow:hidden;margin-right:.32rem}._itemWrap_15s53_1 ._itemTop_15s53_8 ._itemTopLeft_15s53_16 ._headIcon_15s53_21 img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}._itemWrap_15s53_1 ._itemTop_15s53_8 ._itemTopLeft_15s53_16 ._name_15s53_33{font-size:.42667rem;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#333;line-height:.8rem;margin-right:.26667rem}._itemWrap_15s53_1 ._itemTop_15s53_8 ._itemTopLeft_15s53_16 ._tag_15s53_41{padding:0;min-width:1.06667rem;background:#ffe7da;display:inline-block;border-radius:.10667rem;font-size:.32rem;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#f67146;text-align:center;line-height:.50667rem}._itemWrap_15s53_1 ._itemTop_15s53_8 ._itemTopRight_15s53_54{width:.64rem;height:.64rem;padding:.05333rem}._itemWrap_15s53_1 ._itemTop_15s53_8 ._itemTopRight_15s53_54 img{width:100%;height:100%}._itemWrap_15s53_1 ._itemBottom_15s53_63{padding:.26667rem;display:flex;flex-direction:row;align-items:center;text-align:center}._itemWrap_15s53_1 ._itemBottom_15s53_63 ._msgMain_15s53_70{font-size:.69333rem;font-family:DINAlternate-Bold,DINAlternate;font-weight:700;color:#f67146;line-height:.8rem}._itemWrap_15s53_1 ._itemBottom_15s53_63 ._msgMain_15s53_70 span{height:.45333rem;font-size:.32rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#777;line-height:.45333rem}._itemWrap_15s53_1 ._itemBottom_15s53_63 ._msgsub_15s53_85{margin-top:.10667rem;height:.53333rem;font-size:.37333rem;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#333;line-height:.53333rem}._itemWrap_15s53_1 ._itemBottom_15s53_63 ._itemBottomLeft_15s53_94{width:50%;position:relative}._itemWrap_15s53_1 ._itemBottom_15s53_63 ._itemBottomLeft_15s53_94:after{content:"";width:.02667rem;height:.53333rem;background:#f2f2f2;border-radius:.02667rem;right:0;top:50%;margin-top:-.26667rem;position:absolute}._itemWrap_15s53_1 ._itemBottom_15s53_63 ._itemBottomRight_15s53_109{width:50%;position:relative}._itemWrap_15s53_1 ._itemBottom_15s53_63 ._itemBottomRight_15s53_109 ._arrow_15s53_113{position:absolute;bottom:.37333rem;right:.4rem;font-size:.42667rem;color:#d8d8d8}.bottomSheet .van-action-sheet__description{padding:0!important}.bottomSheet .van-action-sheet__description:after{border:none!important}._bottomTitle_15s53_126{padding:.4rem .4rem .53333rem;text-align:left;display:flex;flex-direction:row;align-items:center;justify-content:space-between;height:.58667rem;font-size:.42667rem;font-family:PingFangSC-Medium,PingFang SC;font-weight:500;color:#333;line-height:.58667rem}._bottomTitle_15s53_126 ._bottomTitleLeft_15s53_140{display:flex;flex-direction:row;align-items:center}._bottomTitle_15s53_126 ._bottomTitleLeft_15s53_140 span{width:.10667rem;height:.32rem;background:#ff8057;border-radius:.05333rem;display:inline-block;margin-right:.16rem}._bottomConent_15s53_153{padding:.53333rem .4rem 1.52rem;display:flex;flex-direction:row;align-items:center}._bottomConent_15s53_153 ._bottomImgWrap_15s53_159{width:1.25333rem;height:1.25333rem;margin-bottom:.16rem}._bottomConent_15s53_153 ._bottomImgWrap_15s53_159 img{width:100%;height:100%}._bottomConent_15s53_153 ._bottomConentLeft_15s53_168,._bottomConent_15s53_153 ._bottomConentRight_15s53_169{width:50%;display:flex;flex-direction:column;align-items:center}._recordItem_15s53_175{width:auto;margin:0 .34667rem .32rem;padding:.53333rem .32rem;border-radius:.26667rem}._recordItem_15s53_175 ._imgContainer_15s53_181{position:relative;margin-right:.4rem;box-sizing:border-box}._recordItem_15s53_175 ._imgContainer_15s53_181 i{width:.48rem;height:.4rem;position:absolute;right:-.10667rem;top:.93333rem;background:url(data:image/png;base64,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) no-repeat center center;background-size:contain}._recordItem_15s53_175 ._img_15s53_181{width:1.33333rem;height:1.33333rem;border-radius:50%;overflow:hidden}._recordItem_15s53_175 ._userInfo_15s53_201{display:flex;align-items:center}._recordItem_15s53_175 ._userInfo_15s53_201 ._userItem_15s53_205{flex:1;font-size:.32rem;color:#777}._recordItem_15s53_175 ._userInfo_15s53_201 ._topText_15s53_210{font-size:.42667rem;color:#333;line-height:.58667rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:1.86667rem}._recordItem_15s53_175 ._userInfo_15s53_201 ._topText_15s53_210 span{font-weight:700;font-family:DINA}._chioseWrap_1uj41_1{display:flex;flex-direction:row;align-items:center;justify-content:space-around;background-color:#f8f8f8;font-size:.37333rem}._chioseWrap_1uj41_1 ._searchBandWrap_1uj41_9{max-width:25%}._chioseWrap_1uj41_1 ._searchBand_1uj41_9{display:flex;flex-direction:row;align-items:center}._chioseWrap_1uj41_1 ._searchBand_1uj41_9 p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._exerciseRecord_1uj41_22 .van-haptics-feedback:active{opacity:1}._searchMore_1uj41_25{line-height:1.2!important}._searchMore_1uj41_25 .van-dropdown-item{z-index:99}._searchMore_1uj41_25 .van-dropdown-menu__bar{box-shadow:none;height:var(--van-nav-bar-height)}._searchMore_1uj41_25 .van-dropdown-item__content{border-radius:0 0 .32rem .32rem;max-height:100%}._searchMore_1uj41_25 .van-button+.van-button{margin-left:.4rem}._searchMore_1uj41_25 .van-dropdown-menu__title:after{border-color:transparent transparent #aaaaaa #aaaaaa}._searchMore_1uj41_25 .van-dropdown-menu__title--active{color:#f67146}._searchMore_1uj41_25 .van-dropdown-menu__title--active:after{border-color:transparent transparent currentColor currentColor}._searchMore_1uj41_25 ._searchContainer_1uj41_51{max-height:10.66667rem;overflow-y:auto;box-sizing:border-box;padding-bottom:.42667rem;background:var(--van-popup-background);transition:var(--van-popup-transition)}._searchMore_1uj41_25 ._searchMoreGroup_1uj41_59{display:flex;align-items:center;padding:.48rem .34667rem;background-color:#fff}._searchMore_1uj41_25 ._searchTitle_1uj41_65{padding:.4rem .34667rem .05333rem;font-size:.4rem;font-weight:600;color:#333;line-height:.56rem;text-align:left}._searchMore_1uj41_25 ._searchTypeGroup_1uj41_73{display:flex;align-items:center;padding:0 .34667rem;flex-wrap:wrap;justify-content:space-between}._searchMore_1uj41_25 ._searchTypeFlex_1uj41_80 ._searchTypeItem_1uj41_80{width:49%}._searchMore_1uj41_25 ._searchTypeFlex1_1uj41_83{justify-content:flex-start}._searchMore_1uj41_25 ._searchTypeFlex1_1uj41_83 ._searchTypeItem_1uj41_80{width:31%}._searchMore_1uj41_25 ._searchTypeFlex1_1uj41_83 ._searchTypeItem_1uj41_80:nth-child(3n + 1){margin-right:2.333%}._searchMore_1uj41_25 ._searchTypeFlex1_1uj41_83 ._searchTypeItem_1uj41_80:nth-child(3n + 3){margin-left:2.333%}._searchMore_1uj41_25 ._searchTypeFlex2_1uj41_95 ._searchTypeItem_1uj41_80{width:45%}._searchMore_1uj41_25 ._searchTypeItemLine_1uj41_98{margin-top:.26667rem;width:.42667rem;height:.02667rem;background:#d8d8d8}._searchMore_1uj41_25 ._searchTypeItem_1uj41_80{box-sizing:border-box;margin-top:.26667rem;height:.85333rem;line-height:.85333rem;background:#f6f6f6;border:.02667rem solid #f6f6f6;border-radius:.42667rem;font-size:.34667rem;color:#333;padding:0 .18667rem;text-align:center}._searchMore_1uj41_25 ._searchTypeItem_1uj41_80._is-active_1uj41_117{background:#fff5f2;border:.02667rem solid #ffb097;color:#f67146}._searchPreview_1uj41_122{margin:0 .34667rem;padding-bottom:.32rem;white-space:nowrap;overflow-y:auto}._searchPreview_1uj41_122 ._searchPreviewItem_1uj41_128{display:inline-flex;align-items:center;line-height:.74667rem;background:#f6f6f6;border-radius:.42667rem;margin-right:.21333rem;padding:.02667rem .26667rem 0;font-size:.34667rem;color:#333}._searchPreview_1uj41_122 ._searchPreviewItem_1uj41_128:last-child{margin-right:0}._searchPreview_1uj41_122 ._searchPreviewItem_1uj41_128 ._cross_1uj41_142{font-size:.21333rem;margin-left:.16rem;color:#aaa}\n',document.head.appendChild(s),System.register(["./index-legacy.90c82f08.js","./index-legacy.e11fad33.js","./index-legacy.84457c4c.js","./isBetween-legacy.d50f1200.js","./index-legacy.02f13b7a.js","./student-icon-legacy.91b6689d.js","./index-legacy.f3e5e283.js","./index-legacy.eb4bc59e.js","./index-legacy.6c608356.js","./index-legacy.789a0824.js","./index-legacy.4a08192a.js","./index-legacy.3c5580aa.js","./use-tab-status-legacy.bafe466c.js","./index-legacy.fe10c814.js","./index-legacy.64e3b474.js","./index-legacy.f9492e3a.js","./utils-legacy.8e06f916.js","./Picker-legacy.aeff9f1a.js"],(function(t){"use strict";var n,i,s,c,_,m,l,u,d,h,p,f,g,v,b,y,T,w,j,x,I,C,k,A,M,S,B,P,D,N,R;return{setters:[function(e){n=e.d,i=e.ag,s=e.R,c=e.Z,_=e.c,m=e.q,l=e.F,u=e.g,d=e.ah,h=e.r,p=e.ai,f=e.$,g=e.m,v=e.o,b=e.aj,y=e.B,T=e._,w=e.a5,j=e.ak,x=e.al},function(e){I=e.O},function(e){C=e.O},function(e){k=e.i},function(e){A=e.O},function(e){M=e.s},function(e){S=e.C},function(e){B=e.I},function(e){P=e.D,D=e.a},function(e){N=e.L},function(e){R=e.C},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var Y={itemWrap:"_itemWrap_15s53_1",itemTop:"_itemTop_15s53_8",itemTopLeft:"_itemTopLeft_15s53_16",headIcon:"_headIcon_15s53_21",name:"_name_15s53_33",tag:"_tag_15s53_41",itemTopRight:"_itemTopRight_15s53_54",itemBottom:"_itemBottom_15s53_63",msgMain:"_msgMain_15s53_70",msgsub:"_msgsub_15s53_85",itemBottomLeft:"_itemBottomLeft_15s53_94",itemBottomRight:"_itemBottomRight_15s53_109",arrow:"_arrow_15s53_113",bottomTitle:"_bottomTitle_15s53_126",bottomTitleLeft:"_bottomTitleLeft_15s53_140",bottomConent:"_bottomConent_15s53_153",bottomImgWrap:"_bottomImgWrap_15s53_159",bottomConentLeft:"_bottomConentLeft_15s53_168",bottomConentRight:"_bottomConentRight_15s53_169",recordItem:"_recordItem_15s53_175",imgContainer:"_imgContainer_15s53_181",img:"_img_15s53_181",userInfo:"_userInfo_15s53_201",userItem:"_userItem_15s53_205",topText:"_topText_15s53_210"},O=s({}),W=n({props:["item","forms"],name:"student-item",setup:function(e){var t=i();s(!1),c((function(){return e.forms}),(function(e){O.value=e}),{deep:!0});var r=function(){console.log(O.value.practiceMonth,O.value.practiceMonthName),console.log(e.item),t.push({path:"/exercis-detail",query:{id:e.item.userId,practiceMonth:O.value.practiceMonth,practiceMonthName:O.value.practiceMonthName,clientType:"STUDENT"}})};return function(){return _(l,null,[_(S,{isLink:!0,class:Y.recordItem,center:!0,onClick:r},{icon:function(){return _("div",{class:Y.imgContainer},[_(B,{class:Y.img,src:e.item.avatar?e.item.avatar:M,alt:""},null),e.item.memberFlag?_("i",{class:Y.iconMember},null):""])},title:function(){return _("div",{class:Y.userInfo},[_("div",{class:Y.userItem},[_("p",{class:Y.topText,style:"font-weight: bold;"},[e.item.nickname]),_("p",{class:Y.bottomText},[e.item.subjectName?e.item.subjectName:"暂无声部"])]),_("div",{class:Y.userItem},[_("p",{class:Y.topText},[_("span",{style:{color:e.item.standardFlag?"#333":"#F44541"}},[e.item.trainingTime?e.item.trainingTime:0]),m("分钟")]),_("p",{class:Y.bottomText},[m("练习时长")])]),_("div",{class:Y.userItem,style:{paddingLeft:"10px"}},[_("p",{class:Y.topText},[_("span",null,[e.item.trainingDays?e.item.trainingDays:0]),m("天")]),_("p",{class:Y.bottomText},[m("练习天数")])])])}})])}}}),F={chioseWrap:"_chioseWrap_1uj41_1",searchBandWrap:"_searchBandWrap_1uj41_9",searchBand:"_searchBand_1uj41_9",exerciseRecord:"_exerciseRecord_1uj41_22",searchMore:"_searchMore_1uj41_25",searchContainer:"_searchContainer_1uj41_51",searchMoreGroup:"_searchMoreGroup_1uj41_59",searchTitle:"_searchTitle_1uj41_65",searchTypeGroup:"_searchTypeGroup_1uj41_73",searchTypeFlex:"_searchTypeFlex_1uj41_80",searchTypeItem:"_searchTypeItem_1uj41_80",searchTypeFlex1:"_searchTypeFlex1_1uj41_83",searchTypeFlex2:"_searchTypeFlex2_1uj41_95",searchTypeItemLine:"_searchTypeItemLine_1uj41_98","is-active":"_is-active_1uj41_117",searchPreview:"_searchPreview_1uj41_122",searchPreviewItem:"_searchPreviewItem_1uj41_128",cross:"_cross_1uj41_142"};p.extend(k);t("default",n({name:"exercise-record",setup:function(){var t=s(u.platformApi);i();var n=d(),c=h({showSearchStatus:!0,showPopoverTime:!1,actions:[],subjects:[],listState:{dataShow:!0,loading:!1,finished:!1,refreshing:!1,height:0},isClick:!1}),k=h({startTime:p().day(1).format("YYYY-MM-DD"),endTime:p().day(7).format("YYYY-MM-DD"),orchestraId:"",orchestraName:"",subjectId:"",subjectName:"",sortType:"",sortTypeName:"",keyword:"",page:1,rows:20}),M=s([]),S=function(){var n=o(regeneratorRuntime.mark((function n(){var i,o,s,_,m;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,!c.isClick){n.next=3;break}return n.abrupt("return");case 3:return c.isClick=!0,c.listState.refreshing&&(k.page=1,M.value=[],c.listState.refreshing=!1),i=k.endTime,o=k.startTime,s=a(k,e),n.next=8,g.post("".concat(t.value,"/musicPracticeRecord/").concat("TEACHER"===u.platformType?"teacher":"school","/studentPracticeThisWeek"),{data:r(r({},s),{},{endTime:i+" 23:59:59",startTime:o+" 00:00:00"})});case 8:if(_=n.sent,c.listState.loading=!1,c.listState.refreshing=!1,m=_.data||{},!(M.value.length>0&&1===m.current)){n.next=14;break}return n.abrupt("return");case 14:M.value=M.value.concat(m.rows||[]),c.listState.finished=m.current>=m.pages,k.page=m.current+1,c.listState.dataShow=M.value.length>0,c.isClick=!1,n.next=27;break;case 21:n.prev=21,n.t0=n.catch(0),c.listState.dataShow=!1,c.listState.finished=!0,c.listState.refreshing=!1,c.isClick=!1;case 27:case"end":return n.stop()}}),n,null,[[0,21]])})));return function(){return n.apply(this,arguments)}}();f(o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Y();case 2:return e.next=4,B();case 4:return e.next=6,S();case 6:case"end":return e.stop()}}),e)}))));var B=function(){var e=o(regeneratorRuntime.mark((function e(){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,g.post("".concat(t.value,"/orchestra/page"),{data:{page:1,rows:9999,status:"DONE"}});case 3:r=e.sent,c.actions=r.data.rows.map((function(e){return{name:e.name,value:e.id}})),e.next=11;break;case 7:e.prev=7,e.t0=e.catch(0),n=e.t0.message,v(n);case 11:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}(),Y=function(){var e=o(regeneratorRuntime.mark((function e(){var r,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,g.post("".concat(t.value,"/subjectBasicConfig/page"),{data:{page:1,rows:9999,enableFlag:!0}});case 3:r=e.sent,c.subjects=r.data.rows.map((function(e){return n.query.subjectId==e.subjectId&&(k.subjectId=e.subjectId,k.subjectName=e.subjectName),{name:e.subjectName,value:e.subjectId}})),e.next=11;break;case 7:e.prev=7,e.t0=e.catch(0),a=e.t0.message,v(a);case 11:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}(),O=function(){c.listState.finished=!1,c.listState.loading=!0,console.log(3),S()},L=function(e){return e.length>11?e.substring(0,6)+"..."+e.substring(e.length-5,e.length):e},U=s(),K=s(),Q=function(){var e;k.startTime=p().day(1).format("YYYY-MM-DD"),k.endTime=p().day(7).format("YYYY-MM-DD"),k.orchestraId="",k.orchestraName="",k.subjectId="",k.subjectName="",k.sortType="",k.sortTypeName="",null===(e=K.value)||void 0===e||e.toggle(),c.listState.refreshing=!0,console.log(4),S()},z=function(){var e;null===(e=K.value)||void 0===e||e.toggle(),c.listState.refreshing=!0,console.log(5),S()};return function(){var e;return _("div",{class:[c.listState.dataShow?"":"emptyRootContainer",F.exerciseRecord]},[_(C,{position:"top",background:"#F8F8F8",onGetHeight:function(e){document.documentElement.style.setProperty("--header-height",e+"px")}},{default:function(){return[_(b,{border:!1},{right:function(){return _(P,{class:F.searchMore,closeOnClickOverlay:!1,closeOnClickOutside:!1,ref:U},{default:function(){return[_(D,{title:"筛选",modelValue:c.showSearchStatus,"onUpdate:modelValue":function(e){return c.showSearchStatus=e},ref:K},{default:function(){return[_("div",{class:F.searchContainer},[c.actions.length>0&&_(l,null,[_("div",{class:F.searchTitle},[m("乐团")]),_("div",{class:[F.searchTypeGroup,F.searchTypeFlex]},[c.actions.map((function(e){return _("div",{class:[F.searchTypeItem,e.value===k.orchestraId&&F["is-active"]],onClick:function(){return t=e,k.orchestraId=t.value,void(k.orchestraName=t.name);var t}},[L(e.name)])}))])]),_("div",{class:F.searchTitle},[m("时间段")]),_("div",{class:[F.searchTypeGroup,F.searchTypeFlex2]},[_("div",{class:F.searchTypeItem,onClick:function(){return c.showPopoverTime=!0}},[k.startTime]),_("div",{class:F.searchTypeItemLine,onClick:function(){return c.showPopoverTime=!0}},null),_("div",{class:F.searchTypeItem,onClick:function(){return c.showPopoverTime=!0}},[k.endTime])]),_("div",{class:F.searchTitle},[m("声部")]),_("div",{class:[F.searchTypeGroup,F.searchTypeFlex1]},[c.subjects.map((function(e){return _("div",{class:[F.searchTypeItem,e.value===k.subjectId&&F["is-active"]],onClick:function(){return t=e,k.subjectId=t.value,void(k.subjectName=t.name);var t}},[e.name])}))]),_("div",{class:F.searchTitle},[m("排序方式")]),_("div",{class:[F.searchTypeGroup,F.searchTypeFlex]},[[{name:"按时长",value:"PRACTICE_TIMES"},{name:"按天数",value:"PRACTICE_DAY"}].map((function(e){return _("div",{class:[F.searchTypeItem,k.sortType===e.value&&F["is-active"]],onClick:function(){return t=e,k.sortType=t.value,void(k.sortTypeName=t.name);var t}},[e.name])}))])]),_("div",{class:[F.searchMoreGroup,"van-hairline--top"]},[_(y,{type:"default",block:!0,round:!0,onClick:Q},{default:function(){return[m("重置")]}}),_(y,{type:"primary",block:!0,round:!0,onClick:z},{default:function(){return[m("查询")]}})])]}})]}})}}),_("div",{style:{backgroundColor:"#fff"}},[_(I,{placeholder:"请输入学员姓名",class:F.recordSearch,onSearch:function(e){k.keyword=e,c.listState.refreshing=!0,console.log(6),S()}},null),_("div",{class:F.searchPreview},[_("div",{class:F.searchPreviewItem,onClick:function(){var e;null===(e=K.value)||void 0===e||e.toggle(),T((function(){document.querySelectorAll(".van-dropdown-item--down")[0].style.top="calc(var(--van-nav-bar-height) + ".concat(u.navBarHeight,"px")}))}},[k.startTime,m("~"),k.endTime]),k.orchestraId&&_("div",{class:F.searchPreviewItem},[L(k.orchestraName),_(w,{name:"cross",class:F.cross,onClick:function(e){k.orchestraId="",k.orchestraName="",e.stopPropagation(),c.listState.refreshing=!0,console.log(8),S()}},null)]),k.subjectId&&_("div",{class:F.searchPreviewItem},[k.subjectName,_(w,{name:"cross",class:F.cross,onClick:function(e){k.subjectId="",k.subjectName="",e.stopPropagation(),c.listState.refreshing=!0,console.log(2),S()}},null)]),k.sortType&&_("div",{class:F.searchPreviewItem},[k.sortTypeName,_(w,{name:"cross",class:F.cross,onClick:function(e){k.sortType="",k.sortTypeName="",e.stopPropagation(),c.listState.refreshing=!0,console.log(1),S()}},null)])])])]}}),c.listState.dataShow?_(A,{modelValue:c.listState.refreshing,"onUpdate:modelValue":function(e){return c.listState.refreshing=e},onRefresh:O,style:"min-height: calc(100vh - var(--header-height))"},{default:function(){return[_(N,{finished:c.listState.finished,style:{paddingTop:"12px"},finishedText:" ",onLoad:S,immediateCheck:!1},(t=e=M.value.map((function(e){return _(W,{item:e,forms:k},null)})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!x(t)?e:{default:function(){return[e]}}))];var t}}):_(j,{tips:"暂无练习记录"},null),_(R,{show:c.showPopoverTime,"onUpdate:show":function(e){return c.showPopoverTime=e},firstDayOfWeek:1,showConfirm:!1,type:"range",maxRange:7,minDate:new Date("2023-02-27"),defaultDate:[p(k.startTime).toDate(),p(k.endTime).toDate()],style:{height:"70%"},onSelect:function(e){if(k.startTime="",k.endTime="",!p(e[0]).isBetween(p(k.startTime),p(k.endTime))){var t=p(e[0]).day();0===t?(k.startTime=p(e[0]).subtract(6,"day").format("YYYY-MM-DD"),k.endTime=p(e[0]).format("YYYY-MM-DD")):1===t?(k.startTime=p(e[0]).format("YYYY-MM-DD"),k.endTime=p(e[0]).add(6,"day").format("YYYY-MM-DD")):(k.startTime=p(e[0]).subtract(t-1,"day").format("YYYY-MM-DD"),k.endTime=p(e[0]).add(7-t,"day").format("YYYY-MM-DD"))}c.showPopoverTime=!1}},null)])}}}))}}}))}();
|