var oe=Object.defineProperty,de=Object.defineProperties;var ce=Object.getOwnPropertyDescriptors;var B=Object.getOwnPropertySymbols;var Q=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var J=(l,o,u)=>o in l?oe(l,o,{enumerable:!0,configurable:!0,writable:!0,value:u}):l[o]=u,I=(l,o)=>{for(var u in o||(o={}))Q.call(o,u)&&J(l,u,o[u]);if(B)for(var u of B(o))W.call(o,u)&&J(l,u,o[u]);return l},q=(l,o)=>de(l,ce(o));var V=(l,o)=>{var u={};for(var a in l)Q.call(l,a)&&o.indexOf(a)<0&&(u[a]=l[a]);if(l!=null&&B)for(var a of B(l))o.indexOf(a)<0&&W.call(l,a)&&(u[a]=l[a]);return u};var h=(l,o,u)=>new Promise((a,r)=>{var p=g=>{try{b(u.next(g))}catch(v){r(v)}},i=g=>{try{b(u.throw(g))}catch(v){r(v)}},b=g=>g.done?a(g.value):Promise.resolve(g.value).then(p,i);b((u=u.apply(l,o)).next())});import{S as Z}from"./index.b24e8dc3.js";import{m as me,a as ye,b as ge,c as fe,f as pe,u as be,d as ve,e as he,g as Ce,h as we}from"./api.03a83426.js";import{f as Te,S as ke}from"./index.2e5fe1a2.js";import{d as P,u as R,r as E,a as F,i as e,dk as ee,q as ae,l as y,_ as j,a9 as C,p as f,k as c,ai as te,B as O,cf as le,H as N,cg as ie,aa as ne,aj as z,bC as D,D as Se,ce as K,dl as Le,a8 as Fe,a7 as G,at as Ne,dm as De,e as se,O as X,ch as xe,d9 as U,da as A,d7 as Me,d8 as Y}from"./index.789dd106.js";import{N as $}from"./Cascader.85b68ac2.js";import{g as Ue,f as Ee}from"./dateUtil.862a46f3.js";import{P as _e}from"./index.70371ae0.js";import{U as Ie}from"./index.06e28872.js";import{l as ue}from"./knowledgeTypeData.3b15dd0b.js";import{d as je}from"./api.32da9f90.js";import{g as Pe,s as Be}from"./use-async.64e4c0e6.js";import"./searchs.b637f0d6.js";import"./api.cd91a8fe.js";import"./vuedraggable.umd.3c509ca7.js";import"./DeleteFilled.12f6975e.js";import"./api.abb70d8c.js";import"./api.4caafe9d.js";import"./searchArray.c8aafeb3.js";import"./constant.ded25e36.js";import"./dayjs.min.61ba4767.js";const qe="_datepicker_od4yz_1",re={datepicker:qe},Ae=P({name:"addCategory",emits:["handleSuccess","close"],props:["item","list","isAdd"],setup(l,{emit:o}){var v,T,k,s,S;const u=R(),a=E(!1),r=E(null),p=E([{name:"\u9876\u7EA7\u5206\u7C7B",id:"0"},...Te(l.list,"subMaterialCategoryList")]),i=F({id:(v=l==null?void 0:l.item)!=null&&v.id?(T=l==null?void 0:l.item)==null?void 0:T.id:null,name:((k=l==null?void 0:l.item)==null?void 0:k.name)||"",desc:((s=l==null?void 0:l.item)==null?void 0:s.desc)||"",parentId:((S=l==null?void 0:l.item)==null?void 0:S.parentId)||"0"}),b={name:[{required:!0,message:"\u8BF7\u586B\u5199\u7D20\u6750\u540D\u79F0",trigger:["blur","change"]}],desc:[{required:!0,message:"\u8BF7\u586B\u5199\u7D20\u6750\u63CF\u8FF0",trigger:["blur","change"]}]},g=()=>{var d;(d=r.value)==null||d.validate(L=>h(this,null,function*(){if(!L){const n=I({},i);let t=null;console.log(n),i.id?t=yield me(n):t=yield ye(n),(t==null?void 0:t.code)==200?(u.success("\u4FDD\u5B58\u6210\u529F"),o("handleSuccess")):u.warning("\u4FDD\u5B58\u5931\u8D25")}}))};return()=>e("div",null,[e(ee,{show:a.value},{default:()=>[e(ae,{ref:r,onSubmit:g,labelPlacement:"top",model:i,rules:b,"require-mark-placement":"left"},{default:()=>[l.isAdd&&e(y,{label:"\u7236\u7EA7\u5206\u7C7B",path:"parentId"},{default:()=>[e($,{placeholder:"\u8BF7\u9009\u62E9\u7236\u7EA7\u5206\u7C7B",value:i.parentId,"onUpdate:value":d=>i.parentId=d,options:p.value,checkStrategy:"all",expandTrigger:"hover",childrenField:"subMaterialCategoryList",valueField:"id",labelField:"name",clearable:!0,filterable:!0},null)]}),e(y,{label:"\u7D20\u6750\u540D\u79F0",path:"name"},{default:()=>[e(j,{value:i.name,"onUpdate:value":d=>i.name=d},null)]}),e(y,{label:"\u5206\u7C7B\u63CF\u8FF0",path:"desc"},{default:()=>[e(j,{value:i.desc,"onUpdate:value":d=>i.desc=d},null)]})]}),e(C,{justify:"end"},{default:()=>[e(f,{onClick:()=>o("close")},{default:()=>[c("\u53D6\u6D88")]}),e(f,{type:"primary",onClick:g},{default:()=>[c("\u4FDD\u5B58")]})]})]})])}}),Oe=P({name:"category-list",setup(l){const o=te(),u=R(),a=F({loading:!1,pagination:{page:1,rows:1e4},visiableCity:!1,dataList:[],cityType:"add",materail:null}),r=F({keyword:"",times:null,operatorId:""}),p=()=>[{title:"\u5206\u7C7B\u540D\u79F0",key:"name",fixed:"left"},{title:"\u5206\u7C7B\u63CF\u8FF0",key:"desc"},{title:"\u4E0A\u4F20\u65F6\u95F4",key:"updateTime",render(s){return s.updateTime||s.createTime}},{title:"\u64CD\u4F5C",key:"operation",fixed:"right",width:180,render(s){return e(C,null,{default:()=>[N(e(f,{type:"primary",text:!0,onClick:()=>{a.materail={parentId:s.id},a.visiableCity=!0}},{default:()=>[c("\u6DFB\u52A0\u5B50\u5206\u7C7B")]}),[[D("auth"),"materialCategory/save1599962104022290433"]]),N(e(f,{type:"primary",text:!0,onClick:()=>{a.cityType="update",a.materail=s,a.visiableCity=!0}},{default:()=>[c("\u4FEE\u6539")]}),[[D("auth"),"materialCategory/update1599962354053140482"]]),N(e(f,{type:"primary",text:!0,onClick:()=>k(s)},{default:()=>[c("\u5220\u9664")]}),[[D("auth"),"materialCategory/remove1599962245085122562"]])]})}}],i=E(),b=()=>{a.pagination.page=1,T()},g=()=>{var s;(s=i.value)==null||s.submit()},v=()=>{var s;(s=i.value)==null||s.reset()},T=()=>h(this,null,function*(){try{a.loading=!0;const s=r,{times:S}=s,d=V(s,["times"]),L=q(I(I({},d),Ue(S,["startTime","endTime"])),{page:a.pagination.page,rows:a.pagination.rows}),{data:n}=yield ge(L);a.loading=!1,a.dataList=n.rows||[]}catch(S){a.loading=!1}}),k=s=>h(this,null,function*(){o.warning({title:"\u8B66\u544A",content:"\u662F\u5426\u786E\u8BA4\u5220\u9664\u6B64\u5206\u7C7B?",positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>h(this,null,function*(){(yield fe(s.id)).data&&(b(),u.success("\u5220\u9664\u6210\u529F"))})})});return O(()=>{T()}),()=>e(z,null,[e(Z,{ref:i,model:r,onSubmit:b,onSetModel:s=>Object.assign(r,s),saveKey:"category-key"},{default:()=>[e(y,{path:"keyword",label:"\u5206\u7C7B\u540D\u79F0"},{default:()=>[e(j,{placeholder:"\u5206\u7C7B\u540D\u79F0",value:r.keyword,"onUpdate:value":s=>r.keyword=s,onKeydown:s=>{s.code==="Enter"&&b()},clearable:!0},null)]}),e(y,{path:"times",label:"\u65F6\u95F4"},{default:()=>[e(le,{class:re.datepicker,"value-format":"yyyy.MM.dd",value:r.times,"onUpdate:value":s=>r.times=s,type:"daterange",clearable:!0},null)]}),e(y,null,{default:()=>[e(C,null,{default:()=>[e(f,{type:"primary",onClick:g},{default:()=>[c("\u641C\u7D22")]}),e(f,{type:"default",onClick:v},{default:()=>[c("\u91CD\u7F6E")]})]})]})]}),e(C,{style:{paddingBottom:"12px"}},{default:()=>[N(e(f,{type:"primary",onClick:()=>{a.materail=null,a.cityType="add",a.visiableCity=!0},disabled:a.loading},{default:()=>[c("\u65B0\u589E\u5206\u7C7B")]}),[[D("auth"),"materialCategory/save1599962104022290433"]])]}),e(ie,{"scroll-x":"1300",loading:a.loading,columns:p(),data:a.dataList,"children-key":"subMaterialCategoryList","default-expand-all":!1,"row-key":s=>s.id},null),e(ne,{show:a.visiableCity,"onUpdate:show":s=>a.visiableCity=s,preset:"dialog",showIcon:!1,title:a.cityType==="add"?"\u65B0\u589E\u5206\u7C7B":"\u4FEE\u6539\u5206\u7C7B",style:{width:"400px"},onClose:()=>{a.materail=null}},{default:()=>[e(Ae,{item:a.materail,list:a.dataList,isAdd:a.cityType==="add",onClose:()=>{a.visiableCity=!1},onHandleSuccess:()=>{a.visiableCity=!1,a.materail||(a.pagination.page=1),T()}},null)]})])}});var w=(l=>(l.\u89C6\u9891="VIDEO",l.\u56FE\u7247="IMG",l.\u66F2\u76EE="SONG",l))(w||{});const Re=P({name:"addMaterial",emits:["handleSuccess","close"],props:["item","isLook"],setup(l,{emit:o}){const u=R(),a=E(!1),r=E(null),p=E(),i=F({name:"",sn:"",materialCategoryId:"",type:w.\u89C6\u9891,content:"",courseTypeCode:[],enableFlag:!0});O(()=>h(this,null,function*(){var n;if((n=l==null?void 0:l.item)!=null&&n.id){a.value=!0;const t=yield pe(l.item.id);(t==null?void 0:t.code)==200&&(Object.keys(i).forEach(m=>{var _,x;(_=t==null?void 0:t.data)!=null&&_[m]&&(m==="adviseStudyTimeSecond"?i[m]=t.data[m]+"":m==="courseTypeCode"?i[m]=((x=t.data[m])==null?void 0:x.split(","))||[]:i[m]=t.data[m]),m==="enableFlag"&&(i[m]=t.data[m])}),i.type==="SONG"&&(d.music={musicSheetName:t.data.contentDesc}),console.log("\u{1F680} ~ saveModel",i)),a.value=!1}}));function b(n,t){return t?!0:i.type===w.\u89C6\u9891?new Error("\u8BF7\u4E0A\u4F20\u89C6\u9891"):i.type===w.\u56FE\u7247?new Error("\u8BF7\u4E0A\u4F20\u56FE\u7247"):new Error("\u8BF7\u9009\u62E9\u66F2\u76EE")}function g(n,t){return t?/^\+?[1-9]\d*$/.test(t)?!0:new Error("\u8BF7\u586B\u5199\u6B63\u786E\u7684\u65F6\u95F4"):new Error("\u8BF7\u586B\u5199\u65F6\u95F4")}function v(n,t){return Array.isArray(t)&&!t.length?new Error("\u8BF7\u9009\u62E9\u8BFE\u7A0B\u7C7B\u578B"):!0}const T={name:[{required:!0,message:"\u8BF7\u586B\u5199\u7D20\u6750\u540D\u79F0",trigger:["blur","change"]}],sn:[{required:!0,message:"\u5206\u6BB5\u7F16\u53F7",trigger:["blur","change"]}],materialCategoryId:[{required:!0,message:"\u8BF7\u9009\u62E9\u7D20\u6750\u5206\u7C7B",trigger:["blur","change"]}],adviseStudyTimeSecond:[{validator:g,trigger:["change"]}],content:[{validator:b,trigger:["blur","change","input"]}],courseTypeCode:[{validator:v,message:"\u8BF7\u9009\u62E9\u8BFE\u7A0B\u7C7B\u578B",trigger:["blur","change"]}]},k=Se("categoryList",{list:[]}).list||[],s=()=>{var n;(n=r.value)==null||n.validate(t=>h(this,null,function*(){var m,_;if(!t){const x=q(I({},i),{courseTypeCode:((m=i.courseTypeCode)==null?void 0:m.join(","))||""});let M=null;(_=l==null?void 0:l.item)!=null&&_.id?(x.id=l.item.id,M=yield be(x)):M=yield ve(x),(M==null?void 0:M.code)==200?(u.success("\u4FDD\u5B58\u6210\u529F"),o("handleSuccess")):u.warning("\u4FDD\u5B58\u5931\u8D25")}}))},S=()=>{i.content="",d.music=""},d=F({show:!1,music:""}),L=n=>{var t;d.music=n,i.content=n.id,d.show=!1,(t=p.value)==null||t.restoreValidation()};return()=>e("div",null,[e(ee,{show:a.value},{default:()=>[e(ae,{disabled:!!l.isLook,ref:r,onSubmit:s,labelPlacement:"top",model:i,rules:T,"require-mark-placement":"left"},{default:()=>[e(C,{justify:"space-between","item-style":{flex:1}},{default:()=>[e(y,{label:"\u7D20\u6750\u540D\u79F0",path:"name"},{default:()=>[e(j,{value:i.name,"onUpdate:value":n=>i.name=n},null)]}),e(y,{label:"\u5206\u6BB5\u7F16\u53F7",path:"sn"},{default:()=>[e(j,{value:i.sn,"onUpdate:value":n=>i.sn=n},null)]})]}),e(C,{justify:"space-between","item-style":{flex:1}},{default:()=>[e(y,{label:"\u7D20\u6750\u5206\u7C7B",path:"materialCategoryId"},{default:()=>[e($,{value:i.materialCategoryId,"onUpdate:value":n=>i.materialCategoryId=n,options:k,checkStrategy:"child",childrenField:"subMaterialCategoryList",expandTrigger:"hover",valueField:"id",labelField:"name"},null)]})]}),e(C,{justify:"space-between","item-style":{flex:1}},{default:()=>[e(y,{label:"\u8BFE\u7A0B\u7C7B\u578B",path:"courseTypeCode"},{default:()=>[e(K,{multiple:!0,clearable:!0,disabled:!!(l!=null&&l.item),value:i.courseTypeCode,onUpdateValue:n=>{i.courseTypeCode=n},options:ue},null)]}),e(y,{label:"\u662F\u5426\u542F\u7528"},{default:()=>[e(Le,{value:i.enableFlag,"onUpdate:value":n=>i.enableFlag=n},null)]})]}),e(y,{label:"\u7D20\u6750\u7C7B\u578B",required:!0,labelPlacement:"left",path:"type"},{default:()=>[e(Fe,{value:i.type,"onUpdate:value":n=>i.type=n,onUpdateValue:()=>S()},{default:()=>[e(G,{value:w.\u89C6\u9891},{default:()=>[c("\u89C6\u9891")]}),e(G,{value:w.\u56FE\u7247},{default:()=>[c("\u56FE\u7247")]}),e(G,{value:w.\u66F2\u76EE},{default:()=>[c("\u66F2\u76EE")]})]})]}),e(y,{label:"\u4E0A\u4F20\u7D20\u6750",path:"content",ref:p,required:!0},{default:()=>[i.type===w.\u66F2\u76EE?e(C,null,{default:()=>{var n;return[e(f,{disabled:l.isLook,type:"primary",onClick:()=>d.show=!0},{default:()=>[c("\u9009\u62E9\u66F2\u8C31")]}),d.music&&e(j,{readonly:!0,value:(n=d.music)==null?void 0:n.musicSheetName},null)]}}):e(Ie,{accept:i.type===w.\u89C6\u9891?"video/*":i.type===w.\u56FE\u7247?"image/*":"",path:"courseware/",listType:i.type===w.\u56FE\u7247?"image-card":"image",fileList:i.content,"onUpdate:fileList":n=>i.content=n,size:1024,disabled:l.isLook,onReadFileInputEventAsArrayBuffer:()=>{var n;(n=p.value)==null||n.restoreValidation()}},null)]})]}),l.isLook?"":e(C,{justify:"end"},{default:()=>[e(f,{type:"default",onClick:()=>o("close")},{default:()=>[c("\u53D6\u6D88")]}),e(f,{type:"primary",onClick:s},{default:()=>[c("\u4FDD\u5B58")]})]})]}),e(Ne,{width:"80vw",height:"100vh",show:d.show,"onUpdate:show":n=>d.show=n},{default:()=>[e(De,{title:"\u9009\u62E9\u66F2\u8C31",closable:!0},{default:()=>[e(ke,{onSelect:n=>L(n)},null)]})]})])}}),H={VIDEO:"\u89C6\u9891",IMG:"\u56FE\u7247",SONG:"\u66F2\u76EE"},Ve=Object.keys(H).map(l=>({label:H[l],value:l})),Ge=P({name:"material-list",setup(l){const o=te(),u=R(),a=F({loading:!1,pagination:{page:1,rows:10,pageTotal:10},visiableCity:!1,dataList:[],cityType:"add",materail:null,isLook:!1,employeeList:[]}),r=F({keyword:null,time:null,courseTypeCode:null,materialCategoryId:null,type:null}),p=se(),i=F({list:[],index:-1}),b=()=>h(this,null,function*(){try{const{data:t}=yield he({page:1});i.list=(t==null?void 0:t.rows)||[]}catch(t){}});X("categoryList",i);const g=F({list:[]}),v=()=>h(this,null,function*(){try{const{data:t}=yield je({page:1,row:1e3});g.list=(t==null?void 0:t.rows)||[]}catch(t){}});X("subjects",g),O(()=>{console.log(p.query,"route.query"),p.query.id&&(r.keyword=p.query.id),b(),v()});const T=()=>[{title:"\u7D20\u6750\u540D\u79F0",key:"name",render(t){return e(A,{labelPlacement:"left",column:1},{default:()=>[e(U,{label:"\u7D20\u6750\u540D\u79F0"},{default:()=>[t.name]}),e(U,{label:"\u7D20\u6750\u7F16\u53F7"},{default:()=>[t.id]}),e(U,{label:"\u7D20\u6750\u5206\u7C7B"},{default:()=>[t.materialCategoryName]})]})}},{title:"\u7D20\u6750\u4FE1\u606F",key:"sn",render(t){return e(A,{labelPlacement:"left",column:1},{default:()=>[e(U,{label:"\u5206\u6BB5\u7F16\u53F7"},{default:()=>[t.sn]}),e(U,{label:"\u7D20\u6750\u7C7B\u578B"},{default:()=>[H[t.type]]})]})}},{title:"\u8BFE\u7A0B\u4FE1\u606F",key:"type",render(t){return e(A,{labelPlacement:"left",column:1},{default:()=>[e(U,{label:"\u8BFE\u7A0B\u7C7B\u578B"},{default:()=>[t.courseTypeName]})]})}},{title:"\u64CD\u4F5C\u4FE1\u606F",key:"updateTime",render(t){return e(A,{labelPlacement:"left",column:1},{default:()=>[e(U,{label:"\u4E0A\u4F20\u4EBA"},{default:()=>[t.operatorName]}),e(U,{label:"\u4E0A\u4F20\u65F6\u95F4"},{default:()=>[t.updateTime?t.updateTime:"--"]})]})}},{title:"\u72B6\u6001",key:"delFlag",render(t){return e(z,null,[e(xe,{type:t.enableFlag?"success":"warning"},{default:()=>[t.enableFlag?"\u542F\u7528":"\u505C\u7528"]})])}},{title:"\u64CD\u4F5C",key:"operation",fixed:"right",width:160,render(t){return e(C,null,{default:()=>[N(e(f,{type:"primary",text:!0,onClick:()=>{a.isLook=!0,a.materail=t,a.visiableCity=!0}},{default:()=>[c("\u67E5\u770B")]}),[[D("auth"),"material/detail1608362411857137665"]]),N(e(f,{type:"primary",text:!0,onClick:()=>{a.cityType="update",a.materail=t,a.visiableCity=!0}},{default:()=>[c("\u4FEE\u6539")]}),[[D("auth"),"material/update1599948375910109186"]]),N(e(f,{type:"primary",text:!0,disabled:t.enableFlag,onClick:()=>n(t)},{default:()=>[c("\u5220\u9664")]}),[[D("auth"),"material/remove1599948195949301762"]])]})}}],k=E(),s=()=>{a.pagination.page=1,L()},S=()=>{var t;(t=k.value)==null||t.submit()},d=()=>{var t;(t=k.value)==null||t.reset()},L=()=>h(this,null,function*(){try{a.loading=!0;const t=r,{time:m}=t,_=V(t,["time"]),x=q(I(I({},_),Ee(m,["startTime","endTime"])),{page:a.pagination.page,rows:a.pagination.rows}),{data:M}=yield Ce(x);a.loading=!1,a.pagination.pageTotal=Number(M.total),a.dataList=M.rows||[]}catch(m){a.loading=!1}}),n=t=>h(this,null,function*(){o.warning({title:"\u8B66\u544A",content:"\u662F\u5426\u786E\u8BA4\u5220\u9664\u6B64\u7D20\u6750?",positiveText:"\u786E\u5B9A",negativeText:"\u53D6\u6D88",onPositiveClick:()=>h(this,null,function*(){(yield we(t.id)).data&&(s(),u.success("\u5220\u9664\u6210\u529F"))})})});return O(()=>{a.pagination.page=1,L()}),()=>e(z,null,[e(Z,{ref:k,"label-width":"",model:r,onSubmit:s,onSetModel:t=>Object.assign(r,t),saveKey:"material-key"},{default:()=>[e(y,{label:"\u641C\u7D22\u6761\u4EF6",path:"keyword"},{default:()=>[e(j,{value:r.keyword,"onUpdate:value":t=>r.keyword=t,onKeydown:t=>{t.code==="Enter"&&s()},placeholder:"\u7D20\u6750\u540D\u79F0/\u7F16\u53F7",clearable:!0},null)]}),e(y,{label:"\u7D20\u6750\u5206\u7C7B",path:"materialCategoryId"},{default:()=>[e($,{value:r.materialCategoryId,"onUpdate:value":t=>r.materialCategoryId=t,options:i.list,checkStrategy:"child",childrenField:"subMaterialCategoryList",expandTrigger:"hover",valueField:"id",labelField:"name",clearable:!0,filterable:!0},null)]}),e(y,{label:"\u7D20\u6750\u7C7B\u578B",path:"type"},{default:()=>[e(K,{clearable:!0,value:r.type,"onUpdate:value":t=>r.type=t,options:Ve},null)]}),e(y,{label:"\u8BFE\u7A0B\u7C7B\u578B",path:"courseTypeCode"},{default:()=>[e(K,{clearable:!0,value:r.courseTypeCode,"onUpdate:value":t=>r.courseTypeCode=t,options:ue},null)]}),e(y,{label:"\u641C\u7D22\u65F6\u95F4",path:"time"},{default:()=>[e(le,{class:re.datepicker,value:r.time,"onUpdate:value":t=>r.time=t,type:"daterange",clearable:!0},null)]}),e(y,null,{default:()=>[e(C,null,{default:()=>[e(f,{type:"primary",onClick:S},{default:()=>[c("\u641C\u7D22")]}),e(f,{type:"default",onClick:d},{default:()=>[c("\u91CD\u7F6E")]})]})]})]}),e(C,{style:{paddingBottom:"12px"}},{default:()=>[N(e(f,{type:"primary",onClick:()=>{a.cityType="add",a.materail=null,a.visiableCity=!0}},{default:()=>[c("\u6DFB\u52A0\u7D20\u6750")]}),[[D("auth"),"material/save1599948016487616513"]])]}),e(ie,{loading:a.loading,columns:T(),data:a.dataList},null),e(_e,{page:a.pagination.page,"onUpdate:page":t=>a.pagination.page=t,pageSize:a.pagination.rows,"onUpdate:pageSize":t=>a.pagination.rows=t,pageTotal:a.pagination.pageTotal,"onUpdate:pageTotal":t=>a.pagination.pageTotal=t,onList:L,sync:!0,saveKey:"material-key"},null),e(ne,{show:a.visiableCity,"onUpdate:show":t=>a.visiableCity=t,preset:"dialog",showIcon:!1,title:a.cityType==="add"?"\u6DFB\u52A0\u7D20\u6750":"\u4FEE\u6539\u7D20\u6750",style:{width:"700px"},onClose:()=>{a.isLook=!1}},{default:()=>[a.visiableCity&&e(Re,{item:a.materail,isLook:a.isLook,onClose:()=>{a.visiableCity=!1},onHandleSuccess:()=>{a.visiableCity=!1,a.materail||(a.pagination.page=1),L()}},null)]})])}}),ca=P({name:"educational-manage",setup(){const l=F({tabName:"MaterialList"}),o=se();Pe(a=>{a.form.tabName&&(l.tabName=a.form.tabName)});const u=a=>{Be(a,"tabName",o)};return()=>e("div",{class:"system-menu-container"},[e("div",{class:["section-container"],style:"padding-top: 0"},[e(Me,{size:"large",value:l.tabName,"onUpdate:value":[a=>l.tabName=a,a=>u(a)]},{default:()=>[N(e(Y,{name:"MaterialList",tab:"\u7D20\u6750\u5217\u8868"},{default:()=>[e(Ge,null,null)]}),[[D("auth"),"material/page1750897012676493314"]]),N(e(Y,{name:"CategoryList",tab:"\u7D20\u6750\u5206\u7C7B"},{default:()=>[e(Oe,null,null)]}),[[D("auth"),"materialCategory/page1608008438042112001"]])]})])])}});export{ca as default};