1 |
- !function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return n};var n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},u="function"==typeof Symbol?Symbol:{},a=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(N){s=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof p?e:p,u=Object.create(o.prototype),a=new P(r||[]);return i(u,"_invoke",{value:O(t,n,a)}),u}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(N){return{type:"throw",arg:N}}}n.wrap=f;var h={};function p(){}function v(){}function y(){}var g={};s(g,a,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(k([])));b&&b!==r&&o.call(b,a)&&(g=b);var w=y.prototype=p.prototype=Object.create(g);function j(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(e,n){function r(i,u,a,c){var l=d(e[i],e,u);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==t(f)&&o.call(f,"__await")?n.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):n.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(l.arg)}var u;i(this,"_invoke",{value:function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return u=u?u.then(o,o):o()}})}function O(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var u=n.delegate;if(u){var a=L(u,n);if(a){if(a===h)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=d(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function L(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,L(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var o=d(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function G(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function k(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(o.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:S}}function S(){return{value:void 0,done:!0}}return v.prototype=y,i(w,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:v,configurable:!0}),v.displayName=s(y,l,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,s(t,l,"GeneratorFunction")),t.prototype=Object.create(w),t},n.awrap=function(t){return{__await:t}},j(x.prototype),s(x.prototype,c,(function(){return this})),n.AsyncIterator=x,n.async=function(t,e,r,o,i){void 0===i&&(i=Promise);var u=new x(f(t,e,r,o),i);return n.isGeneratorFunction(e)?u:u.next().then((function(t){return t.done?t.value:u.next()}))},j(w),s(w,l,"Generator"),s(w,a,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},n.values=k,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(G),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return u.type="throw",u.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],u=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var a=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(a&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var u=i?i.completion:{};return u.type=t,u.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(u)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),G(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;G(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},n}function n(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function r(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){o(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function o(e,n,r){return(n=function(e){var n=function(e,n){if("object"!==t(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===t(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function i(t,e,n,r,o,i,u){try{var a=t[i](u),c=a.value}catch(l){return void n(l)}a.done?e(c):Promise.resolve(c).then(r,o)}System.register(["./index-legacy-49fe136a.js","./index-legacy-8ec21b48.js","./index-legacy-6cb64f6c.js","./api-legacy-9b8e362a.js","./skeletion-index-legacy-9521cf29.js","./index-legacy-a689f51b.js","./index-legacy-dabed3b6.js","./index-legacy-3f48d7c8.js","./index-legacy-e94bbe34.js","./index-legacy-deb34790.js","./index-legacy-25a228fa.js","./icon-student-default-legacy-1a5ed844.js","./index-legacy-65fcef15.js","./index-legacy-5bef4ac7.js","./index-legacy-78d1afa1.js","./index-legacy-649765eb.js","./use-tab-status-legacy-7568ad30.js"],(function(t,n){"use strict";var o,u,a,c,l,s,f,d,h,p,v,y,g,m,b,w,j,x,O,L,E,G,P,k,S,N;return{setters:[function(t){o=t.d,u=t.N,a=t.i,c=t.o,l=t.g,s=t.O,f=t.B,d=t.h,h=t.F,p=t.Q,v=t.M},function(t){y=t.M},function(t){g=t.M},function(t){m=t.s,b=t.M,w=t.A,j=t.a,x=t.b,O=t.c,L=t.e},function(t){E=t.S},function(t){G=t.M},function(t){P=t.D,k=t.a},function(t){S=t.P},function(t){N=t.L},null,null,null,null,null,null,null,null],execute:function(){t("default",o({name:"student-manage",setup:function(){v();var t=u({page:1,rows:20,keyword:"",musicGroupId:"",statusList:["QUIT"],subjectId:"",vipFlag:""}),n=u({skelet:!0,refresh:!1,loading:!1,finshed:!1,list:[],musicGroups:[],musicGroupId:"",musicGroupName:"全部乐团",subjects:[],subjectId:"",subjectName:"全部声部"}),o=a(),I=a(),_=function(){var o,u=(o=e().mark((function o(){return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.loading=!0,L(r(r({},t),{},{vipFlag:"1"===t.vipFlag||"2"!==t.vipFlag&&""})).then((function(e){var r;n.refresh&&(n.list=[]);var o=Array.isArray(null==e||null===(r=e.data)||void 0===r?void 0:r.rows)?e.data.rows:[];n.list=n.list.concat(o),(!o.length||o.length<t.rows)&&(n.finshed=!0),t.page++})).catch((function(){n.finshed=!0})).finally((function(){setTimeout((function(){n.loading=!1,n.refresh=!1,n.skelet=!1}),500)}));case 2:case"end":return e.stop()}}),o)})),function(){var t=this,e=arguments;return new Promise((function(n,r){var u=o.apply(t,e);function a(t){i(u,n,r,a,c,"next",t)}function c(t){i(u,n,r,a,c,"throw",t)}a(void 0)}))});return function(){return u.apply(this,arguments)}}(),A=function(){n.skelet=!0,t.page=1,n.refresh=!0,_()};return c((function(){x().then((function(t){var e=Array.isArray(null==t?void 0:t.data)?t.data:[];e.length&&(e=[{name:"全部乐团",id:""}].concat(e),n.musicGroups=e.map((function(t){return{text:t.name,value:t.id}})))})),O().then((function(t){var e=Array.isArray(null==t?void 0:t.data)?t.data:[];e.length&&(e=[{name:"全部声部",id:""}].concat(e),n.subjects=e.map((function(t){return{text:t.name,value:t.id}})))}))})),function(){return l("div",{class:m.container},[l(g,{position:"top"},{default:function(){return[l(s,null,null),l(y,{onSearch:function(e){t.keyword=e,A()}},null),l(P,null,{default:function(){return[l(k,{ref:o,title:n.musicGroupName},{default:function(){return[l(S,{showToolbar:!1,visibleOptionNum:5,columns:n.musicGroups,onChange:function(t){n.musicGroupId=t.selectedValues[0]}},null),l("div",{class:["btnGroupPopup","van-hairline--top"]},[l(f,{round:!0,onClick:function(){var t;null===(t=o.value)||void 0===t||t.toggle(!1)}},{default:function(){return[d("取消")]}}),l(f,{disabled:!n.musicGroups.length,type:"primary",round:!0,onClick:function(){var e,r;null===(e=o.value)||void 0===e||e.toggle(!1),t.musicGroupId=n.musicGroupId,n.musicGroupName=(null===(r=n.musicGroups.find((function(t){return t.value==n.musicGroupId})))||void 0===r?void 0:r.text)||"全部乐团",A()}},{default:function(){return[d("确定")]}})])]}}),l(k,{ref:I,title:n.subjectName},{default:function(){return[l(S,{showToolbar:!1,visibleOptionNum:5,columns:n.subjects,onChange:function(t){n.subjectId=t.selectedValues[0]}},null),l("div",{class:["btnGroupPopup","van-hairline--top"]},[l(f,{round:!0,onClick:function(){var t;null===(t=I.value)||void 0===t||t.toggle(!1)}},{default:function(){return[d("取消")]}}),l(f,{disabled:!n.subjects.length,type:"primary",round:!0,onClick:function(){var e,r;null===(e=I.value)||void 0===e||e.toggle(!1),t.subjectId=n.subjectId,n.subjectName=(null===(r=n.subjects.find((function(t){return t.value==n.subjectId})))||void 0===r?void 0:r.text)||"全部声部",A()}},{default:function(){return[d("确定")]}})])]}})]}})]}}),l(G,{modelValue:n.refresh,"onUpdate:modelValue":function(t){return n.refresh=t},onRefresh:function(){t.page=1,n.finshed=!1,_()}},{default:function(){return[l(N,{class:m.list,loading:n.loading,finished:n.finshed,onLoad:function(){n.loading=!0,console.log("触底了"),_()}},{default:function(){return[l(E,{loading:n.skelet},{default:function(){return[l(h,null,[n.list.map((function(t){return l("div",{class:m.student},[l(b,{item:t},null),!!t.shouldAttendanceCount&&l(h,null,[l(w,{item:t},null),l(j,{item:t},null)])])})),!n.loading&&!n.list.length&&l(p,{description:"暂无数据",style:{minHeight:"100%"}},null)])]}})]}})]}})])}}}))}}}))}();
|