index.f40c7c7d.js 7.6 KB

12345
  1. <<<<<<<< HEAD:dist/assets/index.45028a64.js
  2. import{d as S,ai as g,r as y,g as c,U as m,a1 as v,e as E,b9 as R,c as a,al as w,a7 as C,t as U,am as L,an as T,n as O,q as k}from"./ResizeObserver.es.baf4a4ed.js";import{O as x}from"./index.58c91c2f.js";import{O as I}from"./index.8cb629d2.js";import{s as u,U as P}from"./unit-list-item.e745c2b5.js";import{O as b}from"./index.a53bfb2f.js";import{O as V}from"./index.d6e886ed.js";import{L as N}from"./index.0a9b9b85.js";import"./index.11d89c60.js";import"./index.12482c10.js";import"./index.78086dad.js";import"./index.cdfe7c9e.js";import"./icon-edit.664c5ff1.js";import"./icon-muit-message.0a72e92d.js";import"./index.41985148.js";import"./index.ed9574cc.js";import"./index.e4d10fd2.js";import"./use-tab-status.b0a33315.js";var B="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAAAAAXNSR0IArs4c6QAAALtJREFUWEftmNENwyAMRPEgyRJmiUzSmTpJlsBLlEGokKiEojTSxVRC1fFtH9YDzIGEASPGuJVSnlVKRB4ppd0rK16Bmq+qrxDC0rSyma1e3VGFlb4QM3PrugUaMRYGbRFVJTES+0aApxLaG/UGQRPO4nkqUYokRmIXBKQzeR8/hQIbHZ+r2ZSDyRs9yV29PG9h0y7lXdZ9HvsYSpHESOyq86N06MdIDCRAzw8C4ysJBfb/xOb86vzF5/AbfM2i57toBH8AAAAASUVORK5CYII=";function G(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!T(o)}var te=S({name:"unit-list",setup(){const o=g(),e=y({oPopover:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},statusText:"\u73ED\u7EA7\u7C7B\u578B",params:{keyword:null,classTypeCode:null,page:1,rows:20},isClick:!1,action:[{name:"\u73ED\u7EA7\u7C7B\u578B",id:"ALL",selected:!0},{name:"\u5355\u6280\u73ED",id:"SINGLE"},{name:"\u4E50\u7406\u73ED",id:"MUSIC_THEORY"},{name:"\u5408\u594F\u73ED",id:"INSTRUMENTAL_ENSEMBLE"}]}),n=c.platformApi,i=m(!1),l=m(!1),r=async()=>{if(!e.isClick){e.isClick=!0,l.value=!0;try{i.value&&(e.params.page=1,e.list=[],i.value=!1);const s=c.platformType==="TEACHER"?`${n}/studentUnitExamination/queryPageByTeacher`:`${n}/studentUnitExamination/queryPageByManage`,t=await O.post(s,{data:{...e.params}});if(e.list.length>0&&t.data.pages===1)return;e.params.page=t.data.current+1,e.list=e.list.concat(t.data.rows||[]),e.listState.dataShow=e.list.length>0,l.value=!1,e.listState.finished=t.data.current>=t.data.pages}catch(s){const t=s.message;k(t),e.listState.dataShow=!1,e.listState.finished=!0}e.isClick=!1}},f=()=>{e.listState.finished=!0,l.value=!0,r()},p=()=>{e.params.page=1,e.list=[],e.listState.dataShow=!0,e.listState.loading=!1,e.listState.finished=!1,r()};v(()=>{r(),window.history.pushState(null,"",document.URL),window.addEventListener("popstate",d,!1)});const d=()=>{E({api:"back"})};R(()=>{window.removeEventListener("popstate",d)});const h=()=>{sessionStorage.removeItem("unit-create"),o.push("/unit-create")};return()=>{let s;return a("div",{class:u.unitTest},[a(I,{position:"top",onGetHeight:t=>{document.documentElement.style.setProperty("--header-height",t+"px")}},{default:()=>[a(w,{border:!1},{right:()=>n=="/api-teacher"?a(C,{name:B,size:19,onClick:h},null):null}),a(x,{placeholder:"\u8BF7\u8F93\u5165\u6D4B\u9A8C\u540D\u79F0",onSearch:t=>{e.params.keyword=t,p()}},{left:()=>a("div",{class:["searchItem-left",e.oPopover?"searchItem-active":""],onClick:()=>e.oPopover=!0},[a("span",null,[e.statusText,U(" ")])])})]}),e.listState.dataShow?a(b,{modelValue:i.value,"onUpdate:modelValue":t=>i.value=t,onRefresh:f,style:"min-height: calc(100vh - var(--header-height));"},{default:()=>[a(N,{finished:e.listState.finished,finishedText:" ",class:[u.liveList],onLoad:r,style:{paddingTop:"12px"},immediateCheck:!1},G(s=e.list.map(t=>a(P,{item:t},null)))?s:{default:()=>[s]})]}):a(L,{tips:"\u6682\u65E0\u9636\u6BB5\u81EA\u6D4B"},null),a(V,{show:e.oPopover,"onUpdate:show":t=>e.oPopover=t,actions:e.action,onSelect:t=>{e.action.forEach(A=>{A.selected=!1}),t.selected=!0,e.statusText=t.name,e.params.classTypeCode=t.id==="ALL"?null:t.id,e.oPopover=!1,p()}},null)])}}});export{te as default};
  3. ========
  4. import{d as S,ai as g,r as y,g as c,U as m,a1 as v,e as E,b9 as R,c as a,al as w,a7 as C,t as U,am as L,an as T,n as O,q as k}from"./ResizeObserver.es.711e87db.js";import{O as x}from"./index.19404ea2.js";import{O as I}from"./index.773c743a.js";import{s as u,U as P}from"./unit-list-item.572c200b.js";import{O as b}from"./index.9c77c02b.js";import{O as V}from"./index.9afa414e.js";import{L as N}from"./index.fc676c85.js";import"./index.196bd3ce.js";import"./index.098e67cb.js";import"./index.25e5ec84.js";import"./index.41641013.js";import"./icon-edit.664c5ff1.js";import"./icon-muit-message.0a72e92d.js";import"./index.a9f92b97.js";import"./index.02d06093.js";import"./index.df4f72e4.js";import"./use-tab-status.a55dfd6e.js";var B="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAAAAAXNSR0IArs4c6QAAALtJREFUWEftmNENwyAMRPEgyRJmiUzSmTpJlsBLlEGokKiEojTSxVRC1fFtH9YDzIGEASPGuJVSnlVKRB4ppd0rK16Bmq+qrxDC0rSyma1e3VGFlb4QM3PrugUaMRYGbRFVJTES+0aApxLaG/UGQRPO4nkqUYokRmIXBKQzeR8/hQIbHZ+r2ZSDyRs9yV29PG9h0y7lXdZ9HvsYSpHESOyq86N06MdIDCRAzw8C4ysJBfb/xOb86vzF5/AbfM2i57toBH8AAAAASUVORK5CYII=";function G(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!T(o)}var te=S({name:"unit-list",setup(){const o=g(),e=y({oPopover:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},statusText:"\u73ED\u7EA7\u7C7B\u578B",params:{keyword:null,classTypeCode:null,page:1,rows:20},isClick:!1,action:[{name:"\u73ED\u7EA7\u7C7B\u578B",id:"ALL",selected:!0},{name:"\u5355\u6280\u73ED",id:"SINGLE"},{name:"\u4E50\u7406\u73ED",id:"MUSIC_THEORY"},{name:"\u5408\u594F\u73ED",id:"INSTRUMENTAL_ENSEMBLE"}]}),n=c.platformApi,i=m(!1),l=m(!1),r=async()=>{if(!e.isClick){e.isClick=!0,l.value=!0;try{i.value&&(e.params.page=1,e.list=[],i.value=!1);const s=c.platformType==="TEACHER"?`${n}/studentUnitExamination/queryPageByTeacher`:`${n}/studentUnitExamination/queryPageByManage`,t=await O.post(s,{data:{...e.params}});if(e.list.length>0&&t.data.pages===1)return;e.params.page=t.data.current+1,e.list=e.list.concat(t.data.rows||[]),e.listState.dataShow=e.list.length>0,l.value=!1,e.listState.finished=t.data.current>=t.data.pages}catch(s){const t=s.message;k(t),e.listState.dataShow=!1,e.listState.finished=!0}e.isClick=!1}},f=()=>{e.listState.finished=!0,l.value=!0,r()},p=()=>{e.params.page=1,e.list=[],e.listState.dataShow=!0,e.listState.loading=!1,e.listState.finished=!1,r()};v(()=>{r(),window.history.pushState(null,"",document.URL),window.addEventListener("popstate",d,!1)});const d=()=>{E({api:"back"})};R(()=>{window.removeEventListener("popstate",d)});const h=()=>{sessionStorage.removeItem("unit-create"),o.push("/unit-create")};return()=>{let s;return a("div",{class:u.unitTest},[a(I,{position:"top",onGetHeight:t=>{document.documentElement.style.setProperty("--header-height",t+"px")}},{default:()=>[a(w,{border:!1},{right:()=>n=="/api-teacher"?a(C,{name:B,size:19,onClick:h},null):null}),a(x,{placeholder:"\u8BF7\u8F93\u5165\u6D4B\u9A8C\u540D\u79F0",onSearch:t=>{e.params.keyword=t,p()}},{left:()=>a("div",{class:["searchItem-left",e.oPopover?"searchItem-active":""],onClick:()=>e.oPopover=!0},[a("span",null,[e.statusText,U(" ")])])})]}),e.listState.dataShow?a(b,{modelValue:i.value,"onUpdate:modelValue":t=>i.value=t,onRefresh:f,style:"min-height: calc(100vh - var(--header-height));"},{default:()=>[a(N,{finished:e.listState.finished,finishedText:" ",class:[u.liveList],onLoad:r,style:{paddingTop:"12px"},immediateCheck:!1},G(s=e.list.map(t=>a(P,{item:t},null)))?s:{default:()=>[s]})]}):a(L,{tips:"\u6682\u65E0\u9636\u6BB5\u81EA\u6D4B"},null),a(V,{show:e.oPopover,"onUpdate:show":t=>e.oPopover=t,actions:e.action,onSelect:t=>{e.action.forEach(A=>{A.selected=!1}),t.selected=!0,e.statusText=t.name,e.params.classTypeCode=t.id==="ALL"?null:t.id,e.oPopover=!1,p()}},null)])}}});export{te as default};
  5. >>>>>>>> iteration-20241018-courseware:dist/assets/index.f40c7c7d.js