import{a as h}from"./useAsync.24db85a6.js";import{aJ as p,aK as N,b as L,p as P,k as l,ac as $,K as w,f as c,o as s,h as E,A as u,c as i,r as b,a as F,t as k,j as r,F as x,l as G}from"./index.4d3e3847.js";const{VITE_PROXY_DOMAIN_REAL:_}=N();async function T(e={}){return p.request("post",`${_}admin/roleall`,{data:e})}async function I(e={}){return p.request("post",`${_}admin/action_process_all`,{data:e})}async function K(e={}){return p.request("post",`${_}admin/role_process_info`,{data:e})}const U=L({__name:"actions",setup(e,{expose:A}){const d=P({}),{data:m,loading:g,run:y}=h({initalData:[],success:D}),{loading:R,run:V}=h({success:C});function C({action_data:o}){}function D(o){const f=o.filter(({child:n})=>n);m.value=f}return y(I()),A({onSearch:o=>V(K({roleid:o}))}),(o,f)=>{const n=l("ElDivider"),v=l("ElCheckbox"),S=l("ElCheckboxGroup"),q=l("ElScrollbar"),B=$("loading");return w((s(),E(q,{height:"100%"},{default:u(()=>[(s(!0),i(x,null,b(c(m),t=>(s(),i("div",{class:"px-[10px]",key:t.value},[F("p",null,k(t.process_name),1),r(n,{"border-style":"dashed"}),r(S,{modelValue:d.value[t.value],"onUpdate:modelValue":a=>d.value[t.value]=a},{default:u(()=>[r(v,{label:"\u5168\u9009"}),(s(!0),i(x,null,b(t.child,a=>(s(),E(v,{key:a.value,label:a.value},{default:u(()=>[G(k(a.status_name),1)]),_:2},1032,["label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"]),r(n)]))),128))]),_:1})),[[B,c(g)||c(R)]])}}});export{U as _,T as h};
