list-legacy.c60e5b99.js 9.7 KB

1
  1. !function(){function e(e,n,t,i,r,a,o){try{var l=e[a](o),u=l.value}catch(c){return void t(c)}l.done?n(u):Promise.resolve(u).then(i,r)}function n(n){return function(){var t=this,i=arguments;return new Promise((function(r,a){var o=n.apply(t,i);function l(n){e(o,r,a,l,u,"next",n)}function u(n){e(o,r,a,l,u,"throw",n)}l(void 0)}))}}function t(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function i(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?t(Object(i),!0).forEach((function(n){r(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):t(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}function r(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var a=document.createElement("style");a.innerHTML="._item_18izn_1{background-color:var(--music-list-item-background-color);margin:.26667rem .37333rem;padding:.26667rem;padding-bottom:0;border-radius:.24rem}._item_18izn_1 ._header_18izn_8{display:flex;align-items:center;border-bottom:.02667rem solid var(--music-list-item-border-color);padding-bottom:.32rem}._item_18izn_1 ._header_18izn_8 ._mate_18izn_14{display:flex;flex:1;align-items:center}._item_18izn_1 ._header_18izn_8 ._mate_18izn_14 ._icon_18izn_19{width:1.06667rem;height:1.06667rem;border-radius:.26667rem;overflow:hidden}._item_18izn_1 ._header_18izn_8 ._mate_18izn_14 ._info_18izn_25{margin-left:.37333rem;flex:1;margin-right:.37333rem;word-break:break-all}._item_18izn_1 ._header_18izn_8 ._mate_18izn_14 ._info_18izn_25>h4{color:var(--music-list-item-title-color);font-size:.37333rem;font-weight:600}._item_18izn_1 ._header_18izn_8 ._mate_18izn_14 ._info_18izn_25>p{color:var(--music-list-item-mate-color);line-height:.45333rem}._item_18izn_1 ._header_18izn_8 ._mate_18izn_14 ._info_18izn_25>p>div{margin-top:.26667rem}._item_18izn_1 ._header_18izn_8 ._mate_18izn_14 ._info_18izn_25>p>div>span{display:inline-block;padding-right:.13333rem;width:50%;height:.4rem;box-sizing:border-box;overflow:hidden;white-space:pre;text-overflow:ellipsis}._item_18izn_1 ._header_18izn_8 ._btn_18izn_53{width:1.44rem;height:.58667rem;font-size:.32rem;border-radius:.29333rem;padding:0;border:none}._item_18izn_1 ._header_18izn_8 ._btn_18izn_53._vip_18izn_61{background-color:var(--music-list-item-vip-bg);color:var(--music-list-item-vip-color)}._item_18izn_1 ._header_18izn_8 ._btn_18izn_53._free_18izn_65{background-color:var(--music-list-item-free-bg);color:var(--music-list-item-free-color)}._item_18izn_1 ._header_18izn_8 ._btn_18izn_53._charge_18izn_69{background-color:var(--music-list-item-charge-bg);color:var(--music-list-item-charge-color)}._item_18izn_1 ._footer_18izn_73{display:flex;align-items:center;justify-content:space-between}._item_18izn_1 ._footer_18izn_73 ._user_18izn_78{display:flex;align-items:center;padding:0 .26667rem;margin-right:.13333rem}._item_18izn_1 ._footer_18izn_73 ._user_18izn_78 ._userIcon_18izn_84{width:.53333rem;height:.53333rem;margin-right:.21333rem}._item_18izn_1 ._footer_18izn_73 ._user_18izn_78>p{margin-right:.21333rem}._item_18izn_1 ._footer_18izn_73 ._favorite_18izn_92{font-size:.42667rem}._item_18izn_1 ._footer_18izn_73 ._tags_18izn_95{display:flex;align-items:center;--van-tag-default-color: #fff1de;--van-tag-text-color: #ff8c00}\n",document.head.appendChild(a),System.register(["./index-legacy.f8641610.js","./index-legacy.4ddb0119.js","./index-legacy.13f535d5.js","./index-legacy.fc510843.js","./index-legacy.8a3dede6.js","./index-legacy.e8dcdcc8.js","./index-legacy.c8b60294.js","./index-legacy.6e10cd37.js","./index.module-legacy.7ae59c2a.js","./music-legacy.1c924052.js","./use-tab-status-legacy.5d29085f.js","./use-id-legacy.30c2e9af.js","./index-legacy.c3bbeade.js"],(function(e){"use strict";var t,r,a,o,l,u,c,_,s,d,m,f,v,p,g,h,z,b,y,S,x,w;return{setters:[function(e){t=e.d,r=e.i,a=e.A,o=e.B,l=e.P,u=e.Q,c=e.S,_=e.U,s=e.C,d=e.aT,m=e.F,f=e.e,v=e.T},function(e){p=e.S},function(e){g=e.L},function(){},function(e){h=e.F},function(e){z=e.C},function(e){b=e.I},function(e){y=e.c},function(e){S=e.s},function(e){x=e.g,w=e.m},function(){},function(){},function(){}],execute:function(){var j,k,I={item:"_item_18izn_1",header:"_header_18izn_8",mate:"_mate_18izn_14",icon:"_icon_18izn_19",info:"_info_18izn_25",btn:"_btn_18izn_53",vip:"_vip_18izn_61",free:"_free_18izn_65",charge:"_charge_18izn_69",footer:"_footer_18izn_73",user:"_user_18izn_78",userIcon:"_userIcon_18izn_84",favorite:"_favorite_18izn_92",tags:"_tags_18izn_95"},O={CHARGE:"点播",FREE:"免费",VIP:"VIP"};!function(e){e.UNPASS="拒绝",e.DOING="审核中",e.PASS="通过"}(j||(j={})),function(e){e.UNPASS="#f56c6c",e.DOING="#909399",e.PASS="#67c23a"}(k||(k={}));var P=t({name:"MusicItem",props:{data:{type:Object,default:{}},onClick:{type:Function}},emits:["favorite"],setup:function(e){var n=e.onClick,t=e.data;return function(){var e=t.musicPrice>0?"charge":"free";return r("div",{class:I.item,onClick:function(){null==n||n(t)}},[r("header",{class:I.header},[r("div",{class:I.mate},[r(b,{src:"./assets/music-icon.fd0e8ce9.png",round:!0,class:I.icon},null),r("div",{class:I.info},[r("h4",{class:"van-multi-ellipsis--l2"},[t.musicSheetName]),r("p",null,[r("div",null,[r("span",null,[a("审核状态:")," ",r("b",{style:{color:k[t.auditStatus],fontWeight:"bold"}},[j[t.auditStatus]])]),r("span",null,[a("上传作者: "),t.username])]),r("div",null,[r("span",null,[a("收费价格: "),t.musicPrice,a("元")]),r("span",null,[a("审批人员: "),t.auditName])])])])]),r("div",{class:I.buttons},[r(o,{class:y(I.btn,I[e])},{default:function(){return[O[e.toLocaleUpperCase()]]}})])])])}}});e("default",t({name:"ReviewList",props:{hideSearch:{type:Boolean,default:!1},defauleParams:{type:Object,default:function(){return{}}},onItemClick:{type:Function,default:function(){}},teacherId:{type:String||Number,default:""}},setup:function(e,t){var b=e.hideSearch,y=e.defauleParams,j=(e.onItemClick,e.teacherId,t.expose);localStorage.setItem("behaviorId",x());var k=l();u();var I={},O=k.query;O.version&&(I.version=O.version||"");var C=c(i(i({search:k.query.search||"",musicTagIds:k.query.tagids||"",page:1},I),y)),N=_(null),D=_(!1),A=_(!1),G=_(!1),L=_(!1),R=function(e){C.page=1,C.search=e,N.value=null,E()},E=function(){var e=n(regeneratorRuntime.mark((function e(){var n,t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!D.value){e.next=2;break}return e.abrupt("return");case 2:return D.value=!0,G.value=!1,e.prev=4,e.next=7,f.post("/api-admin/music/sheet/audit/list",{data:i({},C)});case 7:n=e.sent,N.value&&(r=((null===(t=N.value)||void 0===t?void 0:t.rows)||[]).concat(n.data.rows||[]),N.value.rows=r),N.value=N.value||n.data,C.page=n.data.pageNo+1,A.value=n.data.pageNo>=n.data.totalPage,e.next=17;break;case 14:e.prev=14,e.t0=e.catch(4),G.value=!0;case 17:D.value=!1;case 18:case"end":return e.stop()}}),e,null,[[4,14]])})));return function(){return e.apply(this,arguments)}}();j({onSearch:R,onComfirm:function(e){var n=Object.values(e).flat().filter(Boolean).join(",");C.musicTagIds=n,C.page=1,N.value=null,E(),L.value=!1}});var U=_(""),V=_(null),F=_(!1),T=function(){var e=n(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,f.post("/api-admin/music/sheet/audit",{data:n});case 3:v.success("提交成功"),F.value=!1,U.value="",R(C.search),e.next=11;break;case 9:e.prev=9,e.t0=e.catch(0);case 11:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(n){return e.apply(this,arguments)}}();return function(){return r(m,null,[r(g,{loading:D.value,finished:A.value,"finished-text":N.value&&N.value.rows.length?"没有更多了":"",onLoad:E,error:G.value},{default:function(){return[!b&&r(p,{class:S.sticky},{default:function(){return[r(z,{onSearch:R},null)]}}),N.value&&N.value.rows.length?N.value.rows.map((function(e){return r(P,{data:e,onClick:function(){V.value=i({},e),F.value=!0,console.log(e)}},null)})):!D.value&&r(s,{tips:"暂无曲目",classImgSize:"SMALL",btnStatus:!1},null)]}}),r(d,{position:"bottom",closeable:!0,style:{minHeight:"30%"},show:!!V.value&&F.value,onClosed:function(){return V.value=null},onClose:function(){return F.value=!1},teleport:"body"},{default:function(){var e,n,t,i,l,u;return[r(h,{label:"曲目名称",readonly:!0,modelValue:null===(e=V.value)||void 0===e?void 0:e.musicSheetName},null),r(h,{label:"曲谱检查",readonly:!0,isLink:!0,modelValue:"立即查看",onClick:function(){var e;return w({id:null===(e=V.value)||void 0===e?void 0:e.musicSheetId},void 0,{client:"teacher"})}},null),"DOING"===(null===(n=V.value)||void 0===n?void 0:n.auditStatus)?r(m,null,[r(h,{readonly:"DOING"!==(null===(t=V.value)||void 0===t?void 0:t.auditStatus),modelValue:U.value,"onUpdate:modelValue":function(e){return U.value=e},rows:"3",clearable:!0,autosize:!0,label:"审核理由",type:"textarea",placeholder:"请输入审核理由",required:"DOING"===(null===(i=V.value)||void 0===i?void 0:i.auditStatus)},null),r("div",{style:{display:"flex"}},[r(o,{disabled:!U.value&&"DOING"===(null===(l=V.value)||void 0===l?void 0:l.auditStatus),block:!0,type:"danger",onClick:function(){var e;return T({musicSheetId:null===(e=V.value)||void 0===e?void 0:e.musicSheetId,authStatus:"UNPASS",remark:U.value})}},{default:function(){return[a("拒绝")]}}),r(o,{disabled:!U.value&&"DOING"===(null===(u=V.value)||void 0===u?void 0:u.auditStatus),block:!0,type:"primary",onClick:function(){var e;return T({musicSheetId:null===(e=V.value)||void 0===e?void 0:e.musicSheetId,authStatus:"PASS",remark:U.value})}},{default:function(){return[a("同意")]}})])]):null]}})])}}}))}}}))}();