index-legacy-f0acb039.js 10 KB

1
  1. !function(){function e(e,a,s,t,l,r,o){try{var n=e[r](o),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,r){var o=a.apply(s,t);function n(a){e(o,l,r,n,c,"next",a)}function c(a){e(o,l,r,n,c,"throw",a)}n(void 0)}))}}System.register(["./index-legacy-7aaf3ce7.js","./san-legacy-d0eed1ea.js","./index-legacy-90c7e011.js","./topDot-legacy-36b41329.js","./index-legacy-f2ff6f11.js","./index-legacy-d070deda.js","./index-legacy-31660d90.js","./html2canvas.esm-legacy-b2f51228.js","./index-legacy-df523312.js","./index-legacy-b30d48ed.js","./index-legacy-491cf438.js","./index-legacy-3cbcf632.js","./index-legacy-3df53755.js","./index-legacy-665a9989.js","./browser-legacy-cef1ca35.js","./use-tab-status-legacy-cf3e657c.js"],(function(e,s){"use strict";var t,l,r,o,n,c,u,i,d,g,m,p,A,v,y,f,h,S,I,w,C,L,b,B,E,N;return{setters:[e=>{t=e.d,l=e.P,r=e.x,o=e.r,n=e.y,c=e.D,u=e.a,i=e.A,d=e.b$,g=e.z,m=e.a2,p=e.R,A=e.a3},e=>{v=e.s,y=e.p,f=e.a},e=>{h=e.M},e=>{S=e.t,I=e.m},e=>{w=e.M},e=>{C=e.M},e=>{L=e.M},e=>{b=e.h},e=>{B=e.L},e=>{E=e.D},e=>{N=e.P},null,null,null,null,null],execute:function(){const R=""+new URL("qrcode-bg-dcb7f2c0.png",s.meta.url).href,U=""+new URL("qr-bg-95b78c36.png",s.meta.url).href;e("default",t({name:"tenant-apply-data",setup(){const e=l(),s=r({keyword:"",id:e.query.id,yearStatus:!1,schoolId:null,year:[(new Date).getFullYear()],yearName:(new Date).getFullYear(),classList:[],statObj:{registerNum:0,schoolNum: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,qrcodeStatus:!1,url:"1",urlItem:{}}),t=o(!1),j=o(!0),q=o(!1),D=o(!1),K=o([]),x=function(){var e=a((function*(){if(!s.isClick){s.isClick=!0,t.value&&(K.value=[],s.page=1,t.value=!1);try{const e=yield c.post("/edu-app/open/school/schoolRegisterPage",{data:{tenantId:s.id,page:s.page,rows:s.rows,year:s.yearName,keyword:s.keyword,sort:s.sortId,sortKey:s.sortKey}});if(K.value.length>0&&1===e.data.current)return;K.value=K.value.concat(e.data.rows||[]),s.page=e.data.current+1,D.value=K.value.length>0,j.value=!1,q.value=e.data.current>=e.data.pages}catch(e){D.value=!1,q.value=!0}finally{j.value=!1}s.isClick=!1}}));return function(){return e.apply(this,arguments)}}(),Y=()=>{q.value=!1,j.value=!0,x()},O=r({saveLoading:!1,image:null,shareLoading:!1}),F=()=>{if(O.saveLoading)return;O.saveLoading=!0;const e=document.getElementById("preview-container");console.log("1212121"),b(e,{allowTaint:!0,useCORS:!0,backgroundColor:null}).then(function(){var e=a((function*(e){const a=e.toDataURL("image/png");O.image=a,s.qrcodeStatus=!0,O.saveLoading=!1}));return function(a){return e.apply(this,arguments)}}()).catch((()=>{O.saveLoading=!1,console.log("222")}))};n(a((function*(){e.query.name?document.title=e.query.name+"报名统计":document.title="学生报名统计",yield M(),yield x()})));const M=function(){var e=a((function*(){try{const{data:e}=yield c.post("/edu-app/open/school/schoolRegisterStat",{data:{tenantId:s.id,year:s.yearName}});s.statObj=e}catch(e){}}));return function(){return e.apply(this,arguments)}}();return()=>{let e;return u("div",{class:v.tenantAllData},[u(h,{position:"top"},{default:()=>[u("div",{class:v.top},[u("div",{class:v.topWrap},[u("div",{class:v.topHead},[u("img",{src:S,class:v.topDot,alt:""},null),i("汇总数据")])]),u("div",{class:v.cardWrap},[u("div",{class:[v.schoolCard,v.cardItem]},[u("div",{class:v.cardNum},[d(s.statObj.schoolNum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ZVwMwPcSU6pq9YAsz19V262nRFmCrUup91WaUTqeT7e3tpplsBtACwK03wBz6pleYu+KH8fHxPfl8flZ7r3olk1K2hmG4wXXd2EtrHGSxWCzkcrmvc+k1HSAOIE6+CLDgGfgHg3aZP5O3q1gAAAAASUVORK5CYII=",class:v.cardInfoImg,alt:""},null),i("学校数量")]),u("div",{class:v.cardLine},null)]),u("div",{class:[v.studentCard,v.cardItem]},[u("div",{class:v.cardNum},[d(s.statObj.registerNum).format("0,0")]),u("div",{class:v.cardInfo},[u("img",{src:y,class:v.cardInfoImg,alt:""},null),i("报名人数")]),u("div",{class:v.cardLine},null)]),u("div",{class:[v.memberCard,v.cardItem]},[u("div",{class:v.cardNum},[d(s.statObj.registerMemberShipNum).format("0,0")]),u("div",{class:v.cardInfo},[u("img",{src:I,class:v.cardInfoImg,alt:""},null),i("会员人数")]),u("div",{class:v.cardLine},null)])]),u("div",{class:v.searchWrap},[u("div",{class:v.searechInfo},[u(C,{class:v.allDataWrap,shape:"round",background:"#F6F8F9",inputBackground:"white",placeholder:"请输入学校名称",onSearch:e=>{s.keyword=e,s.page=1,t.value=!0,x()}},null)]),u("div",{class:v.timerWrap,onClick:()=>s.perponStatus=!0},[s.sortName," ",u("img",{src:f,class:[v.sanIcon,s.perponStatus?v.routeSan:""],alt:""},null)])])])]}),u("div",{class:v.schoolList},[D.value?u(w,{modelValue:t.value,"onUpdate:modelValue":e=>t.value=e,onRefresh:Y,class:v.refreshC},{default:()=>{return[u(B,{"loading-text":" ",finished:q.value,"finished-text":" ",onLoad:x},(a=e=K.value.map((e=>u("div",{class:v.schoolItem},[u("div",{class:v.schoolNameWrap},[u("p",{class:v.schoolName},[e.schoolName])]),u("div",{class:v.schoolCountWrap},[u("div",null,[u("p",{class:v.personNum},[e.registerNum||0]),u("p",{class:v.title},[i("报名人数")])]),u("div",null,[u("p",{class:v.personNum},[e.registerMemberShipNum||0]),u("p",{class:v.title},[i("会员人数")])]),u("div",{onClick:()=>{s.urlItem=e,s.url=`${location.origin}/classroom-app/#/tenantDataShool?id=${e.schoolId}&name=${e.schoolName}`,g((()=>{F()}))}},[u("p",{class:v.personNum},[u("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAABQpJREFUaEPtW32IVFUU/533Mau2bhn5URuLUe5Si0m6LkgQ2hpYRklomkQRWBIUSCGG/dcH1R+lUFBZfwQtW7FrFKISrkRI1LrL1pKW7RKJtEhuremMszPzPm7cfTPz7kzN8773dr6cef/NcO9553d/55x7zrn3EfKeZDLZbjHaRmD3gKiFMTY3f0wl/yaiKBg7w0BHVGIfNjQ0nBT1pcwPxlhkyjDehM2eBqBWMigfullQ6N3Zuv48EaX4vGnAHGwiaRxiYF0+hFXNUAIdndWg38dBTwOOp1Jvw2bPVA2CIIoq9M6cSORZcnwWI1eQGRdaDkslLKN4IrUHYDuCLFr1zaG9NJVInmBAe/Up719jAk7SVDJ1sdq2Hv9QnRl8y6J4IsmCCqjGeXXAhVj7bJSwd1hF3MzmKr4I1hVg4xIbL6y0cua9Pqiib0yBYfsSlx08R2PYsdzC5lY5Q5VmeNWnWmCwIpRDGww0Nzr//BED1n+hB0MqzOKgv9tiSsmRBrysO7xiXKPe9SZa5zlsjJ4nbDqoSSl6uUEjjxqXG+IELtmgJQJubmS4Y76cCf12gfDLpOsGXoBvvZbh5qvl5P4wQRiPuXKLCvj+m2y8emeuLxZa3o9+VrBn2K1FvAA/t9zC47fJOfPub1Uc/F3JvrYOuAADgUz6/xiOGYBhAfNm5b4pLMPnE4CuAo15IaSsDHefUqa3LL61PNxq48VO19yDAuae/PKAis/HFKgKsHOFhS1trrmXDXA0Bazu02EKrvfxOhO3X+cEn6CARyYIj33lRnBNAb7ZZGSZLhvgyQSwpi/X3j5Ya6JzUTjA358lbD/qAubx+OuNRtZlygaYs/jKgIreMSdirljAsG+tCc5IGIYtG9jWr2H4nLP15LtKWQFzhX76ixA3gY4FbNrnMk9Qk+bzOeihc4TZGrIukpFbdsD1fTi9AmEY9soVS8owTwHvXSyXEQ3+STg27tq4V6Z1V7ONjoVyqeXh00pOylrUTEsqSy8wqGqKh44ePXDNKmL/8gEDi5ucf05fAB48EL4K47X20NYZrpbeGFTR86sQfgPQvHIRw74uE0q6yLEZ8FS/Bm72YZ6tbTZ25TUWCsmTzqW5gPEYEDeCKaerDC1zkQWbUYiDPhPleXgwuVfpDDekGwoyi+YLsIzASh9TB+zFEDfpSwFNOqIwtDQVMOmLQMr2Nmnet7pROLg9ewmIpgjcpDM9MhnrkmaYdxc/CRu0Fjp5thi0nuzXMCQRtFZdb+O9LrfsFBOPR9r+2w0NHbTKvS15AS7KtlTurqUXYM5mUTOtYqWWXj5YVsDF6lrWAQsrUFEM8/rmRLoBwDsemW4H19dPeVg1DL80oGJ/usXDy7v3u4K1eLYvtbBZ6Ew+dEDDP0lnf+aRuCnilo5Rg5ASzgKKGrREH/57Crh7/8w38TjINX0aJhNyOXbJAPMG/Ore3NKxe52JpSHbtBULmCvWc0rBW0Ijfnen5VwA8+nD+WdLO4+p4H1vmUfMwrzGS6eWYuJRyqMWGbB+xswY4EIv9ROl/Zwe+gEpjq0DLrRypTgQz2f4teMKYuly9JZrGJ5odzulvaOEHyfclpPseXUghoOaE5/n50Bc3JZKnmmV4lJLPsOygItyqaUU15aCAC7ataUwZlxJc6V9uJKUDqNLjV0uRbT2rg/X3AXxmvsEgAeAmvrIgwOuuc94MqBr5kMtcV+70j/F+xeq+H5KXTJYtgAAAABJRU5ErkJggg=="},null)]),u("p",{class:v.title},[i("学校统计二维码")])])])]))),"function"==typeof a||"[object Object]"===Object.prototype.toString.call(a)&&!A(a)?e:{default:()=>[e]}))];var a}}):null,!D.value&&!j.value&&u(m,{description:"暂无学校信息",class:v.emptyC},null)]),u(p,{show:s.yearStatus,"onUpdate:show":e=>s.yearStatus=e,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[u(E,{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,M(),x(),s.yearStatus=!1}},null)]}),u(p,{show:s.perponStatus,"onUpdate:show":e=>s.perponStatus=e,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[u(N,{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,x(),s.perponStatus=!1}},null)]}),u(p,{show:s.qrcodeStatus,"onUpdate:show":e=>s.qrcodeStatus=e,class:v.popupQrcode},{default:()=>[u("i",{class:v.iconClose,onClick:()=>s.qrcodeStatus=!1},null),u("img",{src:O.image,class:v.image},null),u("p",{class:v.btnText},[i("长按或截图保存二维码")])]}),u("div",{class:v.templateSection},[u("div",{class:[v.shareContaienr],id:"preview-container"},[u("img",{src:R,class:v.qrcodeBg},null),u("div",{class:v.sectionGroup},[u("div",{class:v.section},[u("div",{class:v.memo},[s.urlItem.schoolName]),u("div",{class:v.qrcodeSection},[u("img",{src:U,class:v.qrbg},null),u(L,{class:v.mqrcode,text:s.url,logoSize:"small",size:"100%"},null)])])])])])])}}}))}}}))}();