import{d as x,r as n,aV as l,X as w,o as u,b as M,a7 as b,f as i,c as E,w as r,a as d,j as f,t as C,a4 as T,G as S,aM as B}from"./index-b0696d90.js";/* empty css */import{g as N}from"./postrole-2ce055d5.js";const D=x({name:"postsetuprole",inheritAttrs:!1,__name:"index - 副本 (2)",setup(P){const o=n(l),m=n(!1);n([]);const c=n([]),p=n([]);function _(s){N({name:s,ordid:"272",postid:"794"}).then(({data:e})=>{c.value=e;let a=new Array;e&&e.length>0&&e.forEach(t=>{t.istrue&&a.push(t.menukey),p.value=a}),a.forEach(t=>o.value.setChecked(t,!0,!1))})}const h={children:"child",label:"name"};function k(){o.value.getCheckedNodes(!1,!0).map(e=>e.menukey),o.value.getCheckedNodes(!1,!0).map(e=>e).forEach(e=>{})}return w(()=>{_("kpi")}),(s,e)=>{const a=l,t=T,y=S,g=B;return u(),M("div",null,[b((u(),E(t,{"max-height":"600px"},{default:r(()=>[d(a,{ref_key:"menuRef",ref:o,"node-key":"value","show-checkbox":"",data:i(c),"default-expand-all":!0,props:h},{default:r(({data:v})=>[f(C(v.name),1)]),_:1},8,["data"])]),_:1})),[[g,i(m)]]),d(y,{type:"primary",onClick:k},{default:r(()=>[f("确 定")]),_:1})])}}});export{D as default};