index.0af79cbb.js 20 KB

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