detail.bb93b625.js 35 KB

1
  1. var Te=Object.defineProperty,Ee=Object.defineProperties;var be=Object.getOwnPropertyDescriptors;var j=Object.getOwnPropertySymbols;var ie=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable;var se=(u,m,r)=>m in u?Te(u,m,{enumerable:!0,configurable:!0,writable:!0,value:r}):u[m]=r,N=(u,m)=>{for(var r in m||(m={}))ie.call(m,r)&&se(u,r,m[r]);if(j)for(var r of j(m))ue.call(m,r)&&se(u,r,m[r]);return u},S=(u,m)=>Ee(u,be(m));var Y=(u,m)=>{var r={};for(var s in u)ie.call(u,s)&&m.indexOf(s)<0&&(r[s]=u[s]);if(u!=null&&j)for(var s of j(u))m.indexOf(s)<0&&ue.call(u,s)&&(r[s]=u[s]);return r};var x=(u,m,r)=>new Promise((s,t)=>{var C=n=>{try{p(r.next(n))}catch(w){t(w)}},i=n=>{try{p(r.throw(n))}catch(w){t(w)}},p=n=>n.done?s(n.value):Promise.resolve(n.value).then(C,i);p((r=r.apply(u,m)).next())});import{d as U,f as X,g as Q,o as J,u as K,e as P,a as I,B as R,i as e,a9 as D,_ as B,p as y,k as c,cg as $,ao as q,ai as ve,aa as O,aj as z,c as Z,r as M,l as b,cf as Ce,F as De,dk as W,q as ee,ce as H,a1 as de,H as ce,cd as xe,di as Le,ac as Fe,ad as pe,dv as ge,a0 as V,N as Ie,at as _e,dm as Ae,bn as Be,bC as fe,M as Ne,dw as Ue,W as ye,d7 as Se,d8 as me}from"./index.6bfa570d.js";import{F as qe,G as Me,H as Re,I as Pe,J as Oe,n as Ke,K as je,L as Ve,u as ze,M as he,N as He,O as Ge,P as $e,Q as We,R as Ye,S as Xe,x as Qe,T as Je,U as Ze,V as ea}from"./api.b20da898.js";import{P as ae}from"./index.d38cf90b.js";import{S as ke}from"./index.61053fe7.js";import{g as aa,f as ta}from"./dateUtil.1ad76c84.js";import{g as la,l as na}from"./knowledgeTypeData.3b15dd0b.js";import{T as oa}from"./index.5f21211c.js";import{a as ra}from"./uploadFile.f3ce2f5a.js";import{D as we}from"./DeleteFilled.184dd264.js";import{U as sa}from"./index.c36ff199.js";import{u as ia}from"./tabsView.a2c8f242.js";import{N as ua}from"./PageHeader.9e62c42a.js";import"./searchs.b637f0d6.js";import"./dayjs.min.e0f291c5.js";import"./oss-file-upload.b4b00ff5.js";const da={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},ca=Q("path",{d:"M880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32zm-622.3-84c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 0 0 0-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 0 0 9.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9z",fill:"currentColor"},null,-1),pa=[ca],ga=U({name:"EditFilled",render:function(m,r){return J(),X("svg",da,pa)}}),fa={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},ya=Q("path",{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM540 701v53c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-53a48.01 48.01 0 1 1 56 0zm152-237H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224z",fill:"currentColor"},null,-1),ma=[ya],ha=U({name:"LockFilled",render:function(m,r){return J(),X("svg",fa,ma)}}),wa={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},va=Q("path",{d:"M832 464H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v68c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-68c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM540 701v53c0 4.4-3.6 8-8 8h-40c-4.4 0-8-3.6-8-8v-53a48.01 48.01 0 1 1 56 0z",fill:"currentColor"},null,-1),Ca=[va],ka=U({name:"UnlockFilled",render:function(m,r){return J(),X("svg",wa,Ca)}}),Ta="_createWrap_17l09_1",Ea="_createCourseware_17l09_4",ba="_courseConfiguration_17l09_8",Da="_title_17l09_11",G={createWrap:Ta,createCourseware:Ea,courseConfiguration:ba,title:Da},xa=U({name:"AddseKnowledge",emits:["close","handleSuccess"],props:{item:{type:Object,default:()=>{}},courseTypeCode:{type:String,default:""}},setup(u,{emit:m}){const r=K();P();const s=I({pagination:{page:1,rows:10,pageTotal:0},searchForm:{lessonCoursewareDetailId:"",keyword:""},loading:!1,dataList:[],checkList:[],addLoading:!1}),t=()=>[{type:"selection",disabled(p){return p.totalMaterialNum<=0}},{title:"\u77E5\u8BC6\u70B9\u540D\u79F0",key:"name"},{title:"\u8BFE\u7A0B\u7C7B\u578B",key:"courseTypeName",width:200,ellipsis:!0,render(p){return e(q,{placement:"top-start"},{default:()=>p.courseTypeName,trigger:()=>p.courseTypeName})}},{title:"\u7D20\u6750\u6570\u91CF",key:"totalMaterialNum"},{title:"\u5EFA\u8BAE\u5B66\u4E60\u65F6\u957F",key:"totalMaterialTimeSecond",render(p){return p.totalMaterialTimeSecond+"s"}}],C=()=>x(this,null,function*(){s.loading=!0;try{const{data:p}=yield qe(S(N({},s.searchForm),{lessonCoursewareDetailId:u.item.id,courseTypeCode:u.courseTypeCode,page:s.pagination.page,rows:s.pagination.rows}));Array.isArray(p==null?void 0:p.rows)&&(s.dataList=p.rows,s.pagination.pageTotal=p.total)}catch(p){}s.loading=!1});R(()=>{C()});const i=()=>x(this,null,function*(){s.addLoading=!0;const p=yield Me({id:u.item.id,knowledgePointIds:s.checkList.join(",")});(p==null?void 0:p.code)===200&&(r.success("\u4FDD\u5B58\u6210\u529F"),m("handleSuccess")),s.addLoading=!1});return()=>e("div",null,[e(D,{style:{paddingBottom:"12px"}},{default:()=>[e(B,{placeholder:"\u77E5\u8BC6\u70B9\u540D\u79F0",value:s.searchForm.keyword,"onUpdate:value":p=>s.searchForm.keyword=p},null),e(y,{type:"primary",onClick:()=>{s.pagination.page=1,C()}},{default:()=>[c("\u641C\u7D22")]}),e(y,{onClick:()=>{s.searchForm.keyword=""}},{default:()=>[c("\u91CD\u7F6E")]})]}),e($,{loading:s.loading,rowKey:p=>p.id,columns:t(),data:s.dataList,onUpdateCheckedRowKeys:(p,n)=>{let w=[];n.forEach(_=>{_.children&&_.children.length>0||w.push(_.id)}),s.checkList=w}},null),e(ae,{page:s.pagination.page,"onUpdate:page":p=>s.pagination.page=p,pageSize:s.pagination.rows,"onUpdate:pageSize":p=>s.pagination.rows=p,pageTotal:s.pagination.pageTotal,"onUpdate:pageTotal":p=>s.pagination.pageTotal=p,onList:C,sync:!0},null),e(D,{justify:"end",style:{paddingTop:"12px"}},{default:()=>[e(y,{onClick:()=>m("close")},{default:()=>[c("\u53D6\u6D88")]}),e(y,{type:"primary",disabled:!s.checkList.length,loading:s.addLoading,onClick:()=>i()},{default:()=>[c("\u786E\u8BA4")]})]})])}}),La=U({name:"CourseKnowledgePoint",props:{item:{type:Object,default:()=>{}},courseTypeCode:{type:String,default:""}},emits:["handleSuccess"],setup(u,{emit:m}){const r=K(),s=ve();P();const t=I({pagination:{page:1,rows:1e3,pageTotal:0},searchForm:{keyword:"",knowledgePointId:""},loading:!1,dataList:[],checkList:[],visiableKnowledge:!1}),C=[{type:"selection"},{title:"\u77E5\u8BC6\u70B9\u540D\u79F0",key:"name",render(a){return e(z,null,[a.name,c("("),a.knowledgePointId,c(")")])}},{title:"\u8BFE\u7A0B\u7C7B\u578B",key:"courseTypeName",width:200,ellipsis:!0,render(a){return e(q,{placement:"top-start"},{default:()=>a.courseTypeName,trigger:()=>a.courseTypeName})}},{title:"\u7D20\u6750\u6570\u91CF",key:"totalMaterialNum"},{title:"\u5EFA\u8BAE\u5B66\u4E60\u65F6\u957F",key:"totalMaterialTimeSecond",render(a){return a.totalMaterialTimeSecond+"s"}},{title:"\u64CD\u4F5C",key:"operation",fixed:"right",render(a,g){return e(D,null,{default:()=>[e(y,{text:!0,type:"primary",disabled:a.relOrder===1,onClick:()=>w("up",a)},{default:()=>[c("\u4E0A\u79FB")]}),e(y,{text:!0,type:"primary",disabled:n(a),onClick:()=>w("down",a)},{default:()=>[c("\u4E0B\u79FB")]})]})}}],i=()=>x(this,null,function*(){var a;t.loading=!0;try{const{data:g}=yield Re(S(N({},t.searchForm),{lessonCoursewareDetailId:(a=u.item)==null?void 0:a.id,page:t.pagination.page,rows:t.pagination.rows}));Array.isArray(g==null?void 0:g.rows)&&(t.dataList=g.rows.map((d,h)=>S(N({},d),{relOrder:h+1,parentId:0})),t.dataList.forEach(d=>{d.children&&d.children.length>0&&d.children.forEach((h,k)=>{h.relOrder=k+1,h.parentId=d.id})}),console.log(t.dataList,"dataList"))}catch(g){}t.loading=!1});R(()=>{i()});const p=()=>{const a=s.warning({title:"\u8B66\u544A",content:"\u662F\u5426\u786E\u8BA4\u5220\u9664\u77E5\u8BC6\u70B9\u5173\u8054?",positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>x(this,null,function*(){var g;a.loading=!0,console.log(u.item);try{const d=yield Pe({id:(g=u.item)==null?void 0:g.id,knowledgePointIds:t.checkList.join(",")});r.success("\u5220\u9664\u6210\u529F"),t.checkList=[],i(),m("handleSuccess")}catch(d){}a.loading=!1})})},n=a=>{const g=t.dataList||[];if(a.parentId>0){const d=g.find(h=>h.id===a.parentId);return a.relOrder===d.children.length}else return a.relOrder===g.length},w=(a,g)=>{if(t.loading)return;const d=g.relOrder-1;g.parentId>0?t.dataList:t.dataList.find(E=>E.id===g.parentId),a==="up"?g.parentId<=0?t.dataList[d]=t.dataList.splice(d-1,1,t.dataList[d])[0]:t.dataList.forEach(E=>{E.id===g.parentId&&(E.children[d]=E.children.splice(d-1,1,E.children[d])[0])}):g.parentId<=0?t.dataList[d]=t.dataList.splice(d+1,1,t.dataList[d])[0]:t.dataList.forEach(E=>{E.id===g.parentId&&(E.children[d]=E.children.splice(d+1,1,E.children[d])[0])});const h=[];let k=0;t.dataList.forEach((E,L)=>{E.relOrder=L+1,E.children&&E.children.length>0?E.children.forEach((F,o)=>{F.relOrder=o+1,F.parentId=E.id,k=k+1,h.push({sortNo:k,id:F.id})}):(k=k+1,h.push({sortNo:k,id:E.id}))}),console.log(h),_(h)},_=a=>x(this,null,function*(){try{yield Oe(a)}catch(g){}});return()=>e("div",null,[e(D,{style:{paddingBottom:"12px"}},{default:()=>[e(y,{type:"primary",onClick:()=>t.visiableKnowledge=!0},{default:()=>[c("\u5173\u8054\u77E5\u8BC6\u70B9")]}),e(y,{type:"error",disabled:!t.checkList.length,onClick:()=>p()},{default:()=>[c("\u6279\u91CF\u5220\u9664")]})]}),e(D,{style:{paddingBottom:"12px"}},{default:()=>[e(B,{placeholder:"\u77E5\u8BC6\u70B9\u540D\u79F0",value:t.searchForm.keyword,"onUpdate:value":a=>t.searchForm.keyword=a},null),e(y,{type:"primary",onClick:()=>{t.pagination.page=1,i()}},{default:()=>[c("\u641C\u7D22")]}),e(y,{onClick:()=>{t.searchForm.keyword="",t.pagination.page=1,i()}},{default:()=>[c("\u91CD\u7F6E")]})]}),e($,{loading:t.loading,rowKey:a=>a.id,columns:C,"onUpdate:columns":a=>C=a,data:t.dataList,onUpdateCheckedRowKeys:(a,g)=>{let d=[];g.forEach(h=>{h.children&&h.children.length>0||d.push(h.id)}),t.checkList=d}},null),e(O,{preset:"dialog",show:t.visiableKnowledge,"onUpdate:show":a=>t.visiableKnowledge=a,title:"\u6DFB\u52A0\u77E5\u8BC6\u70B9",showIcon:!1,style:{width:"1000px"}},{default:()=>[e(xa,{courseTypeCode:u.courseTypeCode,item:u.item,onClose:()=>{t.visiableKnowledge=!1},onHandleSuccess:()=>{t.visiableKnowledge=!1,i(),m("handleSuccess")}},null)]})])}}),Fa=U({name:"after-class-training-manage",emits:["handleSuccess"],props:{courseTypeCode:{type:String,default:""}},setup(u,{emit:m}){Z();const r=I({loading:!1,pagination:{page:1,rows:10,pageTotal:0},dataList:[]}),s=I({keyword:"",time:null,operatorId:null}),t=()=>x(this,null,function*(){try{r.loading=!0;const a=s,{time:g}=a,d=Y(a,["time"]),{data:h}=yield Ke(S(N(N({},d),aa(s.time,["startUpdateTime","endUpdateTime"])),{enableFlag:!0,courseType:u.courseTypeCode,page:r.pagination.page,rows:r.pagination.rows}));r.loading=!1,r.pagination.pageTotal=Number(h.total),r.dataList=h.rows||[]}catch(g){r.loading=!1}});R(()=>{t()});const C=a=>{m("handleSuccess",a)},i=()=>[{title:"\u8BAD\u7EC3\u540D\u79F0",key:"name",fixed:"left"},{title:"\u7F16\u53F7",key:"id"},{title:"\u8BFE\u7A0B\u7C7B\u578B",key:"courseTypeName",width:200,ellipsis:!0,render(a){return e(q,{placement:"top-start"},{default:()=>a.courseTypeName,trigger:()=>a.courseTypeName})}},{title:"\u8BAD\u7EC3\u6761\u6570",key:"trainingNum"},{title:"\u66F4\u65B0\u65F6\u95F4",key:"updateTime"},{title:"\u66F4\u65B0\u4EBA",key:"operatorName"},{title:"\u64CD\u4F5C",key:"operation",fixed:"right",render(a){return e(D,null,{default:()=>[e(y,{type:"primary",size:"small",text:!0,onClick:()=>C(a)},{default:()=>[c("\u6DFB\u52A0")]})]})}}],p=M(),n=()=>{r.pagination.page=1,t()},w=()=>{var a;(a=p.value)==null||a.submit()},_=()=>{var a;(a=p.value)==null||a.reset()};return()=>e("div",null,[e(ke,{ref:p,model:s,onSubmit:n,onSetModel:a=>Object.assign(s,a),saveKey:"selectAfterClassTraining-key"},{default:()=>[e(b,{path:"search"},{default:()=>[e(B,{value:s.keyword,"onUpdate:value":a=>s.keyword=a,placeholder:"\u8BAD\u7EC3\u540D\u79F0/\u7F16\u53F7",clearable:!0},null)]}),e(b,{path:"time"},{default:()=>[e(Ce,{"value-format":"yyyy-MM-dd HH:mm:dd",value:s.time,"onUpdate:value":a=>s.time=a,type:"daterange",clearable:!0},null)]}),e(b,null,{default:()=>[e(D,null,{default:()=>[e(y,{type:"primary",onClick:w},{default:()=>[c("\u641C\u7D22")]}),e(y,{type:"default",onClick:_},{default:()=>[c("\u91CD\u7F6E")]})]})]})]}),e($,{scrollX:1300,loading:r.loading,columns:i(),data:r.dataList,childrenKey:"children","default-expand-all":!1,"row-key":a=>a.id},null),e(ae,{saveKey:"selectAfterClassTraining-key",page:r.pagination.page,"onUpdate:page":a=>r.pagination.page=a,pageSize:r.pagination.rows,"onUpdate:pageSize":a=>r.pagination.rows=a,pageTotal:r.pagination.pageTotal,"onUpdate:pageTotal":a=>r.pagination.pageTotal=a,onList:t,sync:!0},null)])}}),Ia=U({name:"AddUnitTest",props:{courseTypeCode:{type:String,default:""},list:{type:Array,default:()=>[]},item:{type:Object,default:()=>{}}},emits:["close"],setup(u,{emit:m}){const r=K(),t=P().query,C=M(!1),i=M(),p=De(()=>u.list.map(o=>({label:o.name,value:o.id}))),n=I({id:null,name:"",desc:"",lessonCoursewareId:t.id,parentCoursewareDetailId:null,details:[{level:1,unitExaminationId:"",unitExaminationName:"",lessonCoursewareExaminationMapperId:""},{level:2,unitExaminationId:"",unitExaminationName:"",lessonCoursewareExaminationMapperId:""},{level:3,unitExaminationId:"",unitExaminationName:"",lessonCoursewareExaminationMapperId:""}]}),w={name:[{required:!0,message:"\u8BF7\u586B\u5199\u6D4B\u9A8C\u540D\u79F0",trigger:["blur","change"]}],desc:[{required:!0,message:"\u8BF7\u586B\u5199\u6D4B\u9A8C\u63CF\u8FF0",trigger:["blur","change"]}],parentCoursewareDetailId:[{required:!0,message:"\u8BF7\u9009\u62E9\u4E0A\u4E00\u8282\u8BFE\u7A0B",trigger:["blur","change"]}]},_=()=>x(this,null,function*(){if(!!u.item.id){C.value=!0;try{const o=yield je(u.item.id);(o==null?void 0:o.code)==200&&Object.keys(n).map(f=>{if(f=="details")for(let T=0;T<n.details.length;T++)o.data.details[T]&&(n.details[T]=o.data.details[T]);else n[f]=o.data[f]})}catch(o){}C.value=!1}}),a=()=>{i.value.validate(o=>x(this,null,function*(){if(!o){const f=N({},n);console.log("\u{1F680} ~ body",f);try{(yield Ve(f)).code==200&&(r.success("\u4FDD\u5B58\u6210\u529F"),m("close",!0))}catch(T){}}}))},g=I({open:!1,active:0}),d=I({pagination:{page:1,rows:10,total:0},loading:!1,active:"",list:[]}),h=M(),k=I({time:null,keyword:null,courseTypeCode:u.courseTypeCode}),E=()=>x(this,null,function*(){var f;d.loading=!0;try{const o=k,{time:T}=o,l=Y(o,["time"]),v=yield ze(S(N(N({page:d.pagination.page,rows:d.pagination.rows,enableFlag:!0},l),ta(T,["updateStartTime","updateEndTime"])),{courseTypeCode:u.courseTypeCode}));Array.isArray((f=v==null?void 0:v.data)==null?void 0:f.rows)&&(d.list=v.data.rows,d.pagination.total=v.data.total)}catch(T){}d.loading=!1}),L=()=>{d.pagination.page=1,E()};R(()=>{_(),E()});const F=()=>[{title:"\u6D4B\u9A8C\u540D\u79F0",key:"name",width:230,render(o){return e("div",null,[e("div",null,[o.name]),e("div",null,[c("\u7F16\u53F7:"),o.id])])}},{title:"\u8BFE\u7A0B\u7C7B\u578B",key:"courseTypeCode",render(o){return la(o.courseTypeCode)}},{title:"\u6D4B\u9A8C\u65F6\u957F",key:"timeMinutes",render(o){return o.timeMinutes+"\u5206\u949F"}},{title:"\u66F4\u65B0\u65F6\u95F4",key:"updateTime"},{title:"\u66F4\u65B0\u4EBA",key:"operatorName"},{title:"\u64CD\u4F5C",key:"action",render(o){return e(y,{text:!0,type:"primary",onClick:()=>{n.details[g.active].unitExaminationName=o.name,n.details[g.active].unitExaminationId=o.id,g.open=!1}},{default:()=>[c("\u9009\u62E9")]})}}];return()=>e("div",null,[e(W,{show:C.value},{default:()=>[e(ee,{ref:i,model:n,rules:w},{default:()=>[e(b,{label:"\u6D4B\u9A8C\u540D\u79F0",path:"name",required:!0},{default:()=>[e(B,{value:n.name,"onUpdate:value":o=>n.name=o},null)]}),e(b,{label:"\u6D4B\u9A8C\u63CF\u8FF0",path:"desc",required:!0},{default:()=>[e(B,{type:"textarea",rows:3,maxlength:100,showCount:!0,value:n.desc,"onUpdate:value":o=>n.desc=o},null)]}),e(b,{label:"\u6D4B\u9A8C\u8BFE\u7A0B",path:"parentCoursewareDetailId",required:!0},{default:()=>[e(H,{options:p.value,value:n.parentCoursewareDetailId,"onUpdate:value":o=>n.parentCoursewareDetailId=o},null)]}),e(b,{label:"\u5355\u56E2\u5B66\u751F\u9636\u6BB5\u81EA\u6D4B",path:"details[0].unitExaminationId",required:!0,rule:{required:!0,message:"\u8BF7\u9009\u62E9\u5355\u56E2\u9636\u6BB5\u81EA\u6D4B",trigger:["blur","blur"]}},{default:()=>[e(B,{placeholder:"\u8BF7\u9009\u62E9\u9636\u6BB5\u81EA\u6D4B",readonly:!0,onClick:()=>{g.open=!0,g.active=0},value:n.details[0].unitExaminationName,"onUpdate:value":o=>n.details[0].unitExaminationName=o},null)]}),e(b,{label:"\u53CC\u56E2\u5B66\u751F\u9636\u6BB5\u81EA\u6D4B",path:"details[1].unitExaminationId",required:!0,rule:{required:!0,message:"\u8BF7\u9009\u62E9\u53CC\u56E2\u9636\u6BB5\u81EA\u6D4B",trigger:["blur","blur"]}},{default:()=>[e(B,{placeholder:"\u8BF7\u9009\u62E9\u9636\u6BB5\u81EA\u6D4B",readonly:!0,onClick:()=>{g.open=!0,g.active=1},value:n.details[1].unitExaminationName,"onUpdate:value":o=>n.details[1].unitExaminationName=o},null)]}),e(b,{label:"\u591A\u56E2\u5B66\u751F\u9636\u6BB5\u81EA\u6D4B",path:"details[2].unitExaminationId",required:!0,rule:{required:!0,message:"\u8BF7\u9009\u62E9\u591A\u56E2\u9636\u6BB5\u81EA\u6D4B",trigger:["blur","blur"]}},{default:()=>[e(B,{placeholder:"\u8BF7\u9009\u62E9\u9636\u6BB5\u81EA\u6D4B",readonly:!0,onClick:()=>{g.open=!0,g.active=2},value:n.details[2].unitExaminationName,"onUpdate:value":o=>n.details[2].unitExaminationName=o},null)]}),e(D,{justify:"end"},{default:()=>[e(y,{onClick:()=>m("close")},{default:()=>[c("\u53D6\u6D88")]}),e(y,{type:"primary",onClick:a},{default:()=>[c("\u4FDD\u5B58")]})]})]})]}),e(O,{showIcon:!1,title:"\u9009\u62E9\u9636\u6BB5\u81EA\u6D4B",preset:"dialog",style:{width:"80vw"},show:g.open,"onUpdate:show":o=>g.open=o},{default:()=>[e(ke,{style:{padding:0},ref:h,"label-width":"",model:k,onSubmit:L,onSetModel:o=>Object.assign(k,o),saveKey:"AddUnitTest-key"},{default:()=>[e(D,null,{default:()=>[e(b,{path:"keyword",label:"\u5173\u952E\u5B57"},{default:()=>[e(B,{placeholder:"\u8BF7\u8F93\u5165\u7F16\u53F7/\u6D4B\u9A8C\u540D\u79F0",value:k.keyword,"onUpdate:value":o=>k.keyword=o,onKeydown:o=>{o.code==="Enter"&&L()},clearable:!0},null)]}),e(b,{path:"time",label:"\u65F6\u95F4"},{default:()=>[e(Ce,{value:k.time,"onUpdate:value":o=>k.time=o,type:"daterange",clearable:!0},null)]}),e(b,null,{default:()=>[e(D,null,{default:()=>[e(y,{type:"primary",onClick:()=>{var o;return(o=h.value)==null?void 0:o.submit()}},{default:()=>[c("\u641C\u7D22")]}),e(y,{type:"default",onClick:()=>{var o;return(o=h.value)==null?void 0:o.reset()}},{default:()=>[c("\u91CD\u7F6E")]})]})]})]})]}),e($,{scrollX:800,maxHeight:"500px",loading:d.loading,columns:F(),data:d.list,"row-key":o=>o.categoryId},null),e(D,{style:{padding:"10px 0"},justify:"space-between",align:"center",wrapItem:!1},{default:()=>[e(ae,{style:{margin:0},page:d.pagination.page,"onUpdate:page":o=>d.pagination.page=o,pageSize:d.pagination.rows,"onUpdate:pageSize":o=>d.pagination.rows=o,pageTotal:d.pagination.total,"onUpdate:pageTotal":o=>d.pagination.total=o,onList:E,sync:!0,saveKey:"AddUnitTest-key"},null)]})]})])}});function _a(u){return typeof u=="function"||Object.prototype.toString.call(u)==="[object Object]"&&!Be(u)}const Aa=U({name:"courseConfiguration",props:{course:{type:Object,default:()=>{}}},setup(u,m){const r=K(),s=ve(),t=P(),C=M(),i=I({open:!1,id:"",name:"",lessonTargetDesc:"",lessonTrainingId:"",lockEnable:"true",accessScope:0}),p=()=>{C.value.validate(f=>x(this,null,function*(){if(!f){const T={lessonCoursewareId:t.query.id,name:i.name,lessonTargetDesc:i.lessonTargetDesc,lockEnable:i.lockEnable,accessScope:i.accessScope};let l;if(i.id)try{l=yield he(S(N({},T),{id:i.id}))}catch(v){}else try{l=yield He(T)}catch(v){}(l==null?void 0:l.code)==200&&(r.success("\u4FDD\u5B58\u6210\u529F"),i.open=!1,w())}}))},n=I({dataList:[],mapperList:[]}),w=()=>x(this,null,function*(){try{const{data:f}=yield Ge({lessonCoursewareId:t.query.id,page:1,rows:1e3});Array.isArray(f==null?void 0:f.rows)&&(n.dataList=f.rows)}catch(f){}}),_=()=>x(this,null,function*(){try{const{data:f}=yield $e(t.query.id);Array.isArray(f)&&(n.mapperList=f)}catch(f){}});R(()=>{w(),_()});const a=f=>{const T=s.warning({title:"\u8B66\u544A",content:"\u662F\u5426\u786E\u8BA4\u5220\u9664\u6B64\u8BFE\u65F6?",positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>x(this,null,function*(){T.loading=!0;try{const l=yield We(f.id);(l==null?void 0:l.code)==200&&(r.success("\u5220\u9664\u6210\u529F"),w())}catch(l){}T.loading=!1})})},g=I({open:!1,id:""}),d=f=>x(this,null,function*(){console.log("\u{1F680} ~ row",f);const T={id:i.id,lessonTrainingId:f.id,name:i.name,lessonTargetDesc:i.lessonTargetDesc};try{const l=yield he(T);(l==null?void 0:l.code)==200&&(r.success("\u4FDD\u5B58\u6210\u529F"),g.open=!1,w())}catch(l){}}),h=I({open:!1,title:"",item:null}),k=I({open:!1,model:{}}),E=f=>{const T=s.warning({title:"\u8B66\u544A",content:`\u662F\u5426\u786E\u8BA4${f.lockFlag?"\u89E3\u9501":"\u9501\u5B9A"}\u6B64\u8BFE\u65F6?`,positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>x(this,null,function*(){T.loading=!0;try{const l=yield Ye({id:f.id,lockFlag:!f.lockFlag});r.success("\u64CD\u4F5C\u6210\u529F"),w()}catch(l){}T.loading=!1})})},L=f=>{const T=s.warning({title:"\u8B66\u544A",content:"\u662F\u5426\u786E\u8BA4\u5220\u9664\u4F5C\u4E1A?",positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>x(this,null,function*(){T.loading=!0;try{const l=yield Xe(f.id);r.success("\u5220\u9664\u6210\u529F"),w()}catch(l){}T.loading=!1})})},F=I({loading:!1,dataType:"EXAMINATION",importRef:null}),o=f=>x(this,null,function*(){console.log(f.file);const T=r.loading("\u6B63\u5728\u4E0A\u4F20\u6587\u4EF6",{duration:0});F.loading=!0;try{const l=yield ra(f.file.file,()=>{}),v=yield Qe({dataType:F.dataType,fileName:f.file.name,importUrl:l,lessonId:t.query.id});if(console.log("\u{1F680} ~ res:",v),F.loading=!1,v.data){if(T.destroy(),v.data.insertRow===0&&v.data.invalidRow===0){r.error("\u5BFC\u5165\u5931\u8D25\uFF0C\u8868\u683C\u4E3A\u7A7A");return}if(v.data.respUrl){s.error({title:"\u4FE1\u606F",content:()=>e(D,null,{default:()=>[e("div",null,[c("\u5BFC\u5165\u5931\u8D25\uFF0C\u70B9\u51FB\u4E0B\u8F7D\u9519\u8BEF\u4FE1\u606F")]),e("a",{href:v.data.respUrl,download:!0},[c("\u4E0B\u8F7D")])]})});return}w(),r.success("\u5BFC\u5165\u6210\u529F")}else r.error("\u8BF7\u4E0B\u8F7D\u6A21\u677F\u540E,\u586B\u5199\u6570\u636E\u518D\u5BFC\u5165")}catch(l){}F.loading=!1,T.destroy()});return()=>{var T;let f;return e("div",{class:G.courseConfiguration},[e(W,{show:F.loading},{default:()=>[e(D,{justify:"space-between"},{default:()=>[e(D,null,{default:()=>[e(y,{disabled:!!t.query.isLook,type:"primary",onClick:()=>{i.name="",i.lessonTargetDesc="",i.lessonTrainingId="",i.id="",i.lockEnable="",i.accessScope=0,i.open=!0}},{default:()=>[c("\u6DFB\u52A0\u8BFE\u7A0B")]}),e(y,{type:"primary",disabled:!!t.query.isLook,onClick:()=>{k.open=!0,k.model={}}},{default:()=>[c("\u6DFB\u52A0\u9636\u6BB5\u81EA\u6D4B")]})]}),e(D,{style:{marginLeft:"auto"}},{default:()=>[e(de,{size:"huge",trigger:"hover",options:[{key:"3",type:"render",render:()=>e(y,{size:"large",quaternary:!0,tag:"a",href:"https://oss.dayaedu.com/daya-docs/%E5%8D%95%E5%85%83%E6%B5%8B%E9%AA%8C%E5%AF%BC%E5%85%A5%E6%A8%A1%E6%9D%BF.xlsx",download:!0},{default:()=>[c("\u5355\u5143\u6D4B\u9A8C\u6A21\u677F")]})},{key:"1",type:"render",render:()=>e(y,{size:"large",quaternary:!0,tag:"a",href:"https://oss.dayaedu.com/daya-docs/%E8%AF%BE%E5%90%8E%E8%AE%AD%E7%BB%83%E5%AF%BC%E5%85%A5%E6%A8%A1%E6%9D%BF.xlsx",download:!0},{default:()=>[c("\u8BFE\u540E\u8BAD\u7EC3\u6A21\u677F")]})}]},{default:()=>[ce(e(y,{type:"primary"},{default:()=>[c("\u4E0B\u8F7D\u6A21\u677F")]}),[[fe("auth"),"downloadUnitQuiz1702251742292344833"]])]}),e("div",null,[e(xe,{multiple:!1,ref:l=>F.importRef=l,showFileList:!1,accept:".xlsx",customRequest:o},{default:()=>[e(de,{size:"huge",trigger:"hover",options:[{label:"\u8BFE\u4EF6",key:"COURSEWARE"},{label:"\u5355\u5143\u6D4B\u9A8C",key:"EXAMINATION"},{label:"\u8BFE\u540E\u8BAD\u7EC3",key:"HOMEWORK"}],onSelect:l=>{var v,A;F.dataType=l,console.log(F.importRef),(v=F.importRef)==null||v.clear(),(A=F.importRef)==null||A.openOpenFileDialog()}},{default:()=>[e(y,{type:"primary",onClick:l=>l.stopPropagation()},{default:()=>[c("\u5BFC\u5165\u6570\u636E")]})]})]})])]})]}),e(Le,{class:G.title,title:"\u6559\u5B66\u5185\u5BB9"},null),e(Fe,{xGap:12,yGap:8,cols:3},_a(f=n.dataList.map(l=>{const v=n.mapperList.find(A=>A.parentCoursewareDetailId==l.id);return e(z,null,[e(pe,null,{default:()=>[e(ge,{title:l.name,style:{"--n-padding-top":"5px","--n-padding-bottom":"5px",height:"100%"}},{default:()=>{var A;return e("div",null,[e("div",{style:{paddingBottom:"12px"}},[l.lessonTargetDesc]),e("table",{style:{width:"100%"}},[e("tr",null,[e("td",null,[c("\u5EFA\u8BAE\u5B66\u4E60\u65F6\u957F")]),e("td",{style:{"text-align":"right"}},[l.lessonDurationSecond||"0",c("s")])]),e("tr",null,[e("td",null,[c("\u77E5\u8BC6\u70B9")]),e("td",{style:{"text-align":"right"}},[((A=l.knowledgePointIds)==null?void 0:A.split(",").filter(Boolean).length)||0,c("\u4E2A")])]),e("tr",null,[e("td",null,[c("\u8BFE\u540E\u4F5C\u4E1A")]),e("td",{style:{"text-align":"right"}},[l.lessonTrainingId?e(z,null,[e(oa,{authLink:"afterClassTrainingManage1599968711187746818",to:{path:"/afterClassTrainingManage",query:{id:l.lessonTrainingId}}},{default:()=>[l.lessonTrainingName]}),e(q,null,{default:()=>"\u5220\u9664",trigger:()=>ce(e(y,{quaternary:!0,size:"small",circle:!0,onClick:()=>L(l)},{default:()=>[e(V,{component:e(we,null,null)},null)]}),[[fe("auth"),"lessonCoursewareDetail/removeTraining1793827126242213890"]])})]):"\u65E0"])])])])},"header-extra":()=>e(z,null,[e(q,null,{default:()=>l.lockFlag?"\u89E3\u9501":"\u9501\u5B9A",trigger:()=>e(y,{disabled:!!t.query.isLook,quaternary:!0,circle:!0,onClick:()=>E(l)},{default:()=>[e(V,{component:l.lockFlag?e(ha,null,null):e(ka,null,null)},null)]})}),e(q,null,{default:()=>"\u7F16\u8F91",trigger:()=>e(y,{disabled:!!t.query.isLook,quaternary:!0,circle:!0,onClick:()=>{var A;i.name=l.name,i.lessonTargetDesc=l.lessonTargetDesc,i.id=l.id,i.lockEnable=l.lockEnable+"",i.accessScope=(A=l.accessScope)!=null?A:0,i.open=!0}},{default:()=>[e(V,{component:e(ga,null,null)},null)]})}),e(q,null,{default:()=>"\u5220\u9664",trigger:()=>e(y,{disabled:!!t.query.isLook,quaternary:!0,circle:!0,onClick:()=>a(l)},{default:()=>[e(V,{component:e(we,null,null)},null)]})})]),action:()=>e(D,{justify:"space-around"},{default:()=>[e(y,{text:!0,disabled:!!t.query.isLook,onClick:()=>{h.title=l.name,h.open=!0,h.item=l}},{default:()=>[c("\u9009\u62E9\u77E5\u8BC6\u70B9")]}),e(y,{text:!0,disabled:!!t.query.isLook,onClick:()=>{i.id=l.id,i.lessonTargetDesc=l.lessonTargetDesc,i.name=l.name,g.open=!0}},{default:()=>[c("\u9009\u62E9\u8BFE\u540E\u4F5C\u4E1A")]})]})})]}),v&&e(pe,null,{default:()=>[e(ge,{title:v.name,style:{"--n-padding-top":"5px","--n-padding-bottom":"5px","--n-color":"rgba(238,243,254,1)","--n-action-color":"rgba(238,243,254,1)",height:"100%"}},{default:()=>{var A,te,le,ne,oe,re;return e("div",null,[e("div",{style:{paddingBottom:"12px"}},[v.desc]),e("table",{style:{width:"100%"}},[e("tr",null,[e("td",null,[c("\u5355\u56E2\u5B66\u751F")]),e("td",{style:{"text-align":"right"}},[((te=(A=v==null?void 0:v.details)==null?void 0:A[0])==null?void 0:te.unitExaminationName)||"\u65E0"])]),e("tr",null,[e("td",null,[c("\u53CC\u56E2\u5B66\u751F")]),e("td",{style:{"text-align":"right"}},[((ne=(le=v==null?void 0:v.details)==null?void 0:le[1])==null?void 0:ne.unitExaminationName)||"\u65E0"])]),e("tr",null,[e("td",null,[c("\u591A\u56E2\u5B66\u751F")]),e("td",{style:{"text-align":"right"}},[((re=(oe=v==null?void 0:v.details)==null?void 0:oe[2])==null?void 0:re.unitExaminationName)||"\u65E0"])])])])},action:()=>e(D,{justify:"space-around"},{default:()=>[e(y,{text:!0,disabled:!!t.query.isLook,onClick:()=>{k.open=!0,k.model=v}},{default:()=>[c("\u7F16\u8F91\u9636\u6BB5\u81EA\u6D4B")]})]})})]})])}))?f:{default:()=>[f]})]}),n.dataList.length?null:e(Ie,null,null),e(O,{preset:"dialog",show:i.open,"onUpdate:show":l=>i.open=l,title:i.id?"\u7F16\u8F91\u8BFE\u7A0B":"\u6DFB\u52A0\u8BFE\u7A0B",showIcon:!1},{default:()=>[e(ee,{ref:C,model:i},{default:()=>[e(b,{label:"\u8BFE\u7A0B\u540D\u79F0",required:!0,path:"name",rule:[{required:!0,message:"\u8BF7\u586B\u5199\u8BFE\u7A0B\u540D\u79F0",trigger:["blur","change"]}]},{default:()=>[e(B,{value:i.name,"onUpdate:value":l=>i.name=l},null)]}),e(b,{label:"\u662F\u5426\u9700\u8981\u89E3\u9501",required:!0,path:"lockEnable",rule:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u89E3\u9501",trigger:["blur","change"]}]},{default:()=>[e(H,{value:i.lockEnable,"onUpdate:value":l=>i.lockEnable=l,options:[{label:"\u662F",value:"true"},{label:"\u5426",value:"false"}],clearable:!0},null)]}),e(b,{label:"\u662F\u5426\u514D\u8D39",required:!0,path:"accessScope",rule:[{type:"number",required:!0,message:"\u8BBE\u7F6E\u662F\u5426\u514D\u8D39",trigger:["blur","change"]}]},{default:()=>[e(H,{value:i.accessScope,"onUpdate:value":l=>i.accessScope=l,options:[{label:"\u662F",value:0},{label:"\u5426",value:1}],clearable:!0},null)]}),e(b,{label:"\u6559\u5B66\u76EE\u6807",required:!0,path:"lessonTargetDesc",rule:[{required:!0,message:"\u8BF7\u586B\u5199\u6559\u5B66\u76EE\u6807",trigger:["blur","change"]}]},{default:()=>[e(B,{type:"textarea",rows:3,value:i.lessonTargetDesc,"onUpdate:value":l=>i.lessonTargetDesc=l,maxlength:500,showCount:!0},null)]}),e(D,{justify:"end"},{default:()=>[e(y,{onClick:()=>i.open=!1},{default:()=>[c("\u53D6\u6D88")]}),e(y,{type:"primary",onClick:()=>p()},{default:()=>[c("\u786E\u8BA4")]})]})]})]}),e(O,{preset:"dialog",show:g.open,"onUpdate:show":l=>g.open=l,title:"\u9009\u62E9\u8BFE\u540E\u4F5C\u4E1A",showIcon:!1,style:{width:"80vw"}},{default:()=>{var l;return[e(Fa,{courseTypeCode:(l=u.course)==null?void 0:l.courseTypeCode,onHandleSuccess:d},null)]}}),e(_e,{show:h.open,"onUpdate:show":l=>h.open=l,width:"80vw"},{default:()=>[e(Ae,{title:h.title,closable:!0},{default:()=>{var l;return e(La,{courseTypeCode:(l=u.course)==null?void 0:l.courseTypeCode,item:h.item,onHandleSuccess:()=>{w()}},null)},footer:()=>e(D,null,{default:()=>[e(y,{onClick:()=>h.open=!1},{default:()=>[c("\u53D6\u6D88")]}),e(y,{type:"primary",onClick:()=>h.open=!1},{default:()=>[c("\u786E\u8BA4")]})]})})]}),e(O,{preset:"dialog",show:k.open,"onUpdate:show":l=>k.open=l,title:(T=k.model)!=null&&T.id?"\u7F16\u8F91\u9636\u6BB5\u81EA\u6D4B":"\u65B0\u589E\u9636\u6BB5\u81EA\u6D4B",showIcon:!1,style:{width:"500px"}},{default:()=>{var l;return[e(Ia,{courseTypeCode:(l=u.course)==null?void 0:l.courseTypeCode,list:n.dataList,item:k.model,onClose:v=>{v&&(w(),_()),k.open=!1}},null)]}})])}}}),Ba=U({name:"createCourseware",emits:["next"],props:{course:{type:Object,default:()=>{}}},setup(u,{emit:m}){const r=K(),s=P(),t=Z(),C=s.query,i=M(!1),p=M(),n=I({coverImg:"",orchestraType:"SINGLE_DELIVERY",lessonTargetDesc:"",name:"",courseTypeCode:""}),w={coverImg:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u8BFE\u4EF6\u5C01\u9762",trigger:["blur","change"]}],lessonTargetDesc:[{required:!0,message:"\u8BF7\u586B\u5199\u8BFE\u4EF6\u76EE\u6807",trigger:["blur","change"]}],name:[{required:!0,message:"\u8BF7\u586B\u5199\u8BFE\u4EF6\u540D\u79F0",trigger:["blur","change"]}],courseTypeCode:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BFE\u7A0B\u7C7B\u578B",trigger:["blur","change"]}]};R(()=>{u.course&&(n.coverImg=u.course.coverImg,n.orchestraType=u.course.orchestraType,n.lessonTargetDesc=u.course.lessonTargetDesc,n.name=u.course.name,n.courseTypeCode=u.course.courseTypeCode,n.enableFlag=u.course.enableFlag),console.log("\u{1F680} ~ props",u.course)}),Ne(()=>n.coverImg,(a,g)=>{p.value.validate()});const _=a=>{p.value.validate(g=>x(this,null,function*(){var d,h;if(console.log(g),!g){const k=N({},n);let E="";if(C.id){E=k.id=C.id;try{(yield Je(k)).code===200&&r.success("\u4FDD\u5B58\u6210\u529F"),a&&m("next")}catch(L){}}else try{const L=yield Ze(k);(d=L==null?void 0:L.data)!=null&&d.id&&(r.success("\u4FDD\u5B58\u6210\u529F"),E=(h=L==null?void 0:L.data)==null?void 0:h.id,t.push({path:"coursewareDetail",query:{id:E}}))}catch(L){}}}))};return()=>e("div",{class:G.createCourseware},[e(W,{show:i.value,"onUpdate:show":a=>i.value=a},{default:()=>[e(ee,{ref:p,model:n,rules:w,disabled:!!C.isLook},{default:()=>[e(b,{label:"\u8BFE\u4EF6\u540D\u79F0",path:"name",required:!0},{default:()=>[e(B,{value:n.name,"onUpdate:value":a=>n.name=a},null)]}),e(b,{label:"\u4E50\u56E2\u7C7B\u578B",path:"orchestraType",required:!0},{default:()=>[e(D,null,{default:()=>[e(y,{disabled:!!C.isLook,type:n.orchestraType=="SINGLE_DELIVERY"?"primary":"default",onClick:()=>n.orchestraType="SINGLE_DELIVERY"},{default:()=>[c("\u5355\u4EA4\u4ED8\u56E2")]}),e(y,{disabled:!!C.isLook,type:n.orchestraType=="MULTIPLE_DELIVERY"?"primary":"default",onClick:()=>n.orchestraType="MULTIPLE_DELIVERY"},{default:()=>[c("\u591A\u4EA4\u4ED8\u5E38\u89C4\u56E2")]}),e(y,{disabled:!!C.isLook,type:n.orchestraType=="MULTIPLE_DELIVERY_SCHOOL"?"primary":"default",onClick:()=>n.orchestraType="MULTIPLE_DELIVERY_SCHOOL"},{default:()=>[c("\u591A\u4EA4\u4ED8\u6821\u56E2")]})]})]}),e(b,{label:"\u8BFE\u7A0B\u7C7B\u578B",path:"courseTypeCode",required:!0},{default:()=>[e(H,{disabled:!!s.query.id,placeholder:"\u8BFE\u7A0B\u7C7B\u578B",clearable:!0,value:n.courseTypeCode,"onUpdate:value":a=>n.courseTypeCode=a,options:na},null)]}),e(b,{label:"\u6559\u5B66\u76EE\u6807",path:"lessonTargetDesc",required:!0},{default:()=>[e(B,{type:"textarea",rows:4,maxlength:500,value:n.lessonTargetDesc,"onUpdate:value":a=>n.lessonTargetDesc=a,showCount:!0},null)]}),e(b,{label:"\u6559\u6750\u5C01\u9762",path:"coverImg",required:!0},{default:()=>[e(sa,{disabled:!!C.isLook,path:"courseware/",fileList:n.coverImg,"onUpdate:fileList":a=>n.coverImg=a},null)]}),e(D,null,{default:()=>[e(y,{disabled:!!C.isLook,type:"primary",onClick:()=>_()},{default:()=>[c("\u4FDD \u5B58")]}),C.id&&e(y,{onClick:()=>{_("next")}},{default:()=>[c("\u4E0B\u4E00\u6B65")]})]})]})]})])}}),Ya=U({name:"courseware-detail",setup(u,m){const r=P(),s=Z(),t=I({loading:!0,current:1,course:null}),C=w=>{t.current=w},i=ia(),p=()=>{i.closeCurrentTab(r),s.push({path:"/coursewareManage"})},n=()=>x(this,null,function*(){if(!r.query.id){t.loading=!1;return}C(2),t.loading=!0;try{const{data:w}=yield ea(r.query.id);t.course=w}catch(w){}t.loading=!1});return R(()=>{n()}),()=>e("div",{class:"system-menu-container"},[e(ua,{"on-back":()=>p(),title:t.course?t.course.name:"\u65B0\u5EFA\u8BFE\u4EF6"},null),e("div",{class:["section-container"]},[e("div",null,[e(Ue,{current:t.current,onUpdateCurrent:C},{default:()=>[e(ye("n-step"),{title:"\u57FA\u7840\u4FE1\u606F",description:"\u57FA\u7840\u4FE1\u606F\u8BBE\u7F6E"},null),e(ye("n-step"),{title:"\u8BFE\u7A0B\u914D\u7F6E",description:"\u8BFE\u4EF6\u53CA\u8BAD\u7EC3\u3001\u6D4B\u9A8C\u914D\u7F6E",disabled:!r.query.id},null)]}),e(W,{show:t.loading,"onUpdate:show":w=>t.loading=w},{default:()=>[e(Se,{class:G.createWrap,type:"line",value:t.current,"onUpdate:value":w=>t.current=w},{default:()=>[e(me,{name:1},{default:()=>[!t.loading&&e(Ba,{course:t.course,onNext:()=>{n(),C(2)}},null)]}),e(me,{name:2},{default:()=>[!t.loading&&e(Aa,{course:t.course},null)]})]})]})])])])}});export{Ya as default};