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-e1ea41b7.js","./san-legacy-a513f468.js","./index-legacy-820d5526.js","./index-legacy-3a09b466.js","./index-legacy-214a2846.js","./index-legacy-09a8f385.js","./index-legacy-740e3e99.js","./index-legacy-2c98c5e9.js","./index-legacy-c9b011be.js","./index-legacy-f104347d.js","./index-legacy-666fea96.js","./use-tab-status-legacy-478dc445.js"],(function(e,a){"use strict";var o,l,r,n,c,u,i,d,p,y,h,v,f,m,g,b,S,j,w,O,I,x;return{setters:[e=>{o=e.d,l=e.U,r=e.q,n=e.r,c=e.x,u=e.y,i=e.D,d=e.a,p=e.bQ,y=e.A,h=e.a1,v=e.V,f=e.a2},e=>{m=e.s,g=e.a,b=e.p},e=>{S=e.M},e=>{j=e.M},e=>{w=e.M},e=>{O=e.L},e=>{I=e.D},e=>{x=e.P},null,null,null,null],execute:function(){e("default",o({name:"tenant-apply-data",setup(){const e=l(),a=r();n("all");const o=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}),N=n(!1),C=n(!0),P=n(!1),k=n(!1),D=n([]),V=function(){var e=s((function*(){try{const{data:e}=yield i.get("/edu-app/open/school/list",{params:{tenantId:o.id}}),t=[{value:"",text:"全部学校"}];Array.isArray(e)&&(e.forEach((e=>{t.push({value:e.id,text:e.name})})),o.classList=t)}catch(e){}}));return function(){return e.apply(this,arguments)}}(),L=function(){var e=s((function*(){if(!o.isClick){o.isClick=!0,N.value&&(D.value=[],o.page=1,N.value=!1);try{const e=yield i.post("/edu-app/open/school/schoolRegisterUserPage",{data:{tenantId:o.id,page:o.page,rows:o.rows,year:o.yearName,keyword:o.keyword,sort:o.sortId,schoolId:o.schoolId}});if(D.value.length>0&&1===e.data.current)return;D.value=D.value.concat(e.data.rows||[]),o.page=e.data.current+1,k.value=D.value.length>0,C.value=!1,P.value=e.data.current>=e.data.pages}catch(e){k.value=!1,P.value=!0}finally{C.value=!1}o.isClick=!1}}));return function(){return e.apply(this,arguments)}}(),U=()=>{P.value=!1,C.value=!0,L()};u(s((function*(){document.title="学生报名统计",yield q(),yield L(),yield V()})));const q=function(){var e=s((function*(){try{const{data:e}=yield i.post("/edu-app/open/school/schoolRegisterStat",{data:{tenantId:o.id,year:o.yearName,schoolId:o.schoolId}});o.statObj=e}catch(e){}}));return function(){return e.apply(this,arguments)}}();return()=>{let s;return d("div",{class:m.tenantAllData},[d(S,{position:"top"},{default:()=>[d("div",{class:m.top},[d("div",{class:m.topWrap},[d("div",{class:m.topHead,onClick:()=>o.classStatus=!0},[o.schoolName,d("img",{src:g,class:[m.sanIcon,o.classStatus?m.routeSan:""],alt:""},null)])]),d("div",{class:m.cardWrap},[d("div",{class:[m.studentCard,m.cardItem,m.detailCard]},[d("div",{class:m.cardNum},[" ",p(o.statObj.registerNum).format("0,0")]),d("div",{class:m.cardInfo},[d("img",{src:b,class:m.cardInfoImg,alt:""},null),y("报名人数")]),d("div",{class:m.cardLine},null)])]),d("div",{class:m.searchWrap},[d("div",{class:m.searechInfo},[d(w,{class:m.allDataWrap,shape:"round",background:"#F6F8F9",inputBackground:"white",placeholder:"请输入学员名称",onSearch:e=>{o.keyword=e,o.page=1,N.value=!0,L()}},null)]),d("div",{class:m.timerWrap,onClick:()=>o.perponStatus=!0},[o.sortName," ",d("img",{src:g,class:[m.sanIcon,o.perponStatus?m.routeSan:""],alt:""},null)])])])]}),d("div",{class:m.schoolList},[k.value?d(j,{modelValue:N.value,"onUpdate:modelValue":e=>N.value=e,onRefresh:U,class:m.refreshD},{default:()=>{return[d(O,{"loading-text":" ",finished:P.value,"finished-text":" ",onLoad:L},(e=s=D.value.map((e=>d("div",{class:m.studentItem},[d("div",{class:m.studentNameWrap},[d("p",{class:m.title},[e.userName]),d("p",{class:m.studentPhone},[e.phone])]),d("div",{class:m.studentCountWrap},[d("div",null,[d("p",{class:m.title},[e.createTime])])])]))),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!f(e)?s:{default:()=>[s]}))];var e}}):null,!k.value&&!C.value&&d(h,{description:"暂无学生报名",class:m.emptyD},null)]),d(v,{show:o.yearStatus,"onUpdate:show":e=>o.yearStatus=e,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[d(I,{showToolbar:!0,modelValue:o.year,"onUpdate:modelValue":e=>o.year=e,"columns-type":["year"],onCancel:()=>o.yearStatus=!1,onConfirm:e=>{console.log(e),o.year=[e.selectedValues[0]],o.yearName=e.selectedValues[0],o.page=1,N.value=!0,L(),o.yearStatus=!1}},null)]}),d(v,{show:o.perponStatus,"onUpdate:show":e=>o.perponStatus=e,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[d(x,{showToolbar:!0,columns:o.sortList,onCancel:()=>o.perponStatus=!1,onConfirm:e=>{console.log(e);const t=e.selectedOptions[0];o.sortId=t.value,o.sortName=t.text,N.value=!0,L(),o.perponStatus=!1}},null)]}),d(v,{show:o.classStatus,"onUpdate:show":e=>o.classStatus=e,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[d(x,{showToolbar:!0,modelValue:o.schoolChiose,"onUpdate:modelValue":e=>o.schoolChiose=e,columns:o.classList,onCancel:()=>o.classStatus=!1,onConfirm:s=>{const l=s.selectedOptions[0];o.schoolChiose=[l.value],o.schoolId=l.value,o.schoolName=l.text,a.push({query:t(t({},e.query),{},{schoolId:o.schoolId,schoolName:o.schoolName})}),o.classStatus=!1,N.value=!0,q(),L()}},null)]})])}}}))}}}))}();
|