Files
aaPanel/BTPanel/static/vite/js/process.js
T
2026-01-22 17:59:04 +08:00

2 lines
1.2 KiB
JavaScript

import{a8 as a,a9 as s,gR as e,d as l}from"./page_layout.js?v=1769066082311";import{d as o}from"./public.js?v=1769066082311";import{k as r,e as t,R as p,V as n,W as m,a3 as c,S as i,a4 as d,U as u}from"./vue.js?v=1769066082311";import"./naive.js?v=1769066082311";import"./common.js?v=1769066082311";import"./__commonjsHelpers__.js?v=1769066082311";const _={class:"p-20px"},b=r({__name:"process",props:{row:{}},setup(r){const b=r,f=t({name:"",pid:"",command:""}),{loading:y,setLoading:j}=o();return(async()=>{try{const{row:a}=b;j(!0);const{message:s}=await e({port:a.Port});l(s)&&(f.name=s.process_name,f.pid=s.process_pid,f.command=s.process_cmd)}finally{j(!1)}})(),(e,l)=>{const o=a,r=s;return n(),p("div",_,[m(r,{bordered:"","label-placement":"left",column:1,"label-style":{width:"140px"}},{default:c(()=>[m(o,{label:e.$t("Security.Firewall.Port.process_1")},{default:c(()=>[i("span",null,d(u(y)?"--":u(f).name),1)]),_:1},8,["label"]),m(o,{label:e.$t("Security.Firewall.Port.process_2")},{default:c(()=>[i("span",null,d(u(y)?"--":u(f).pid),1)]),_:1},8,["label"]),m(o,{label:e.$t("Security.Firewall.Port.process_3")},{default:c(()=>[i("span",null,d(u(y)?"--":u(f).command),1)]),_:1},8,["label"])]),_:1})])}}});export{b as default};