uni-last-legacy.da3d6548.js 16 KB

1
  1. !function(){function e(e,t,r,n,a,i,o){try{var l=e[i](o),c=l.value}catch(s){return void r(s)}l.done?t(c):Promise.resolve(c).then(n,a)}function t(t){return function(){var r=this,n=arguments;return new Promise((function(a,i){var o=t.apply(r,n);function l(t){e(o,a,i,l,c,"next",t)}function c(t){e(o,a,i,l,c,"throw",t)}l(void 0)}))}}function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=document.createElement("style");i.innerHTML="._lastWrap_1jcgk_1{padding:.4rem .34667rem}._lastWrap_1jcgk_1 ._uniTitle_1jcgk_4{display:flex;flex-direction:row;align-items:center;font-weight:500;color:#333;margin-bottom:.4rem;line-height:.58667rem;font-size:.42667rem}._lastWrap_1jcgk_1 ._uniTitle_1jcgk_4 ._editIcon_1jcgk_14{font-size:.48rem;margin-right:.16rem}._lastWrap_1jcgk_1 ._infoWrap_1jcgk_18{background-color:#fff;border-radius:.26667rem;padding:.21333rem 0}._lastWrap_1jcgk_1 ._infoWrap_1jcgk_18 p{font-size:.4rem;font-weight:500;color:#333;line-height:.56rem;margin-bottom:.4rem}._lastWrap_1jcgk_1 ._infoWrap_1jcgk_18 ._loctionIconWrap_1jcgk_30 span{line-height:.58667rem;vertical-align:inherit}._lastWrap_1jcgk_1 ._infoWrap_1jcgk_18 ._wrapValue_1jcgk_34{font-weight:500;color:#333;line-height:.56rem}._lastWrap_1jcgk_1 ._infoWrap_1jcgk_18 ._inputControl_1jcgk_39 .van-field__body{justify-content:flex-end;margin-right:.21333rem}._lastWrap_1jcgk_1 ._infoWrap_1jcgk_18 ._inputControl_1jcgk_39 .van-field__control{width:1.54667rem;height:.88rem;background:#F4F4F4;border-radius:.21333rem;text-align:center}._lastWrap_1jcgk_1 ._infoWrap_1jcgk_18 ._heightValue_1jcgk_50{padding-bottom:.4rem!important;margin-bottom:.21333rem}._lastWrap_1jcgk_1 ._infoWrap_1jcgk_18 input::-webkit-input-placeholder,._lastWrap_1jcgk_1 ._infoWrap_1jcgk_18 input::-ms-input-placeholder{font-size:.4rem}._lastWrap_1jcgk_1 ._infoWrap_1jcgk_18 .van-cell{padding:.21333rem .32rem;font-size:.4rem}._lastWrap_1jcgk_1 ._infoWrap_1jcgk_18 .van-cell__title{font-size:.4rem;font-weight:500;color:#333;line-height:.56rem;margin-bottom:.4rem;flex:0 auto}._lastWrap_1jcgk_1 ._infoWrap_1jcgk_18 .van-field__control{color:#333;font-weight:700}._lastWrap_1jcgk_1 ._tabsWrap_1jcgk_74{position:relative;margin-top:.26667rem}._lastWrap_1jcgk_1 ._tabsWrap_1jcgk_74 ._rankTabs_1jcgk_78 .van-tabs__nav{padding-left:0;padding-right:0}._lastWrap_1jcgk_1 ._tabsWrap_1jcgk_74 ._rankTabs_1jcgk_78 .van-tabs__nav .van-tab:first-child{padding-left:0}._lastWrap_1jcgk_1 ._tabsWrap_1jcgk_74 ._tabsWrapIcon_1jcgk_85{position:absolute;right:.32rem;top:.34667rem;z-index:2000}._lastWrap_1jcgk_1 ._DialogTitle_1jcgk_91{display:flex;flex-direction:row;align-items:center;padding:.53333rem .66667rem}._lastWrap_1jcgk_1 ._DialogTitle_1jcgk_91 span{width:.10667rem;height:.37333rem;background:#ff8057;border-radius:.05333rem;margin-right:.16rem}._lastWrap_1jcgk_1 ._DialogTitle_1jcgk_91 p{height:.66667rem;font-size:.48rem;font-weight:500;color:#333;line-height:.66667rem}._lastWrap_1jcgk_1 ._DialogConent_1jcgk_111{padding:0 .66667rem .8rem}._lastWrap_1jcgk_1 ._DialogConent_1jcgk_111 p{font-size:.42667rem;line-height:.69333rem;color:#333}._lastWrap_1jcgk_1 .van-tab__text{font-size:.42667rem}._lastWrap_1jcgk_1 .van-tabs__line{bottom:.53333rem;width:.53333rem}._lastWrap_1jcgk_1 .van-cell__title{margin-bottom:0!important}._lastWrap_1jcgk_1 .exercisDetailDialog{border-radius:.26667rem}._lastWrap_1jcgk_1 .exercisDetailDialog .van-dialog__header{padding-top:0!important}._lastWrap_1jcgk_1 .van-dialog{top:47%}._itemWrap_1edzr_1{margin-top:.13333rem;background:#ffffff;border-radius:.26667rem;padding-top:.32rem}._itemWrap_1edzr_1 ._titleWrap_1edzr_7{padding:0 .32rem;height:.58667rem;font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem}._itemWrap_1edzr_1 ._itemBottom_1edzr_15{margin-top:.4rem;display:flex;flex-direction:row;align-items:center;justify-content:space-around;text-align:center;padding:0 .32rem}._itemWrap_1edzr_1 ._itemBottom_1edzr_15 ._itemBottomDot_1edzr_24{flex-basis:33.33%;position:relative}._itemWrap_1edzr_1 ._itemBottom_1edzr_15 ._itemBottomDot_1edzr_24 ._dotMain_1edzr_28{font-size:.64rem;color:#333;line-height:.8rem;margin-bottom:.10667rem;font-family:DINAlternate,DINAlternate;font-weight:700}._itemWrap_1edzr_1 ._itemBottom_1edzr_15 ._itemBottomDot_1edzr_24 ._dotMain_1edzr_28 span{margin-left:.02667rem;font-size:.32rem;font-weight:400;color:#333;line-height:.45333rem}._itemWrap_1edzr_1 ._itemBottom_1edzr_15 ._itemBottomDot_1edzr_24 ._dotSub_1edzr_43{font-size:.32rem;font-weight:400;color:#777;line-height:.45333rem}._itemWrap_1edzr_1 ._uniTimeWrap_1edzr_49{padding:.32rem;margin-top:.53333rem;display:flex;flex-direction:row;align-items:center;justify-content:space-between;border-top:.02667rem solid #f2f2f2}._itemWrap_1edzr_1 ._uniTimeWrap_1edzr_49 ._uniTimeWrapLeft_1edzr_58{display:flex;flex-direction:row;align-items:center;font-size:.37333rem;line-height:.53333rem}._itemWrap_1edzr_1 ._uniTimeWrap_1edzr_49 ._uniTimeWrapLeft_1edzr_58 ._clockIcon_1edzr_65{margin-top:-.05333rem;font-size:.48rem;margin-right:.10667rem}._editBtn_1edzr_70{color:#f67146;background-color:#fff5f2;border-color:#ffb39b;font-size:.34667rem;height:.8rem;padding-top:.05333rem;line-height:.74667rem}\n",document.head.appendChild(i),System.register(["./index-legacy.72cc6a69.js","./index-legacy.cb8d129b.js","./icon-edit-legacy.4520ee5d.js","./clock-icon-legacy.2424f549.js","./data-legacy.7ef2e5fb.js","./quest-icon-legacy.8dd60bcc.js","./index-legacy.eba747a3.js","./index-legacy.a7f46ed9.js","./index-legacy.78474d32.js","./use-tab-status-legacy.9f312b38.js","./index-legacy.90389239.js","./index-legacy.0e82a8d3.js"],(function(e){"use strict";var r,a,i,o,l,c,s,u,_,p,d,m,f,g,v,h,k,j,b,y,W,x,w,z,D,I,C,N,S;return{setters:[function(e){r=e.d,a=e.ag,i=e.D,o=e.c,l=e.q,c=e.a5,s=e.B,u=e.ah,_=e.R,p=e.r,d=e.$,m=e.o,f=e.m,g=e.g,v=e.aj,h=e.ak,k=e.a$,j=e.F,b=e.e},function(e){y=e.O},function(e){W=e.i},function(e){x=e.c},function(e){w=e.u,z=e.r},function(e){D=e.q},function(e){I=e.C},function(e){C=e.F},function(e){N=e.T,S=e.a},function(){},function(){},function(){}],execute:function(){var T="_lastWrap_1jcgk_1",q="_uniTitle_1jcgk_4",E="_editIcon_1jcgk_14",O="_infoWrap_1jcgk_18",B="_loctionIconWrap_1jcgk_30",M="_wrapValue_1jcgk_34",G="_inputControl_1jcgk_39",R="_heightValue_1jcgk_50",F="_tabsWrap_1jcgk_74",P="_rankTabs_1jcgk_78",L="_tabsWrapIcon_1jcgk_85",U="_DialogTitle_1jcgk_91",A="_DialogConent_1jcgk_111",V="_itemWrap_1edzr_1",J="_titleWrap_1edzr_7",Y="_itemBottom_1edzr_15",$="_itemBottomDot_1edzr_24",H="_dotMain_1edzr_28",K="_dotSub_1edzr_43",Q="_uniTimeWrap_1edzr_49",X="_uniTimeWrapLeft_1edzr_58",Z="_clockIcon_1edzr_65",ee="_editBtn_1edzr_70",te=r({props:["item"],name:"newspaper-item",setup:function(e){var t=a(),r=function(){},u=i((function(){var t,r=0;if(null!==(t=e.item)&&void 0!==t&&t.level){var n,a=(null===(n=w["level"+e.item.level])||void 0===n?void 0:n.questionList)||[];r=e.item.totalScore,a.forEach((function(e){r+=Number(e.question.totalScore)||0})),w["level"+e.item.level].totalScore=r}return r})),_=i((function(){var t,r,n,a=[];null!==(t=e.item)&&void 0!==t&&t.level&&(a=(null===(n=w["level"+e.item.level])||void 0===n?void 0:n.questionList)||[]);return((null===(r=e.item)||void 0===r?void 0:r.questionNum)||0)+a.length})),p=i((function(){var t,r=0;if(null!==(t=e.item)&&void 0!==t&&t.level){var n,a=w["level"+e.item.level];if(a.passScore>0)r=a.passScore;else r=null===(n=e.item)||void 0===n?void 0:n.passScore}return r})),d=i((function(){var t,r=0;if(null!==(t=e.item)&&void 0!==t&&t.level){var n,a=w["level"+e.item.level];if(a.timeMinutes>0)r=a.timeMinutes;else r=null===(n=e.item)||void 0===n?void 0:n.timeMinutes}return r})),m=function(){t.push({path:"/unit-edit-test",query:n({},e.item)})};return function(){var t;return o("div",null,[o("div",{class:V,onClick:r},[o("div",{class:J},[null===(t=e.item)||void 0===t?void 0:t.unitExaminationName]),o("div",{class:Y},[o("div",{class:[$,"gridBorderRight"]},[o("p",{class:H},[u.value||0]),o("p",{class:K},[l(" 总分")])]),o("div",{class:[$,"gridBorderRight"]},[o("p",{class:H,style:{color:"#F67146"}},[p.value||0]),o("p",{class:K},[l("合格分 ")])]),o("div",{class:$},[o("p",{class:H},[_.value||0]),o("p",{class:K},[l("题目数量 ")])])]),o("div",{class:Q},[o("div",{class:X},[o(c,{name:x,class:Z},null),l(" 测验时长:"),o("span",{style:{color:"#F67146"}},[d.value||0,l(" ")]),l(" 分钟")]),o(s,{plain:!0,round:!0,class:ee,onClick:m},{default:function(){return[l("编辑内容")]}})])])])}}});e("default",r({name:"uni-test",setup:function(){var e=u(),r=a(),i=_("one"),x=_({}),V=p({loading:!0,list:[],uniDetail:{}}),J=_(!1),Y=function(){var e=t(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,f.get(g.platformApi+"/classGroup/detail/".concat(x.value.classGroupId));case 3:t=e.sent,r=t.data,x.value.preStudentNum=r.preStudentNum||0,w.courseType=r.courseType,e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),console.log(e.t0);case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(){return e.apply(this,arguments)}}(),$=function(){var r=t(regeneratorRuntime.mark((function t(){var r,n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,f.post(g.platformApi+"/lessonCoursewareExaminationMapper/detailByCourseId",{requestType:"form",data:{courseScheduleId:e.query.courseScheduleId}});case 3:r=t.sent,n=r.data,x.value.classGroupId=n.classGroupId,x.value.classGroupName=n.classGroupName,x.value.testName=n.lessonCoursewareExaminationMapperName,x.value.orchestraName=n.orchestraName,x.value.coursewareName=n.lessonCoursewareName,x.value.lessonCoursewareId=n.lessonCoursewareExaminationMapper.lessonCoursewareId,x.value.preStudentNum=n.studentNum||0,x.value.testId=n.lessonCoursewareExaminationMapper.id,w.courseType=n.courseType,(n.lessonCoursewareExaminationMapper.details||[]).forEach((function(e){V.uniDetail[e.level]=e})),console.log(x.value,"forms"),t.next=22;break;case 19:t.prev=19,t.t0=t.catch(0),console.log(t.t0);case 22:case"end":return t.stop()}}),t,null,[[0,19]])})));return function(){return r.apply(this,arguments)}}();d((function(){if(x.value=n({},JSON.parse(sessionStorage.getItem("unit-create")||"{}")),w.expiryDate&&(x.value.expiryDate=w.expiryDate),i.value=w.level,e.query.courseScheduleId)$();else{if(!x.value.classGroupId)return void m("请选择班级");Y(),H()}}));var H=function(){var e=t(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,f.post(g.platformApi+"/lessonCoursewareExaminationMapper/detail",{requestType:"form",data:{lessonCoursewareExaminationMapperId:x.value.testId}});case 3:e.sent.data.details.forEach((function(e){V.uniDetail[e.level]=e})),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}(),K=function(){var n=t(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(x.value.expiryDate){t.next=3;break}return m("请输入截止时间"),t.abrupt("return");case 3:return t.prev=3,t.delegateYield(regeneratorRuntime.mark((function t(){var n,a,i,o,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(l in i={classGroupId:x.value.classGroupId,lessonCoursewareExaminationMapperId:x.value.testId,unitExaminationName:"".concat(null===(n=x.value)||void 0===n?void 0:n.coursewareName,"-").concat(null===(a=x.value)||void 0===a?void 0:a.testName),expiryDate:x.value.expiryDate,unitConfig:[],questionList:[]},o=function(e){var t=V.uniDetail[e],r=w["level"+e];i.unitConfig.push({level:e,passScore:r.passScore>0?r.passScore:t.passScore,timeMinutes:r.timeMinutes>0?r.timeMinutes:t.timeMinutes}),(r.questionList||[]).forEach((function(t){var r=t.question.questionExtendsInfo?JSON.parse(t.question.questionExtendsInfo):{};i.questionList.push({musicSheetId:t.question.mediaUrls,musicName:t.question.name,questionTypeCode:"PLAY",difficultyCoefficient:"ONE",level:e,score:r.score,totalScore:t.question.totalScore,difficulty:r.difficulty,start:r.start,end:r.end,mediaUrls:t.question.mediaUrls})}))},V.uniDetail)o(l);return t.next=5,f.post(g.platformApi+"/classGroupUnitExamination/publishUnitExamination",{hideLoading:!1,data:i});case 5:m("创建成功"),sessionStorage.removeItem("unit-create"),z(),e.query.classGroupId?b({api:"back"}):r.replace("/unit-list");case 9:case"end":return t.stop()}}),t)}))(),"t0",5);case 5:t.next=10;break;case 7:t.prev=7,t.t1=t.catch(3),console.log(t.t1);case 10:case"end":return t.stop()}}),t,null,[[3,7]])})));return function(){return n.apply(this,arguments)}}();return function(){var e,t,r,n,a;return o(j,null,[o("div",{class:T},[o(v,{onClickBack:function(){z()}},null),o("h4",{class:q},[o(c,{name:W,class:E},null),null===(e=x.value)||void 0===e?void 0:e.coursewareName,l("-"),null===(t=x.value)||void 0===t?void 0:t.testName]),o("div",{class:O},[o(I,{center:!0,valueClass:M,value:null===(r=x.value)||void 0===r?void 0:r.orchestraName,title:"乐团",border:!1},null),o(I,{center:!0,valueClass:M,value:null===(n=x.value)||void 0===n?void 0:n.classGroupName,title:"班级",border:!1},null),o(I,{center:!0,class:R,valueClass:M,value:((null===(a=x.value)||void 0===a?void 0:a.preStudentNum)||0)+"人",title:"学员人数"},null),o(C,{modelValue:x.value.expiryDate,"onUpdate:modelValue":[function(e){return x.value.expiryDate=e},function(){w.expiryDate=x.value.expiryDate}],type:"number",center:!0,class:G,"input-align":"right",label:"截止时间",maxlength:3},{extra:function(){return o("div",{class:B},[o("span",{style:{color:"#777"}},[l(" 天后截止")])])}})]),o("div",{class:F},[o(c,{class:L,name:D,size:18,color:"#333",onClick:function(){J.value=!0}},null),o(N,{active:i.value,"onUpdate:active":[function(e){return i.value=e},function(){w.level=i.value}],class:P,background:"#F8F8F8","title-active-color":"#333333","title-inactive-color":"#777",color:"#FF8057",shrink:!0},{default:function(){return[o(S,{name:"one",title:"单团学员"},{default:function(){return[o(te,{item:V.uniDetail[1]},null)]}}),o(S,{name:"two",title:"双团学员"},{default:function(){var e;return[null!==(e=V.uniDetail[2])&&void 0!==e&&e.unitExaminationId?o(te,{item:V.uniDetail[2]},null):o(h,{tips:"暂无测验"},null)]}}),o(S,{name:"three",title:"多团学员"},{default:function(){var e;return[null!==(e=V.uniDetail[3])&&void 0!==e&&e.unitExaminationId?o(te,{item:V.uniDetail[3]},null):o(h,{tips:"暂无测验"},null)]}})]}})]),o(y,{position:"bottom"},{default:function(){return[o("div",{class:"btnGroup"},[o(s,{block:!0,round:!0,type:"primary",onClick:K},{default:function(){return[l("创建完成")]}})])]}}),o(k,{class:"exercisDetailDialog",show:J.value,"onUpdate:show":function(e){return J.value=e},title:"提示框",confirmButtonText:"我知道了"},{title:function(){return o("div",{class:U},[o("span",null,null),o("p",null,[l("学员分类")])])},default:function(){return o("div",{class:A},[o("p",null,[l("根据学员入团的批次对不同训练阶段的学员进行分类,不同训练阶段的学员可布置不同标准的课后作业和阶段自测内容。")]),o("br",null,null),o("p",null,[l("单团学员:最新进入本乐团的学员")]),o("p",null,[l("双团学员:较早进入本乐团的学员")]),o("p",null,[l("多团学员:最早进入本乐团的学员")])])}})])])}}}))}}}))}();