uni-last-legacy.84d65dc5.js 11 KB

1
  1. !function(){var e=document.createElement("style");e.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(e),System.register(["./index-legacy.eb062188.js","./index-legacy.ad813f4d.js","./icon-edit-legacy.4520ee5d.js","./clock-icon-legacy.2424f549.js","./quest-icon-legacy.8dd60bcc.js","./index-legacy.918b8c74.js","./index-legacy.3a3e070a.js","./index-legacy.ac7c51db.js","./use-tab-status-legacy.91417466.js","./index-legacy.fab451f1.js","./index-legacy.10d8486a.js"],(function(e){"use strict";var a,t,l,n,i,r,o,_,s,m,u,p,c,d,f,h,g,v,b,k,W,y,x,w,D;return{setters:[function(e){a=e.d,t=e.c,l=e.q,n=e.a5,i=e.F,r=e.ah,o=e.ag,_=e.R,s=e.r,m=e.$,u=e.o,p=e.m,c=e.g,d=e.aj,f=e.B,h=e.b3,g=e.e},function(e){v=e.O},function(e){b=e.i},function(e){k=e.c},function(e){W=e.q},function(e){y=e.C},function(e){x=e.F},function(e){w=e.T,D=e.a},function(){},function(){},function(){}],execute:function(){var I="_lastWrap_nlkfh_1",N="_uniTitle_nlkfh_4",C="_editIcon_nlkfh_14",T="_infoWrap_nlkfh_18",z="_loctionIconWrap_nlkfh_30",B="_wrapValue_nlkfh_37",E="_heightValue_nlkfh_42",S="_tabsWrap_nlkfh_65",j="_rankTabs_nlkfh_69",G="_tabsWrapIcon_nlkfh_76",M="_DialogTitle_nlkfh_82",q="_DialogConent_nlkfh_102";var F="_itemWrap_1eb41_1",V="_titleWrap_1eb41_7",A="_itemBottom_1eb41_15",L="_itemBottomDot_1eb41_24",U="_dotMain_1eb41_28",$="_dotSub_1eb41_42",R="_uniTimeWrap_1eb41_48",O="_uniTimeWrapLeft_1eb41_57",H="_clockIcon_1eb41_64",J=a({props:["item"],name:"newspaper-item",setup(e){const a=()=>{};return()=>{var r,o,_,s,m;return t(i,null,[t("div",null,[t("div",{class:F,onClick:a},[t("div",{class:V},[null===(r=e.item)||void 0===r?void 0:r.unitExaminationName]),t("div",{class:A},[t("div",{class:[L,"gridBorderRight"]},[t("p",{class:U},[(null===(o=e.item)||void 0===o?void 0:o.totalScore)||0]),t("p",{class:$},[l(" 总分")])]),t("div",{class:[L,"gridBorderRight"]},[t("p",{class:U,style:{color:"#F67146"}},[(null===(_=e.item)||void 0===_?void 0:_.passScore)||0]),t("p",{class:$},[l("合格分 ")])]),t("div",{class:L},[t("p",{class:U},[(null===(s=e.item)||void 0===s?void 0:s.questionNum)||0]),t("p",{class:$},[l("题目数量 ")])])]),t("div",{class:R},[t("div",{class:O},[" ",t(n,{name:k,class:H},null),l(" 测验时长:"),t("span",{style:{color:"#F67146"}},[(null===(m=e.item)||void 0===m?void 0:m.timeMinutes)||0,l(" ")]),l(" 分钟")])])])])])}}});e("default",a({name:"uni-test",setup(){const e=r(),a=o(),k=_("one"),F=_({}),V=s({loading:!0,list:[],uniDetail:{}}),A=_(!1);m((()=>{F.value={...JSON.parse(sessionStorage.getItem("unit-create")||"{}")},console.log(F.value);if(e.query.courseScheduleId)(async()=>{try{const{data:a}=await p.post(c.platformApi+"/lessonCoursewareExaminationMapper/detailByCourseId",{requestType:"form",data:{courseScheduleId:e.query.courseScheduleId}});F.value.classGroupId=a.classGroupId,F.value.classGroupName=a.classGroupName,F.value.testName=a.lessonCoursewareExaminationMapperName,F.value.orchestraName=a.orchestraName,F.value.coursewareName=a.lessonCoursewareName,F.value.lessonCoursewareId=a.lessonCoursewareExaminationMapper.lessonCoursewareId,F.value.preStudentNum=a.studentNum||0,F.value.testId=a.lessonCoursewareExaminationMapper.id,(a.lessonCoursewareExaminationMapper.details||[]).forEach((e=>{V.uniDetail[e.level]=e})),console.log(F.value,"forms")}catch(a){console.log(a)}})();else{if(!F.value.classGroupId)return void u("请选择班级");(async()=>{try{const{data:e}=await p.get(c.platformApi+`/classGroup/detail/${F.value.classGroupId}`);F.value.preStudentNum=e.preStudentNum||0}catch(e){console.log(e)}})(),L()}}));const L=async()=>{try{(await p.post(c.platformApi+"/lessonCoursewareExaminationMapper/detail",{requestType:"form",data:{lessonCoursewareExaminationMapperId:F.value.testId}})).data.details.forEach((e=>{V.uniDetail[e.level]=e}))}catch(e){console.log(e)}},U=async()=>{if(F.value.expiryDate)try{var t,l;await p.post(c.platformApi+"/classGroupUnitExamination/publishUnitExamination",{hideLoading:!1,data:{classGroupId:F.value.classGroupId,lessonCoursewareExaminationMapperId:F.value.testId,unitExaminationName:`${null===(t=F.value)||void 0===t?void 0:t.coursewareName}-${null===(l=F.value)||void 0===l?void 0:l.testName}`,expiryDate:F.value.expiryDate}}),u("创建成功"),sessionStorage.removeItem("unit-create"),e.query.classGroupId?g({api:"back"}):a.replace("/unit-list")}catch(n){console.log(n)}else u("请输入截止时间")};return()=>{var e,a,r,o,_;return t(i,null,[t("div",{class:I},[t(d,null,null),t("h4",{class:N},[t(n,{name:b,class:C},null),null===(e=F.value)||void 0===e?void 0:e.coursewareName,l("-"),null===(a=F.value)||void 0===a?void 0:a.testName]),t("div",{class:T},[t(y,{center:!0,valueClass:B,value:null===(r=F.value)||void 0===r?void 0:r.orchestraName,title:"乐团",border:!1},null),t(y,{center:!0,valueClass:B,value:null===(o=F.value)||void 0===o?void 0:o.classGroupName,title:"班级",border:!1},null),t(y,{center:!0,class:E,valueClass:B,value:((null===(_=F.value)||void 0===_?void 0:_.preStudentNum)||0)+"人",title:"学员人数"},null),t(x,{modelValue:F.value.expiryDate,"onUpdate:modelValue":e=>F.value.expiryDate=e,type:"number",placeholder:"请输入截止日期","input-align":"right",label:"截止时间"},{extra:()=>t("div",{class:z},[t("span",{style:{color:"#777"}},[l(" 天后截止")])])})]),t("div",{class:S},[t(n,{class:G,name:W,size:18,color:"#333",onClick:()=>{A.value=!0}},null),t(w,{active:k.value,"onUpdate:active":e=>k.value=e,class:j,background:"#F8F8F8","title-active-color":"#333333","title-inactive-color":"#777",color:"#FF8057",shrink:!0},{default:()=>[t(D,{name:"one",title:"单团学员"},{default:()=>[t(J,{item:V.uniDetail[1]},null)]}),t(D,{name:"two",title:"双团学员"},{default:()=>[t(J,{item:V.uniDetail[2]},null)]}),t(D,{name:"three",title:"多团学员"},{default:()=>[t(J,{item:V.uniDetail[3]},null)]})]})]),t(v,{position:"bottom"},{default:()=>[t("div",{class:"btnGroup"},[t(f,{block:!0,round:!0,type:"primary",onClick:U},{default:()=>[l("创建完成")]})])]}),t(h,{class:"exercisDetailDialog",show:A.value,"onUpdate:show":e=>A.value=e,title:"提示框",confirmButtonText:"我知道了"},{title:()=>t("div",{class:M},[t("span",null,null),t("p",null,[l("学员分类")])]),default:()=>t("div",{class:q},[t("p",null,[l("根据学员入团的批次对不同训练阶段的学员进行分类,不同训练阶段的学员可布置不同标准的课后作业和阶段自测内容。")]),t("br",null,null),t("p",null,[l("单团学员:最新进入本乐团的学员")]),t("p",null,[l("双团学员:较早进入本乐团的学员")]),t("p",null,[l("多团学员:最早进入本乐团的学员")])])})])])}}}))}}}))}();