1 |
- !function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n(e,t,n,r,a,i,l){try{var o=e[i](l),s=o.value}catch(_){return void n(_)}o.done?t(s):Promise.resolve(s).then(r,a)}function r(e){return function(){var t=this,r=arguments;return new Promise((function(a,i){var l=e.apply(t,r);function o(e){n(l,a,i,o,s,"next",e)}function s(e){n(l,a,i,o,s,"throw",e)}o(void 0)}))}}var a=document.createElement("style");a.innerHTML="._lastWrap_nlkfh_1{padding:.4rem .34667rem}._lastWrap_nlkfh_1 ._uniTitle_nlkfh_4{display:flex;flex-direction:row;align-items:center;font-weight:500;color:#333;margin-bottom:.4rem;line-height:.58667rem;font-size:.42667rem}._lastWrap_nlkfh_1 ._uniTitle_nlkfh_4 ._editIcon_nlkfh_14{font-size:.48rem;margin-right:.16rem}._lastWrap_nlkfh_1 ._infoWrap_nlkfh_18{background-color:#fff;border-radius:.26667rem;padding:.21333rem 0}._lastWrap_nlkfh_1 ._infoWrap_nlkfh_18 p{font-size:.4rem;font-weight:500;color:#333;line-height:.56rem;margin-bottom:.4rem}._lastWrap_nlkfh_1 ._infoWrap_nlkfh_18 ._loctionIconWrap_nlkfh_30{margin-left:.13333rem}._lastWrap_nlkfh_1 ._infoWrap_nlkfh_18 ._loctionIconWrap_nlkfh_30 span{line-height:.58667rem;vertical-align:inherit}._lastWrap_nlkfh_1 ._infoWrap_nlkfh_18 ._wrapValue_nlkfh_37{font-weight:500;color:#333;line-height:.56rem}._lastWrap_nlkfh_1 ._infoWrap_nlkfh_18 ._heightValue_nlkfh_42{padding-bottom:.4rem!important;margin-bottom:.21333rem}._lastWrap_nlkfh_1 ._infoWrap_nlkfh_18 input::-webkit-input-placeholder,._lastWrap_nlkfh_1 ._infoWrap_nlkfh_18 input::-ms-input-placeholder{font-size:.4rem}._lastWrap_nlkfh_1 ._infoWrap_nlkfh_18 .van-cell{padding:.21333rem .32rem;font-size:.4rem}._lastWrap_nlkfh_1 ._infoWrap_nlkfh_18 .van-cell__title{font-size:.4rem;font-weight:500;color:#333;line-height:.56rem;margin-bottom:.4rem;flex:0 auto}._lastWrap_nlkfh_1 ._infoWrap_nlkfh_18 .van-field__control{color:#f67146}._lastWrap_nlkfh_1 ._tabsWrap_nlkfh_65{position:relative;margin-top:.26667rem}._lastWrap_nlkfh_1 ._tabsWrap_nlkfh_65 ._rankTabs_nlkfh_69 .van-tabs__nav{padding-left:0;padding-right:0}._lastWrap_nlkfh_1 ._tabsWrap_nlkfh_65 ._rankTabs_nlkfh_69 .van-tabs__nav .van-tab:first-child{padding-left:0}._lastWrap_nlkfh_1 ._tabsWrap_nlkfh_65 ._tabsWrapIcon_nlkfh_76{position:absolute;right:.32rem;top:.34667rem;z-index:2000}._lastWrap_nlkfh_1 ._DialogTitle_nlkfh_82{display:flex;flex-direction:row;align-items:center;padding:.53333rem .66667rem}._lastWrap_nlkfh_1 ._DialogTitle_nlkfh_82 span{width:.10667rem;height:.37333rem;background:#ff8057;border-radius:.05333rem;margin-right:.16rem}._lastWrap_nlkfh_1 ._DialogTitle_nlkfh_82 p{height:.66667rem;font-size:.48rem;font-weight:500;color:#333;line-height:.66667rem}._lastWrap_nlkfh_1 ._DialogConent_nlkfh_102{padding:0 .66667rem .8rem}._lastWrap_nlkfh_1 ._DialogConent_nlkfh_102 p{font-size:.42667rem;line-height:.69333rem;color:#333}._lastWrap_nlkfh_1 .van-tab__text{font-size:.42667rem}._lastWrap_nlkfh_1 .van-tabs__line{bottom:.53333rem;width:.53333rem}._lastWrap_nlkfh_1 .van-cell__title{margin-bottom:0!important}._lastWrap_nlkfh_1 .exercisDetailDialog{border-radius:.26667rem}._lastWrap_nlkfh_1 .exercisDetailDialog .van-dialog__header{padding-top:0!important}._lastWrap_nlkfh_1 .van-dialog{top:47%}._itemWrap_1eb41_1{margin-top:.13333rem;background:#ffffff;border-radius:.26667rem;padding-top:.32rem}._itemWrap_1eb41_1 ._titleWrap_1eb41_7{padding:0 .32rem;height:.58667rem;font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem}._itemWrap_1eb41_1 ._itemBottom_1eb41_15{margin-top:.4rem;display:flex;flex-direction:row;align-items:center;justify-content:space-around;text-align:center;padding:0 .32rem}._itemWrap_1eb41_1 ._itemBottom_1eb41_15 ._itemBottomDot_1eb41_24{flex-basis:33.33%;position:relative}._itemWrap_1eb41_1 ._itemBottom_1eb41_15 ._itemBottomDot_1eb41_24 ._dotMain_1eb41_28{font-size:.69333rem;color:#333;line-height:.8rem;margin-bottom:.10667rem;font-family:DINA!important}._itemWrap_1eb41_1 ._itemBottom_1eb41_15 ._itemBottomDot_1eb41_24 ._dotMain_1eb41_28 span{margin-left:.02667rem;font-size:.32rem;font-weight:400;color:#333;line-height:.45333rem}._itemWrap_1eb41_1 ._itemBottom_1eb41_15 ._itemBottomDot_1eb41_24 ._dotSub_1eb41_42{font-size:.32rem;font-weight:400;color:#777;line-height:.45333rem}._itemWrap_1eb41_1 ._uniTimeWrap_1eb41_48{padding:.32rem;margin-top:.53333rem;display:flex;flex-direction:row;align-items:center;justify-content:space-between;border-top:.02667rem solid #f2f2f2}._itemWrap_1eb41_1 ._uniTimeWrap_1eb41_48 ._uniTimeWrapLeft_1eb41_57{display:flex;flex-direction:row;align-items:center;font-size:.37333rem;line-height:.53333rem}._itemWrap_1eb41_1 ._uniTimeWrap_1eb41_48 ._uniTimeWrapLeft_1eb41_57 ._clockIcon_1eb41_64{margin-top:-.05333rem;font-size:.48rem;margin-right:.10667rem}\n",document.head.appendChild(a),System.register(["./index-legacy.90c82f08.js","./index-legacy.84457c4c.js","./icon-edit-legacy.4520ee5d.js","./clock-icon-legacy.2424f549.js","./quest-icon-legacy.8dd60bcc.js","./index-legacy.f3e5e283.js","./index-legacy.3c5580aa.js","./index-legacy.fe10c814.js","./use-tab-status-legacy.bafe466c.js","./index-legacy.64e3b474.js","./index-legacy.f9492e3a.js"],(function(n){"use strict";var a,i,l,o,s,_,u,c,p,f,m,d,h,v,g,b,k,W,x,y,w,D,I,j,N;return{setters:[function(e){a=e.d,i=e.c,l=e.q,o=e.a5,s=e.F,_=e.ah,u=e.ag,c=e.R,p=e.r,f=e.$,m=e.o,d=e.m,h=e.g,v=e.aj,g=e.B,b=e.a$,k=e.e},function(e){W=e.O},function(e){x=e.i},function(e){y=e.c},function(e){w=e.q},function(e){D=e.C},function(e){I=e.F},function(e){j=e.T,N=e.a},function(){},function(){},function(){}],execute:function(){var C="_lastWrap_nlkfh_1",T="_uniTitle_nlkfh_4",O="_editIcon_nlkfh_14",z="_infoWrap_nlkfh_18",E="_loctionIconWrap_nlkfh_30",S="_wrapValue_nlkfh_37",B="_heightValue_nlkfh_42",G="_tabsWrap_nlkfh_65",M="_rankTabs_nlkfh_69",P="_tabsWrapIcon_nlkfh_76",R="_DialogTitle_nlkfh_82",q="_DialogConent_nlkfh_102",F="_itemWrap_1eb41_1",V="_titleWrap_1eb41_7",A="_itemBottom_1eb41_15",L="_itemBottomDot_1eb41_24",U="_dotMain_1eb41_28",$="_dotSub_1eb41_42",H="_uniTimeWrap_1eb41_48",J="_uniTimeWrapLeft_1eb41_57",K="_clockIcon_1eb41_64",Q=a({props:["item"],name:"newspaper-item",setup:function(e){var t=function(){};return function(){var n,r,a,_,u;return i(s,null,[i("div",null,[i("div",{class:F,onClick:t},[i("div",{class:V},[null===(n=e.item)||void 0===n?void 0:n.unitExaminationName]),i("div",{class:A},[i("div",{class:[L,"gridBorderRight"]},[i("p",{class:U},[(null===(r=e.item)||void 0===r?void 0:r.totalScore)||0]),i("p",{class:$},[l(" 总分")])]),i("div",{class:[L,"gridBorderRight"]},[i("p",{class:U,style:{color:"#F67146"}},[(null===(a=e.item)||void 0===a?void 0:a.passScore)||0]),i("p",{class:$},[l("合格分 ")])]),i("div",{class:L},[i("p",{class:U},[(null===(_=e.item)||void 0===_?void 0:_.questionNum)||0]),i("p",{class:$},[l("题目数量 ")])])]),i("div",{class:H},[i("div",{class:J},[" ",i(o,{name:y,class:K},null),l(" 测验时长:"),i("span",{style:{color:"#F67146"}},[(null===(u=e.item)||void 0===u?void 0:u.timeMinutes)||0,l(" ")]),l(" 分钟")])])])])])}}});n("default",a({name:"uni-test",setup:function(){var n=_(),a=u(),y=c("one"),F=c({}),V=p({loading:!0,list:[],uniDetail:{}}),A=c(!1),L=function(){var e=r(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,d.get(h.platformApi+"/classGroup/detail/".concat(F.value.classGroupId));case 3:t=e.sent,n=t.data,F.value.preStudentNum=n.preStudentNum||0,e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),console.log(e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),U=function(){var e=r(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,d.post(h.platformApi+"/lessonCoursewareExaminationMapper/detailByCourseId",{requestType:"form",data:{courseScheduleId:n.query.courseScheduleId}});case 3:t=e.sent,r=t.data,F.value.classGroupId=r.classGroupId,F.value.classGroupName=r.classGroupName,F.value.testName=r.lessonCoursewareExaminationMapperName,F.value.orchestraName=r.orchestraName,F.value.coursewareName=r.lessonCoursewareName,F.value.lessonCoursewareId=r.lessonCoursewareExaminationMapper.lessonCoursewareId,F.value.preStudentNum=r.studentNum||0,F.value.testId=r.lessonCoursewareExaminationMapper.id,(r.lessonCoursewareExaminationMapper.details||[]).forEach((function(e){V.uniDetail[e.level]=e})),console.log(F.value,"forms"),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(0),console.log(e.t0);case 21:case"end":return e.stop()}}),e,null,[[0,18]])})));return function(){return e.apply(this,arguments)}}();f((function(){if(F.value=function(n){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?e(Object(a),!0).forEach((function(e){t(n,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(a,e))}))}return n}({},JSON.parse(sessionStorage.getItem("unit-create")||"{}")),console.log(F.value),n.query.courseScheduleId)U();else{if(!F.value.classGroupId)return void m("请选择班级");L(),$()}}));var $=function(){var e=r(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,d.post(h.platformApi+"/lessonCoursewareExaminationMapper/detail",{requestType:"form",data:{lessonCoursewareExaminationMapperId:F.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)}}(),H=function(){var e=r(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(F.value.expiryDate){e.next=3;break}return m("请输入截止时间"),e.abrupt("return");case 3:return e.prev=3,e.next=6,d.post(h.platformApi+"/classGroupUnitExamination/publishUnitExamination",{hideLoading:!1,data:{classGroupId:F.value.classGroupId,lessonCoursewareExaminationMapperId:F.value.testId,unitExaminationName:"".concat(null===(t=F.value)||void 0===t?void 0:t.coursewareName,"-").concat(null===(r=F.value)||void 0===r?void 0:r.testName),expiryDate:F.value.expiryDate}});case 6:m("创建成功"),sessionStorage.removeItem("unit-create"),n.query.classGroupId?k({api:"back"}):a.replace("/unit-list"),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(3),console.log(e.t0);case 14:case"end":return e.stop()}}),e,null,[[3,11]])})));return function(){return e.apply(this,arguments)}}();return function(){var e,t,n,r,a;return i(s,null,[i("div",{class:C},[i(v,null,null),i("h4",{class:T},[i(o,{name:x,class:O},null),null===(e=F.value)||void 0===e?void 0:e.coursewareName,l("-"),null===(t=F.value)||void 0===t?void 0:t.testName]),i("div",{class:z},[i(D,{center:!0,valueClass:S,value:null===(n=F.value)||void 0===n?void 0:n.orchestraName,title:"乐团",border:!1},null),i(D,{center:!0,valueClass:S,value:null===(r=F.value)||void 0===r?void 0:r.classGroupName,title:"班级",border:!1},null),i(D,{center:!0,class:B,valueClass:S,value:((null===(a=F.value)||void 0===a?void 0:a.preStudentNum)||0)+"人",title:"学员人数"},null),i(I,{modelValue:F.value.expiryDate,"onUpdate:modelValue":function(e){return F.value.expiryDate=e},type:"number",placeholder:"请输入截止日期","input-align":"right",label:"截止时间"},{extra:function(){return i("div",{class:E},[i("span",{style:{color:"#777"}},[l(" 天后截止")])])}})]),i("div",{class:G},[i(o,{class:P,name:w,size:18,color:"#333",onClick:function(){A.value=!0}},null),i(j,{active:y.value,"onUpdate:active":function(e){return y.value=e},class:M,background:"#F8F8F8","title-active-color":"#333333","title-inactive-color":"#777",color:"#FF8057",shrink:!0},{default:function(){return[i(N,{name:"one",title:"单团学员"},{default:function(){return[i(Q,{item:V.uniDetail[1]},null)]}}),i(N,{name:"two",title:"双团学员"},{default:function(){return[i(Q,{item:V.uniDetail[2]},null)]}}),i(N,{name:"three",title:"多团学员"},{default:function(){return[i(Q,{item:V.uniDetail[3]},null)]}})]}})]),i(W,{position:"bottom"},{default:function(){return[i("div",{class:"btnGroup"},[i(g,{block:!0,round:!0,type:"primary",onClick:H},{default:function(){return[l("创建完成")]}})])]}}),i(b,{class:"exercisDetailDialog",show:A.value,"onUpdate:show":function(e){return A.value=e},title:"提示框",confirmButtonText:"我知道了"},{title:function(){return i("div",{class:R},[i("span",null,null),i("p",null,[l("学员分类")])])},default:function(){return i("div",{class:q},[i("p",null,[l("根据学员入团的批次对不同训练阶段的学员进行分类,不同训练阶段的学员可布置不同标准的课后作业和阶段自测内容。")]),i("br",null,null),i("p",null,[l("单团学员:最新进入本乐团的学员")]),i("p",null,[l("双团学员:较早进入本乐团的学员")]),i("p",null,[l("多团学员:最早进入本乐团的学员")])])}})])])}}}))}}}))}();
|