index-legacy-f22d3889.js 13 KB

12
  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",l=u.asyncIterator||"@@asyncIterator",c=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 S(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,l){var c=d(e[i],e,u);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==t(f)&&o.call(f,"__await")?n.resolve(f.__await).then((function(t){r("next",t,a,l)}),(function(t){r("throw",t,a,l)})):n.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,l)}))}l(c.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 G()}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 l=d(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.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 P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(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:G}}function G(){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,c,"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,c,"GeneratorFunction")),t.prototype=Object.create(w),t},n.awrap=function(t){return{__await:t}},j(x.prototype),s(x.prototype,l,(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,c,"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,S.prototype={constructor:S,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(P),!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"),l=o.call(i,"finallyLoc");if(a&&l){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(!l)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),P(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;P(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),l=a.value}catch(c){return void n(c)}a.done?e(l):Promise.resolve(l).then(r,o)}System.register(["./index-legacy-64376843.js","./index-legacy-f4fcb967.js","./index-legacy-ec77484a.js","./api-legacy-17355da7.js","./skeletion-index-legacy-15cc2adf.js","./index-legacy-d2e4cf84.js","./index-legacy-c347537c.js","./index-legacy-293215e6.js","./index-legacy-4fc1e501.js","./index-legacy-b939693c.js","./index-legacy-a7502a0a.js","./icon-student-default-legacy-1a5ed844.js","./index-legacy-86b38a8e.js","./index-legacy-2e556ecc.js","./index-legacy-07eb4825.js","./index-legacy-ec204863.js","./use-tab-status-legacy-b3d1a2e2.js"],(function(t,n){"use strict";var o,u,a,l,c,s,f,d,h,p,v,y,g,m,b,w,j,x,O,L,E,P,S,k,G;return{setters:[function(t){o=t.d,u=t.O,a=t.i,l=t.o,c=t.g,s=t.R,f=t.B,d=t.h,h=t.F,p=t.T},function(t){v=t.M},function(t){y=t.M},function(t){g=t.s,m=t.M,b=t.A,w=t.a,j=t.b,x=t.c,O=t.e},function(t){L=t.S},function(t){E=t.M},function(t){P=t.D,S=t.a},function(t){k=t.P},function(t){G=t.L},null,null,null,null,null,null,null,null],execute:function(){t("default",o({name:"student-manage",setup:function(){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:[{text:"全部乐团",value:""}],musicGroupName:"全部乐团",subjects:[{text:"全部声部",value:""}],subjectName:"全部声部"}),o=a(),N=a(),_=a(),T=a(),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,O(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,l,"next",t)}function l(t){i(u,n,r,a,l,"throw",t)}a(void 0)}))});return function(){return u.apply(this,arguments)}}(),F=function(){t.page=1,n.refresh=!0,A()};return l((function(){j().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}})))})),x().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 c("div",{class:g.container},[c(y,{position:"top"},{default:function(){return[c(s,null,null),c(v,{placeholder:"请输入学员姓名",onSearch:function(e){t.keyword=e,F()}},null),c(P,null,{default:function(){return[c(S,{ref:o,title:n.musicGroupName},{default:function(){return[c(k,{ref:N,showToolbar:!1,visibleOptionNum:5,columns:n.musicGroups},null),c("div",{class:["btnGroupPopup","van-hairline--top"]},[c(f,{round:!0,onClick:function(){var t;null===(t=o.value)||void 0===t||t.toggle(!1)}},{default:function(){return[d("取消")]}}),c(f,{disabled:!n.musicGroups.length,type:"primary",round:!0,onClick:function(){var e,r,i,u,a,l;null===(e=N.value)||void 0===e||null===(r=e.confirm)||void 0===r||r.call(e);var c=null===(i=N.value)||void 0===i||null===(u=i.getSelectedOptions)||void 0===u||null===(a=u.call(i))||void 0===a?void 0:a[0];c&&(t.musicGroupId=c.value,n.musicGroupName=c.text,F()),null===(l=o.value)||void 0===l||l.toggle(!1)}},{default:function(){return[d("确定")]}})])]}}),c(S,{ref:_,title:n.subjectName},{default:function(){return[c(k,{ref:T,showToolbar:!1,visibleOptionNum:5,columns:n.subjects},null),c("div",{class:["btnGroupPopup","van-hairline--top"]},[c(f,{round:!0,onClick:function(){var t;null===(t=_.value)||void 0===t||t.toggle(!1)}},{default:function(){return[d("取消")]}}),c(f,{disabled:!n.subjects.length,type:"primary",round:!0,onClick:function(){var e,r,o,i,u,a;null===(e=T.value)||void 0===e||null===(r=e.confirm)||void 0===r||r.call(e);var l=null===(o=T.value)||void 0===o||null===(i=o.getSelectedOptions)||void 0===i||null===(u=i.call(o))||void 0===u?void 0:u[0];console.log(l),t.subjectId=l.value,n.subjectName=l.text,F(),null===(a=_.value)||void 0===a||a.toggle(!1)}},{default:function(){return[d("确定")]}})])]}})]}})]}}),c(E,{modelValue:n.refresh,"onUpdate:modelValue":function(t){return n.refresh=t},onRefresh:function(){t.page=1,n.finshed=!1,A()}},{default:function(){return[c(G,{class:g.list,loading:n.loading,finished:n.finshed,onLoad:function(){n.loading=!0,console.log("触底了"),A()}},{default:function(){return[c(L,{loading:n.skelet},{default:function(){return[c(h,null,[n.list.map((function(t){return c("div",{class:g.student},[c(m,{item:t},null),c(b,{item:t},null),c(w,{item:t},null)])})),!n.loading&&!n.list.length&&c(p,{description:"暂无数据",style:{minHeight:"100%"}},null)])]}})]}})]}})])}}}))}}}))}();