1 |
- import{af as ue,ag as de,d as N,ab as me,ao as W,U as M,d9 as q,ap as fe,ad as O,da as pe,b2 as ge,c as he,b as X,r as C,f as t,w as Ae,x,V as L,aO as ye,k as y,F as R,bd as ve,Z as P,j as B,l as j,m as Q,G as Se,aQ as z,e as U,q as F,N as J,g as E,aP as D,i as K,ay as Ie,D as be,aR as $,A as Ce,E as Te,t as Be,v as G}from"./index-efb66432-1734950731618.js";import{C as ee}from"./index-1071cbc8-1734950731618.js";import{v as we}from"./urlUtils-7f82c85e-1734950731618.js";import{L as _e,C as Ee,v as xe,u as Ne}from"./api-5c1c8c26-1734950731618.js";import{T as Le}from"./index-b40f8126-1734950731618.js";import{N as te}from"./Scrollbar-10f58cff-1734950731618.js";import{T as Re}from"./index-80ba3b64-1734950731618.js";import{u as ae}from"./catchData-e017bf09-1734950731618.js";import{a as se,u as De}from"./index-5585b177-1734950731618.js";import{T as ke}from"./index-043f1db0-1734950731618.js";import{u as ie}from"./index-4064e060-1734950731618.js";const Ue=ue("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",[de("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 ")]),Me=Object.assign(Object.assign({},W.props),{size:{type:String,default:"medium"},bordered:{type:Boolean,default:void 0}}),Z=N({name:"InputGroupLabel",props:Me,setup(e){const{mergedBorderedRef:n,mergedClsPrefixRef:a,inlineThemeDisabled:s}=me(e),m=W("Input","-input-group-label",Ue,pe,e,a),i=M(()=>{const{size:v}=e,{common:{cubicBezierEaseInOut:p},self:{groupLabelColor:_,borderRadius:l,groupLabelTextColor:S,lineHeight:I,groupLabelBorder:r,[q("fontSize",v)]:A,[q("height",v)]:u}}=m.value;return{"--n-bezier":p,"--n-group-label-color":_,"--n-group-label-border":r,"--n-border-radius":l,"--n-group-label-text-color":S,"--n-font-size":A,"--n-line-height":I,"--n-height":u}}),o=s?fe("input-group-label",M(()=>e.size[0]),i,e):void 0;return{mergedClsPrefix:a,mergedBordered:n,cssVars:s?void 0:i,themeClass:o==null?void 0:o.themeClass,onRender:o==null?void 0:o.onRender}},render(){var e,n,a;const{mergedClsPrefix:s}=this;return(e=this.onRender)===null||e===void 0||e.call(this),O("div",{class:["".concat(s,"-input-group-label"),this.themeClass],style:this.cssVars},(a=(n=this.$slots).default)===null||a===void 0?void 0:a.call(n),this.mergedBordered?O("div",{class:"".concat(s,"-input-group-label__border")}):null)}}),Fe=ge("prepare-lessons-store",{state:()=>({subjectId:null,instrumentId:null,baseCourseware:{},selectKey:"",lessonCoursewareId:"",subjectList:[],instrumentList:[],lessonCoursewareDetailId:"",treeList:[],coursewareList:[],trainList:[],tabType:"courseware",selectMusicStatus:!1,selectResourceStatus:!1,isAddResource:!1,isEditResource:!1,iseditTrain:!1,isAddTrain:!1,classGroupId:null}),getters:{getSubjectId(){return this.subjectId},getInstrumentId(){return this.instrumentId},getBaseCourseware(){return this.baseCourseware},getSelectKey(){return this.selectKey},getSelectName(){var n;let e="";for(let a=0;a<this.getTreeList.length;a++){const s=this.getTreeList[a];s.id===this.selectKey&&(e=s.name),!e&&s.knowledgeList.length>0&&((n=s.knowledgeList)==null||n.forEach(m=>{m.id===this.selectKey&&(e=m.name)}))}return e},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},getIsEditResource(){return this.isEditResource},getIsEditTrain(){return this.iseditTrain},getIsAddTrain(){return this.isAddTrain},getSubjectList(){return this.subjectList},getInstrumentList(){return this.instrumentList},getFormatInstrumentList(){const e=[];return this.instrumentList.forEach(n=>{n.value=n.id,n.label=n.name,n.instruments&&n.instruments.length>0&&n.instruments.forEach(s=>{s.label=s.name,s.value=s.id});const a={value:n.id,label:n.name,id:n.id,name:n.name,instruments:[]};n.instruments&&(n.instruments.length==1?(a.value=n.instruments[0].id,a.label=n.instruments[0].name,a.id=n.id,a.name=n.name):n.instruments.length>1&&n.instruments.forEach(s=>{s.label=s.name,s.value=s.id,a.instruments.push({label:s.name,value:s.id,id:s.id,name:s.name})})),e.push(a)}),e},getSingleInstrumentList(){const e=[];return this.instrumentList.forEach(n=>{Array.isArray(n.instruments)&&n.instruments.forEach(a=>{e.push(a)})}),e},getClassGroupId(){return this.classGroupId}},actions:{setSubjectId(e){this.subjectId=e},setInstrumentId(e){this.instrumentId=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},setIsEditResource(e){this.isEditResource=e},setIsEditTrain(e){this.iseditTrain=e},setSubjectList(e){this.subjectList=e},setInstrumentList(e){this.instrumentList=e},setClassGroupId(e){this.classGroupId=e}}}),Pe="_trainType_1fux5_1",Ge="_overflowBg_1fux5_11",He="_iconDelete_1fux5_26",Ve="_trainDisabled_1fux5_31",je="_title_1fux5_40",qe="_btn_1fux5_55",Oe="_preview_1fux5_100",Qe="_previewBtn_1fux5_115",ze="_disPreview_1fux5_121",Ke="_disPreviewDivide_1fux5_134",Ze="_BProgress_1fux5_144",Ye="_audioPlayTypeSection_1fux5_176",We="_iconType_1fux5_183",Xe="_iconPlay_1fux5_188",Je="_iconSing_1fux5_196",$e="_type_1fux5_210",et="_operation_1fux5_216",tt="_iconEdit_1fux5_226",at="_trainInfo_1fux5_237",st="_trainName_1fux5_240",it="_PRACTICE_1fux5_262",nt="_EVALUATION_1fux5_265",lt="_tagList_1fux5_268",ot="_offShelfBg_1fux5_281",rt="_offShelfTips_1fux5_295",ct="_offShelfBtn_1fux5_302",ut="_removeVisiable_1fux5_307",dt="_studentRemove_1fux5_313",mt="_btnGroupModal_1fux5_325",ft="_reportModel_1fux5_332",c={trainType:Pe,overflowBg:Ge,iconDelete:He,trainDisabled:Ve,"train-header":"_train-header_1fux5_34",title:je,"title-tag":"_title-tag_1fux5_47","title-text":"_title-text_1fux5_52",btn:qe,"train-content":"_train-content_1fux5_80",preview:Oe,previewBtn:Qe,disPreview:ze,disPreviewDivide:Ke,BProgress:Ze,audioPlayTypeSection:Ye,iconType:We,iconPlay:Xe,iconSing:Je,"train-footer":"_train-footer_1fux5_204",type:$e,operation:et,iconEdit:tt,trainInfo:at,trainName:st,PRACTICE:it,EVALUATION:nt,tagList:lt,offShelfBg:ot,offShelfTips:rt,offShelfBtn:ct,removeVisiable:ut,studentRemove:dt,btnGroupModal:mt,reportModel:ft},pt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAv1JREFUaEPdmk3LElEUgJ+Xoi+VXmoXFlHbqIjQWhhoYAujRUofBG76C1K/ofAvtBGiD7RF5OIVUshFKREVbYsoaZcUal8U1XmZsdswztwZxzdus9M599zz3HvuuefcO0sY/iwt0P5NwBZL/yfgyyL6igpgK7Ab2AkkLMPXOQz+AQjICHgLvAY+zgs1D4CM8D5gD7Ac0pAPwCvgRdgZCgOw3jL8ILAhpOHOZt+Ap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C8uLoJ28hyILoToKMhMSm/fvq2E9E5qX1drOO3vUrQtLy/PAQslSxmdGwlpG0LTfHBwgOnpaaytkY8XfqH1zfnz55XFn0PRb0Oow0Z4o8qh8kjMpt+oUoHQoX2hrUyrlu3t7WF2dtY0FGiV1+x3Cibl5uYiMTHRSfZgeY5vZapQhDa7g2kgQ0uVp+EkU2hYEOSMDDpMLUXMN7tVIHSjQeg4RKAq9fb2orq6WkqNjYX09PSgqqpKVtmBj0PI7CW7u7tKRJ2OTMgUMqAzMzNISkqSUWzwAzMqEPJchY9UmdWO/JSNjQ2pNiQ1NdWpn2Gsor0jVSoU79CdPz7vWKZJf/cO7ppDobsx3tFuw/ChOzLe4X8DlGi+K6M1Rc71EK20KL8zYwsGtdXyvozJ8PGumBmgeJcQjROQd03VfEr2LjKbrVe8q+4B1pjeYwiBwXjPZQQYSt6DKsEiNn5P7tBzO/Tsjp0nd+i5HXp2J/qf3JERzjqJMv4Fq+ybxlEMybAAAAAASUVORK5CYII=",da=N({name:"train-type",props:{type:{type:String,default:"homework"},item:{type:Object,default:()=>({})},isDelete:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},isLarge:{type:Boolean,default:!1},offShelf:{type:Boolean,default:!1},isCLassWork:{type:Boolean,default:!1},from:{type:String,default:""}},emits:["click","delete","edit","offShelf"],setup(e,{emit:n}){const a=he(),s=X(),m=C(!1),i=C(!1),o=C({type:"MUSIC",content:e.item.musicId,title:e.item.musicName}),v=()=>{o.value={type:"MUSIC",content:e.item.musicId,title:e.item.musicName},i.value=!0},p=C(""),_=C(!1),l=r=>{if(!r.id){s.error("暂无评测记录");return}const A=a.getToken;p.value=we()+"/instrument/#/evaluat-report?id=".concat(r.id,"&Authorization=").concat(A),_.value=!0},S=async()=>{var r;try{if(!((r=e.item)!=null&&r.recordId)){s.error("暂无数据");return}const{data:A}=await _e({id:e.item.recordId});if(A.videoFilePath||A.recordFilePath){let u="";A.videoFilePath?u=z(A.videoFilePath):u=z(A.recordFilePath);const w=A.videoFilePath||A.recordFilePath;o.value.content=w,o.value.title=e.item.musicName,u==="video"?o.value.type="VIDEO":u==="audio"&&(o.value.type="SONG"),i.value=!0}else s.error("暂无数据")}catch(A){}},I=M(()=>{const r=e.item;return r?r.trainingType==="EVALUATION"?(r.trainingTimes||0)>=(r.allTimes||0):(r.trainingTimes?parseInt(r.trainingTimes/60+""):0)>=(r.allTimes||0):!1});return M(()=>!!(e.isDisabled&&!e.isCLassWork&&e.item.trainingType==="EVALUATION")),()=>{var r,A;return t("div",{class:[c.trainType,e.item.trainingType==="EVALUATION"?c.evaluationType:""],onClick:()=>n("click",e.item)},[t("div",{class:[c["train-content"],e.isDisabled&&!e.isCLassWork&&c.trainDisabled,e.isLarge&&c.trainDisabled],onClick:()=>{e.isDisabled&&!e.isCLassWork||v()}},[t(Ae,{src:e.item.coverImg,previewDisabled:!0,objectFit:"contain"},null),t(x,{class:c.audioPlayTypeSection},{default:()=>{var u,w;return[((u=e.item.audioPlayTypeArray)==null?void 0:u.includes("SING"))&&t(L,{trigger:"hover",showArrow:!1},{trigger:()=>t("span",{class:[c.iconType,c.iconSing]},null),default:"演唱场景"}),((w=e.item.audioPlayTypeArray)==null?void 0:w.includes("PLAY"))&&t(L,{trigger:"hover",showArrow:!1},{trigger:()=>t("span",{class:[c.iconType,c.iconPlay]},null),default:"演奏场景"})]}}),e.isDisabled&&!e.isCLassWork?t("div",{class:c.disPreview},[t(ye,{percentage:e.item.trainingType==="EVALUATION"?Number(e.item.trainingTimes)/Number(e.item.allTimes)*100:Number(e.item.trainingTimes)/60/Number(e.item.allTimes)*100,"offset-degree":180,type:"circle","rail-color":"8b8b8b",color:I.value?"#6CFFC1":"#FF7794",style:"width: 120px; margin: 0 0 10px;"},{default:()=>[t("div",{class:c.BProgress},[e.item.trainingType==="EVALUATION"?t("h4",null,[e.item.trainingTimes,t("span",null,[y("分")])]):t("h4",null,[e.item.trainingTimes?parseInt(e.item.trainingTimes/60+""):0,t("span",null,[y("分钟")])]),t("p",null,[e.item.trainingType==="EVALUATION"?"学生分数":"实际练习"," "])])]}),t("p",{class:c.disPreviewDivide},[e.item.trainingType==="EVALUATION"?"达标分数":"练习时长要求",e.item.allTimes,e.item.trainingType==="EVALUATION"?"分":"分钟"])]):null,e.isDelete&&t("img",{src:pt,class:c.iconDelete,onClick:u=>{u.stopPropagation(),n("delete",e.item)}},null)]),t("div",{class:c["train-footer"]},[t("div",{class:c.trainInfo},[t("div",{class:c.trainName},[t("span",{class:[c.type,c[e.item.trainingType]]},[e.item.trainingType==="EVALUATION"?"评测":"练习"]),t("div",{class:c["title-text"]},[t(Le,{text:e.item.musicName},null)])]),t("div",{class:c.tagList},[(r=e.item.typeList)==null?void 0:r.map((u,w)=>t(R,null,[t("span",null,[u]),e.item.typeList.length-1>w&&t(ve,{vertical:!0},null)]))])]),e.isDisabled?null:t(x,{size:12},{default:()=>[t(P("n-button"),{quaternary:!0,disabled:!e.isDelete,class:c.operation,onClick:u=>{u.stopPropagation(),n("edit",e.item)}},{default:()=>[t(L,{showArrow:!1},{trigger:()=>t("i",{class:c.iconEdit},null),default:"编辑"})]})]}),e.isDisabled&&!e.isCLassWork&&e.item.trainingType==="EVALUATION"&&((A=e.item)!=null&&A.recordId)?t(R,null,[t(x,{size:12},{default:()=>[t(P("n-button"),{quaternary:!0,disabled:e.isDelete,class:c.operation,onClick:u=>{u.stopPropagation(),l({id:e.item.recordId})}},{default:()=>[t(L,{showArrow:!1},{trigger:()=>t("img",{src:ht},null),default:"评测报告"})]}),t(P("n-button"),{quaternary:!0,disabled:e.isDelete,class:c.operation,onClick:u=>{u.stopPropagation(),S()}},{default:()=>[t(L,{showArrow:!1},{trigger:()=>t("img",{src:gt},null),default:"查看回放"})]})]})]):""]),e.offShelf&&t("div",{class:c.offShelfBg},[t("p",{class:c.offShelfTips},[y("该资源已被下架")]),t(B,{type:"primary",class:c.offShelfBtn,onClick:()=>n("offShelf")},{default:()=>[y("确认")]})]),t(j,{maskClosable:Q,show:m.value,"onUpdate:show":u=>m.value=u,preset:"card",class:["modalTitle",c.removeVisiable],title:"提示"},{default:()=>[t("div",{class:c.studentRemove},[t("p",null,[y("您确定是否删除?")]),t(x,{class:c.btnGroupModal,justify:"center"},{default:()=>[t(B,{round:!0,type:"primary",onClick:()=>{m.value=!1,n("delete",e.item)}},{default:()=>[y("确定")]}),t(B,{round:!0,onClick:()=>m.value=!1},{default:()=>[y("取消")]})]})])]}),t(ee,{from:e.from,show:i.value,"onUpdate:show":u=>i.value=u,item:o.value,isDownload:!1},null),t(j,{maskClosable:Q,show:_.value,"onUpdate:show":u=>_.value=u,preset:"card",class:["modalTitle background",c.reportModel],title:"评测报告"},{default:()=>[t("div",{class:c.reportContainer,style:{lineHeight:0}},[t("iframe",{width:"100%",height:"450px",frameborder:"0",onLoad:u=>{Se(u.target)},src:p.value},null)])]})])}}}),At="_trainUpdate_19qoy_1",yt="_updateBtnGroup_19qoy_4",vt="_active_19qoy_16",St="_difficultySpace_19qoy_20",It="_scoreGroup_19qoy_33",b={trainUpdate:At,updateBtnGroup:yt,switch:"_switch_19qoy_12",active:vt,difficultySpace:St,scoreGroup:It},ma=N({name:"train-update",props:{item:{type:Object,default:()=>({})},type:{type:String,default:"train"}},emits:["close","confirm"],setup(e,{emit:n}){X();const a=U({id:null,uploading:!1,baseMaxScore:99,type:"PRACTICE",musicId:"",musicName:"",coursewareKnowledgeDetailId:"",minScore:null,maxScore:null,subjectId:"",coverImg:"",containAccompaniment:null,audioPlayTypeArray:[],practiceSpeed:null,practiceTimes:null,difficulty:"BEGINNER",evaluationSpeed:null,evaluationScore:null}),s=C(),m=async()=>{var i;(i=s.value)==null||i.validate(async o=>{if(!o){a.uploading=!0;try{const v={trainingType:a.type,musicId:a.musicId,musicName:a.musicName,audioPlayTypeArray:a.audioPlayTypeArray,coursewareKnowledgeDetailId:a.coursewareKnowledgeDetailId,subjectId:a.subjectId,id:a.id,coverImg:a.coverImg,containAccompaniment:a.containAccompaniment,trainingConfigJson:""},p={};p.practiceChapterBegin=a.minScore,p.practiceChapterEnd=a.maxScore,a.type==="PRACTICE"?(p.practiceSpeed=a.practiceSpeed,p.trainingTimes=a.practiceTimes):(p.evaluateDifficult=a.difficulty,p.evaluateSpeed=a.evaluationSpeed,p.trainingTimes=a.evaluationScore),p.practiceChapterMax=a.baseMaxScore,v.trainingConfigJson=p,n("close"),n("confirm",v)}catch(v){}a.uploading=!1}})};return F(()=>{const i=e.item;i.trainId?(a.id=i.trainId,a.practiceSpeed=Number(i.practiceSpeed),a.type=i.trainingType,a.minScore=i.practiceChapterBegin,a.maxScore=i.practiceChapterEnd,i.trainingType==="PRACTICE"?a.practiceTimes=i.trainingTimes:a.evaluationScore=i.trainingTimes,a.difficulty=i.evaluateDifficult||"BEGINNER",a.evaluationSpeed=i.evaluateSpeed):(a.minScore=1,a.maxScore=i.practiceChapterMax?i.practiceChapterMax:1),a.audioPlayTypeArray=i.audioPlayTypeArray||[],a.containAccompaniment=i.containAccompaniment||null,a.baseMaxScore=i.practiceChapterMax||99,a.musicId=i.id,a.musicName=i.musicName,a.coursewareKnowledgeDetailId=i.coursewareKnowledgeDetailId,a.subjectId=i.subjectId,a.coverImg=i.coverImg}),()=>t("div",{class:b.trainUpdate},[t(J,{ref:s,model:a,labelAlign:"right",labelPlacement:"left"},{default:()=>[t(E,{label:"训练方式",path:"type",rule:[{required:!0,message:"请选择训练方式"}]},{default:()=>[t(x,null,{default:()=>[t(B,{secondary:!0,class:[b.switch,a.type==="PRACTICE"?b.active:""],onClick:()=>a.type="PRACTICE"},{default:()=>[y("练习")]}),e.item.containAccompaniment?t(B,{secondary:!0,class:[b.switch,a.type==="EVALUATION"?b.active:""],onClick:()=>a.type="EVALUATION"},{default:()=>[y("评测")]}):t(L,{showArrow:!1},{trigger:()=>t(B,{disabled:!0,secondary:!0,class:[b.switch]},{default:()=>[y("评测")]}),default:()=>"该曲目暂不支持评测"})]})]}),t("div",{class:b.scoreGroup},[t(E,{label:a.type==="PRACTICE"?"练习小节":"评测小节",path:"minScore",rule:[{required:!0,message:"请输入最小练习小节",trigger:["blur","change"],type:"number"}]},{default:()=>[t(D,{value:a.minScore,"onUpdate:value":[i=>a.minScore=i,()=>{a.maxScore=null}],showButton:!1,min:1,max:a.baseMaxScore,precision:0,placeholder:"最小练习小节",clearable:!0},null)]}),t("div",{style:{"--n-feedback-height":"24px",display:"flex",alignItems:"center",margin:"-2px 2% 0 2%",marginBottom:"var(--n-feedback-height)"}},[y("-")]),t(E,{path:"maxScore",rule:[{required:!0,message:"请输入最大练习小节",trigger:["blur","change"],type:"number"}]},{default:()=>[t(D,{value:a.maxScore,"onUpdate:value":i=>a.maxScore=i,showButton:!1,precision:0,min:a.minScore||1,max:a.baseMaxScore,placeholder:"最大练习小节",clearable:!0},null)]})]),a.type==="PRACTICE"&&t(R,null,[t(E,{label:"练习速度",path:"practiceSpeed",rule:[{required:!0,message:"请输入练习速度",trigger:["blur","change"],type:"number"}]},{default:()=>[t(D,{min:45,max:270,precision:0,showButton:!1,style:{width:"100%"},value:a.practiceSpeed,"onUpdate:value":i=>a.practiceSpeed=i,placeholder:"练习速度范围45~270",clearable:!0},null)]}),t(E,{label:"练习时长",path:"practiceTimes",rule:[{required:!0,message:"请输入练习时长",trigger:["blur","change"],type:"number"}]},{default:()=>[t(K,null,{default:()=>[t(D,{min:0,max:1e3,showButton:!1,precision:0,style:{width:"100%"},value:a.practiceTimes,"onUpdate:value":i=>a.practiceTimes=i,placeholder:"请输入练习时长",clearable:!0},null),t(Z,null,{default:()=>[y("分钟")]})]})]})]),a.type==="EVALUATION"&&t(R,null,[t(E,{label:"评测难度",path:"type",rule:[{required:!0,message:"请选择评测难度"}]},{default:()=>[t(x,{class:b.difficultySpace},{default:()=>[t(B,{secondary:!0,class:[b.switch,a.difficulty==="BEGINNER"?b.active:""],onClick:()=>a.difficulty="BEGINNER"},{default:()=>[y("入门级")]}),t(B,{secondary:!0,class:[b.switch,a.difficulty==="ADVANCED"?b.active:""],onClick:()=>a.difficulty="ADVANCED"},{default:()=>[y("进阶级")]}),t(B,{secondary:!0,class:[b.switch,a.difficulty==="PERFORMER"?b.active:""],onClick:()=>a.difficulty="PERFORMER"},{default:()=>[y("大师级")]})]})]}),t(E,{label:"达标分数",path:"evaluationScore",rule:[{required:!0,message:"请输入达标分数",trigger:["blur","change"],type:"number"}]},{default:()=>[t(K,null,{default:()=>[t(D,{min:0,max:100,precision:0,showButton:!1,style:{width:"100%"},value:a.evaluationScore,"onUpdate:value":i=>a.evaluationScore=i,placeholder:"请输入达标分数",clearable:!0},null),t(Z,null,{default:()=>[y("分")]})]})]})]),t(x,{class:b.updateBtnGroup},{default:()=>[t(B,{strong:!0,type:"default",round:!0,onClick:()=>n("close")},{default:()=>[y("取消")]}),t(B,{strong:!0,type:"primary",round:!0,onClick:()=>m()},{default:()=>[y("确认")]})]})]})])}}),bt="_theTipDialog_yxxpw_1",Ct="_tipCon_yxxpw_4",Tt="_tipBox_yxxpw_8",Bt="_tip_yxxpw_4",wt="_tipBtnBox_yxxpw_29",k={theTipDialog:bt,tipCon:Ct,tipBox:Tt,tip:Bt,tipBtnBox:wt},fa=N({name:"the-tip-dialog",props:{show:Boolean,title:{type:String,default:"提示"},cancelButtonText:{type:String,default:"取消"},confirmButtonText:{type:String,default:"确定"},cancelBtn:{type:Boolean,default:!0},confirmBtn:{type:Boolean,default:!0},content:{type:String,default:""}},emits:["close","confirm"],setup(e,{emit:n}){return()=>t(j,{class:["modalTitle",k.theTipDialog],"on-close":()=>{n("close")},show:e.show,preset:"card",title:e.title},{default:()=>[t("div",{class:k.tipCon},[t("div",{class:k.tipBox},[t(te,null,{default:()=>[t("div",{class:k.tip,innerHTML:e.content},null)]})]),t("div",{class:k.tipBtnBox},[e.cancelBtn&&t(B,{round:!0,onClick:()=>n("close")},{default:()=>[e.cancelButtonText]}),e.confirmBtn&&t(B,{type:"primary",round:!0,onClick:()=>n("confirm")},{default:()=>[e.confirmButtonText]})])])]})}}),_t="_selectMusic_fj7p5_1",Et="_close_fj7p5_37",xt="_listContainer_fj7p5_44",H={selectMusic:_t,close:Et,listContainer:xt},Nt="_selectMusic_1mm1o_1",Lt="_close_1mm1o_1",Rt="_listContainer_1mm1o_8",Dt="_emptySection_1mm1o_11",kt="_list_1mm1o_8",Ut="_searchGroup_1mm1o_24",Mt="_inputSearch_1mm1o_47",Ft="_searchBtn_1mm1o_62",Pt="_popSelect_1mm1o_68",Gt="_spaceSection2_1mm1o_78",Ht="_textBtn_1mm1o_87",Vt="_iconArrow_1mm1o_99",jt="_textBtnActive_1mm1o_108",qt="_spaceSection_1mm1o_78",Ot="_collapseWrap_1mm1o_124",Qt="_collaoseGroup_1mm1o_130",zt="_collaoseBtn_1mm1o_137",Kt="_isStart_1mm1o_142",Zt="_collapsSection_1mm1o_145",Yt="_collapsSectionEmpty_1mm1o_148",Wt="_isHidden_1mm1o_153",Xt="_hideButton_1mm1o_157",h={selectMusic:Nt,close:Lt,listContainer:Rt,emptySection:Dt,list:kt,searchGroup:Ut,inputSearch:Mt,searchBtn:Ft,popSelect:Pt,spaceSection2:Gt,textBtn:Ht,iconArrow:Vt,textBtnActive:jt,spaceSection:qt,collapseWrap:Ot,collaoseGroup:Qt,collaoseBtn:zt,isStart:Kt,collapsSection:Zt,collapsSectionEmpty:Yt,isHidden:Wt,hideButton:Xt};function Y(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!be(e)}const ne=N({name:"ChildNodeSearch",props:{activeRow:{type:Object,default:()=>({})},list:{type:Array,default:()=>[]}},emits:["selectChildTag"],setup(e,{emit:n}){const{activeRow:a}=$(e),s=C({});return Ce(()=>e.activeRow,()=>{a.value=e.activeRow,s.value={}}),()=>{var m;return t(R,null,[((m=a.value)==null?void 0:m.id)&&t(R,null,[t(E,{label:a.value.columnName+":"},{default:()=>[t(x,{class:h.spaceSection2},{default:()=>{var i;return[(i=a.value)==null?void 0:i.children.map(o=>t("span",{class:[h.textBtn,(a.value.activeIndex||"")==o.id&&h.textBtnActive],onClick:()=>{a.value.activeIndex=o.id;let v,p="";o.children?(v=[{columnName:o.children[0].columnName,name:"全部",id:""},...o.children],p=o.children[0].columnName,s.value={...o,columnName:p,activeIndex:"",children:v}):s.value={},n("selectChildTag",a.value.activeIndex)}},[o.name]))]}})]}),t(ne,{activeRow:s.value,onSelectChildTag:i=>{n("selectChildTag",i||a.value.activeIndex)}},null)])])}}}),Jt=N({name:"search-group",props:{type:{type:String,default:""}},emits:["search","add"],setup(e,{emit:n}){const a=ae(),s=U({name:"",bookVersionId:null,musicalInstrumentId:null}),m=U({tempSubjectId:null,gradeList:[],musicCategory:[]}),i=U({selectParents:{},tags:[],tagActiveId:"",tagActive:{},childSelectId:null}),o=d=>{n("search",{...s,bookVersionId:i.childSelectId||i.tagActiveId},d)},v=se(()=>{o()},500),p=C(),_=C([]),l=C(0),S=C(0),I=C(0),r=C(!1),A=C(!1),u=()=>{try{_.value=[...new Set(_.value)];let d=-1;_.value.forEach((g,T)=>{T===0?(I.value=1,d=g.offsetLeft):g.offsetLeft===d&&T!=0&&I.value++,r.value?g.style.display="block":I.value>1?g.style.display="none":g.style.display="block"}),A.value=!0}catch(d){}},w=d=>{const g={};return d==null||d.forEach(T=>{T.id===s.musicalInstrumentId&&(g.selected=!0,g.name=T.name)}),g},le=()=>{const d=a.getMusicTagTree;i.tags=[{columnName:d[0].columnName,name:"全部",id:""},...d],i.tagActiveId=i.tags[0].id},oe=d=>{i.tagActiveId=d.id,i.childSelectId=null;let g,T="";d.children?(g=[{columnName:d.children[0].columnName,name:"全部",id:""},...d.children],T=d.children[0].columnName,i.selectParents={...d,columnName:T,activeIndex:"",children:g}):i.selectParents={},o()},re=()=>{var g,T;const d=a.getSubjectInstrumentOnly;if(d.length>0){const f=d[0];f.instruments&&f.instruments.length>1?(m.tempSubjectId=(g=f.instruments[0])==null?void 0:g.value,s.musicalInstrumentId=(T=f.instruments[0])==null?void 0:T.value):s.musicalInstrumentId=f.value}};return F(async()=>{var d,g;await a.getMusicTagTreeApi(),le(),await a.getSubjects(),l.value=(d=p.value)==null?void 0:d.offsetHeight,S.value=((g=p.value)==null?void 0:g.offsetHeight)/I.value,u(),re(),o("timer")}),()=>{let d,g;return t("div",{class:h.searchGroup},[t(J,{labelAlign:"left",labelPlacement:"left"},{default:()=>{var T;return[t("div",{class:[h.collapsSection,e.type==="myResources"&&h.collapsSectionEmpty]},[t(E,{label:((T=i.tags[0])==null?void 0:T.columnName)+":"},{default:()=>[t(x,{class:h.spaceSection2},Y(d=i.tags.map(f=>t("span",{class:[h.textBtn,i.tagActiveId===f.id&&h.textBtnActive],onClick:()=>{oe(f)}},[f.name])))?d:{default:()=>[d]})]}),t(ne,{activeRow:i.selectParents,onSelectChildTag:f=>{i.childSelectId=f,o()}},null)]),t(E,{label:"乐器:"},{default:()=>[t(x,{class:h.spaceSection2},Y(g=a.getSubjectInstrumentOnly.map(f=>f.instruments&&f.instruments.length>1?t(Ie,{options:f.instruments,trigger:"hover",scrollable:!0,value:m.tempSubjectId,"onUpdate:value":[ce=>m.tempSubjectId=ce,()=>{s.musicalInstrumentId=m.tempSubjectId,o()}],key:f.value,class:[h.popSelect]},{default:()=>[t("span",{class:[h.textBtn,w(f.instruments).selected&&h.textBtnActive]},[w(f.instruments).name||f.name,t("i",{class:h.iconArrow},null)])]}):t("span",{class:[h.textBtn,s.musicalInstrumentId===f.value&&h.textBtnActive],onClick:()=>{s.musicalInstrumentId=f.value,m.tempSubjectId=null,o()}},[f.name])))?g:{default:()=>[g]})]}),t(Re,{class:[h.inputSearch],round:!0,onSearch:f=>{s.name=f,v()}},null)]}})])}}}),$t=e=>{if(e==="shareResources")return 2;if(e==="myResources")return 3;if(e==="myCollect")return 4},V=N({name:"select-music",props:{cardType:{type:String,default:""},type:{type:String,default:""},from:{type:String,default:""}},emits:["add"],setup(e,{emit:n}){const a=Fe(),s=U({searchHeight:"0px",loading:!1,finshed:!1,pagination:{page:1,rows:20},searchGroup:{name:"",type:"MUSIC",musicSheetCategoriesId:"",musicalInstrumentId:"",audioPlayTypes:e.cardType==="homerowk-record"||e.cardType==="prepare"?["PLAY"]:[],sourceType:$t(e.type),status:1,versionFlag:!1,subjectId:null},tableList:[],show:!1,item:{},isShowAddDisabled:!a.getIsEditTrain}),m="musicSearchGroup"+ +new Date,i=async()=>{try{s.pagination.page===1&&(s.loading=!0);const{data:l}=await Ne({...s.searchGroup,...s.pagination});if(s.loading=!1,l.current===1&&s.tableList.length>0)return;const S=l.rows||[],I=[];S.forEach(r=>{I.push({id:r.id,coverImg:r.coverImg||r.musicSvg,type:"MUSIC",title:r.name,isCollect:!!r.favoriteFlag,isSelected:r.sourceFrom==="PLATFORM",refFlag:r.refFlag,content:r.id,xmlFileUrl:r.xmlFileUrl,audioPlayTypeArray:r.audioPlayTypes?r.audioPlayTypes.split(","):[],containAccompaniment:r.containAccompaniment})}),s.tableList.push(...I),s.finshed=l.pages<=l.current}catch(l){s.loading=!1}},o=l=>{s.pagination.page=1,s.tableList=[],s.searchGroup=Object.assign(s.searchGroup,l),i()},v=De(l=>{o(l)},300),p=se(()=>{s.pagination.page=s.pagination.page+1,i()},300),_=async l=>{try{await xe({materialId:l.id,favoriteFlag:l.isCollect?0:1,type:l.type}),l.isCollect=!l.isCollect}catch(S){}};return F(()=>{ie(document.querySelector("."+m),l=>{const S=l[0],{height:I}=S.contentRect;s.searchHeight=I+"px"}),e.type==="homework"&&(s.isShowAddDisabled=!1)}),()=>t("div",{class:h.selectMusic},[t(te,{class:h.listContainer,style:{"max-height":"calc(85vh - var(--modal-lesson-tab-height) - 12px) "},onScroll:l=>{var A,u,w;const S=(A=l.target)==null?void 0:A.clientHeight,I=(u=l.target)==null?void 0:u.scrollTop,r=(w=l.target)==null?void 0:w.scrollHeight;S+I+20>=r&&!s.finshed&&!s.loading&&p()}},{default:()=>[t("div",{class:m},[t(Jt,{type:e.type,onSearch:(l,S)=>{S?o(l):v(l)}},null)]),t(Te,{show:s.loading,size:"small"},{default:()=>[t("div",{style:{"min-height":"calc(85vh - var(--modal-lesson-tab-height) - ".concat(s.searchHeight," - 12px)")},class:[h.listSection,!s.loading&&s.tableList.length<=0?h.emptySection:""]},[s.tableList.length>0&&t("div",{class:h.list},[s.tableList.map(l=>t(Ee,{isShowAdd:!0,isShowCollect:!0,item:l,onAdd:()=>n("add",l),disabledMouseHover:!1,onClick:()=>{l.type!=="IMG"&&(s.show=!0,s.item={instrumentId:s.searchGroup.musicalInstrumentId||null,...l})},onCollect:S=>_(S)},null))]),!s.loading&&s.tableList.length<=0&&t(ke,null,null)])]})]}),t(ee,{from:e.from,show:s.show,"onUpdate:show":l=>s.show=l,item:s.item,isDownload:!1},null)])}}),pa=N({name:"select-music",props:{type:{type:String,default:"myResources"},cardType:{type:String,default:""},from:{type:String,default:""}},emits:["select","add"],setup(e,{emit:n}){const{type:a}=$(e),s=C(a.value),m=ae();return F(async()=>{ie(document.querySelector(".select-resource .n-tabs-nav--top"),i=>{const o=i[0],{height:v}=o.contentRect;document.documentElement.style.setProperty("--modal-lesson-tab-height",v+"px")}),await m.getMusicSheetCategory(!0)}),()=>t("div",{class:[H.selectMusic,"select-resource"]},[t(Be,{animated:!0,value:s.value,paneClass:H.paneTitle,justifyContent:"center",paneWrapperClass:H.paneWrapperContainer,"onUpdate:value":i=>{s.value=i}},{default:()=>[t(G,{name:"myResources",tab:"我的曲目"},{default:()=>[t(V,{cardType:e.cardType,from:e.from,type:"myResources",onAdd:i=>n("add",i)},null)]}),t(G,{name:"shareResources",tab:"共享曲目"},{default:()=>[t(V,{from:e.from,cardType:e.cardType,type:"shareResources",onAdd:i=>n("add",i)},null)]}),t(G,{name:"myCollect",tab:"收藏曲目"},{default:()=>[t(V,{from:e.from,cardType:e.cardType,type:"myCollect",onAdd:i=>n("add",i)},null)]})]})])}});export{pa as S,da as T,ma as a,fa as b,pt as i,Fe as u};
|