| 1 |
- System.register(["./index-legacy-376fb4fc.js","./index-legacy-b9be3c32.js","./index-legacy-6dd012fb.js","./index-legacy-f88f916f.js","./Scrollbar-legacy-cbb06111.js"],(function(e,t){"use strict";var i,a,r,n,o,l,s,c,d,u,h,p,_,g,f,y,m,b,v,w,j,S,A,C,I,T,L,x,B,R,U,q,E,D,z,k,F,P,O,N,M,G,V;return{setters:[e=>{i=e.cz,a=e.cA,r=e.d,n=e.cB,o=e.cC,l=e.$,s=e.cD,c=e.cE,d=e.as,u=e.cF,h=e.cd,p=e.c,_=e.bW,g=e.f,f=e.cG,y=e.j,m=e.o,b=e.k,v=e.B,w=e.c7,j=e.y,S=e.aG,A=e.b,C=e.e,I=e.r,T=e.q,L=e.N,x=e.g,B=e.F,R=e.cH,U=e.i,q=e.m,E=e.n,D=e.bX},e=>{z=e.p,k=e.r,F=e.u,P=e.C,O=e.T,N=e.m},e=>{M=e.T},e=>{G=e.u},e=>{V=e.N}],execute:function(){var K=document.createElement("style");K.textContent="._trainType_1yjjh_1{display:inline-block;width:24.0625vw;background:#ECF6FF;border-radius:.83333vw;padding:1.04167vw;position:relative}._trainType_1yjjh_1 ._overflowBg_1yjjh_9{position:absolute;top:0;left:0;width:100%;height:100%;z-index:9;padding:1.04167vw;cursor:move}._train-header_1yjjh_19{display:flex;align-items:center;justify-content:space-between;position:relative}._train-header_1yjjh_19 ._title_1yjjh_25{display:flex;align-items:center;font-size:.9375vw;font-weight:600;color:#131415}._train-header_1yjjh_19 ._title_1yjjh_25 ._title-tag_1yjjh_32{width:1.45833vw;height:1.45833vw;margin-right:.41667vw}._train-header_1yjjh_19 ._title_1yjjh_25 ._title-text_1yjjh_37{max-width:10.41667vw}._train-header_1yjjh_19 ._btn_1yjjh_40{padding:0 .625vw;height:1.66667vw;background:linear-gradient(270deg,#23C3FF 0%,#007AFE 100%);font-size:.83333vw;font-weight:600;color:#fff;line-height:1.14583vw;--n-border: 0 !important;--n-border-hover: 0 !important;--n-border-pressed: 0 !important;--n-border-focus: 0 !important}._train-header_1yjjh_19 ._btn_1yjjh_40:hover,._train-header_1yjjh_19 ._btn_1yjjh_40:active,._train-header_1yjjh_19 ._btn_1yjjh_40:visited,._train-header_1yjjh_19 ._btn_1yjjh_40:focus{border:0;color:#fff}._train-header_1yjjh_19 ._btn_1yjjh_40 img{margin-left:.52083vw;width:.41667vw;height:.52083vw}._train-header_1yjjh_19 ._iconDelete_1yjjh_65{position:absolute;right:0px;top:0px;z-index:11;display:flex;height:1.5625vw;padding:0}._train-header_1yjjh_19 ._iconDelete_1yjjh_65 img{height:1.5625vw;width:1.5625vw}._train-content_1yjjh_78{margin:1.04167vw 0;height:12.39583vw;background:#FFFFFF;border-radius:.57292vw;border:1px solid #74BAFF;position:relative;overflow:hidden}._train-content_1yjjh_78 .n-image{width:100%;height:inherit}._train-content_1yjjh_78 .n-image img{width:100%;height:fit-content}._train-content_1yjjh_78 ._preview_1yjjh_95{position:absolute;opacity:0;visibility:hidden;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.7);display:flex;align-items:center;justify-content:center;transition:all .2s cubic-bezier(.175,.885,.32,1.275)}._train-content_1yjjh_78 ._preview_1yjjh_95 ._previewBtn_1yjjh_109{background:#fff;height:2.29167vw;padding:0 2.29167vw;border-radius:.625vw}._train-content_1yjjh_78:hover ._preview_1yjjh_95{opacity:1;visibility:visible;transition:all .3s cubic-bezier(.175,.885,.32,1.275)}._train-footer_1yjjh_120{display:flex;align-items:center;justify-content:space-between}._train-footer_1yjjh_120 ._type_1yjjh_125{gap:.41667vw .52083vw!important}._train-footer_1yjjh_120 .n-tag{font-size:.72917vw;font-weight:500;color:#0378ec;line-height:1.04167vw;border:1px solid #198CFE;border-radius:.3125vw;background-color:transparent;height:1.45833vw}._train-footer_1yjjh_120 ._operation_1yjjh_138{display:flex;height:1.35417vw;padding:0}._train-footer_1yjjh_120 ._operation_1yjjh_138 img{height:1.35417vw;width:1.35417vw}._evaluationType_1yjjh_147{background:#FFF0EB}._evaluationType_1yjjh_147 ._btn_1yjjh_40{background:linear-gradient(270deg,#FF7B57 0%,#FF3460 100%)}._evaluationType_1yjjh_147 ._train-content_1yjjh_78{border:1px solid rgba(249,45,83,.5)}._evaluationType_1yjjh_147 ._train-footer_1yjjh_120 .n-tag{color:#f92d53;border:1px solid #F92D53}._offShelfBg_1yjjh_160{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:.72917vw;background-color:rgba(0,0,0,.7);z-index:10;display:flex;align-items:center;justify-content:center;flex-direction:column}._offShelfBg_1yjjh_160 ._offShelfTips_1yjjh_174{font-size:1.14583vw;font-weight:600;color:#fff;line-height:1.5625vw;padding-bottom:1.66667vw}._offShelfBg_1yjjh_160 ._offShelfBtn_1yjjh_181{height:2.29167vw;border-radius:.52083vw;min-width:6.45833vw}._trainUpdate_my1j3_1{padding:1.25vw 1.5625vw}._trainUpdate_my1j3_1 ._updateBtnGroup_my1j3_4{padding:0;justify-content:center!important}._trainUpdate_my1j3_1 ._updateBtnGroup_my1j3_4 .n-button{height:2.5vw!important;min-width:8.125vw}._trainUpdate_my1j3_1 ._switch_my1j3_12{height:1.92708vw!important;border-radius:.41667vw}._trainUpdate_my1j3_1 ._switch_my1j3_12._active_my1j3_16{background:#198CFE;color:#fff}._trainUpdate_my1j3_1 .n-input-group-label{width:3.95833vw;padding:0;text-align:center;background-color:#fff;border-radius:.41667vw}._trainUpdate_my1j3_1 .n-input{border-radius:.41667vw}._trainUpdate_my1j3_1 ._scoreGroup_my1j3_30{display:flex}._selectMusic_1qfht_1 .n-tabs-tab-pad{width:1.25vw!important}._selectMusic_1qfht_1 .n-tabs-nav{padding:.625vw 1.04167vw 1.25vw}._selectMusic_1qfht_1 .n-tabs-tab{color:#8b8d98;font-size:1.14583vw;padding-top:.625vw;padding-bottom:.3125vw;line-height:1.14583vw}._selectMusic_1qfht_1 .n-tabs-tab.n-tabs-tab--active{font-weight:600!important;color:#131415!important}._selectMusic_1qfht_1 .n-tabs-tab__label{z-index:10}._selectMusic_1qfht_1 .n-tabs-bar{height:.52083vw;background:linear-gradient(90deg,#77BBFF 0%,rgba(163,231,255,.22) 100%);z-index:0;bottom:.10417vw}._selectMusic_1qfht_1 .n-tab-pane{padding-top:0!important}._selectMusic_1qfht_1 ._close_1qfht_30{padding:0}._selectMusic_1qfht_1 ._close_1qfht_30 .n-icon{font-size:var(--n-close-size);color:var(--n-close-icon-color)}._listContainer_1qfht_37{margin-bottom:1.04167vw;max-height:50vh;min-height:50vh}._listContainer_1qfht_37 ._listSection_1qfht_42{min-height:50vh}._listContainer_1qfht_37 ._emptySection_1qfht_45{display:flex;align-items:center}._list_1qfht_37{margin-top:.52083vw;padding:0 2.08333vw;margin-bottom:.625vw;display:flex;flex-flow:row wrap;justify-content:flex-start;gap:1.14583vw}._searchGroup_1qfht_58{position:relative;padding:0 2.08333vw}._searchGroup_1qfht_58 .n-form-item .n-form-item-label{font-size:.88542vw;font-weight:600;color:#131415;line-height:1.25vw}._searchGroup_1qfht_58 .n-form-item .n-button{height:1.66667vw;font-size:.88542vw;border-radius:.41667vw;color:rgba(0,0,0,.6)}._searchGroup_1qfht_58 .n-form-item .n-button--primary-type{color:#131415}._searchGroup_1qfht_58 .n-form-item-feedback-wrapper{min-height:.72917vw}._inputSearch_1qfht_80{position:absolute;top:.20833vw;right:2.08333vw;width:18.75vw!important;height:2.1875vw!important;font-size:.83333vw}._inputSearch_1qfht_80 .n-input-wrapper{padding-left:.625vw;padding-right:.20833vw}._inputSearch_1qfht_80 ._searchBtn_1qfht_92{height:1.77083vw;border-radius:.41667vw;font-size:.78125vw;font-weight:500}._spaceSection_1qfht_98{width:76%}._spaceSection_1qfht_98>div{line-height:var(--n-blank-height)}\n",document.head.appendChild(K);const Q=i("input-group-label","\n position: relative;\n user-select: none;\n -webkit-user-select: none;\n box-sizing: border-box;\n padding: 0 12px;\n display: inline-block;\n border-radius: var(--n-border-radius);\n background-color: var(--n-group-label-color);\n color: var(--n-group-label-text-color);\n font-size: var(--n-font-size);\n line-height: var(--n-height);\n height: var(--n-height);\n flex-shrink: 0;\n white-space: nowrap;\n transition: \n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier);\n",[a("border","\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n border-radius: inherit;\n border: var(--n-group-label-border);\n transition: border-color .3s var(--n-bezier);\n ")]),H=Object.assign(Object.assign({},o.props),{size:{type:String,default:"medium"},bordered:{type:Boolean,default:void 0}}),Z=r({name:"InputGroupLabel",props:H,setup(e){const{mergedBorderedRef:t,mergedClsPrefixRef:i,inlineThemeDisabled:a}=n(e),r=o("Input","-input-group-label",Q,u,e,i),d=l((()=>{const{size:t}=e,{common:{cubicBezierEaseInOut:i},self:{groupLabelColor:a,borderRadius:n,groupLabelTextColor:o,lineHeight:l,groupLabelBorder:c,[s("fontSize",t)]:d,[s("height",t)]:u}}=r.value;return{"--n-bezier":i,"--n-group-label-color":a,"--n-group-label-border":c,"--n-border-radius":n,"--n-group-label-text-color":o,"--n-font-size":d,"--n-line-height":l,"--n-height":u}})),h=a?c("input-group-label",l((()=>e.size[0])),d,e):void 0;return{mergedClsPrefix:i,mergedBordered:t,cssVars:a?void 0:d,themeClass:null==h?void 0:h.themeClass,onRender:null==h?void 0:h.onRender}},render(){var e,t,i;const{mergedClsPrefix:a}=this;return null===(e=this.onRender)||void 0===e||e.call(this),d("div",{class:[`${a}-input-group-label`,this.themeClass],style:this.cssVars},null===(i=(t=this.$slots).default)||void 0===i?void 0:i.call(t),this.mergedBordered?d("div",{class:`${a}-input-group-label__border`}):null)}}),W=e("u",h("prepare-lessons-store",{state:()=>({subjectId:null,baseCourseware:{},selectKey:"",lessonCoursewareId:"",lessonCoursewareDetailId:"",treeList:[],coursewareList:[],trainList:[],tabType:"courseware",selectMusicStatus:!1,selectResourceStatus:!1,isAddResource:!1,isAddTrain:!1}),getters:{getSubjectId(){return this.subjectId},getBaseCourseware(){return this.baseCourseware},getSelectKey(){return this.selectKey},getLessonCoursewareId(){return this.lessonCoursewareId},getLessonCoursewareDetailId(){return this.lessonCoursewareDetailId},getTreeList(){return this.treeList},getCoursewareList(){return this.coursewareList},getTrainList(){return this.trainList},getTabType(){return this.tabType},getSelectMusicStatus(){return this.selectMusicStatus},getSelectResourceStatus(){return this.selectResourceStatus},getIsAddResource(){return this.isAddResource},getIsAddTrain(){return this.isAddTrain}},actions:{setSubjectId(e){this.subjectId=e},setBaseCourseware(e){this.baseCourseware=e},setSelectKey(e){this.selectKey=e},setLessonCoursewareId(e){this.lessonCoursewareId=e},setLessonCoursewareDetailId(e){this.lessonCoursewareDetailId=e},setTreeList(e){this.treeList=e},setCoursewareList(e){this.coursewareList=e},setTrainList(e){this.trainList=e},setTabType(e){this.tabType=e},setSelectMusicStatus(e){this.selectMusicStatus=e},setSelectResourceStatus(e){this.selectResourceStatus=e},setIsAddResource(e){this.isAddResource=e},setIsAddTrain(e){this.isAddTrain=e}}})),Y="_trainType_1yjjh_1",J="_overflowBg_1yjjh_9",X="_train-header_1yjjh_19",$="_title_1yjjh_25",ee="_title-tag_1yjjh_32",te="_title-text_1yjjh_37",ie="_btn_1yjjh_40",ae="_iconDelete_1yjjh_65",re="_train-content_1yjjh_78",ne="_preview_1yjjh_95",oe="_previewBtn_1yjjh_109",le="_train-footer_1yjjh_120",se="_type_1yjjh_125",ce="_operation_1yjjh_138",de="_evaluationType_1yjjh_147",ue="_offShelfBg_1yjjh_160",he="_offShelfTips_1yjjh_174",pe="_offShelfBtn_1yjjh_181",_e=""+new URL("p-tag-db7b6399.svg",t.meta.url).href,ge=""+new URL("e-tag-e90db03d.svg",t.meta.url).href,fe=""+new URL("p-edit-ecf6e1a4.svg",t.meta.url).href,ye=""+new URL("e-edit-a0caffbb.svg",t.meta.url).href,me=""+new URL("icon-pause-a04ae1da.svg",t.meta.url).href,be=""+new URL("p-delete-0e4c7354.svg",t.meta.url).href,ve=""+new URL("e-delete-42180152.svg",t.meta.url).href;e("T",r({name:"train-type",props:{type:{type:String,default:"homework"},item:{type:Object,default:()=>({})},isDelete:{type:Boolean,default:!1},offShelf:{type:Boolean,default:!1}},emits:["click","delete","edit","offShelf"],setup(e,{emit:t}){const i=p(),a=_(),r=()=>{const t=`${/(localhost|192)/.test(location.host)?"https://dev.kt.colexiu.com":location.origin}/instrument?platform=pc&modelType=practise&id=${e.item.musicId}&Authorization=${i.getToken}`;window.open(t,"_blank")};return()=>g("div",{class:[Y,"EVALUATION"===e.item.trainingType?de:""],onClick:()=>t("click",e.item)},[e.isDelete&&g("div",{class:J},null),g("div",{class:X},[g("div",{class:$},[g("img",{src:"EVALUATION"===e.item.trainingType?ge:_e,class:ee},null),g(f,{class:te,tooltip:!1},{default:()=>[e.item.musicName]})]),e.isDelete?g(y,{class:ae,quaternary:!0,round:!0,onClick:i=>{i.stopPropagation(),t("delete",e.item)}},{default:()=>[g("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADYAAAA2CAYAAACMRWrdAAAAAXNSR0IArs4c6QAACXxJREFUaEPdWgtUlVUW/vZ9cuHCFdFRscmctKZU1hpKRAMjHTVNTXzMKDJOy4Uz+UrHx6So0zRhPtDUwFyZk9lSsBIc32ipOIgLHLEJ07IyH42ZIeB9cbnPM2tf77Ubgfw/IGBnLZco++yzv7P3v89+EZpwCSEIQE8ACQB6AHgYQBcAYQBCfUeZAZgAXAZwHsBZAPkAPiUi0VTisCCNWj4w/QFMAjACQPsGMiwDsAfAuwD+3ViQDQbmAzQOwD8AdPODEUKY3d9cOus8VeRyni3Vu776or0wG/XCatYzDYWEWhRhBovywYfK1D2iLOrH+6pV9z/A2mWt+tdXAJYAeL+hABsETAjBprYMwGMABDzu665zZy5U5W4PdRTkRwm3Uy1Ha6RUOzX9E0qDE8dbVI/06galsqNv/2kALxLRUTn8vBcoZ4MQ4gEA6wAM9gOyvvPmFVvW23HCIxRyeNVFSwry6JJTCkP+MKUrlMoOPrpDAGYS0UWpZ0gGJoSIB7ANQFsIYao+8K/PLBmr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qEqa/Ok5nYo7ChCklO26iZP5ck5LygAHxDRrdJXLUvqAAsX5hmg0llwRGVa/reJHputWZ4ChU5XEZaalq1+IoFB8B8GdLtz2ShgPofyIAAekQiGzeqxvLH2PlvenlFw36UIRaW26YaO3KV/ftY16EK4GMmZ8WYi+lKKSUvSmJ+REIK1xPX9X3uraOVlwvRa2qOu4sJn5AbOdd60gjya2Ph9+jmLzivatvNXV9nr5RJRuRRQTCMLWABA1h4Hyp35/zzlZeTI293Gduyjnu6vL8QIj1tWskoKpVP5q+4ntU8NPBc0eGSlIsILiEMjdun7iIiLoLJWg4D5TJP39gLwWwDcSeR/C1RZyX4kL6S65GSk5+qVTp6y7zvDaQ8Vdod3dJa0GjPUWrOi/S+uqn7Z5ZoqOuaaNmGIVRESEigLa4ZH+UqbdRAz8Op8jUPu//IwCceanBP5rSFwxvcWcP8F/PT++Rv6DMDHAC41FJCfbYM1Vptd+EDynBP3qPhvDs/4u+Q6hL98zmFQNQAjAA6DOIfiyPx6Y8EEyvR/5pRtlt78FI8AAAAASUVORK5CYII="},null)]}):g(y,{class:ie,round:!0,onClick:r},{default:()=>["EVALUATION"===e.item.trainingType?"评测模式":"练习模式",g("img",{src:me},null)]})]),g("div",{class:re},[g(m,{src:e.item.coverImg,previewDisabled:!0,objectFit:"cover"},null),g("div",{class:ne},[g(y,{strong:!0,secondary:!0,class:oe,onClick:r},{default:()=>[b("预览")]})])]),g("div",{class:le},[g(v,{class:se},{default:()=>[e.item.typeList?.map((e=>{return g(w,null,"function"==typeof(t=e)||"[object Object]"===Object.prototype.toString.call(t)&&!S(t)?e:{default:()=>[e]});var t}))]}),g(v,{size:6},{default:()=>[g(j("n-button"),{quaternary:!0,disabled:e.isDelete,class:ce,onClick:i=>{i.stopPropagation(),t("edit",e.item)}},{default:()=>[g("img",{src:"EVALUATION"===e.item.trainingType?ye:fe},null)]}),"homework"===e.type&&g(j("n-button"),{quaternary:!0,disabled:e.isDelete,class:ce,onClick:i=>{i.stopPropagation(),(()=>{const i=a.warning({title:"提示",content:"您确定是否删除?",positiveText:"确定",negativeText:"取消",onPositiveClick:()=>{i.loading=!0,t("delete",e.item)}})})()}},{default:()=>[g("img",{src:"EVALUATION"===e.item.trainingType?ve:be},null)]})]})]),e.offShelf&&g("div",{class:ue},[g("p",{class:he},[b("该资源已被平台下架")]),g(y,{type:"primary",class:pe,onClick:()=>t("offShelf")},{default:()=>[b("确认")]})])])}}));const we="_trainUpdate_my1j3_1",je="_updateBtnGroup_my1j3_4",Se="_switch_my1j3_12",Ae="_active_my1j3_16",Ce="_scoreGroup_my1j3_30",Ie=(e("a",r({name:"train-update",props:{item:{type:Object,default:()=>({})},type:{type:String,default:"train"}},emits:["close","confirm"],setup(e,{emit:t}){const i=A(),a=C({id:null,uploading:!1,baseMaxScore:99,type:"PRACTICE",musicId:"",coursewareKnowledgeDetailId:"",minScore:null,maxScore:null,subjectId:"",coverImg:"",practiceSpeed:null,practiceTimes:null,difficulty:"BEGINNER",evaluationSpeed:null,evaluationScore:null}),r=I();return T((()=>{const t=e.item;t.trainId?(a.id=t.trainId,a.minScore=t.practiceChapterBegin,a.maxScore=t.practiceChapterEnd,a.practiceSpeed=t.practiceSpeed,a.type=t.trainingType,"PRACTICE"===t.trainingType?a.practiceTimes=t.trainingTimes:a.evaluationScore=t.trainingTimes,a.difficulty=t.evaluateDifficult||"BEGINNER",a.evaluationSpeed=t.evaluateSpeed):(a.minScore=1,a.maxScore=t.practiceChapterMax?t.practiceChapterMax:1),a.baseMaxScore=t.practiceChapterMax||99,a.musicId=t.id,a.coursewareKnowledgeDetailId=t.coursewareKnowledgeDetailId,a.subjectId=t.subjectId,a.coverImg=t.coverImg})),()=>g("div",{class:we},[g(L,{ref:r,model:a,labelAlign:"right",labelPlacement:"left"},{default:()=>[g(x,{label:"训练方式",path:"type",rule:[{required:!0,message:"请选择训练方式"}]},{default:()=>[g(v,null,{default:()=>[g(y,{secondary:!0,class:[Se,"PRACTICE"===a.type?Ae:""],onClick:()=>a.type="PRACTICE"},{default:()=>[b("练习")]}),g(y,{secondary:!0,class:[Se,"EVALUATION"===a.type?Ae:""],onClick:()=>a.type="EVALUATION"},{default:()=>[b("评测")]})]})]}),"PRACTICE"===a.type&&g(B,null,[g("div",{class:Ce},[g(x,{label:"练习小节",path:"minScore",rule:[{required:!0,message:"请输入最小练习小节",trigger:["blur","change"],type:"number"}]},{default:()=>[g(R,{value:a.minScore,"onUpdate:value":[e=>a.minScore=e,()=>{a.maxScore=null}],showButton:!1,min:1,max:a.baseMaxScore,placeholder:"最小练习小节",clearable:!0},null)]}),g("div",{style:{"--n-feedback-height":"24px",display:"flex",alignItems:"center",margin:"-2px 2% 0 2%",marginBottom:"var(--n-feedback-height)"}},[b("-")]),g(x,{path:"maxScore",rule:[{required:!0,message:"请输入最大练习小节",trigger:["blur","change"],type:"number"}]},{default:()=>[g(R,{value:a.maxScore,"onUpdate:value":e=>a.maxScore=e,showButton:!1,min:a.minScore||1,max:a.baseMaxScore,placeholder:"最大练习小节",clearable:!0},null)]})]),g(x,{label:"练习速度",path:"practiceSpeed",rule:[{required:!0,message:"请输入练习速度",trigger:["blur","change"],type:"number"}]},{default:()=>[g(R,{min:60,max:270,showButton:!1,style:{width:"100%"},value:a.practiceSpeed,"onUpdate:value":e=>a.practiceSpeed=e,placeholder:"练习速度范围60~270",clearable:!0},null)]}),g(x,{label:"练习时长",path:"practiceTimes",rule:[{required:!0,message:"请输入练习时长",trigger:["blur","change"],type:"number"}]},{default:()=>[g(U,null,{default:()=>[g(R,{min:0,showButton:!1,style:{width:"100%"},value:a.practiceTimes,"onUpdate:value":e=>a.practiceTimes=e,placeholder:"请输入练习时长",clearable:!0},null),g(Z,null,{default:()=>[b("分钟")]})]})]})]),"EVALUATION"===a.type&&g(B,null,[g(x,{label:"评测难度",path:"type",rule:[{required:!0,message:"请选择评测难度"}]},{default:()=>[g(v,null,{default:()=>[g(y,{secondary:!0,class:[Se,"BEGINNER"===a.difficulty?Ae:""],onClick:()=>a.difficulty="BEGINNER"},{default:()=>[b("入门级")]}),g(y,{secondary:!0,class:[Se,"ADVANCED"===a.difficulty?Ae:""],onClick:()=>a.difficulty="ADVANCED"},{default:()=>[b("进阶级")]}),g(y,{secondary:!0,class:[Se,"PERFORMER"===a.difficulty?Ae:""],onClick:()=>a.difficulty="PERFORMER"},{default:()=>[b("大师级")]})]})]}),g(x,{label:"评测速度",path:"evaluationSpeed",rule:[{required:!0,message:"请输入评测速度",trigger:["blur","change"],type:"number"}]},{default:()=>[g(R,{min:60,max:270,showButton:!1,style:{width:"100%"},value:a.evaluationSpeed,"onUpdate:value":e=>a.evaluationSpeed=e,placeholder:"评测速度范围60~270",clearable:!0},null)]}),g(x,{label:"合格分数",path:"evaluationScore",rule:[{required:!0,message:"请输入合格分数",trigger:["blur","change"],type:"number"}]},{default:()=>[g(U,null,{default:()=>[g(R,{min:0,showButton:!1,style:{width:"100%"},value:a.evaluationScore,"onUpdate:value":e=>a.evaluationScore=e,placeholder:"请输入合格分数",clearable:!0},null),g(Z,null,{default:()=>[b("分")]})]})]})]),g(v,{class:je},{default:()=>[g(y,{strong:!0,type:"default",round:!0,onClick:()=>t("close")},{default:()=>[b("取消")]}),g(y,{strong:!0,type:"primary",round:!0,onClick:()=>(async()=>{r.value?.validate((async r=>{if(!r){a.uploading=!0;try{const r={trainingType:a.type,musicId:a.musicId,coursewareKnowledgeDetailId:a.coursewareKnowledgeDetailId,subjectId:a.subjectId,id:a.id,coverImg:a.coverImg,trainingConfigJson:""},n={};"PRACTICE"===a.type?(n.practiceChapterBegin=a.minScore,n.practiceChapterEnd=a.maxScore,n.practiceSpeed=a.practiceSpeed,n.trainingTimes=a.practiceTimes):(n.evaluateDifficult=a.difficulty,n.evaluateSpeed=a.evaluationSpeed,n.trainingTimes=a.evaluationScore),n.practiceChapterMax=a.baseMaxScore,r.trainingConfigJson=n,"train"===e.type&&(a.id?(await z(r),i.success("修改成功")):(await k(r),i.success("添加成功"))),t("close"),t("confirm",r)}catch{}a.uploading=!1}}))})()},{default:()=>[b("确认")]})]})]})])}})),{selectMusic:"_selectMusic_1qfht_1",close:"_close_1qfht_30",listContainer:"_listContainer_1qfht_37",listSection:"_listSection_1qfht_42",emptySection:"_emptySection_1qfht_45",list:"_list_1qfht_37",searchGroup:"_searchGroup_1qfht_58",inputSearch:"_inputSearch_1qfht_80",searchBtn:"_searchBtn_1qfht_92",spaceSection:"_spaceSection_1qfht_98"}),Te=r({name:"search-group",emits:["search","add"],setup(e,{emit:t}){const i=F(),a=C({keyword:"",musicSheetCategoriesId:null}),r=G((()=>{t("search",a)}),500);return T((async()=>{await i.getMusicSheetCategory(),await i.getSubjects()})),()=>{let e;return g("div",{class:Ie.searchGroup},[g(L,{labelAlign:"left",labelPlacement:"left"},{default:()=>[g(x,{label:"教材:"},{default:()=>{return[g(v,{class:Ie.spaceSection},(t=e=i.getAllMusicCategories.map((e=>g(y,{secondary:a.musicSheetCategoriesId===e.id,quaternary:a.musicSheetCategoriesId!==e.id,strong:!0,focusable:!1,type:a.musicSheetCategoriesId===e.id?"primary":"default",onClick:()=>{a.musicSheetCategoriesId=e.id,r()}},{default:()=>[e.name]}))),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!S(t)?e:{default:()=>[e]}))];var t}}),g(M,{class:Ie.inputSearch,round:!0,onSearch:e=>{a.keyword=e,r()}},null)]})])}}});e("S",r({name:"select-music",emits:["add"],setup(e,{emit:t}){const i=W(),a=C({loading:!1,finshed:!1,pagination:{page:1,rows:20},searchGroup:{keyword:"",musicSheetCategoriesId:"",status:1,versionFlag:!1,subjectId:null},tableList:[]}),r=async()=>{try{1===a.pagination.page&&(a.loading=!0);const{data:e}=await N({...a.searchGroup,...a.pagination,subjectId:i.getSubjectId});a.loading=!1;const t=e.rows||[],r=[];t.forEach((e=>{r.push({id:e.id,coverImg:e.titleImg,type:"MUSIC",title:e.musicSheetName,isCollect:!1,isSelected:!0,content:e.id,xmlFileUrl:e.xmlFileUrl})})),a.tableList.push(...r),a.finshed=e.pages<=e.current}catch{a.loading=!1}},n=G((()=>{a.pagination.page=a.pagination.page+1,r()}),500);return T((()=>{r()})),()=>g("div",{class:Ie.selectMusic},[g(q,{animated:!0,defaultValue:"shareResources",paneClass:Ie.paneTitle,justifyContent:"center",paneWrapperClass:Ie.paneWrapperContainer},{default:()=>[g(E,{name:"shareResources",tab:"选择曲目"},{default:()=>[g(Te,{onSearch:e=>(async e=>{a.pagination.page=1,a.tableList=[],a.searchGroup=Object.assign(a.searchGroup,e),r()})(e)},null),g(V,{class:Ie.listContainer,onScroll:e=>{const t=e.target?.clientHeight,i=e.target?.scrollTop,r=e.target?.scrollHeight;t+i+20>=r&&!a.finshed&&!a.loading&&n()}},{default:()=>[g(D,{show:a.loading,size:"small"},{default:()=>[g("div",{class:[Ie.listSection,!a.loading&&a.tableList.length<=0?Ie.emptySection:""]},[a.tableList.length>0&&g("div",{class:Ie.list},[a.tableList.map((e=>g(P,{isShowAdd:!0,isShowCollect:!1,item:e,onAdd:()=>t("add",e)},null)))]),!a.loading&&a.tableList.length<=0&&g(O,null,null)])]})]})]})]})])}}))}}}));
|