DeptTree-b243d34e.js 1.17 KB
var i=(o,r,e)=>new Promise((s,a)=>{var n=t=>{try{l(e.next(t))}catch(p){a(p)}},c=t=>{try{l(e.throw(t))}catch(p){a(p)}},l=t=>t.done?s(t.value):Promise.resolve(t.value).then(n,c);l((e=e.apply(o,r)).next())});import{d as m,k as f,o as d,a8 as u,_,$ as h,f as D}from"./vue-5a35c3f5.js";import{B as v}from"./index-51c65fdc.js";import{g as T}from"./system-c978e3dc.js";import{_ as w}from"./index.js";import"./antd-6b087f69.js";import"./useContextMenu-d25efcaf.js";const B=m({name:"DeptTree",components:{BasicTree:v},emits:["select"],setup(o,{emit:r}){const e=f([]);function s(){return i(this,null,function*(){e.value=yield T()})}function a(n){r("select",n[0])}return d(()=>{s()}),{treeData:e,handleSelect:a}}}),k={class:"m-4 mr-0 overflow-hidden bg-white"};function E(o,r,e,s,a,n){const c=u("BasicTree");return _(),h("div",k,[D(c,{title:"部门列表",toolbar:"",search:"",treeWrapperClassName:"h-[calc(100%-35px)] overflow-auto",clickRowToExpand:!1,treeData:o.treeData,fieldNames:{key:"id",title:"deptName"},onSelect:o.handleSelect},null,8,["treeData","onSelect"])])}const y=w(B,[["render",E],["__file","E:/allcode/erp/test7901/order-erp-front/src/views/project/account/DeptTree.vue"]]);export{y as default};