engineering/public/admin/assets/index.ee772d81.js
2024-02-27 10:28:16 +08:00

2 lines
20 KiB
JavaScript

import{X as Ge,K as Ye,F as De,k as qe,b as Ke,Y as Ze,Z as Qe,E as Oe,p as Je,q as Xe,r as He,w as et,H as tt,I as lt,a as nt,W as st,L as at,_ as ot,M as it,N as ut,G as dt}from"./element-plus.517d4382.js";import{_ as ct}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{_ as rt}from"./index.0a0ddda3.js";import{u as ft,c as ce,R as Se,f as Y,_ as pe,r as j,a as Be,i as pt}from"./index.8b1962e9.js";import{P as mt}from"./index.b17dae19.js";import{d as q,s as K,r as V,e as ne,t as _t,o,c,V as n,M as s,I as $e,L as D,a,W as U,a8 as G,U as ee,S as g,a0 as Re,$ as Pe,J as ht,u as t,w as te,O as le,P as fe,k as M,n as Ve,a4 as vt,D as gt,j as yt,_ as H,aa as Ct,Q as xe,T as C,b7 as kt,b6 as Et}from"./@vue.ab566ce7.js";import{_ as Ft}from"./index.vue_vue_type_script_setup_true_lang.f8507404.js";import{u as wt}from"./usePaging.f6660143.js";import{g as bt}from"./vue3-video-play.b66b1487.js";const At=q({components:{},props:{type:{type:String,default:"image"},multiple:{type:Boolean,default:!0},limit:{type:Number,default:10},data:{type:Object,default:()=>({})},showProgress:{type:Boolean,default:!1}},emits:["change","error","success"],setup(e,{emit:y}){const k=ft(),u=K(),h=V(`${ce.baseUrl}${ce.urlPrefix}/upload/${e.type}`),A=ne(()=>({token:k.token,version:ce.version})),r=V(!1),i=V([]),v=(F,B,R)=>{r.value=!0,i.value=_t(R)},d=(F,B,R)=>{var $;R.every(P=>P.status=="success")&&(($=u.value)==null||$.clearFiles(),r.value=!1),y("change",B),F.code==Se.SUCCESS&&y("success",F),F.code==Se.FAIL&&F.msg&&Y.msgError(F.msg)},f=(F,B)=>{var R;Y.msgError(`${B.name}\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25`),(R=u.value)==null||R.abort(B),r.value=!1,y("change",B),y("error",B)},p=()=>{Y.msgError(`\u8D85\u51FA\u4E0A\u4F20\u4E0A\u9650${e.limit}\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20`)},T=()=>{var F;(F=u.value)==null||F.clearFiles(),r.value=!1},N=ne(()=>{switch(e.type){case"image":return".jpg,.png,.gif,.jpeg";case"video":return".wmv,.avi,.mpg,.mpeg,.3gp,.mov,.mp4,.flv,.rmvb,.mkv";default:return"*"}});return{uploadRefs:u,action:h,headers:A,visible:r,fileList:i,getAccept:N,handleProgress:v,handleSuccess:d,handleError:f,handleExceed:p,handleClose:T}}}),St={class:"upload"},Vt={class:"file-list p-4"},xt={class:"flex-1"};function Dt(e,y,k,u,h,A){const r=Ye,i=Ge,v=De;return o(),c("div",St,[n(r,{ref:"uploadRefs",action:e.action,multiple:e.multiple,limit:e.limit,"show-file-list":!1,headers:e.headers,data:e.data,"on-progress":e.handleProgress,"on-success":e.handleSuccess,"on-exceed":e.handleExceed,"on-error":e.handleError,accept:e.getAccept},{default:s(()=>[$e(e.$slots,"default")]),_:3},8,["action","multiple","limit","headers","data","on-progress","on-success","on-exceed","on-error","accept"]),e.showProgress&&e.fileList.length?(o(),D(v,{key:0,modelValue:e.visible,"onUpdate:modelValue":y[0]||(y[0]=d=>e.visible=d),title:"\u4E0A\u4F20\u8FDB\u5EA6","close-on-click-modal":!1,width:"500px",modal:!1,onClose:e.handleClose},{default:s(()=>[a("div",Vt,[(o(!0),c(U,null,G(e.fileList,(d,f)=>(o(),c("div",{key:f,class:"mb-5"},[a("div",null,ee(d.name),1),a("div",xt,[n(i,{percentage:parseInt(d.percentage)},null,8,["percentage"])])]))),128))])]),_:1},8,["modelValue","onClose"])):g("",!0)])}const Bt=pe(At,[["render",Dt]]),$t="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAgCAYAAABgrToAAAACJElEQVRYR+2YMWsUURSFz3m7s+nskjUIQSutbMRi7WzUVjSadMHCbVLkByjmLygaCVYWRqMEUhkFS9Gg0cJfYCPZjYUQFbPs+I7c2R1Q2ZjZfRNYYS4MAzPv3vnmvDvL3kMA2Hl5/CjLI9ckf4ZwY3Zt15C+gfwIao3So0rt3XsJtPUk9M/cAW6y9ap2DIyfAjgCwANwGeoYiEFtk/5e5CvXeer1D2neATcGgiTZM4+t9RNLEKcBtAFEGeBsiRWzl7EoSXo+8rV9gWc/fDc1B1VSEoEnDpj0KTB33tS26DGaEezvZQZpRxmODyoT5+vwBwS3zeTcT4yjTdZNJEiPSykk1bjZX6HeD/WQJ1zUApgq2w+etcsniBuAVlH9vELOx6Yo1VywgkmTB4X1kEGGhyAtg/Ecq3NNqnknDwVTrNBaactEts88OHs5b8Bw/Tof4M+kr4WrwwhoL9n5uRPWhxWwsxPEl+EGNMacP5I8evCPGgVgqKSFgoWCoQqE5hc9WCgYqkBoftGDeSiYz1/+UJLe+foftvh2A2B1fwQIrapkaFoDcK4PVyH0qVnyU4fjGdW4NQ2WlgDE5hLkMoJmQdh9zW9Dk59K5lhtLjyE01TX/jDILP5MGEbvbFPOJroIXvc5PjvTBbx7GM4vAjjd9WdSc2g/IPaqaTv5Aq58haP1TSb2Au20GGErvgTxIqiTAA7tVSnn+2Z9vAXdCsa4bD6Nsf0C/gYA5PMzcW0AAAAASUVORK5CYII=";function Rt(e){return j.post({url:"/file/addCate",params:e})}function Pt(e){return j.post({url:"/file/editCate",params:e})}function It(e){return j.post({url:"/file/delCate",params:e})}function zt(e){return j.get({url:"/file/listCate",params:e})}function Lt(e){return j.get({url:"/file/lists",params:e})}function Tt(e){return j.post({url:"/file/delete",params:e})}function Ut(e){return j.post({url:"/file/move",params:e})}function jt(e){return j.post({url:"/file/rename",params:e})}function Mt(e){const y=K(),k=V([]),u=V(""),h=async()=>{const d=await zt({page_type:0,type:e}),f=[{name:"\u5168\u90E8",id:""},{name:"\u672A\u5206\u7EC4",id:0}];k.value=d.lists,k.value.unshift(...f),setTimeout(()=>{var p;(p=y.value)==null||p.setCurrentKey(u.value)},0)};return{treeRef:y,cateId:u,cateLists:k,handleAddCate:async d=>{await Rt({type:e,name:d,pid:0}),h()},handleEditCate:async(d,f)=>{await Pt({id:f,name:d}),h()},handleDeleteCate:async d=>{await Y.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await It({id:d}),u.value="",h()},getCateLists:h,handleCatSelect:d=>{u.value=d.id}}}function Nt(e,y,k,u){const h=K(),A=V("normal"),r=V(0),i=V([]),v=V(!1),d=V(!1),f=Re({name:"",type:y,cid:e}),{pager:p,getLists:T,resetPage:N}=wt({fetchFun:Lt,params:f,firstLoading:!0,size:u}),F=()=>{T()},B=()=>{N()},R=m=>!!i.value.find(E=>E.id==m),Z=async m=>{await Y.confirm("\u786E\u8BA4\u5220\u9664\u540E\uFF0C\u672C\u5730\u6216\u4E91\u5B58\u50A8\u6587\u4EF6\u4E5F\u5C06\u540C\u6B65\u5220\u9664\uFF0C\u5982\u6587\u4EF6\u5DF2\u88AB\u4F7F\u7528\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C\uFF01");const E=m||i.value.map(z=>z.id);await Tt({ids:E}),F(),w()},$=async()=>{const m=i.value.map(E=>E.id);await Ut({ids:m,cid:r.value}),r.value=0,F(),w()},P=m=>{const E=i.value.findIndex(z=>z.id==m.id);if(E!=-1){i.value.splice(E,1);return}if(i.value.length==k.value){if(k.value==1){i.value=[],i.value.push(m);return}qe.warning("\u5DF2\u8FBE\u5230\u9009\u62E9\u4E0A\u9650");return}i.value.push(m)},w=()=>{i.value=[]};return{listShowType:A,tableRef:h,moveId:r,pager:p,fileParams:f,select:i,isCheckAll:v,isIndeterminate:d,getFileList:F,refresh:B,batchFileDelete:Z,batchFileMove:$,selectFile:P,isSelect:R,clearSelect:w,cancelSelete:m=>{i.value=i.value.filter(E=>E.id!=m)},selectAll:m=>{var E;if(d.value=!1,(E=h.value)==null||E.toggleAllSelection(),m){i.value=[...p.lists];return}w()},handleFileRename:async(m,E)=>{await jt({id:E,name:m}),F()}}}const Wt=q({props:{uri:{type:String},fileSize:{type:String,default:"100px"},type:{type:String,default:"image"}},emits:["close"]});const Gt=["src"],Yt={key:2,class:"absolute left-1/2 top-1/2 translate-x-[-50%] translate-y-[-50%] rounded-full w-5 h-5 flex justify-center items-center bg-[rgba(0,0,0,0.3)]"};function qt(e,y,k,u,h,A){const r=Ke,i=Be;return o(),c("div",null,[a("div",{class:"file-item relative",style:Pe({height:e.fileSize,width:e.fileSize})},[e.type=="image"?(o(),D(r,{key:0,class:"image",fit:"contain",src:e.uri},null,8,["src"])):e.type=="video"?(o(),c("video",{key:1,class:"video",src:e.uri},null,8,Gt)):g("",!0),e.type=="video"?(o(),c("div",Yt,[n(i,{name:"el-icon-CaretRight",size:18,color:"#fff"})])):g("",!0),$e(e.$slots,"default",{},void 0,!0)],4)])}const re=pe(Wt,[["render",qt],["__scopeId","data-v-5ccc0f84"]]),Kt=q({__name:"index",props:{src:{type:String,required:!0},width:String,height:String,poster:String},setup(e,{expose:y}){const k=e,u=K(),h=Re({color:"var(--el-color-primary)",muted:!1,webFullScreen:!1,speedRate:["0.75","1.0","1.25","1.5","2.0"],autoPlay:!0,loop:!1,mirror:!1,ligthOff:!1,volume:.3,control:!0,title:"",poster:"",...k}),A=()=>{u.value.play()},r=()=>{u.value.pause()},i=p=>{console.log(p,"\u64AD\u653E")},v=p=>{console.log(p,"\u6682\u505C")},d=p=>{console.log(p,"\u65F6\u95F4\u66F4\u65B0")},f=p=>{console.log(p,"\u53EF\u4EE5\u64AD\u653E")};return y({play:A,pause:r}),(p,T)=>(o(),c("div",null,[n(t(bt),ht({ref_key:"playerRef",ref:u},h,{src:e.src,onPlay:i,onPause:v,onTimeupdate:d,onCanplay:f}),null,16,["src"])]))}}),Zt={key:0},Qt={key:1},Ot=q({__name:"preview",props:{modelValue:{type:Boolean,default:!1},url:{type:String,default:""},type:{type:String,default:"image"}},emits:["update:modelValue"],setup(e,{emit:y}){const k=e,u=K(),h=ne({get(){return k.modelValue},set(i){y("update:modelValue",i)}}),A=()=>{y("update:modelValue",!1)},r=V([]);return te(()=>k.modelValue,i=>{i?Ve(()=>{var v;r.value=[k.url],(v=u.value)==null||v.play()}):Ve(()=>{var v;r.value=[],(v=u.value)==null||v.pause()})}),(i,v)=>{const d=Ze,f=Kt,p=De;return le((o(),c("div",null,[e.type=="image"?(o(),c("div",Zt,[r.value.length?(o(),D(d,{key:0,"url-list":r.value,"hide-on-click-modal":"",onClose:A},null,8,["url-list"])):g("",!0)])):g("",!0),e.type=="video"?(o(),c("div",Qt,[n(p,{modelValue:t(h),"onUpdate:modelValue":v[0]||(v[0]=T=>M(h)?h.value=T:null),width:"740px",title:"\u89C6\u9891\u9884\u89C8","before-close":A},{default:s(()=>[n(f,{ref_key:"playerRef",ref:u,src:e.url,width:"100%",height:"450px"},null,8,["src"])]),_:1},8,["modelValue"])])):g("",!0)],512)),[[fe,e.modelValue]])}}}),se=e=>(kt("data-v-44d17fce"),e=e(),Et(),e),Jt={class:"material"},Xt={class:"material__left"},Ht={class:"flex-1 min-h-0"},el={class:"material-left__content pt-4 p-b-4"},tl={class:"flex flex-1 items-center min-w-0 pr-4"},ll=se(()=>a("img",{class:"w-[20px] h-[16px] mr-3",src:$t},null,-1)),nl={class:"flex-1 truncate mr-2"},sl=se(()=>a("span",{class:"muted m-r-10"},"\xB7\xB7\xB7",-1)),al=C(" \u547D\u540D\u5206\u7EC4 "),ol=["onClick"],il=C("\u5220\u9664\u5206\u7EC4"),ul={class:"flex justify-center p-2 border-t border-br"},dl=C(" \u6DFB\u52A0\u5206\u7EC4 "),cl={class:"material__center flex flex-col"},rl={class:"operate-btn flex"},fl={class:"flex-1 flex"},pl=C("\u672C\u5730\u4E0A\u4F20"),ml=C("\u672C\u5730\u4E0A\u4F20"),_l=C("\u672C\u5730\u4E0A\u4F20"),hl=C(" \u5220\u9664 "),vl=C("\u79FB\u52A8"),gl=se(()=>a("span",{class:"mr-5"},"\u79FB\u52A8\u6587\u4EF6\u81F3",-1)),yl={class:"flex items-center ml-2"},Cl={key:0,class:"mt-3"},kl=C(" \u5F53\u9875\u5168\u9009 "),El={class:"material-center__content flex flex-col flex-1 mb-1 min-h-0"},Fl={class:"file-list flex flex-wrap mt-4"},wl={key:0,class:"item-selected"},bl={class:"operation-btns flex items-center"},Al=C(" \u91CD\u547D\u540D "),Sl=C(" \u67E5\u770B "),Vl={class:"inline-block"},xl=C(" \u91CD\u547D\u540D "),Dl={class:"inline-block"},Bl=C(" \u67E5\u770B "),$l={class:"inline-block"},Rl=C(" \u5220\u9664 "),Pl={key:1,class:"flex flex-1 justify-center items-center"},Il={class:"material-center__footer flex justify-between items-center mt-2"},zl={class:"flex"},Ll={class:"mr-3"},Tl=C(" \u5F53\u9875\u5168\u9009 "),Ul=C(" \u5220\u9664 "),jl=C("\u79FB\u52A8"),Ml=se(()=>a("span",{class:"mr-5"},"\u79FB\u52A8\u6587\u4EF6\u81F3",-1)),Nl={key:0,class:"material__right"},Wl={class:"flex justify-between p-2 flex-wrap"},Gl={class:"sm flex items-center"},Yl={key:0},ql=C("\u6E05\u7A7A"),Kl={class:"flex-1 min-h-0"},Zl={class:"select-lists flex flex-col p-t-3"},Ql={class:"select-item"},Ol=q({__name:"index",props:{fileSize:{type:String,default:"100px"},limit:{type:Number,default:1},type:{type:String,default:"image"},mode:{type:String,default:"picker"},pageSize:{type:Number,default:15}},emits:["change"],setup(e,{expose:y,emit:k}){const u=e,{limit:h}=vt(u),A=ne(()=>{switch(u.type){case"image":return 10;case"video":return 20;case"file":return 30;default:return 0}}),r=gt("visible"),i=V(""),v=V(!1),{treeRef:d,cateId:f,cateLists:p,handleAddCate:T,handleEditCate:N,handleDeleteCate:F,getCateLists:B,handleCatSelect:R}=Mt(A.value),{tableRef:Z,listShowType:$,moveId:P,pager:w,fileParams:Q,select:I,isCheckAll:L,isIndeterminate:m,getFileList:E,refresh:z,batchFileDelete:O,batchFileMove:me,selectFile:ae,isSelect:_e,clearSelect:he,cancelSelete:Ie,selectAll:ve,handleFileRename:ge}=Nt(f,A,h,u.pageSize),ye=async()=>{var x;await B(),(x=d.value)==null||x.setCurrentKey(f.value),E()},oe=x=>{i.value=x,v.value=!0};return te(r,async x=>{x&&ye()},{immediate:!0}),te(f,()=>{Q.name="",z()}),te(I,x=>{if(k("change",x),x.length==w.lists.length&&x.length!==0){m.value=!1,L.value=!0;return}x.length>0?m.value=!0:(L.value=!1,m.value=!1)},{deep:!0}),yt(()=>{u.mode=="page"&&ye()}),y({clearSelect:he}),(x,_)=>{const Ce=pt,ke=Je,J=Ft,ze=Xe,Le=He,Te=Qe,ie=Oe,b=et,ue=Bt,Ee=dt,Fe=tt,we=mt,X=Be,Ue=lt,be=nt,de=st,Ae=rt,W=at,je=ot,Me=it,Ne=ct,We=ut;return le((o(),c("div",Jt,[a("div",Xt,[a("div",Ht,[n(ie,null,{default:s(()=>[a("div",el,[n(Te,{ref_key:"treeRef",ref:d,"node-key":"id",data:t(p),"empty-text":"''","highlight-current":!0,"expand-on-click-node":!1,"current-node-key":t(f),onNodeClick:t(R)},{default:s(({data:l})=>[a("div",tl,[ll,a("span",nl,[n(Ce,{content:l.name},null,8,["content"])]),l.id>0?(o(),D(Le,{key:0,"hide-on-click":!1},{dropdown:s(()=>[n(ze,null,{default:s(()=>[n(J,{onConfirm:S=>t(N)(S,l.id),size:"default",value:l.name,width:"400px",limit:20,"show-limit":"",teleported:""},{default:s(()=>[a("div",null,[n(ke,null,{default:s(()=>[al]),_:1})])]),_:2},1032,["onConfirm","value"]),a("div",{onClick:S=>t(F)(l.id)},[n(ke,null,{default:s(()=>[il]),_:1})],8,ol)]),_:2},1024)]),default:s(()=>[sl]),_:2},1024)):g("",!0)])]),_:1},8,["data","current-node-key","onNodeClick"])])]),_:1})]),a("div",ul,[n(J,{onConfirm:t(T),size:"default",width:"400px",limit:20,"show-limit":"",teleported:""},{default:s(()=>[n(b,null,{default:s(()=>[dl]),_:1})]),_:1},8,["onConfirm"])])]),a("div",cl,[a("div",rl,[a("div",fl,[e.type=="image"?(o(),D(ue,{key:0,class:"mr-3",data:{cid:t(f)},type:e.type,"show-progress":!0,onChange:t(z)},{default:s(()=>[n(b,{type:"primary"},{default:s(()=>[pl]),_:1})]),_:1},8,["data","type","onChange"])):g("",!0),e.type=="video"?(o(),D(ue,{key:1,class:"mr-3",data:{cid:t(f)},type:e.type,"show-progress":!0,onChange:t(z)},{default:s(()=>[n(b,{type:"primary"},{default:s(()=>[ml]),_:1})]),_:1},8,["data","type","onChange"])):g("",!0),e.type=="file"?(o(),D(ue,{key:2,class:"mr-3",data:{cid:t(f)},type:e.type,"show-progress":!0,onChange:t(z)},{default:s(()=>[n(b,{type:"primary"},{default:s(()=>[_l]),_:1})]),_:1},8,["data","type","onChange"])):g("",!0),e.mode=="page"?(o(),D(b,{key:3,disabled:!t(I).length,onClick:_[0]||(_[0]=H(l=>t(O)(),["stop"]))},{default:s(()=>[hl]),_:1},8,["disabled"])):g("",!0),e.mode=="page"?(o(),D(we,{key:4,class:"ml-3",onConfirm:t(me),disabled:!t(I).length,title:"\u79FB\u52A8\u6587\u4EF6"},{trigger:s(()=>[n(b,{disabled:!t(I).length},{default:s(()=>[vl]),_:1},8,["disabled"])]),default:s(()=>[a("div",null,[gl,n(Fe,{modelValue:t(P),"onUpdate:modelValue":_[1]||(_[1]=l=>M(P)?P.value=l:null),placeholder:"\u8BF7\u9009\u62E9"},{default:s(()=>[(o(!0),c(U,null,G(t(p),l=>(o(),c(U,{key:l.id},[l.id!==""?(o(),D(Ee,{key:0,label:l.name,value:l.id},null,8,["label","value"])):g("",!0)],64))),128))]),_:1},8,["modelValue"])])]),_:1},8,["onConfirm","disabled"])):g("",!0)]),n(Ue,{class:"w-60",placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0",modelValue:t(Q).name,"onUpdate:modelValue":_[2]||(_[2]=l=>t(Q).name=l),onKeyup:Ct(t(z),["enter"])},{append:s(()=>[n(b,{onClick:t(z)},{icon:s(()=>[n(X,{name:"el-icon-Search"})]),_:1},8,["onClick"])]),_:1},8,["modelValue","onKeyup"]),a("div",yl,[n(be,{content:"\u5217\u8868\u89C6\u56FE",placement:"top"},{default:s(()=>[a("div",{class:xe(["list-icon",{select:t($)=="table"}]),onClick:_[3]||(_[3]=l=>$.value="table")},[n(X,{name:"local-icon-list-2",size:18})],2)]),_:1}),n(be,{content:"\u5E73\u94FA\u89C6\u56FE",placement:"top"},{default:s(()=>[a("div",{class:xe(["list-icon",{select:t($)=="normal"}]),onClick:_[4]||(_[4]=l=>$.value="normal")},[n(X,{name:"el-icon-Menu",size:18})],2)]),_:1})])]),e.mode=="page"?(o(),c("div",Cl,[n(de,{disabled:!t(w).lists.length,modelValue:t(L),"onUpdate:modelValue":_[5]||(_[5]=l=>M(L)?L.value=l:null),onChange:t(ve),indeterminate:t(m)},{default:s(()=>[kl]),_:1},8,["disabled","modelValue","onChange","indeterminate"])])):g("",!0),a("div",El,[t(w).lists.length?le((o(),D(ie,{key:0},{default:s(()=>[a("ul",Fl,[(o(!0),c(U,null,G(t(w).lists,l=>(o(),c("li",{class:"file-item-wrap",key:l.id,style:Pe({width:e.fileSize})},[n(Ae,{onClose:S=>t(O)([l.id])},{default:s(()=>[n(re,{uri:l.uri,"file-size":e.fileSize,type:e.type,onClick:S=>t(ae)(l)},{default:s(()=>[t(_e)(l.id)?(o(),c("div",wl,[n(X,{size:24,name:"el-icon-Check",color:"#fff"})])):g("",!0)]),_:2},1032,["uri","file-size","type","onClick"])]),_:2},1032,["onClose"]),n(Ce,{class:"mt-1",content:l.name},null,8,["content"]),a("div",bl,[n(J,{onConfirm:S=>t(ge)(S,l.id),size:"default",value:l.name,width:"400px",limit:50,"show-limit":"",teleported:""},{default:s(()=>[n(b,{type:"primary",link:""},{default:s(()=>[Al]),_:1})]),_:2},1032,["onConfirm","value"]),n(b,{type:"primary",link:"",onClick:S=>oe(l.uri)},{default:s(()=>[Sl]),_:2},1032,["onClick"])])],4))),128))])]),_:1},512)),[[fe,t($)=="normal"]]):g("",!0),le(n(Me,{ref_key:"tableRef",ref:Z,class:"mt-4",data:t(w).lists,width:"100%",height:"100%",size:"large",onRowClick:t(ae)},{default:s(()=>[n(W,{width:"55"},{default:s(({row:l})=>[n(de,{modelValue:t(_e)(l.id),onChange:S=>t(ae)(l)},null,8,["modelValue","onChange"])]),_:1}),n(W,{label:"\u56FE\u7247",width:"100"},{default:s(({row:l})=>[n(re,{uri:l.uri,"file-size":"50px",type:e.type},null,8,["uri","type"])]),_:1}),n(W,{label:"\u540D\u79F0","min-width":"100","show-overflow-tooltip":""},{default:s(({row:l})=>[n(je,{onClick:H(S=>oe(l.uri),["stop"]),underline:!1},{default:s(()=>[C(ee(l.name),1)]),_:2},1032,["onClick"])]),_:1}),n(W,{prop:"create_time",label:"\u4E0A\u4F20\u65F6\u95F4","min-width":"100"}),n(W,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:s(({row:l})=>[a("div",Vl,[n(J,{onConfirm:S=>t(ge)(S,l.id),size:"default",value:l.name,width:"400px",limit:50,"show-limit":"",teleported:""},{default:s(()=>[n(b,{type:"primary",link:""},{default:s(()=>[xl]),_:1})]),_:2},1032,["onConfirm","value"])]),a("div",Dl,[n(b,{type:"primary",link:"",onClick:H(S=>oe(l.uri),["stop"])},{default:s(()=>[Bl]),_:2},1032,["onClick"])]),a("div",$l,[n(b,{type:"primary",link:"",onClick:H(S=>t(O)([l.id]),["stop"])},{default:s(()=>[Rl]),_:2},1032,["onClick"])])]),_:1})]),_:1},8,["data","onRowClick"]),[[fe,t($)=="table"]]),!t(w).loading&&!t(w).lists.length?(o(),c("div",Pl," \u6682\u65E0\u6570\u636E~ ")):g("",!0)]),a("div",Il,[a("div",zl,[e.mode=="page"?(o(),c(U,{key:0},[a("span",Ll,[n(de,{disabled:!t(w).lists.length,modelValue:t(L),"onUpdate:modelValue":_[6]||(_[6]=l=>M(L)?L.value=l:null),onChange:t(ve),indeterminate:t(m)},{default:s(()=>[Tl]),_:1},8,["disabled","modelValue","onChange","indeterminate"])]),n(b,{disabled:!t(I).length,onClick:_[7]||(_[7]=l=>t(O)())},{default:s(()=>[Ul]),_:1},8,["disabled"]),n(we,{class:"ml-3 inline",onConfirm:t(me),disabled:!t(I).length,title:"\u79FB\u52A8\u6587\u4EF6"},{trigger:s(()=>[n(b,{disabled:!t(I).length},{default:s(()=>[jl]),_:1},8,["disabled"])]),default:s(()=>[a("div",null,[Ml,n(Fe,{modelValue:t(P),"onUpdate:modelValue":_[8]||(_[8]=l=>M(P)?P.value=l:null),placeholder:"\u8BF7\u9009\u62E9"},{default:s(()=>[(o(!0),c(U,null,G(t(p),l=>(o(),c(U,{key:l.id},[l.id!==""?(o(),D(Ee,{key:0,label:l.name,value:l.id},null,8,["label","value"])):g("",!0)],64))),128))]),_:1},8,["modelValue"])])]),_:1},8,["onConfirm","disabled"])],64)):g("",!0)]),n(Ne,{modelValue:t(w),"onUpdate:modelValue":_[9]||(_[9]=l=>M(w)?w.value=l:null),onChange:t(E),layout:"total, prev, pager, next, jumper"},null,8,["modelValue","onChange"])])]),e.mode=="picker"?(o(),c("div",Nl,[a("div",Wl,[a("div",Gl,[C(" \u5DF2\u9009\u62E9 "+ee(t(I).length)+" ",1),t(h)?(o(),c("span",Yl,"/"+ee(t(h)),1)):g("",!0)]),n(b,{type:"primary",link:"",onClick:t(he)},{default:s(()=>[ql]),_:1},8,["onClick"])]),a("div",Kl,[n(ie,{class:"ls-scrollbar"},{default:s(()=>[a("ul",Zl,[(o(!0),c(U,null,G(t(I),l=>(o(),c("li",{class:"mb-4",key:l.id},[a("div",Ql,[n(Ae,{onClose:S=>t(Ie)(l.id)},{default:s(()=>[n(re,{uri:l.uri,"file-size":"100px",type:e.type},null,8,["uri","type"])]),_:2},1032,["onClose"])])]))),128))])]),_:1})])])):g("",!0),n(Ot,{modelValue:v.value,"onUpdate:modelValue":_[10]||(_[10]=l=>v.value=l),url:i.value,type:e.type},null,8,["modelValue","url","type"])])),[[We,t(w).loading]])}}});const on=pe(Ol,[["__scopeId","data-v-44d17fce"]]);export{re as F,on as _,Ot as a};