Descendants-efb4227c.js 2.9 KB

1
  1. import{aA as t,d as O,r as n,x as j,o as _,C as m,A as y,B as v,k,a as e,f as d,a3 as M,a2 as V,X as A,Y as I,Z as C,_ as X,__tla as Y}from"./index-286756b9.js";import{_ as Z,__tla as q}from"./Dialog-4c2de357.js";import{_ as E,__tla as F}from"./index-ed6c67a8.js";let w,f,N,G=Promise.all([(()=>{try{return Y}catch{}})(),(()=>{try{return q}catch{}})(),(()=>{try{return F}catch{}})()]).then(async()=>{let x,S;f={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})},x={style:{overflow:"hidden"}},S=["src"],w=X(O({__name:"Descendants",setup(a,{expose:D}){const p=n(!1),h=n(""),u=n([]),c=n(!1),b=n(0),g=n(0),r=j({pageNo:1,pageSize:10,ancestor:0,depth:void 0}),P=async()=>{c.value=!0;try{const l=await f.getDuserByUserId(r);u.value=l.list,g.value=l.total}finally{c.value=!1}};return D({open:async(l,s,o)=>{p.value=!0,b.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?P():(u.value=[],g.value=0)}}),(l,s)=>{const o=A,z=I,B=E,T=Z,U=C;return _(),m(T,{title:e(h),modelValue:e(p),"onUpdate:modelValue":s[2]||(s[2]=i=>V(p)?p.value=i:null)},{default:y(()=>[v("div",x,[k((_(),m(z,{data:e(u),stripe:!0,"show-overflow-tooltip":!0,style:{overflow:"auto","max-height":"550px","min-height":"550px"}},{default:y(()=>[d(o,{label:"\u5934\u50CF",align:"center",prop:"ancName"},{default:y(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,S)])]),_:1}),e(b)==1?(_(),m(o,{key:0,label:"\u987A\u5E8F",align:"center",prop:"sort"})):M("",!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"])),[[U,e(c)]]),d(B,{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:P},null,8,["total","page","limit"])])]),_:1},8,["title","modelValue"])}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/system/distri/sharepath/Descendants.vue"]]),N=Object.freeze(Object.defineProperty({__proto__:null,default:w},Symbol.toStringTag,{value:"Module"}))});export{w as D,f as S,G as __tla,N as a};