;(function(){function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}var __vite_style__=document.createElement('style');__vite_style__.innerHTML="._list-contaner_v1ygs_1{display:flex;flex-direction:column}\n";document.head.appendChild(__vite_style__);System.register(['./vendor-legacy.031e1374.js','./index-legacy.f25f109a5.js','./index-legacy.637f35562.js','./index-legacy.637f35563.js','./index-legacy.f25f109a6.js','./index-legacy.1cd7b6bb.js'],function(exports){'use strict';var defineComponent,createVNode,Button,createTextVNode,List,isVNode,Tabs,Tab,request;return{setters:[function(module){defineComponent=module.d;createVNode=module.a;Button=module.B;createTextVNode=module.j;List=module.w;isVNode=module.x;Tabs=module.G;Tab=module.H;},function(){},function(){},function(){},function(){},function(module){request=module.r;}],execute:function execute(){var MusicListItem=defineComponent({name:'MusicListItem',props:{data:{type:Object,default:function _default(){return null;}}},render:function render(){if(!this.data)return null;return createVNode("div",null,null);}});var styles={"list-contaner":"_list-contaner_v1ygs_1"};function _isSlot(s){return typeof s==='function'||Object.prototype.toString.call(s)==='[object Object]'&&!isVNode(s);}/** 曲谱列表 */var MusicList=defineComponent({name:'MusicList',props:{auditStatus:{type:Number,default:0}},data:function data(){return{list:[],loading:false,error:false,finished:false,page:1};},methods:{FetchList:function FetchList(){var _this=this;return _asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee(){var res;return regeneratorRuntime.wrap(function _callee$(_context){while(1){switch(_context.prev=_context.next){case 0:_this.loading=true;_context.prev=1;_context.next=4;return request.post('/api-web/music/sheet/list',{data:{auditStatus:_this.auditStatus}});case 4:res=_context.sent;if(res.data.length){_this.list=_this.list.concat(res.data);}_context.next=11;break;case 8:_context.prev=8;_context.t0=_context["catch"](1);_this.error=true;case 11:_this.loading=false;case 12:case"end":return _context.stop();}}},_callee,null,[[1,8]]);}))();},/** 前往上传曲谱页 */toUpload:function toUpload(){this.$router.push({path:'/music-upload'});}},render:function render(){var _slot;return createVNode("div",{"class":styles['list-contaner']},[createVNode(Button,{"onClick":this.toUpload},{default:function _default(){return[createTextVNode("\u4E0A\u4F20\u66F2\u8C31")];}}),createVNode(List,{"loading":this.loading,"error":this.error,"finished":this.finished,"onLoad":this.FetchList},_isSlot(_slot=this.list.map(function(item){return createVNode(MusicListItem,{"data":item},null);}))?_slot:{default:function _default(){return[_slot];}})]);}});/** 曲谱列表 包含分类切换 */var _switch=exports('default',defineComponent({name:'MusicListSwitch',render:function render(){return createVNode("div",null,[createVNode(Tabs,null,{default:function _default(){return[createVNode(Tab,{"title":"已上架"},{default:function _default(){return[createVNode(MusicList,{"auditStatus":0},null)];}}),createVNode(Tab,{"title":"审核中"},{default:function _default(){return[createVNode(MusicList,{"auditStatus":1},null)];}}),createVNode(Tab,{"title":"审核失败"},{default:function _default(){return[createVNode(MusicList,{"auditStatus":2},null)];}})];}})]);}}));}};});})();
