1 |
- !function(){function e(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,o)}return a}function t(t){for(var o=1;o<arguments.length;o++){var s=null!=arguments[o]?arguments[o]:{};o%2?e(Object(s),!0).forEach((function(e){a(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):e(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}function a(e,t,a){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var o=a.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function o(e,t,a,o,s,l,r){try{var n=e[l](r),c=n.value}catch(u){return void a(u)}n.done?t(c):Promise.resolve(c).then(o,s)}function s(e){return function(){var t=this,a=arguments;return new Promise((function(s,l){var r=e.apply(t,a);function n(e){o(r,s,l,n,c,"next",e)}function c(e){o(r,s,l,n,c,"throw",e)}n(void 0)}))}}System.register(["./index-legacy-0155d8eb.js","./index.module-legacy-f0ea75ce.js","./index-legacy-c1bf0a9d.js","./index-legacy-1decae18.js","./index-legacy-96cd338b.js","./index-legacy-39edb3c2.js","./index-legacy-ef5921b8.js","./index-legacy-c4676b5e.js","./index-legacy-e221c5a8.js","./index-legacy-07af3c7c.js","./index-legacy-e9bb834a.js","./index-legacy-054419a5.js"],(function(e,a){"use strict";var o,l,r,n,c,u,i,d,p,A,h,v,f,g,y,m,w,b,I,C;return{setters:[e=>{o=e.d,l=e.P,r=e.q,n=e.r,c=e.x,u=e.y,i=e.D,d=e.a,p=e.c8,A=e.A,h=e.a8,v=e.U,f=e.a9},e=>{g=e.s},e=>{y=e.M},e=>{m=e.M},e=>{w=e.M},e=>{b=e.L},e=>{I=e.D},e=>{C=e.P},null,null,null,null],execute:function(){const a="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAATlJREFUSEtjZKAxYKSx+QyjFhAM4WEYRCtXrmxjZGQsZ2BgYCLof1QF//7//98ZHh5ehSyMEUSrV6/u+///fyGJhoOVMzIy9oeGhhbhtWDmzJmsQkJCW/7//+9GiiWMjIy73r1755Oenv4brwUgyVWrVvEwMDAcYGBgMCbSkrMMDAwOYWFhX9DV40xF69atE/vz589RBgYGFQKW3GFhYbEOCgp6hU0d3mS6YsUKZSYmJpAl4jgsefnv3z/riIiIu7gcQTAfrF271ujv37+g4OJFM+QzMzOzQ3Bw8Dl8PiRoATROXBkYGLYwMDCwQQ37xcDA4BMWFrabUBwRZQHUkigGBobFUANjw8LClhEyHJx0iVEEU7Ny5UpfEDs8PHwzsfpIsoBYQwnmA3IMIjsVUWrZaBARDEGaBxEA6A5NGU6bGuAAAAAASUVORK5CYII=";e("default",o({name:"tenant-apply-data",setup(){const e=l(),o=r();n("all");const j=c({keyword:"",id:e.query.id,yearStatus:!1,schoolChiose:[e.query.schoolId],schoolId:e.query.schoolId,schoolName:e.query.schoolName,year:[(new Date).getFullYear()],yearName:(new Date).getFullYear(),classList:[],classStatus:!1,statObj:{registerNum:0,schoolNum:0},perponStatus:!1,sortId:"desc",sortName:"时间降序",sortList:[{value:"desc",text:"时间降序"},{value:"asc",text:"时间升序"}],page:1,rows:20,isClick:!1}),S=n(!1),O=n(!0),U=n(!1),x=n(!1),E=n([]),B=function(){var e=s((function*(){try{const{data:e}=yield i.get("/edu-app/open/school/list",{params:{tenantId:j.id}}),t=[{value:"",text:"全部学校"}];Array.isArray(e)&&(e.forEach((e=>{t.push({value:e.id,text:e.name})})),j.classList=t)}catch(e){}}));return function(){return e.apply(this,arguments)}}(),N=function(){var e=s((function*(){if(!j.isClick){j.isClick=!0,S.value&&(E.value=[],j.page=1,S.value=!1);try{const e=yield i.post("/edu-app/open/school/schoolRegisterUserPage",{data:{tenantId:j.id,page:j.page,rows:j.rows,year:j.yearName,keyword:j.keyword,sort:j.sortId,schoolId:j.schoolId}});if(E.value.length>0&&1===e.data.current)return;E.value=E.value.concat(e.data.rows||[]),j.page=e.data.current+1,x.value=E.value.length>0,O.value=!1,U.value=e.data.current>=e.data.pages}catch(e){x.value=!1,U.value=!0}finally{O.value=!1}j.isClick=!1}}));return function(){return e.apply(this,arguments)}}(),P=()=>{U.value=!1,O.value=!0,N()};u(s((function*(){document.title="学生报名统计",yield M(),yield N(),yield B()})));const M=function(){var e=s((function*(){try{const{data:e}=yield i.post("/edu-app/open/school/schoolRegisterStat",{data:{tenantId:j.id,year:j.yearName,schoolId:j.schoolId}});j.statObj=e}catch(e){}}));return function(){return e.apply(this,arguments)}}();return()=>{let s;return d("div",{class:g.tenantAllData},[d(y,{position:"top"},{default:()=>[d("div",{class:g.top},[d("div",{class:g.topWrap},[d("div",{class:g.topHead,onClick:()=>j.classStatus=!0},[j.schoolName,d("img",{src:a,class:[g.sanIcon,j.classStatus?g.routeSan:""],alt:""},null)])]),d("div",{class:g.cardWrap},[d("div",{class:[g.studentCard,g.cardItem,g.detailCard]},[d("div",{class:g.cardNum},[" ",p(j.statObj.registerNum).format("0,0")]),d("div",{class:g.cardInfo},[d("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAA6hJREFUWEftlk2IHEUUx/+vexxmVhJk/diDEJKsIOQQkCTkYm5GRA2IcT2KmrielmUz2a6aCWj5sTP1KrtR3JMLWfXqBBRCCKgnyUGC5qDkElhN1IPmkPGLbb96nl3aCyIz0z0ZIZcU9KWr6r1f/d+r94pwgwfdYP+4CTC0AlEU3UtEzwN4EMAWH0IiuiIiHwRB8Gar1bo0TFgLA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]),d("div",{class:g.cardLine},null)])]),d("div",{class:g.searchWrap},[d("div",{class:g.searechInfo},[d(w,{class:g.allDataWrap,shape:"round",background:"#F6F8F9",inputBackground:"white",placeholder:"请输入学员名称",onSearch:e=>{j.keyword=e,j.page=1,S.value=!0,N()}},null)]),d("div",{class:g.timerWrap,onClick:()=>j.perponStatus=!0},[j.sortName," ",d("img",{src:a,class:[g.sanIcon,j.perponStatus?g.routeSan:""],alt:""},null)])])])]}),d("div",{class:g.schoolList},[x.value?d(m,{modelValue:S.value,"onUpdate:modelValue":e=>S.value=e,onRefresh:P,class:g.refreshD},{default:()=>{return[d(b,{"loading-text":" ",finished:U.value,"finished-text":" ",onLoad:N},(e=s=E.value.map((e=>d("div",{class:g.studentItem},[d("div",{class:g.studentNameWrap},[d("p",{class:g.title},[e.userName]),d("p",{class:g.studentPhone},[e.phone])]),d("div",{class:g.studentCountWrap},[d("div",null,[d("p",{class:g.title},[e.createTime])])])]))),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!f(e)?s:{default:()=>[s]}))];var e}}):null,!x.value&&!O.value&&d(h,{description:"暂无学生报名",class:g.emptyD},null)]),d(v,{show:j.yearStatus,"onUpdate:show":e=>j.yearStatus=e,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[d(I,{showToolbar:!0,modelValue:j.year,"onUpdate:modelValue":e=>j.year=e,"columns-type":["year"],onCancel:()=>j.yearStatus=!1,onConfirm:e=>{console.log(e),j.year=[e.selectedValues[0]],j.yearName=e.selectedValues[0],j.page=1,S.value=!0,N(),j.yearStatus=!1}},null)]}),d(v,{show:j.perponStatus,"onUpdate:show":e=>j.perponStatus=e,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[d(C,{showToolbar:!0,columns:j.sortList,onCancel:()=>j.perponStatus=!1,onConfirm:e=>{console.log(e);const t=e.selectedOptions[0];j.sortId=t.value,j.sortName=t.text,S.value=!0,N(),j.perponStatus=!1}},null)]}),d(v,{show:j.classStatus,"onUpdate:show":e=>j.classStatus=e,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[d(C,{showToolbar:!0,modelValue:j.schoolChiose,"onUpdate:modelValue":e=>j.schoolChiose=e,columns:j.classList,onCancel:()=>j.classStatus=!1,onConfirm:a=>{const s=a.selectedOptions[0];j.schoolChiose=[s.value],j.schoolId=s.value,j.schoolName=s.text,o.push({query:t(t({},e.query),{},{schoolId:j.schoolId,schoolName:j.schoolName})}),j.classStatus=!1,S.value=!0,M(),N()}},null)]})])}}}))}}}))}();
|