import{u as e,b2 as t,an as s,q as a,bF as l,ak as i,x as o,ao as n,Q as r,ap as p,e as m}from"./utils-lib.js?v=1761009159";import{_ as d}from"./index105.js?v=1761009159";import{c,s as u,e as _,C as b,q as f,n as v,v as x,N as C,B as y,y as h,z as k,K as j}from"./base-lib.js?v=1761009159";import{a as g,d as B,g as w,u as T}from"./column.js?v=1761009159";import{b as S,g as J,s as L,c as P,d as R,f as D,h as E,i as O,u as q,a as H,j as I}from"./useController6.js?v=1761009159";import{S as A}from"./useStore4.js?v=1761009159";import{u as F}from"./index143.js?v=1761009159";import"./validator.js?v=1761009159";import"./index.vue_vue_type_style_index_0_scoped_cdc7f4d3_lang.js?v=1761009159";import{o as K,a as N,b as V,c as z,d as Q,r as U,u as W}from"./useController11.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./index106.js?v=1761009159";import"./site.js?v=1761009159";import"./index127.js?v=1761009159";const G={class:"flex items-center ml-[12px]"},M=c({__name:"index",setup(c){const{mainHeight:M,enterpriseRec:X}=e(),{getSiteList:Y}=A(),{activeType:Z,isRefreshList:$,searchWidth:ee}=u(A()),{BtOperation:te}=t({options:[{type:"button",label:"添加项目",active:!0,onClick:K},...X.value?[{type:"button",label:"漏洞扫描",onClick:N}]:[],{type:"dropdown",label:"Java环境管理",onClick:()=>V(),options:[{label:"JDK管理",onClick:()=>V("jdkSettings")},{label:"Tomcat管理",onClick:()=>V("newTomCat")}]},{type:"button",label:"项目组",onClick:z}]}),se=F({key:"type_id",name:"Java分类",options:()=>[{label:"全部分类",value:"all"}],event:E,ignore:["0"],field:"type_name"}),ae=p([{label:"启动项目",value:"start",event:W},{label:"停用项目",value:"stop",event:W},{label:"重启项目",value:"restart",event:W},q(),H({classList:I}),{label:"删除项目",value:"delete",event:W}]),{BtTable:le,BtPage:ie,BtRefresh:oe,BtSearch:ne,BtColumn:re,BtBatch:pe,BtTableCategory:me,refresh:de}=s({request:e=>{const{type_id:t,...s}=e;return Y({data:JSON.stringify({...s,type_id:a(t)||"all"===t?"":t})})},columns:[g({type:"page",key:"id"}),S({type:Z.value,onClick:e=>{Q(e)}}),{label:"项目PID",isCustom:!0,render:e=>e.pid?e.pid:"--"},J({type:Z.value,prop:"pid",onClick:(e,t)=>{if("setting"===t)return void Q(e,"state");const s=null!==e.pid?"stop":"start";L(e,"restart"===t?t:s)}}),{label:"端口",isCustom:!0,render:e=>l(e.listen,"array",[]).length?e.listen.join(","):"--"},{label:"CPU / 内存",isCustom:!1,width:200,render:e=>(i(e.pid_info)?e.pid_info.cpu_percent.toFixed(2):"--")+"% / "+(i(e.pid_info)?o(e.pid_info.memory_used):"--")},B(),P(),w({table:"sites",width:200}),R({onClick:e=>{Q(e,"ssl")}}),T([{isHide:e=>!e.server_config_error,onClick:U,title:"修复"},,{title:"设置",onClick:e=>{Q(e)}},{title:"删除",onClick:e=>{O(e,Z.value)}}])],extension:[se,ae,n($)],empty:()=>_("span",null,[b("您的列表为空，您可以"),_("span",{class:"bt-link",onClick:K},[b("添加一个项目")])])});return f(()=>{v(()=>{r(()=>import("./index359.js?v=1761009159"),__vite__mapDeps([]),import.meta.url),r(()=>import("./index360.js?v=1761009159"),__vite__mapDeps([]),import.meta.url)})}),(e,t)=>{const s=m,a=d;return x(),C(a,null,{"header-left":y(()=>[_(h(te)),k("div",G,[_(s,{href:"https://www.bt.cn/bbs/thread-132714-1-1.html"},{default:y(()=>t[1]||(t[1]=[b("Java项目教程",-1)])),_:1,__:[1]}),t[2]||(t[2]=k("i",{class:"svgtofont-el-link text-primary text-medium ml-[4px]"},null,-1))]),k("div",{class:"flex items-center ml-1rem <xl:hidden",onClick:t[0]||(t[0]=(...e)=>h(D)&&h(D)(...e))},t[3]||(t[3]=[k("i",{class:"svgtofont-desired text-medium"},null,-1),k("span",{class:"bt-link"},"需求反馈",-1)]))]),"header-right":y(()=>[_(h(me),{class:"!w-[140px] mr-[10px]"}),_(h(ne),{class:j(["mr-[10px]","!w-[".concat(h(ee),"px]")]),placeholder:"请输入项目名称或备注"},null,8,["class"]),_(h(oe),{class:"mr-[10px]"}),_(h(re))]),content:y(()=>[_(h(le))]),"footer-left":y(()=>[_(h(pe))]),"footer-right":y(()=>[_(h(ie))]),_:1})}}});export{M as default};
function __vite__mapDeps(indexes) {
  if (!__vite__mapDeps.viteFileDeps) {
    __vite__mapDeps.viteFileDeps = []
  }
  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}
