import{a as h}from"./useAsync.df7387ce.js";import{ak as p,al as N,a as L,r as P,b as l,a7 as $,Z as w,u as c,c as s,j as E,h as u,e as i,i as b,m as F,p as x,f as r,F as k,x as G}from"./index.4d061c66.js";const{VITE_PROXY_DOMAIN_REAL:_}=N();async function U(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 M(e={}){return p.request("post",`${_}admin/role_process_info`,{data:e})}const j=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(M({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(k,null,b(c(m),t=>(s(),i("div",{class:"px-[10px]",key:t.value},[F("p",null,x(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(k,null,b(t.child,a=>(s(),E(v,{key:a.value,label:a.value},{default:u(()=>[G(x(a.status_name),1)]),_:2},1032,["label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"]),r(n)]))),128))]),_:1})),[[B,c(g)||c(R)]])}}});export{j as _,U as h};
