index-legacy.bc35e524.js 11 KB

1
  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="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.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(P){s=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),a=new E(r||[]);return i._invoke=function(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 j()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=S(a,n);if(u){if(u===h)continue;return u}}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=f(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)}}}(t,n,a),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(P){return{type:"throw",arg:P}}}n.wrap=l;var h={};function d(){}function p(){}function m(){}var v={};s(v,a,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(I([])));g&&g!==r&&o.call(g,a)&&(v=g);var b=m.prototype=d.prototype=Object.create(v);function w(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(e,n){function r(i,a,u,c){var s=f(e[i],e,a);if("throw"!==s.type){var l=s.arg,h=l.value;return h&&"object"==t(h)&&o.call(h,"__await")?n.resolve(h.__await).then((function(t){r("next",t,u,c)}),(function(t){r("throw",t,u,c)})):n.resolve(h).then((function(t){l.value=t,u(l)}),(function(t){return r("throw",t,u,c)}))}c(s.arg)}var i;this._invoke=function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return i=i?i.then(o,o):o()}}function S(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var r=f(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,h;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function N(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 L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function I(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:j}}function j(){return{value:void 0,done:!0}}return p.prototype=m,s(b,"constructor",m),s(m,"constructor",p),p.displayName=s(m,c,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,s(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},n.awrap=function(t){return{__await:t}},w(x.prototype),s(x.prototype,u,(function(){return this})),n.AsyncIterator=x,n.async=function(t,e,r,o,i){void 0===i&&(i=Promise);var a=new x(l(t,e,r,o),i);return n.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(b),s(b,c,"Generator"),s(b,a,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},n.values=I,E.prototype={constructor:E,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(L),!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 a.type="throw",a.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],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){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 a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},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),L(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;L(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:I(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},n}function n(t,e,n,r,o,i,a){try{var u=t[i](a),c=u.value}catch(s){return void n(s)}u.done?e(c):Promise.resolve(c).then(r,o)}System.register(["./index-legacy.4dc2f84c.js","./item-legacy.b08efb33.js","./index-legacy.2d9b6c7e.js","./index-legacy.db05a6c9.js","./index2-legacy.e937e5ca.js","./index2-legacy.bb8951d3.js","./index2-legacy.8bdc7bd4.js"],(function(t){"use strict";var r,o,i,a,u,c,s,l,f,h,d,p,m,v,y,g,b;return{setters:[function(t){r=t.d,o=t.b0,i=t.b,a=t.c,u=t.F,c=t.aO,s=t.b3,l=t.a,f=t.aD,h=t.aE,d=t.bX},function(t){p=t.M,m=t.s},function(t){v=t.C},function(t){y=t.P},function(t){g=t.E,b=t.a},function(){},function(){}],execute:function(){var w=r({name:"list",props:{auditStatus:{type:String,default:""},onNumber:{type:Function,default:function(t){}}},data:function(){return{pageInfo:{limit:9,page:1,total:0,page_size:[10,20,40,50]},list:[],loading:!1,dataShow:!1}},mounted:function(){var t;null!==(t=o.user.data)&&void 0!==t&&t.musicianFlag&&this.getList()},methods:{getList:function(){var t,r=this;return(t=e().mark((function t(){var n,o;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r.loading=!0,t.prev=1,t.next=4,i.post("/api-website/music/sheet/teacher/list",{data:{auditStatus:r.auditStatus,page:r.pageInfo.page,rows:r.pageInfo.limit}});case 4:n=t.sent,o=n.data,r.list=o.list.rows||[],r.pageInfo.total=o.list.total,o.list.total<=0&&(r.dataShow=!0),r.onNumber({doing:o.doing||0,pass:o.pass||0,unPass:o.unPass||0}),t.next=14;break;case 12:t.prev=12,t.t0=t.catch(1);case 14:r.dataShow?r.loading=!1:setTimeout((function(){r.loading=!1}),200);case 15:case"end":return t.stop()}}),t,null,[[1,12]])})),function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function u(t){n(a,o,i,u,c,"next",t)}function c(t){n(a,o,i,u,c,"throw",t)}u(void 0)}))})()}},render:function(){var t,e=this;return a(u,null,[null!==(t=o.user.data)&&void 0!==t&&t.musicianFlag?a(u,null,[a("div",null,[a(g,{loading:this.loading,animated:!0,class:" w-full m-auto px-[14px] flex items-center flex-col",count:3},{default:function(){return[e.list.map((function(t){return a(p,{onClick:function(t){"UNPASS"===e.auditStatus&&(console.log(t),e.$router.push({path:"/userInfo/musicOperation",query:{type:"update",id:t.id}}))},item:{id:t.id,addName:t.addName,addUserAvatar:t.addUserAvatar,musicSheetName:t.musicSheetName,subjectNames:t.subjectNames,composer:t.composer,chargeType:t.chargeType},class:[m.musicListItem,"pt-2 cursor-pointer border-b border-solid border-[#E7E6E6] hover:bg-[#F4F4F4]"]},null)}))]},template:function(){return a("div",{class:"h-[94px] flex items-center justify-between w-full mb-2 pt-2"},[a("div",{class:"w-2/3 flex items-center"},[a(b,{variant:"circle",style:{width:"88px",height:"88px"}},null),a("div",{class:"w-1/2 pl-2"},[a(b,{variant:"h3"},null),a(b,{variant:"p",style:{width:"50%"}},null)])]),a(b,{variant:"p",style:{width:"20%"}},null)])}})]),a(y,{total:this.pageInfo.total,page:this.pageInfo.page,"onUpdate:page":function(t){return e.pageInfo.page=t},limit:this.pageInfo.limit,"onUpdate:limit":function(t){return e.pageInfo.limit=t},pageSizes:this.pageInfo.page_size,pagination:this.getList},null),this.dataShow&&a(v,null,null)]):a("div",{class:"px-[38px]"},[a(v,{type:"musicCert",message:"您还未完成音乐人认证,认证后才可创建曲谱~",buttonVisibility:!0,buttonText:"去认证",onDetail:function(){e.$router.push("/musicAuth")}},null)])])}});t("default",r({name:"music-class",data:function(){var t=sessionStorage.getItem("musicActiveName");return sessionStorage.removeItem("musicActiveName"),{activeName:t||"DOING",num:{doing:0,pass:0,unPass:0}}},render:function(){var t=this;return a("div",{class:[m.liveClass,"relative px-[25px]"]},[a(c,{round:!0,type:"primary",class:"absolute right-11 top-4 z-10",onClick:function(){var e;null!==(e=o.user.data)&&void 0!==e&&e.musicianFlag?t.$router.push({path:"/userInfo/musicOperation"}):s.error("您还未完成音乐人认证,认证后才可创建曲谱")}},{default:function(){return[l("新建乐谱")]}}),a(f,{modelValue:this.activeName,"onUpdate:modelValue":function(e){return t.activeName=e}},{default:function(){return[a(h,{label:"已上架",name:"PASS"},{default:function(){return["PASS"===t.activeName&&a(w,{auditStatus:"PASS",onNumber:function(e){t.num=e}},null)]}}),a(h,{label:"审核中",name:"DOING"},{default:function(){return["DOING"===t.activeName&&a(w,{auditStatus:"DOING",onNumber:function(e){t.num=e}},null)]}}),a(h,{name:"UNPASS"},{default:function(){return["UNPASS"===t.activeName&&a(w,{auditStatus:"UNPASS",onNumber:function(e){t.num=e}},null)]},label:function(){return a(d,{class:m.badge,value:t.num.unPass,hidden:0===t.num.unPass},{default:function(){return[l("审核失败")]}})}})]}})])}}))}}}))}();