DeptTree-4ebc57f2.js 1.3 KB

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