1 |
- !function(){function e(e,a,s,t,l,o,r){try{var n=e[o](r),c=n.value}catch(u){return void s(u)}n.done?a(c):Promise.resolve(c).then(t,l)}function a(a){return function(){var s=this,t=arguments;return new Promise((function(l,o){var r=a.apply(s,t);function n(a){e(r,l,o,n,c,"next",a)}function c(a){e(r,l,o,n,c,"throw",a)}n(void 0)}))}}System.register(["./index-legacy-e6be1dcb.js","./san-legacy-bae918e0.js","./index-legacy-3fae0ac6.js","./topDot-legacy-36b41329.js","./index-legacy-e21a74ca.js","./index-legacy-222349aa.js","./index-legacy-e290ba42.js","./index-legacy-e3757153.js","./index-legacy-ff570bc2.js","./index-legacy-cdd7affc.js","./index-legacy-92ba0770.js","./index-legacy-72ad1f03.js","./use-tab-status-legacy-5a183110.js"],(function(e,s){"use strict";var t,l,o,r,n,c,u,i,d,p,m,v,g,y,h,A,f,S,C,b,j,I,w,E;return{setters:[e=>{t=e.d,l=e.P,o=e.q,r=e.r,n=e.x,c=e.y,u=e.D,i=e.a,d=e.A,p=e.b$,m=e.a2,v=e.R,g=e.a3},e=>{y=e.s,h=e.p,A=e.a},e=>{f=e.M},e=>{S=e.t,C=e.m},e=>{b=e.M},e=>{j=e.M},e=>{I=e.D},e=>{w=e.L},e=>{E=e.P},null,null,null,null],execute:function(){e("default",t({name:"tenant-apply-data",setup(){const e=l();o(),r("all");const s=n({keyword:"",id:e.query.id,yearStatus:!1,schoolId:null,year:[(new Date).getFullYear()],yearName:(new Date).getFullYear(),classList:[],statObj:{registerNum:0,classNum:0,registerMemberShipNum:0},perponStatus:!1,sortKey:"CLASS",sortId:"desc",sortName:"报名人数降序",sortList:[{value:"desc",text:"报名人数降序"},{value:"asc",text:"报名人数升序"},{value:"mdesc",text:"会员人数降序"},{value:"masc",text:"会员人数升序"}],page:1,rows:20,isClick:!1}),t=r(!1),N=r(!0),x=r(!1),B=r(!1),M=r([]),k=function(){var e=a((function*(){if(!s.isClick){s.isClick=!0,t.value&&(M.value=[],s.page=1,t.value=!1);try{const e=yield u.post("/edu-app/open/school/schoolRegisterClassPage",{data:{schoolId:s.id,page:s.page,rows:s.rows,keyword:s.keyword,sort:s.sortId,sortKey:s.sortKey}});if(M.value.length>0&&1===e.data.current)return;M.value=M.value.concat(e.data.rows||[]),s.page=e.data.current+1,B.value=M.value.length>0,N.value=!1,x.value=e.data.current>=e.data.pages}catch(e){B.value=!1,x.value=!0}finally{N.value=!1}s.isClick=!1}}));return function(){return e.apply(this,arguments)}}(),D=()=>{x.value=!1,N.value=!0,k()};n({saveLoading:!1,image:null,shareLoading:!1}),c(a((function*(){e.query.name?document.title=e.query.name+"报名统计":document.title="学生报名统计",yield F(),yield k()})));const F=function(){var e=a((function*(){try{const{data:e}=yield u.post("/edu-app/open/school/schoolRegisterStat",{data:{schoolId:s.id}});s.statObj=e}catch(e){}}));return function(){return e.apply(this,arguments)}}();return()=>{let e;return i("div",{class:y.tenantAllData},[i(f,{position:"top"},{default:()=>[i("div",{class:y.top},[i("div",{class:y.topWrap},[i("div",{class:y.topHead},[i("img",{src:S,class:y.topDot,alt:""},null),d("汇总数据")])]),i("div",{class:y.cardWrap},[i("div",{class:[y.studentCard,y.cardItem]},[i("div",{class:y.cardNum},[p(s.statObj.registerNum).format("0,0")]),i("div",{class:y.cardInfo},[i("img",{src:h,class:y.cardInfoImg,alt:""},null),d("报名人数")]),i("div",{class:y.cardLine},null)]),i("div",{class:[y.memberCard,y.cardItem]},[i("div",{class:y.cardNum},[p(s.statObj.registerMemberShipNum).format("0,0")]),i("div",{class:y.cardInfo},[i("img",{src:C,class:y.cardInfoImg,alt:""},null),d("会员人数")]),i("div",{class:y.cardLine},null)]),i("div",{class:[y.classCard,y.cardItem]},[i("div",{class:y.cardNum},[p(s.statObj.classNum).format("0,0")]),i("div",{class:y.cardInfo},[i("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjxJREFUWEftVzuIE1EUPXem0EzAxh9arGAKG0FBcBdEERt7G223sdFokc+bZ/Uq5718Co02FtpqY28jrmuxKwgKNhYRtFD8NUImWsxceUsCbkwmM7hOCjPNFO/ee879vTlDmPFDM8bHnMCmCiilnDAMl4loEYCb0J4eEa12u92H1qZUKp1j5pMAigk+ETOve553TykVD+02EfB9XzLz9Qxz8YyIiJlPpPUhomta62AsgXq9/pSIbCbPAbxOCLoPwFkAzsDGZvQIwMcEn8MAjjPzaqPRODWpAmvMvEhEVa11OykrKeWVOI5vWBvHca4GQXAzyd73/Qozt4hoXWu99NcEfN8/yMxdG4iISlrrt7kSEEIsAHg3AD1gjHn/fxGQUu6M4/jzYAb2BEHwLdcKWDAhhN0EGGPsBiQ+Wz6E0wBHz/8JgUqlsssCtdvtr9MIbTmBarVadF13Y/KjKFpotVq9XGdgvoYzr4CUcncURZ9s313X3RsEwZdcZ8CC1Wq18/bdbDYf5L4F0wBzuQeykEh1DwghVgBYsfCSiN4kAHzo9Xqy0+n8tDblcnlbsVi0Kmf/JB9mPgTgKBGtaK1PT9IDG6IhZWaXjTG3B9+ESwBupfEbFTt/yHIhxAUAS0Q0SZQeGQjQH0R0l5ltjGUA261QBfBqHBFmjgCsGWPu/36e+b9AKbWj3+8/BnBsBOhFoVA4o5T6nqYSY1uQ1tH23PO8iwCGvXwShuGd4UykjWPtMlcgS/A0tnMCM6/AL5lcwTDiXX8OAAAAAElFTkSuQmCC",class:y.cardInfoImg,alt:""},null),d("班级数量")]),i("div",{class:y.cardLine},null)])]),i("div",{class:y.searchWrap},[i("div",{class:y.searechInfo},[i(j,{class:y.allDataWrap,shape:"round",background:"#F6F8F9",inputBackground:"white",placeholder:"请输入班级名称",onSearch:e=>{s.keyword=e,s.page=1,t.value=!0,k()}},null)]),i("div",{class:y.timerWrap,onClick:()=>s.perponStatus=!0},[s.sortName," ",i("img",{src:A,class:[y.sanIcon,s.perponStatus?y.routeSan:""],alt:""},null)])])])]}),i("div",{class:y.schoolList},[B.value?i(b,{modelValue:t.value,"onUpdate:modelValue":e=>t.value=e,onRefresh:D,class:y.refreshC},{default:()=>{return[i(w,{"loading-text":" ",finished:x.value,"finished-text":" ",onLoad:k},(a=e=M.value.map((e=>i("div",{class:y.schoolItem},[i("div",{class:y.schoolNameWrap},[i("p",{class:y.schoolName},[e.classGroupName])]),i("div",{class:y.schoolCountWrap},[i("div",null,[i("p",{class:y.personNum},[e.registerNum||0]),i("p",{class:y.title},[d("报名人数")])]),i("div",null,[i("p",{class:y.personNum},[e.registerMemberShipNum||0]),i("p",{class:y.title},[d("会员人数")])])])]))),"function"==typeof a||"[object Object]"===Object.prototype.toString.call(a)&&!g(a)?e:{default:()=>[e]}))];var a}}):null,!B.value&&!N.value&&i(m,{description:"暂无学校信息",class:y.emptyC},null)]),i(v,{show:s.yearStatus,"onUpdate:show":e=>s.yearStatus=e,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[i(I,{showToolbar:!0,modelValue:s.year,"onUpdate:modelValue":e=>s.year=e,"columns-type":["year"],onCancel:()=>s.yearStatus=!1,onConfirm:e=>{console.log(e),s.year=[e.selectedValues[0]],s.yearName=e.selectedValues[0],s.page=1,t.value=!0,F(),k(),s.yearStatus=!1}},null)]}),i(v,{show:s.perponStatus,"onUpdate:show":e=>s.perponStatus=e,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[i(E,{showToolbar:!0,columns:s.sortList,onCancel:()=>s.perponStatus=!1,onConfirm:e=>{const a=e.selectedOptions[0];"desc"!==a.value&&"asc"!==a.value||(s.sortId=a.value,s.sortKey="CLASS"),"mdesc"===a.value&&(s.sortId="desc",s.sortKey="MEMBER"),"masc"===a.value&&(s.sortId="asc",s.sortKey="MEMBER"),s.sortName=a.text,t.value=!0,k(),s.perponStatus=!1}},null)]})])}}}))}}}))}();
|