Descendants-9306a315.js 2.9 KB

1
  1. import{aq as t,d as B,r as n,e as j,o as _,v as m,w as y,g as v,x as I,a as e,f as d,P as M,O as V,G as k,H as q,I as G,_ as H,__tla as A}from"./index-bd9277a1.js";import{_ as C,__tla as E}from"./Dialog-eba103da.js";import{_ as F,__tla as J}from"./index-3118d255.js";let w,f,N,K=Promise.all([(()=>{try{return A}catch{}})(),(()=>{try{return E}catch{}})(),(()=>{try{return J}catch{}})()]).then(async()=>{let P,x;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})},P={style:{overflow:"hidden"}},x=["src"],w=H(B({__name:"Descendants",setup(a,{expose:D}){const p=n(!1),h=n(""),u=n([]),c=n(!1),S=n(0),g=n(0),r=j({pageNo:1,pageSize:10,ancestor:0,depth:void 0}),b=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,S.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?b():(u.value=[],g.value=0)}}),(l,s)=>{const o=k,z=q,O=F,T=C,U=G;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",P,[I((_(),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,x)])]),_:1}),e(S)==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(O,{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:b},null,8,["total","page","limit"])])]),_:1},8,["title","modelValue"])}}}),[["__file","D:/zhongxing/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,K as __tla,N as a};