You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
10 KiB
2 lines
10 KiB
|
4 months ago
|
import{d as _e,x as ve,r as f,y as ye,G as xe,a as h,f as $,q as C,e as n,h as a,bf as ke,b as u,c as I,H as x,$ as k,t as j,aj as be,I as G,bg as Ce,Y as J,bh as we,A as H,bi as Se,bj as $e,bk as Ee,bl as Te,bm as De,bn as Be,Z as Ie,b5 as ze,ae as z,bo as r,ap as Me,aq as b,ab as Z,bp as Ue,aF as O,a7 as Q,aY as Ve,av as Le,bc as Fe,aw as Re,b3 as Ne,ak as Pe,b4 as je,p as He,m as Oe,_ as qe}from"./index-e450010e.js";import{g as Ke,r as Ye,a as Ae}from"./tools-446dc38a.js";import{_ as Ge}from"./sharePermission.vue_vue_type_script_setup_true_lang-850bb9dd.js";import{p as Je,a as Ze,b as Qe,g as L,c as We}from"./index-a1529bac.js";import{_ as Xe}from"./preview.vue_vue_type_style_index_0_lang-2ef83b9d.js";const W=M=>(He("data-v-f6812792"),M=M(),Oe(),M),et={style:{display:"grid","grid-template-columns":"1fr 4fr",width:"100%",height:"100%"}},tt={class:"menus_tree"},at={class:"app_container"},lt=W(()=>C("span",{style:{"font-weight":"bold","margin-right":"5px"}},"根目录",-1)),nt={style:{"font-weight":"bold",margin:"0 5px"}},it=W(()=>C("span",null,"上传",-1)),ot={key:0,style:{margin:"12px"}},ut={key:1,style:{display:"flex","align-items":"center"}},dt={style:{"margin-left":"10px"}},st={key:0},rt={key:0},ct=_e({__name:"manage",setup(M){const X=ve(),m=btoa("p0"+X.userInfoCont.userId),q=document.location.origin,F="/hxpan/api",w=f([]),E=f(""),T=f(""),K=f(""),S=f("sixhour"),D=f([]),R=f([{name:"root",uuid:"root",children:[]}]),U=f(),s=f({}),ee="https://gyhlw.hxgk.group/kkapi",V=f(null),te=f(),g=f({page:0,total:0}),ae=f({"user-id":m}),le=ye(()=>({userUuid:m,puuid:s.value.uuid})),Y=f([]);function N(e){const t=f(!1);let o="",c="",y=0;z({title:(e==null?void 0:e.name)+" 请选择分享有效时间",message:()=>r("div",{style:{width:"660px"}},[r(Me,{defaultFirstOption:!0,modelValue:S.value,"onUpdate:modelValue":l=>{S.value=l},valueKey:"value",fallbackPlacements:["bottom-start"],style:{width:"360px"}},()=>[r(b,{label:"六小时",key:"sixhour",value:"sixhour"}),r(b,{label:"一 天",key:"oneday",value:"oneday"}),r(b,{label:"三 天",key:"threeday",value:"threeday"}),r(b,{label:"一 周",key:"oneweek",value:"oneweek"}),r(b,{label:"一 月",key:"onemonth",value:"onemonth"}),r(b,{label:"三 月",key:"threemonth",value:"threemonth"}),r(b,{label:"永 久",key:"permanent",value:"permanent"})]),r(Z,{style:"width:30px;margin:0 10px;",icon:Ue,onClick:()=>{t.value=!0}}),r(Ge,{uid:m,uuid:(e==null?void 0:e.uuid)??"",modelValue:t.value,confirmFunc:(l,p)=>{y=l.length,o=btoa(l.join("|")),c=p.join("|"),t.value=!1},closeFunc:()=>{t.value=!1}})]),showCancelButton:!0}).then(()=>{let l;e?l={matterUuids:e.uuid,expireInfinity:!1,expireTime:"",permitList:o,len:y,permitInfos:c}:D.value.length>1&&(l={matterUuids:D.value.map(p=>p.uuid).join(","),expireInfinity:!1,expireTime:"",permitList:o,len:y,permitInfos:c}),l&&(S.value==="permanent"?l.expireInfinity=!0:l.expireTime=Ae(S.value),Je(m,l).then(p=>{ne(p.data)}),v(),S.value="sixhour")}).catch(()=>{S.value="sixhour"})}function ne(e){let t=`${q}/#/doc/share/?uuid=${e.uuid}&code=${e.code}`;z({title:"分享详情",customStyle:{"--el-messagebox-width":"800px",padding:"40px"},message:()=>r("div",{style:{display:"flex","flex-direction":"column","line-height":"34px",width:"600px"}},[r(O,{style:{"align-self":"flex-start"}},()=>e.name),r(O,{style:{"align-self":"flex-start"}},()=>"失效时间:"+e.expireTime),r(O,{style:{"align-self":"flex-start"}},()=>"链接:"+t)]),confirmButtonText:"复制分享链接",showCancelButton:!0}).then(()=>{navigator.clipboard.writeText(t)}).catch(()=>{})}function A(e){e.uuid&&z.confirm(`确认删除( ${e.name}) ?删除后不可恢复!取消则放弃删除操作。`,"警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{Ze(m,{uuid:e.uuid}).then(()=>{var t;e.dir&&(s.value.uuid=e.puuid??"",s.value.name=e.path?(t=e.path.replace(`/${e.name}`,"").match(/[^/]+$/g))==null?void 0:t.pop():"上级目录",U.value.remove(e.uuid)),v()})})}function ie(){z.confirm("确认删除选择的内容?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning
|