1 |
- "use strict";(self["webpackChunkclassroom"]=self["webpackChunkclassroom"]||[]).push([[179],{8039:function(e,a,s){s.d(a,{FY:function(){return o},OA:function(){return h},Qp:function(){return p},Tw:function(){return n},_3:function(){return t},bq:function(){return u},eJ:function(){return c},ew:function(){return i},pn:function(){return m},t7:function(){return r},vf:function(){return g},yQ:function(){return d}});var l=s(7053);const t=(e,a)=>l.Z9.axioseRquest({signal:a.signal,method:"post",url:"/api-teacher/lessonCourseware/queryLessonCourseware",data:{query:{subjectId:e,page:1,rows:9999}}}),o=()=>l.Z9.axioseRquest({method:"get",url:"/api-teacher/lessonCourseware/getLessonCoursewareSubjectList"}),u=e=>l.Z9.axioseRquest({method:"get",url:"/api-teacher/lessonCourseware/getLessonCoursewareCourseList/"+e}),n=e=>l.Z9.axioseRquest({method:"get",url:"/api-teacher/lessonCourseware/getLessonCourseDetail/"+e}),i=()=>l.rO.axioseRquest({method:"post",url:"/api-teacher/courseSchedule/myCourseware"}),r=e=>l.rO.axioseRquest({method:"post",url:"/api-teacher/courseSchedule/myCoursewareDetail/"+e}),c=e=>l.rO.axioseRquest({method:"get",url:"/api-teacher/lessonCoursewareDetail/detail/"+e}),d=()=>l.Vk.axioseRquest({method:"get",url:"/api-teacher/tenantGroupAlbum/buyAlbumInfo"}),g=()=>l.Vk.axioseRquest({method:"get",url:"/api-tenant/open/subject/queryPage?page=1&rows=9999&queryType=list"}),m=(e,a,s)=>l.Vk.axioseRquest({signal:s.signal,method:"post",url:"/api-teacher/tenantAlbumMusic/page",data:{subjectType:"COURSEWARE",albumId:a,page:1,rows:9999,subjectId:e}}),p=e=>l.Vk.axioseRquest({method:"get",url:"/api-teacher/tenantAlbumMusic/getLessonCoursewareCourseList/"+e}),h=e=>l.Vk.axioseRquest({method:"get",url:"/api-teacher/tenantAlbumMusic/getLessonCourseDetail/"+e})},7480:function(e,a,s){s.d(a,{Z:function(){return g}});var l=s(3396),t=s(9242),o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAMAAAC7IEhfAAAAk1BMVEUAAAD/gVb/gVT/gFf/hFj/gFf/gFf/gFf/gFf/gFb/gFf/gVf/gFf/gFf/gFf/gFf/gFf/gFf/glb/gEj/gFf/gFf/gFf/gFf/gVf/gFf/gFf/gFf/gFf/gVf/gFj/gFb/gFb/glj/gFj/gFj/gFf/gFj/gFf/gFf/gFf/gFb/glj/gVf/gVf/gFf/f1f/glf/gFdgjBAJAAAAMHRSTlMACQ1CEvz2Y+24+t+7q4zkvl0aBtnCpWpN8s2Wem5JMyUex8OxnnRRPTg3MIWDLFiK4Dr0AAABkElEQVQ4y42T55aCQAyFQ2+KNLEhqGtvm/d/uj0TmIUheOT+S/JNSO4M0JHxnAS25Wb5Yg+fpRcz/JflGZ84x0VV3mBXfYpMqwvnzDUOyNqyfg1nH+O3qe2NMGvQRQ+c1g3ydqo4oJR/Vfeo24mRtNJJ6mE8SgZad0CXuDtAsrERpS85ka8OWFDmF6CkExJMD7S62YLk8xTA8BGPy7aw80Wh3dygRXZiAnsJXW1E5QBSIV0DpVUOHtRCl2FUG5au8Ag9kUdXZcQKjLoh99eRkS2iRJhp9sFQuR1LRDokVQV9PUXpLCMybwdDOikd19JlLtqzVI6FQ5xuKx+L6fIZxSumX5vARa9y03NrZjJui0KPNnGjRJT2uCt9yeMPfKopnOEisyOpc+t3m0rPPpI85fjSoqR1qpr9nAClIp39NbRTHob5wcKO5goZ+8g0TN6zsaRWuErVu0xQ6kchQXciu6kE4QNA8zgppd3i7dkpkyZiPbkYOU/Hki8YSc5gJGnDSHL+hZMu+Tf4qrTIVtEd/gCssmQzfH+BlQAAAABJRU5ErkJggg==",u=s(4870),n=s(1407);const i={key:1,class:"imgSs",src:o};var r=(0,l.aZ)({__name:"myInput",props:{width:{},height:{}},emits:["handleQuery"],setup(e,{emit:a}){const s=e;(0,t.sj)((e=>({73017252:o.value,"594443ca":r.value})));const o=(0,l.Fl)((()=>s.width?(s.width/n.cM).toFixed(5)+"rem":"100%")),r=(0,l.Fl)((()=>((s.height||32)/n.cM).toFixed(5)+"rem")),c=(0,u.iH)(!1);function d(){c.value=!0}function g(){c.value=!1}function m(){a("handleQuery")}return(e,a)=>{const s=(0,l.up)("el-input");return(0,l.wg)(),(0,l.j4)(s,(0,l.dG)({class:"h_myInput"},e.$attrs,{onFocus:d,onBlur:g,class:{isInputFocus:c.value}}),{prepend:(0,l.w5)((()=>[e.$slots.prepend?(0,l.WI)(e.$slots,"prepend",{key:0}):((0,l.wg)(),(0,l.iD)("img",i))])),append:(0,l.w5)((()=>[e.$slots.append?(0,l.WI)(e.$slots,"append",{key:0}):((0,l.wg)(),(0,l.iD)("div",{key:1,class:"btnSelect",onClick:m},"搜索"))])),_:3},16,["class"])}}});const c=r;var d=c,g=d},2125:function(e,a,s){s.r(a),s.d(a,{default:function(){return ue}});var l=s(3396),t=s(4870),o=s(9242),u=s(7139),n=s(5785),i=s(6515),r=s(4607),c=s(6346),d=s(4505),g=(s(7658),s(817)),m=s(1145),p=s(2722),h=s(8039),f=s(3420),v=s(5402),w=s(7178),b=s(2529);const k=()=>{const e=(0,b.Z)(),a=(0,t.XI)([]);let s=[];const l=(0,t.iH)(""),o=(0,t.XI)([]),u=(0,t.iH)(!1);let n;function i(){"GYM"===e.roles?g("",""):"GYT"===e.roles?c():"KLX"===e.roles&&(0,f.hk)(h.yQ).then((e=>{200===e.code&&(o.value=(e.data||[]).reduce(((e,a)=>(a.coursewareCounts>0&&e.push({value:a.id,label:a.name}),e)),[]),o.value.length&&(l.value=o.value[0].value),p("",l.value,""))}))}function r(a,s){"GYM"===e.roles?m(a,s):"GYT"===e.roles?d(a,s):"KLX"===e.roles&&k(a,l.value,s)}function c(){u.value=!0,(0,f.Jj)(h.ew).then((e=>{u.value=!1,200===e.code&&(s=(e.data||[]).map((e=>({name:e.name,type:e.courseTypeCode,img:e.coverImg,id:e.id,courseNum:e.courseNum}))),a.value=C(s,5))}))}function d(e,l){const t=s.filter((a=>(!e||a.type===e)&&(!l||a.name.includes(l))));a.value=C(t,5)}function g(e,s){n&&n.abort(),n=new AbortController,u.value=!0,(0,f.hk)(h._3,e,n).then((l=>{if(l.code!==v.xU)if(u.value=!1,200===l.code){const t=(l.data?.rows||[]).reduce(((a,l)=>(e&&l.subjectId!==e||s&&!l.name.includes(s)||a.push({name:l.name,type:l.subjectId,img:l.cover,id:l.lessonCoursewareId,courseNum:l.courseNum}),a)),[]);a.value=C(t,5)}else 511!==l.code&&(0,w.z8)({showClose:!0,message:l.message,type:"error"})}))}function m(e,a){g(e,a)}function p(e,s,l){s&&(n&&n.abort(),n=new AbortController,u.value=!0,(0,f.hk)(h.pn,e,s,n).then((e=>{if(e.code!==v.xU)if(u.value=!1,200===e.code){const s=(e.data?.rows||[]).reduce(((e,a)=>(l&&!a.musicSheetName.includes(l)||e.push({name:a.musicSheetName,type:a.subjectId,img:a.titleImg,id:a.id,courseNum:a.courseNum}),e)),[]);a.value=C(s,5)}else 511!==e.code&&(0,w.z8)({showClose:!0,message:e.message,type:"error"})})))}function k(e,a,s){p(e,a,s)}return{loading:u,listData:a,albumId:l,albumOpt:o,handleGetList:i,handleListQuery:r}},y=()=>{const e=(0,b.Z)(),a=(0,t.XI)([]),s=(0,t.iH)(0),o=(0,t.iH)(!1),u=(0,l.Fl)((()=>{const e=a.value[s.value]||[];return[e[0]||[],e[1]||[]]}));function n(a){"GYM"===e.roles?r(a):"GYT"===e.roles?c(a):"KLX"===e.roles&&d(a)}function i(e){"next"===e?s.value++:s.value--}function r(e){o.value=!0,(0,f.Jj)(h.bq,e).then((e=>{if(o.value=!1,200===e.code){const s=(e.data||[]).map((e=>({name:e.coursewareDetailName,id:e.coursewareDetailId})));a.value=C(C(s,7),2)}}))}function c(e){o.value=!0,(0,f.Jj)(h.t7,e).then((e=>{if(o.value=!1,200===e.code){const s=(e.data||[]).map((e=>({name:e.coursewareDetailName,id:e.lessonCoursewareDetailId,useNum:e.useNum,lockFlag:!1})));a.value=C(C(s,7),2)}}))}function d(e){o.value=!0,(0,f.Jj)(h.Qp,e).then((e=>{if(o.value=!1,200===e.code){const s=(e.data||[]).map((e=>({name:e.coursewareDetailName,id:e.coursewareDetailId})));a.value=C(C(s,7),2)}}))}return{handleGetDetailList:n,loading:o,listDetailData:u,listData:a,pageNum:s,handlePage:i}};function C(e,a){const s=[];for(let l=0;l<e.length;l+=a)s.push(e.slice(l,l+a));return s}var A=s(3228);const F=e=>((0,l.dD)("data-v-613d2905"),e=e(),(0,l.Cn)(),e),S={class:"chooseDialog"},D={class:"chooseCon"},I=F((()=>(0,l._)("img",{class:"imgMid",src:g},null,-1))),N=["onClick"],_=["src"],E={class:"chooseList"},L={class:"img"},R={key:0,src:m},U={key:1,src:p},T={class:"nameCon"},x={class:"name"},V={key:0,class:"text"},j=["onClick"];var q=(0,l.aZ)({__name:"chooseDialog",props:{modalData:{}},emits:["onClose"],setup(e,{emit:a}){const n=e,{handleGetDetailList:i,loading:r,listDetailData:c,listData:d,pageNum:g,handlePage:m}=y();function p(){a("onClose")}function h(e){A.Z.push({name:"coursewarePlay",params:{id:e}})}return i(n.modalData.id),(e,a)=>{const n=(0,l.Q2)("loading");return(0,l.wg)(),(0,l.iD)("div",S,[(0,l._)("div",{class:"close",onClick:p}),(0,l.wy)(((0,l.wg)(),(0,l.iD)("div",D,[I,((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)((0,t.SU)(c),((e,a)=>((0,l.wg)(),(0,l.iD)("div",{class:"chooseBox",key:a},[(0,l.wy)((0,l._)("div",{class:"operate",onClick:e=>(0,t.SU)(m)(0===a?"prev":"next")},[(0,l._)("img",{src:s(1616)(`./${0===a?"left":"right"}.png`)},null,8,_)],8,N),[[o.F8,0===a&&0!==(0,t.SU)(g)||1===a&&(0,t.SU)(d).length>(0,t.SU)(g)+1]]),(0,l._)("div",E,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(e,(e=>((0,l.wg)(),(0,l.iD)("div",{class:"listItem",key:e.id},[(0,l._)("div",L,[e.lockFlag?((0,l.wg)(),(0,l.iD)("img",R)):((0,l.wg)(),(0,l.iD)("img",U))]),(0,l._)("div",T,[(0,l._)("div",x,(0,u.zw)(e.name),1),e.useNum?((0,l.wg)(),(0,l.iD)("div",V,"已使用"+(0,u.zw)(e.useNum)+"次",1)):(0,l.kq)("",!0)]),(0,l._)("div",{class:(0,u.C_)(["play",{disabled:e.lockFlag}]),onClick:a=>!0===e.lockFlag||h(e.id)},"查看",10,j)])))),128))])])))),128))])),[[n,(0,t.SU)(r)]])])}}}),G=s(89);const M=(0,G.Z)(q,[["__scopeId","data-v-613d2905"]]);var O=M,Q=s(9327),Z=s(7480);const H=e=>((0,l.dD)("data-v-6987fbb5"),e=e(),(0,l.Cn)(),e),J={class:"cloudTextbooks"},Y={class:"headCon"},B={class:"operate"},K={class:"cloudTextbooksCon"},P={class:"cloudTextbooksBox"},X=["onClick"],z=H((()=>(0,l._)("img",{class:"imgbg",src:n},null,-1))),W=H((()=>(0,l._)("img",{class:"imgbg1",src:i},null,-1))),$=H((()=>(0,l._)("img",{class:"imgbg2",src:r},null,-1))),ee={class:"courseNum"},ae={class:"name"};var se;(function(e){e["PERCUSSION_SINGLE"]="打击乐",e["FLUTE_SINGLE"]="长笛",e["SAX_SINGLE"]="萨克斯",e["CLARINET_SINGLE"]="单簧管",e["TRUMPET_SINGLE"]="小号",e["TROMBONE_SINGLE"]="长号",e["HORN_SINGLE"]="圆号",e["BARITONE_TUBA_SINGLE"]="上低音号-大号",e["MUSIC_THEORY"]="乐理",e["INSTRUMENTAL_ENSEMBLE"]="合奏",e["EUPHONIUM_SINGLE"]="上低音号",e["TUBA_SINGLE"]="大号"})(se||(se={}));var le=(0,l.aZ)({__name:"cloudTextbooks",setup(e){const a=(0,b.Z)(),{handleGetList:n,listData:i,loading:r,albumId:g,albumOpt:m,handleListQuery:p}=k(),v=[{name:"主页",url:"/"},{name:"云课堂"}],w=(0,t.iH)(""),y=(0,t.XI)([]),C=(0,t.iH)("");function A(){"GYM"===a.roles?(0,f.hk)(h.FY).then((e=>{200===e.code&&(y.value=[{value:"",label:"全部"},...(e.data||[]).map((e=>({value:e.id,label:e.name})))])})):"GYT"===a.roles?y.value=[{value:"",label:"全部"},...Object.keys(se).map((e=>({value:e,label:se[e]})))]:"KLX"===a.roles&&(0,f.hk)(h.vf).then((e=>{200===e.code&&(y.value=[{value:"",label:"全部"},...(e.data?.rows||[]).map((e=>({value:e.id,label:e.name})))])}))}function F(){p(w.value,C.value)}A(),n();const S=(0,Q.Ds)(F);function D(e){(0,d.ZP)({template:O,width:1152,height:700,btnShow:[],modalData:{id:e},maskClose:!0,className:"chooseDialog"})}return(e,a)=>{const n=(0,l.up)("dictionary"),d=(0,l.up)("ElImage"),p=(0,l.up)("ElScrollbar"),h=(0,l.up)("el-empty"),f=(0,l.Q2)("loading");return(0,l.wg)(),(0,l.j4)((0,t.SU)(c.Z),{navs:v},{default:(0,l.w5)((()=>[(0,l._)("div",J,[(0,l._)("div",Y,[(0,l._)("div",B,[(0,t.SU)(m).length>1?((0,l.wg)(),(0,l.j4)(n,{key:0,class:"albumOpt","popper-class":"classTypePopperAlbum",modelValue:(0,t.SU)(g),"onUpdate:modelValue":a[0]||(a[0]=e=>(0,t.dq)(g)?g.value=e:null),width:200,height:40,clearable:!1,options:(0,t.SU)(m),placeholder:"专辑",onChange:F},null,8,["modelValue","options"])):(0,l.kq)("",!0),(0,l.Wm)(n,{"popper-class":"classTypePopper",modelValue:w.value,"onUpdate:modelValue":a[1]||(a[1]=e=>w.value=e),width:150,height:40,options:y.value,placeholder:"课程类型",onChange:F},null,8,["modelValue","options"]),(0,l.Wm)((0,t.SU)(Z.Z),{class:"queryIpt",modelValue:C.value,"onUpdate:modelValue":a[2]||(a[2]=e=>C.value=e),width:382,height:40,placeholder:"请输入教材名称",onKeyup:(0,o.D2)(F,["enter"]),onInput:(0,t.SU)(S),onHandleQuery:F,clearable:""},null,8,["modelValue","onKeyup","onInput"])])]),(0,l._)("div",K,[(0,l.wy)(((0,l.wg)(),(0,l.j4)(p,{class:"elScrollbar"},{default:(0,l.w5)((()=>[(0,l._)("div",P,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)((0,t.SU)(i),((e,a)=>((0,l.wg)(),(0,l.iD)("div",{class:"bookshelf",key:a},[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(e,(e=>((0,l.wg)(),(0,l.iD)("div",{class:"book",key:e.id},[(0,l._)("div",{class:"imgCon",onClick:a=>D(e.id)},[(0,l.Wm)(d,{class:"img",src:e.img},null,8,["src"]),z,W,$,(0,l._)("div",ee,"共"+(0,u.zw)(e.courseNum)+"课",1)],8,X),(0,l._)("div",ae,(0,u.zw)(e.name),1)])))),128))])))),128))])])),_:1})),[[f,(0,t.SU)(r)]])]),(0,t.SU)(i).length||(0,t.SU)(r)?(0,l.kq)("",!0):((0,l.wg)(),(0,l.j4)(h,{key:0,class:"empty",image:s(9449),description:"暂无搜索结果"},null,8,["image"]))])])),_:1})}}});const te=(0,G.Z)(le,[["__scopeId","data-v-6987fbb5"]]);var oe=te,ue=oe}}]);
|