uni-test.6d3bf2dd.js 11 KB

1
  1. import{d as m,ah as B,ag as b,f as k,R as L,r as h,$ as v,c as e,aj as D,L as S,q as i,F as q,B as I,ak as N,al as Q,m as c,g as r}from"./index.1c621181.js";import{O as C}from"./index.b491c24a.js";import{i as H}from"./icon-list.12309bf1.js";import{I as F}from"./index.4c221cbe.js";import{C as z}from"./index.2db9d877.js";import{C as T}from"./index.fd5ae97b.js";const E="_uniTest_pbaqe_1",O="_periodContent_pbaqe_8",w="_cover_pbaqe_12",y="_contentTitle_pbaqe_33",K="_contentLabel_pbaqe_40",V="_periodTitle_pbaqe_46",j="_pIcon_pbaqe_51",J="_pTitle_pbaqe_56",R="_pNum_pbaqe_62",f="_periodList_pbaqe_67",U="_baseBtn_pbaqe_104",P="_look_pbaqe_115",Z="_disable_pbaqe_118",Y="_periodItem_pbaqe_122";var t={uniTest:E,periodContent:O,cover:w,contentTitle:y,contentLabel:K,periodTitle:V,pIcon:j,pTitle:J,pNum:R,periodList:f,baseBtn:U,look:P,disable:Z,periodItem:Y},M="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABQCAYAAAC6aDOxAAAAAXNSR0IArs4c6QAACaBJREFUeF7lnPtzVNUdwD9n8yaERxkTwkMeTXjIG4UADUMrGEtBImAFfqj+0pn2F21tlT+CaivaB3ac6VR/qGNn6LQFrWDxgRMSJAKtBrQtqERIeIoJBZLdvZ1zH9mzd+/uvXf3YG/WnclkZ89jz/ns9/s93+/3nHsEIV9G9+GFlBj3YLAcYczEoB5BDQalIbu6NdVFCYy/S/Yd58wbfQz0nQM+BA5Rktwvpm08FuaLRZDKxpm2KspKvo9h/BCDO4K0+b/VSQGCTw/AYL97KF0gdlFx43kx+cHrfuP0BWScbf8egh0YjPfrLBLl/oCcYfYQE9vF9A0v5hp3VkBGd8c4YsbvgXWRmHjQQQQH5PS4l8HEw2L2pkteX+EJyDjf2UB8cB8wLei4IlMvPCAwOI2gRTS0/ts9jwxANpx3gLrITDrMQPIBZPX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YjUCvG6irDKqVKDn0ORQYEpwY75L0h6i2ElS1kS1IJjF97OURDbIgSFziho4ACm8J7hI79zXQclZuc8Q8i+BYk/qzzpjbaAvozEHgYn1o4V6qbqQ+yl1hohSlDQNuLg0WvGhHx9EKoNfDA0FeqrUOYgb5O4ajvRejhdR8CbS6VAJGLlZSTyaVnFQHMIngSDYetNQDDV8H4RBYazKDcx0ZejTipK0EiQu+5gK6aZ90IF9Qv5MhJqTUjyqBCWb53E/sZPkU2R2DCUjNAEZOACxRP1IQDRNZW+0BxTwVRUe6/XO4AkgeBqRlsoRTw92r/Z3m9+Nhlv7SULYzGLzx/zhUrHDoURd6HCquH6i7DjjUNcGccCZ+H8m8TjjU3Wo2b43fh3o1AGRLTFxhOLTjtaJzTS3x9Vi4BnBoiOwsZ3F8HiygASCr1VpXNu/RvPg8mkIDQMLRFPc+zI6miLvDTa4TkMVidk3MHz0qY0o5O9yEXvFzPM510gHgcAy5f/rdDwiHv8XhAUvXByjZnlQx6xdLQw9YomHj44iu2AHRYW+5Wc6ivNK5gRPxQg95271+7NnGgXzIW2yAyO6MGpFRUnDbXNlJeHF4TGD0gNgxgc4yJZwQGyQdeuAeNBkdILI5WcMdC6RqJR0hDo8q7R8gUqmUlORlorcK1ysiIDFOGjiH3fYNiCJkm838ypisrFcpzomEs1+ApIPo/7hkPluDwWs0GDqNJqPLBAM7Ljk97bNJd8yP6rjk/wHxomNpmFt/uQAAAABJRU5ErkJggg==";function G(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Object]"&&!Q(s)}var te=m({name:"uni-test",setup(){const s=B(),u=b();k();const n=L({}),o=h({loading:!0,detail:{cover:"",name:"",des:""},list:[]}),d=async()=>{const a=await c.get(`${r.platformApi}/lessonCourseware/detail/${s.query.lessonCoursewareId}`);a!=null&&a.data&&(o.detail.cover=a.data.coverImg,o.detail.name=a.data.name,o.detail.des=a.data.lessonTargetDesc)},p=async()=>{o.loading=!0;try{const a=await c.post(r.platformApi+"/courseSchedule/queryUnitExamination",{requestType:"form",data:{lessonCoursewareId:s.query.lessonCoursewareId,classGroupId:n.value.classGroupId}});o.list=a.data||[]}catch{}o.loading=!1};v(()=>{d(),n.value={...JSON.parse(sessionStorage.getItem("unit-create")||"{}")},p()});const g=async a=>{if(s.query.code==="select"){console.log("\u9009\u62E9\u8BFE\u65F6");return}n.value.testName=a.name,n.value.testId=a.id,sessionStorage.setItem("unit-create",JSON.stringify(n.value)),u.push({path:"/uni-last"})};return()=>{let a;return e("div",{class:t.uniTest},[e(C,{onGetHeight:l=>{document.documentElement.style.setProperty("--header-height",l+"px")}},{default:()=>[e(D,{border:!1,background:"transparent",color:"rgba(124, 61, 18, 1)",title:"\u6559\u6750\u8BE6\u60C5"},null)]}),e("div",{class:t.periodContent},[e(F,{class:t.cover,src:o.detail.cover},{loading:()=>e(S,null,null)}),e("div",null,[e("div",{class:t.contentTitle},[o.detail.name]),e("div",{class:t.contentLabel},[i("\u6559\u5B66\u76EE\u6807\uFF1A"),o.detail.des])])]),e("div",{class:t.periodTitle},[e("img",{class:t.pIcon,src:H},null),e("div",{class:t.pTitle},[i("\u8BFE\u7A0B\u5217\u8868")]),e("div",{class:t.pNum},[i("\u5171"),o.list.length,i("\u8BFE")])]),e("div",{class:t.periodList},[e(z,{inset:!0},G(a=o.list.map(l=>{const A=!l.unLockFlag;return e(T,{border:!0,center:!0,title:l.name,label:`\u5DF2\u4F7F\u7528${l.useNum}\u6B21`,onClick:()=>!A&&g(l)},{icon:()=>e("div",{class:t.periodItem},[e("div",{class:t.periodItemModel},[e("img",{src:A?x:M},null)])]),value:()=>e(q,null,[e(I,{disabled:A,class:[t.baseBtn,A?t.disable:t.look]},{default:()=>[i("\u4F7F\u7528")]})])})}))?a:{default:()=>[a]})]),!o.loading&&!o.list.length&&e(N,{tips:"\u6682\u65E0\u5185\u5BB9"},null)])}}});export{te as default};