You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
1.1 KiB
1 lines
1.1 KiB
import{d as b,r as a,bf as l,G as x,a as u,f as w,Y as E,h as i,c as M,b as r,e as d,H as f,t as C,S,ab as T,at as B}from"./index-e450010e.js";import{g as N}from"./postrole-86ae9f12.js";const D=b({name:"postsetuprole",inheritAttrs:!1,__name:"index - 副本 (2)",setup(P){const o=a(l),m=a(!1);a([]);const c=a([]),p=a([]);function h(s){N({name:s,ordid:"272",postid:"794"}).then(({data:e})=>{c.value=e;let n=new Array;e&&e.length>0&&e.forEach(t=>{t.istrue&&n.push(t.menukey),p.value=n}),n.forEach(t=>o.value.setChecked(t,!0,!1))})}const _={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 x(()=>{h("kpi")}),(s,e)=>{const n=l,t=S,y=T,g=B;return u(),w("div",null,[E((u(),M(t,{"max-height":"600px"},{default:r(()=>[d(n,{ref_key:"menuRef",ref:o,"node-key":"value","show-checkbox":"",data:i(c),"default-expand-all":!0,props:_},{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};
|
|
|