index-legacy-84ef1ec7-1694675857467.js 6.0 KB

1
  1. System.register(["./index-legacy-1998b584-1694675857467.js","./isCollaose-legacy-fb29f84c-1694675857467.js","./index-legacy-eadbcfa4-1694675857467.js","./index-legacy-e7ec6967-1694675857467.js","./state-legacy-96d0e3ba-1694675857467.js","./updateSubject-legacy-01b3c861-1694675857467.js","./index-legacy-35b1c5cd-1694675857467.js","./index-legacy-d6165eed-1694675857467.js","./contants-legacy-71b48e08-1694675857467.js"],(function(e,t){"use strict";var a,s,l,n,i,r,c,o,u,d,g,_,m,h,y,p,w,v,b,q,S;return{setters:[e=>{a=e.B},e=>{s=e.d,l=e.k},e=>{n=e.T},e=>{i=e.u},e=>{r=e.s},e=>{c=e.U},e=>{o=e.d,u=e.e,d=e.r,g=e.n,_=e.f,m=e.h,h=e.W,y=e.A,p=e.c8,w=e.F,v=e.k,b=e.v},e=>{q=e.u},e=>{S=e.N}],execute:function(){var t=document.createElement("style");t.textContent='._attendClass_qy21g_1{margin:1.66666667vw 0}._attendClassSearch_qy21g_4{width:100%;display:flex;align-items:center;gap:0 1.25vw;margin-bottom:1.45833333vw;padding:0 2.08333333vw}._attendClassSearch_qy21g_4 .n-base-selection,._attendClassSearch_qy21g_4 .n-input{height:2.70833333vw;min-height:2.70833333vw;--n-height: 2.70833333vw !important;font-size:.9375rem;border-radius:.41666667vw!important}._attendClassSearch_qy21g_4 ._iconSearch_qy21g_20{width:.83333333vw;height:.88541667vw}._classList_qy21g_24{max-height:60vh;min-height:60vh;padding:0 2.08333333vw}._classList_qy21g_24 ._listSection_qy21g_29{min-height:60vh}._classList_qy21g_24 ._emptySection_qy21g_32{display:flex;align-items:center}._thingItem_qy21g_36{background:#F5F6FA;border-radius:.625vw;margin-bottom:.83333333vw;padding:1.25vw;cursor:pointer;transition:background-color .2s linear}._thingItem_qy21g_36:hover{background:#ecedf4;transition:background-color .2s linear}._thingItem_qy21g_36 .n-thing-header{margin-bottom:0!important}._thingItem_qy21g_36 .n-thing-header__title{width:100%;display:flex;align-items:center}._thingItem_qy21g_36 ._title_qy21g_56{display:flex;align-items:center;font-size:1.04166667rem!important;font-weight:600!important;color:#131415!important;line-height:1.45833333vw}._thingItem_qy21g_36 ._title_qy21g_56:before{content:" ";display:inline-block;width:.52083333vw;height:.52083333vw;border-radius:50%;background:#198CFE;margin-right:.625vw}._thingItem_qy21g_36 ._subjects_qy21g_73{margin-left:.72916667vw;font-size:.83333333rem!important;line-height:1.14583333vw;color:#0a81f7;background:#E8F4FF;border-radius:.26041667vw;border:1px solid #198CFE;padding:0 .41666667vw;font-weight:700}._thingItem_qy21g_36 ._subjects_qy21g_73._noSubjects_qy21g_84{color:#f4130d!important;background:transparent;border:1px solid #F4130D}._thingItem_qy21g_36 ._content_qy21g_89{margin-top:.625vw!important;font-size:.83333333rem;color:#777}\n',document.head.appendChild(t);const C="_attendClass_qy21g_1",j="_attendClassSearch_qy21g_4",f="_classList_qy21g_24",I="_listSection_qy21g_29",F="_emptySection_qy21g_32",k="_thingItem_qy21g_36",x="_title_qy21g_56",N="_subjects_qy21g_73",z="_noSubjects_qy21g_84",R="_content_qy21g_89",E=[];for(let e=1;e<=40;e++)E.push({label:e+"班",value:e});e("A",o({name:"attend-class",props:{type:{type:String,default:"change"}},emits:["close","preview","confirm"],setup(e,{emit:t}){const o=i(),G=u({showSubjectClass:!1,activeRow:{},keyword:null,currentGradeNum:null,currentClass:null}),U=d([]),K=d(!1),L=()=>{const e=document.documentElement,t=document;t.fullScreen||t.mozFullScreen||t.webkitIsFullScreen?t.exitFullscreen?t.exitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.webkitExitFullscreen&&t.webkitExitFullscreen():e.requestFullscreen&&e.requestFullscreen()||e.mozRequestFullScreen&&e.mozRequestFullScreen()||e.webkitRequestFullscreen&&e.webkitRequestFullscreen()||e.msRequestFullscreen&&e.msRequestFullscreen()},A=async()=>{K.value=!0;try{const{data:e}=await l({page:1,rows:99,upgradeFlag:!0,...G}),t=e.rows||[],a=[];t.forEach((e=>{a.push(e)})),U.value=a}catch{}K.value=!1},B=q((()=>A()),500);return g((()=>{A()})),()=>_("div",{class:C},[_("div",{class:j},[_(m,{placeholder:"请输入班级名称",clearable:!0,value:G.keyword,"onUpdate:value":e=>G.keyword=e,onKeyup:e=>{"Enter"===e.code&&B()},onClear:()=>B()},{prefix:()=>_("span",{class:"icon-search-input",onClick:()=>B()},null)}),_(h,{placeholder:"全部年级",clearable:!0,options:[{label:"全部年级",value:null},...a.grades],value:G.currentGradeNum,"onUpdate:value":[e=>G.currentGradeNum=e,()=>B()]},null),_(h,{placeholder:"全部班级",clearable:!0,options:[{label:"全部班级",value:null},...E],value:G.currentClass,"onUpdate:value":[e=>G.currentClass=e,()=>B()]},null)]),_(S,{class:f},{default:()=>[_(y,{show:K.value},{default:()=>[_("div",{class:[I,!K.value&&U.value.length<=0?F:""]},[U.value.map((a=>_("div",{onClick:()=>(async a=>{try{if("change"==e.type)return void(a.subjectId?t("confirm",{lastUseCoursewareId:a.lessonCoursewareId,unit:a.lessonCoursewareKnowledgeDetailId,subjectId:a.subjectId,courseScheduleSubjectId:a.courseScheduleSubjectId,name:a.name,classGroupId:a.id,preStudentNum:a.preStudentNum}):(G.showSubjectClass=!0,G.activeRow=a));const l=await s({lessonCoursewareKnowledgeDetailId:o.selectKey,classGroupId:a.id,subjectId:o.getSubjectId});t("close"),t("preview",{type:"class",classId:l.data,classGroupId:a.id,subjectId:o.getSubjectId,detailId:o.getSelectKey,lessonCourseId:o.getBaseCourseware.id,preStudentNum:a.preStudentNum}),window.matchMedia("(display-mode: standalone)").matches&&(r.application=window.matchMedia("(display-mode: standalone)").matches,setTimeout((()=>{L()}),200))}catch{}})(a)},[_(p,{class:[k,"isFull"]},{header:()=>_(w,null,[_("div",{class:x},[a.name,v(" "),a.preStudentNum,v("人")]),_("div",{class:[N,a.subjectName?"":z]},[a.subjectName?a.subjectName:"暂无声部"])]),default:()=>a.lastStudy&&_("div",{class:R},[a.lastStudy])})]))),!K.value&&U.value.length<=0&&_(n,null,null)])]})]}),_(b,{show:G.showSubjectClass,"onUpdate:show":e=>G.showSubjectClass=e,style:{width:"500px"},preset:"card",class:["modalTitle background"],title:"修改声部"},{default:()=>[G.showSubjectClass?_(c,{activeRow:G.activeRow,onGetList:()=>A(),onConfirm:e=>{t("confirm",e)},onClose:()=>G.showSubjectClass=!1},null):null]})])}}))}}}));