1 |
- import{d as x,r,ar as k,q as w,o as g,c as D,g as i,f as n,w as T,a as l,l as V,d$ as j,F as b,j as z,R,_ as U,__tla as q}from"./index-60da478f.js";import{g as C,__tla as F}from"./index-04364fea.js";import{d as N,h as P}from"./tree-0af4953a.js";let u,S=Promise.all([(()=>{try{return q}catch{}})(),(()=>{try{return F}catch{}})()]).then(async()=>{let c,o;c={class:"head-container"},o={class:"head-container"},u=U(x({name:"SystemUserDeptTree",__name:"DeptTree",emits:["node-click"],setup($,{emit:m}){const a=r(""),t=r([]),d=r(),p=(e,s)=>!e||s.name.includes(e),_=async e=>{f("node-click",e)},f=m;return k(a,e=>{d.value.filter(e)}),w(async()=>{await(async()=>{const e=await C();t.value=[],t.value.push(...P(e))})()}),(e,s)=>{const h=z,y=R;return g(),D(b,null,[i("div",c,[n(y,{modelValue:l(a),"onUpdate:modelValue":s[0]||(s[0]=v=>V(a)?a.value=v:null),class:"mb-20px",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u90E8\u95E8\u540D\u79F0"},{prefix:T(()=>[n(h,{icon:"ep:search"})]),_:1},8,["modelValue"])]),i("div",o,[n(l(j),{ref_key:"treeRef",ref:d,data:l(t),"expand-on-click-node":!1,"filter-node-method":p,props:l(N),"default-expand-all":"","highlight-current":"","node-key":"id",onNodeClick:_},null,8,["data","props"])])],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/system/user/DeptTree.vue"]])});export{S as __tla,u as default};
|