import{az as t,d as T,r as p,x as k,o as m,A as y,B as _,C as v,k as V,a as e,f as d,D as I,a2 as M,X as O,Y as A,Z as C,__tla as X}from"./index-92ad187a.js";import{_ as Y,__tla as Z}from"./Dialog-44c9fa34.js";import{_ as j,__tla as q}from"./index.vue_vue_type_script_setup_true_lang-6fbe4cc3.js";let w,b,E=Promise.all([(()=>{try{return X}catch{}})(),(()=>{try{return Z}catch{}})(),(()=>{try{return q}catch{}})()]).then(async()=>{let f,x;w={getSharePathPage:async a=>await t.get({url:"/distri/share-path/page",params:a}),getDuserByUserId:async a=>await t.get({url:"/distri/share-path/getDescendants",params:a}),getSharePathPageTree:async a=>await t.get({url:"/distri/share-path/getTree",params:a}),getTreeByNameOrMobile:async a=>await t.get({url:"/distri/share-path/getTreeByNameOrMobile",params:a}),getSharePath:async a=>await t.get({url:"/distri/share-path/get?id="+a}),createSharePath:async a=>await t.post({url:"/distri/share-path/create",data:a}),updateSharePath:async a=>await t.put({url:"/distri/share-path/update",data:a}),deleteSharePath:async a=>await t.delete({url:"/distri/share-path/delete?id="+a}),exportSharePath:async a=>await t.download({url:"/distri/share-path/export-excel",params:a})},f={style:{overflow:"hidden"}},x=["src"],b=T({__name:"Descendants",setup(a,{expose:N}){const n=p(!1),h=p(""),u=p([]),c=p(!1),P=p(0),g=p(0),r=k({pageNo:1,pageSize:10,ancestor:0,depth:void 0}),S=async()=>{c.value=!0;try{const l=await w.getDuserByUserId(r);u.value=l.list,g.value=l.total}finally{c.value=!1}};return N({open:async(l,s,o)=>{n.value=!0,P.value=l,l==1?(h.value="\u76F4\u63A8\u4EBA\u5217\u8868",r.depth=1):l==2&&(h.value="\u540E\u4EE3\u5217\u8868",r.depth=void 0),r.ancestor=s,o?S():(u.value=[],g.value=0)}}),(l,s)=>{const o=O,B=A,D=j,U=Y,z=C;return m(),y(U,{title:e(h),modelValue:e(n),"onUpdate:modelValue":s[2]||(s[2]=i=>M(n)?n.value=i:null)},{default:_(()=>[v("div",f,[V((m(),y(B,{data:e(u),stripe:!0,"show-overflow-tooltip":!0,style:{overflow:"auto","max-height":"550px","min-height":"550px"}},{default:_(()=>[d(o,{label:"\u5934\u50CF",align:"center",prop:"ancName"},{default:_(i=>[v("span",null,[v("img",{src:i.row.avatar,style:{width:"50px",height:"50px","border-radius":"50%",border:"1px solid rgb(220, 223, 231)"}},null,8,x)])]),_:1}),e(P)==1?(m(),y(o,{key:0,label:"\u987A\u5E8F",align:"center",prop:"sort"})):I("",!0),d(o,{label:"\u7528\u6237\u6635\u79F0",align:"center",prop:"descNickName"}),d(o,{label:"\u7528\u6237\u624B\u673A\u53F7",align:"center",prop:"descPhone"})]),_:1},8,["data"])),[[z,e(c)]]),d(D,{total:e(g),page:e(r).pageNo,"onUpdate:page":s[0]||(s[0]=i=>e(r).pageNo=i),limit:e(r).pageSize,"onUpdate:limit":s[1]||(s[1]=i=>e(r).pageSize=i),onPagination:S},null,8,["total","page","limit"])])]),_:1},8,["title","modelValue"])}}})});export{w as S,b as _,E as __tla};
