<<<<<<<< HEAD:dist/assets/index-legacy.cdc4f252.js
;(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);});};}System.register(['./index-legacy.0db359fc.js','./item-legacy.58fec90c.js','./index-legacy.bb196093.js','./index-legacy.d610c8a2.js','./vendor-legacy.160c9ccc.js','./icon_album_active-legacy.72d719cb.js'],function(exports){'use strict';var state,request,MusicItem,styles,ColEmpty,Pagination,defineComponent,ElMessageBox,ElMessage,createVNode,Fragment,ElSkeleton,ElSkeletonItem,ElButton,createTextVNode,ElTabs,ElTabPane,ElBadge;return{setters:[function(module){state=module.c;request=module.r;},function(module){MusicItem=module.M;styles=module.s;},function(module){ColEmpty=module.C;},function(module){Pagination=module.P;},function(module){defineComponent=module.d;ElMessageBox=module.k;ElMessage=module.f;createVNode=module.c;Fragment=module.F;ElSkeleton=module.aw;ElSkeletonItem=module.ax;ElButton=module.l;createTextVNode=module.a;ElTabs=module.O;ElTabPane=module.P;ElBadge=module.aM;},function(){}],execute:function execute(){var List=defineComponent({name:'list',props:{auditStatus:{type:String,default:''},onNumber:{type:Function,default:function _default(data){}}},data:function data(){return{pageInfo:{// 分页规则
========
;(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);});};}System.register(['./index-legacy.671cea42.js','./item-legacy.58fec90c.js','./index-legacy.bb196093.js','./index-legacy.cf9132d1.js','./vendor-legacy.160c9ccc.js','./icon_album_active-legacy.72d719cb.js'],function(exports){'use strict';var state,request,MusicItem,styles,ColEmpty,Pagination,defineComponent,ElMessageBox,ElMessage,createVNode,Fragment,ElSkeleton,ElSkeletonItem,ElButton,createTextVNode,ElTabs,ElTabPane,ElBadge;return{setters:[function(module){state=module.c;request=module.r;},function(module){MusicItem=module.M;styles=module.s;},function(module){ColEmpty=module.C;},function(module){Pagination=module.P;},function(module){defineComponent=module.d;ElMessageBox=module.k;ElMessage=module.f;createVNode=module.c;Fragment=module.F;ElSkeleton=module.aw;ElSkeletonItem=module.ax;ElButton=module.l;createTextVNode=module.a;ElTabs=module.O;ElTabPane=module.P;ElBadge=module.aM;},function(){}],execute:function execute(){var List=defineComponent({name:'list',props:{auditStatus:{type:String,default:''},onNumber:{type:Function,default:function _default(data){}}},data:function data(){return{pageInfo:{// 分页规则
>>>>>>>> iteration-20240624:dist/assets/index-legacy.e14273ac.js
limit:10,// 限制显示条数
page:1,// 当前页
total:0,// 总条数
page_size:[10,20,40,50]// 选择限制显示条数
},list:[],loading:false,dataShow:false// 是否有数据
};},mounted:function mounted(){var _state$user$data;if((_state$user$data=state.user.data)!==null&&_state$user$data!==void 0&&_state$user$data.entryFlag){this.getList();}},methods:{getList:function getList(){var _this=this;return _asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee(){var _yield$request$post,data;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-website/music/sheet/teacher/list',{data:{auditStatus:_this.auditStatus,page:_this.pageInfo.page,rows:_this.pageInfo.limit}});case 4:_yield$request$post=_context.sent;data=_yield$request$post.data;_this.list=Array.isArray(data.list.rows)&&data.list.rows.map(function(n){if(typeof n.paymentType==='string')n.paymentType=n.paymentType.split(',');return n;})||[];_this.pageInfo.total=data.list.total;if(data.list.total<=0){_this.dataShow=true;}// 统计数据
_this.onNumber({doing:data.doing||0,pass:data.pass||0,unPass:data.unPass||0});_context.next=14;break;case 12:_context.prev=12;_context.t0=_context["catch"](1);case 14:if(_this.dataShow){_this.loading=false;}else{setTimeout(function(){_this.loading=false;},200);}case 15:case"end":return _context.stop();}}},_callee,null,[[1,12]]);}))();},onChangeState:function onChangeState(item){var _this2=this;return _asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee3(){return regeneratorRuntime.wrap(function _callee3$(_context3){while(1){switch(_context3.prev=_context3.next){case 0:ElMessageBox.confirm("\u786E\u8BA4\u4E0B\u67B6\u8BE5\u66F2\u8C31\u5417?",'提示',{confirmButtonText:'确认',cancelButtonText:'取消',type:'warning'}).then(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee2(){return regeneratorRuntime.wrap(function _callee2$(_context2){while(1){switch(_context2.prev=_context2.next){case 0:_context2.prev=0;_context2.next=3;return request.post('/api-website/music/sheet/state/'+item.id);case 3:ElMessage.success('下架成功');_this2.pageInfo.page=1;_this2.getList();_context2.next=10;break;case 8:_context2.prev=8;_context2.t0=_context2["catch"](0);case 10:case"end":return _context2.stop();}}},_callee2,null,[[0,8]]);})));case 1:case"end":return _context3.stop();}}},_callee3);}))();}},render:function render(){var _state$user$data2,_this3=this;return createVNode(Fragment,null,[(_state$user$data2=state.user.data)!==null&&_state$user$data2!==void 0&&_state$user$data2.entryFlag?createVNode(Fragment,null,[createVNode("div",null,[createVNode(ElSkeleton,{"loading":this.loading,"animated":true,"class":" w-full m-auto px-[14px] flex items-center flex-col","count":3},{default:function _default(){return[_this3.list.map(function(item){return createVNode(MusicItem,{"onClick":function onClick(item){if(['PASS','DOING'].includes(_this3.auditStatus)){_this3.$router.push({path:'/muiscDetial',query:{id:item.id}});}if(_this3.auditStatus==='UNPASS'||_this3.auditStatus==='OUT_SALE'){console.log(item);_this3.$router.push({path:'/userInfo/musicOperation',query:{type:'update',id:item.id}});}},"onChangeState":function onChangeState(item){return _this3.onChangeState(item);},"item":{id:item.id,auditStatus:_this3.auditStatus,addName:item.addName,addUserAvatar:item.addUserAvatar,musicSheetName:item.musicSheetName,subjectNames:item.subjectNames,exquisiteFlag:item.exquisiteFlag,albumNums:item.albumNums,titleImg:item.titleImg,composer:item.composer,chargeType:item.chargeType,paymentType:item.paymentType||[]},"class":[styles.musicListItem,'pt-2 cursor-pointer border-b border-solid border-[#E7E6E6] hover:bg-[#F4F4F4]']},null);})];},template:function template(){return createVNode("div",{"class":"h-[94px] flex items-center justify-between w-full mb-2 pt-2"},[createVNode("div",{"class":"w-2/3 flex items-center"},[createVNode(ElSkeletonItem,{"variant":"circle","style":{width:'88px',height:'88px'}},null),createVNode("div",{"class":"w-1/2 pl-2"},[createVNode(ElSkeletonItem,{"variant":"h3"},null),createVNode(ElSkeletonItem,{"variant":"p","style":{width:'50%'}},null)])]),createVNode(ElSkeletonItem,{"variant":"p","style":{width:'20%'}},null)]);}})]),createVNode(Pagination,{"total":this.pageInfo.total,"page":this.pageInfo.page,"onUpdate:page":function onUpdatePage($event){return _this3.pageInfo.page=$event;},"limit":this.pageInfo.limit,"onUpdate:limit":function onUpdateLimit($event){return _this3.pageInfo.limit=$event;},"pageSizes":this.pageInfo.page_size,"pagination":this.getList},null),this.dataShow&&createVNode(ColEmpty,null,null)]):createVNode("div",{"class":"px-[38px]"},[createVNode(ColEmpty,{"type":"teacherCert","message":"您还未完成达人认证，认证后才可上传乐谱哦~","buttonVisibility":true,"buttonText":"去认证","onDetail":function onDetail(){_this3.$router.push('/teacherAuth');}},null)])]);}});var index=exports('default',defineComponent({name:'music-class',data:function data(){var musicActiveName=sessionStorage.getItem('musicActiveName');sessionStorage.removeItem('musicActiveName');return{activeName:musicActiveName||'PASS',num:{doing:0,pass:0,unPass:0}};},render:function render(){var _this4=this;return createVNode("div",{"class":[styles.liveClass,'relative px-[25px]']},[createVNode(ElButton,{"round":true,"type":"primary","class":"absolute right-11 top-4 z-10","onClick":function onClick(){var _state$user$data3;if((_state$user$data3=state.user.data)!==null&&_state$user$data3!==void 0&&_state$user$data3.entryFlag){_this4.$router.push({path:'/userInfo/musicOperation'});}else{ElMessage.error('您还未完成达人认证，认证后才可上传乐谱哦');return;}}},{default:function _default(){return[createTextVNode("\u65B0\u5EFA\u4E50\u8C31")];}}),createVNode(ElTabs,{"modelValue":this.activeName,"onUpdate:modelValue":function onUpdateModelValue($event){return _this4.activeName=$event;}},{default:function _default(){return[createVNode(ElTabPane,{"label":"已上架","name":"PASS"},{default:function _default(){return[_this4.activeName==='PASS'&&createVNode(List,{"auditStatus":"PASS","onNumber":function onNumber(data){_this4.num=data;}},null)];}}),createVNode(ElTabPane,{"label":"审核中","name":"DOING"},{default:function _default(){return[_this4.activeName==='DOING'&&createVNode(List,{"auditStatus":"DOING","onNumber":function onNumber(data){_this4.num=data;}},null)];}}),createVNode(ElTabPane,{"name":"UNPASS"},{default:function _default(){return[_this4.activeName==='UNPASS'&&createVNode(List,{"auditStatus":"UNPASS","onNumber":function onNumber(data){_this4.num=data;}},null)];},label:function label(){return createVNode(ElBadge,{"class":styles.badge,"value":_this4.num.unPass,"hidden":_this4.num.unPass===0},{default:function _default(){return[createTextVNode("\u5BA1\u6838\u5931\u8D25")];}});}}),createVNode(ElTabPane,{"label":"已下架","name":"OUT_SALE"},{default:function _default(){return[_this4.activeName==='OUT_SALE'&&createVNode(List,{"auditStatus":"OUT_SALE","onNumber":function onNumber(data){_this4.num=data;}},null)];}})];}})]);}}));}};});})();
