!function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function t(t){for(var o=1;o0&&1===n.data.pages)){e.next=8;break}return e.abrupt("return");case 8:i.page=n.data.current+1,L.value=L.value.concat(n.data.rows||[]),F.value=L.value.length>0,console.log(F.value," showContact.value "),D.value=!1,O.value=n.data.current>=n.data.pages,e.next=22;break;case 16:e.prev=16,e.t0=e.catch(1),o=e.t0.message,f(o),F.value=!1,O.value=!0;case 22:case"end":return e.stop()}}),e,null,[[1,16]])})));return function(){return e.apply(this,arguments)}}();v((function(){I(),E(),z()}));var N=function(){console.log("返回")},Y=function(e){i.sortType=e.value,i.sortTypeName=e.text,k.value=!0,I()},U=function(t){i.practiceMonth=t.selectedValues[0]+t.selectedValues[1],i.practiceMonthName=t.selectedValues[0]+"年"+t.selectedValues[1]+"月",e.showPopoverTime=!1,I()},V=function(t){i.orchestraId=t.value,i.orchestraName=t.name,e.showPopoverOrchestra=!1,k.value=!0,I()},A=function(e){i.subjectId=e.value,i.subjectName=e.name,console.log(e,i),k.value=!0,I()},E=function(){var t=r(regeneratorRuntime.mark((function t(){var n,o,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=j.user.data.schoolInfos.map((function(e){return e.id})).join(","),t.prev=1,t.next=4,b.post("/api-school/orchestra/page",{data:{page:1,rows:9999,schoolId:n}});case 4:o=t.sent,e.actions=o.data.rows.map((function(e){return{name:e.name,value:e.id}})),e.actions.unshift({name:"全部乐团",value:""}),t.next=13;break;case 9:t.prev=9,t.t0=t.catch(1),r=t.t0.message,f(r);case 13:case"end":return t.stop()}}),t,null,[[1,9]])})));return function(){return t.apply(this,arguments)}}(),z=function(){var t=r(regeneratorRuntime.mark((function t(){var n,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,b.post("/api-school/subject/page",{data:{page:1,rows:9999}});case 3:n=t.sent,e.subjects=n.data.rows.map((function(e){return{name:e.name,value:e.id}})),e.subjects.unshift({name:"全部声部",value:""}),t.next=12;break;case 8:t.prev=8,t.t0=t.catch(0),o=t.t0.message,f(o);case 12:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(){return t.apply(this,arguments)}}(),H=function(){O.value=!1,D.value=!0,I()};return function(){var t;return u(p,null,[u(a,{position:"top",background:"#F8F8F8"},{default:function(){return[u(n,{isBack:!0,onHeaderBack:N},null),u(o,{placeholder:"学生编号",onSearch:function(){k.value=!0,I()}},null),u("div",{class:M.chioseWrap},[u("div",{style:{padding:"12px 13px",background:"#F8F8F8"}},[u("div",{class:M.searchBand,onClick:function(){e.showPopoverTime=!0}},[i.practiceMonthName,u(g,{name:e.showPopoverTime?"arrow-up":"arrow-down"},null)])]),u("div",{style:{padding:"12px 13px",background:"#F8F8F8"}},[u("div",{class:M.searchBand,onClick:function(){e.showPopoverOrchestra=!0}},[i.orchestraName,u(g,{name:e.showPopoverOrchestra?"arrow-up":"arrow-down"},null)])]),u("div",{style:{padding:"12px 13px",background:"#F8F8F8"}},[u("div",{class:M.searchBand,onClick:function(){e.showPopoverSubject=!0}},[i.subjectName,u(g,{name:e.showPopoverSubject?"arrow-up":"arrow-down"},null)])]),u("div",{style:{padding:"12px 13px",background:"#F8F8F8"}},[u(R,{show:e.showPopoverSort,"onUpdate:show":function(t){return e.showPopoverSort=t},actions:e.actionSorts,showArrow:!1,placement:"bottom-end",offset:[0,12],onSelect:Y},{reference:function(){return u("div",{class:M.searchBand},[l("按天数"),u(g,{name:e.showPopoverSort?"arrow-up":"arrow-down"},null)])}})])])]}}),F.value?u(P,{modelValue:k.value,"onUpdate:modelValue":function(e){return k.value=e},onRefresh:H},{default:function(){return[u(W,{loading:D.value,"onUpdate:loading":function(e){return D.value=e},finished:O.value,"finished-text":"没有更多了",onLoad:I},(e=t=L.value.map((function(e){return u(B,{item:e,forms:i},null)})),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!x(e)?t:{default:function(){return[t]}}))];var e}}):u(w,null,null),u(y,{show:e.showPopoverTime,"onUpdate:show":function(t){return e.showPopoverTime=t},position:"bottom",style:"{ height: '30%' }"},{default:function(){return[u(C,{onCancel:function(){e.showPopoverTime=!1},onConfirm:U,modelValue:e.currentDate,"onUpdate:modelValue":function(t){return e.currentDate=t},title:"选择年月",minDate:m.value,maxDate:_.value,columnsType:T.value},null)]}}),u(S,{show:e.showPopoverOrchestra,"onUpdate:show":function(t){return e.showPopoverOrchestra=t},title:"选择乐团",actions:e.actions,onSelect:V},null),u(S,{style:{height:"40%"},"close-on-click-action":!0,show:e.showPopoverSubject,"onUpdate:show":function(t){return e.showPopoverSubject=t},title:"选择声部",actions:e.subjects,onSelect:A},null)])}}}))}}}))}();