import{P as s,k as a,l as e,$ as l}from"./utils-lib.js?v=1761009159";import{_ as o}from"./index105.js?v=1761009159";import{c as r,r as t,q as n,v as m,x as u,e as c,B as p,y as i,Q as d,C as _,V as f,G as y}from"./base-lib.js?v=1761009159";import{u as b}from"./column.js?v=1761009159";import{bz as j,bA as x,bB as g}from"./firewall.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./index106.js?v=1761009159";const q={class:"px-[1.6rem] py-[1.6rem]"},v=r({__name:"row-process",setup(r){const v=t([]),h=t(""),V=t([{content:"【进程名称】请填写完整的进程名称,如: mysqld"},{content:"【说明】在白名单列表中的进程将不再检测范围,建议将常用软件的进程添加进白名单"}]),k=async()=>{s({loading:"正在获取进程列表，请稍后...",request:j(),data:[Array,v]})},C=async()=>{s({loading:"正在添加进程，请稍后...",request:x({process_name:h.value}),message:!0,success:s=>{s.status&&(k(),h.value="")}})},w=f([{label:"进程名称",prop:"processName",render:(s,a)=>c("span",null,[s])},b([{title:"删除",onClick:async a=>{s({loading:"正在删除进程，请稍后...",request:g({process_name:a}),message:!0,success:s=>{s.status&&k()}})}}])]);return n(()=>k()),(s,r)=>{const t=a,n=y,f=e,b=o,j=l;return m(),u("div",q,[c(b,null,{"header-left":p(()=>[c(t,{modelValue:i(h),"onUpdate:modelValue":r[0]||(r[0]=s=>d(h)?h.value=s:null),placeholder:"请输入完整的进程名称"},null,8,["modelValue"]),c(n,{class:"ml-1rem",type:"primary",onClick:C},{default:p(()=>r[1]||(r[1]=[_(" 添加进程 ",-1)])),_:1,__:[1]})]),content:p(()=>[c(f,{"max-height":400,ref:"table",column:i(w),data:i(v)},null,8,["column","data"])]),_:1}),c(j,{options:i(V),class:"mx-[1.6rem] mt-[1.6rem]"},null,8,["options"])])}}});export{v as default};
