import{s as b}from"./app-VLUV72AC.js";import{S as g,a as D}from"./SearchUtil-_PbmflM7.js";import{d as S,a as q,r as v,D as V,F as E,c as l,b as _,w as r,U as A,e as m,o as a,L as y,M as h,J as i,f as c,t as p,j as C,n as f,I as B,Y as T,T as F,z as M,_ as R}from"./index-FX23dEwE.js";import"./request-dCC5BMJA.js";const Y={class:"__container_resources_application_index"},J=["onClick"],L=S({__name:"index",setup(O){let d=q(),k=d.query.query,x=[{title:"appName",key:"appName",dataIndex:"appName",width:140,ellipsis:!0},{title:"applicationDomain.instanceCount",key:"instanceCount",dataIndex:"instanceCount",width:100},{title:"applicationDomain.deployClusters",key:"deployClusters",dataIndex:"deployClusters",width:120},{title:"applicationDomain.registryClusters",key:"registryClusters",dataIndex:"registryClusters",width:200}];const e=v(new g([{label:"appName",param:"keywords",defaultValue:k,placeholder:"typeAppName",style:{width:"200px"}}],b,x));return V(()=>{e.onSearch(),e.tableStyle={scrollX:"100",scrollY:"367px"}}),A(M.SEARCH_DOMAIN,e),E(d,(n,I)=>{e.queryForm.keywords=n.query.query,e.onSearch(),console.log(n)}),(n,I)=>{const u=m("a-tag"),N=m("a-tooltip");return a(),l("div",Y,[_(D,{"search-domain":e},{bodyCell:r(({text:t,record:w,index:$,column:s})=>[s.dataIndex==="registryClusters"?(a(!0),l(y,{key:0},h(t,o=>(a(),i(u,null,{default:r(()=>[c(p(o),1)]),_:2},1024))),256)):s.dataIndex==="deployClusters"?(a(!0),l(y,{key:1},h(t,o=>(a(),i(u,null,{default:r(()=>[c(p(o),1)]),_:2},1024))),256)):s.dataIndex==="appName"?(a(),i(N,{key:2,title:t},{default:r(()=>[C("span",{class:"app-link",onClick:o=>f(T).push(`/resources/applications/detail/${w[s.key]}`)},[C("b",null,[_(f(B),{style:{"margin-bottom":"-2px"},icon:"material-symbols:attach-file-rounded"}),c(" "+p(t),1)])],8,J)]),_:2},1032,["title"])):F("",!0)]),_:1},8,["search-domain"])])}}}),P=R(L,[["__scopeId","data-v-fcc0f0eb"]]);export{P as default};
