blob: baa53f46f54e8370c6948ab674a026e37f38c5a6 [file] [log] [blame]
import{d as f,k as x,b as g,r as C,f as i,c as d,t as c,h as p,P as N,K as w,e as v,o as s,H as R,I as T,y as _,z as m,v as h,F as V,x as b,J as A,m as D,_ as P}from"./index-tKheeObz.js";import{s as E}from"./service-hHA1p4Z2.js";import{S as B,a as O}from"./SearchUtil-6KhgO8Vi.js";/* empty css */import"./request-ovKoEMRQ.js";const q={class:"__container_services_index"},Q=["onClick"],F=f({__name:"search",setup(H){x(r=>({d707e2dc:p(N)}));const y=g(),G=[{title:"service",key:"service",dataIndex:"serviceName",sorter:!0,width:"30%"},{title:"versionGroup",key:"versionGroup",dataIndex:"versionGroupSelect",width:"25%"},{title:"avgQPS",key:"avgQPS",dataIndex:"avgQPS",sorter:!0,width:"15%"},{title:"avgRT",key:"avgRT",dataIndex:"avgRT",sorter:!0,width:"15%"},{title:"requestTotal",key:"requestTotal",dataIndex:"requestTotal",sorter:!0,width:"15%"}],l=r=>r.map(e=>(e.versionGroupSelect={},e.versionGroupSelect.versionGroupArr=e.versionGroup.map(a=>a.versionGroup=(a.version?"version: "+a.version+", ":"")+(a.group?"group: "+a.group:"")||"无"),e.versionGroupSelect.versionGroupValue=e.versionGroupSelect.versionGroupArr[0],e)),n=C(new B([{label:"serviceName",param:"serviceName",placeholder:"typeAppName",style:{width:"200px"}}],E,G,void 0,void 0,l));n.onSearch(l);const S=r=>{y.push({name:"detail",params:{pathId:r}})};return w(D.SEARCH_DOMAIN,n),(r,e)=>{const a=v("a-select-option"),k=v("a-select");return s(),i("div",q,[d(O,{"search-domain":n},{bodyCell:c(({column:u,text:o})=>[u.dataIndex==="serviceName"?(s(),i("span",{key:0,class:"service-link",onClick:t=>S(o)},[R("b",null,[d(p(T),{style:{"margin-bottom":"-2px"},icon:"material-symbols:attach-file-rounded"}),_(" "+m(o),1)])],8,Q)):u.dataIndex==="versionGroupSelect"?(s(),h(k,{key:1,value:o.versionGroupValue,"onUpdate:value":t=>o.versionGroupValue=t,bordered:!1,style:{width:"80%"}},{default:c(()=>[(s(!0),i(V,null,b(o.versionGroupArr,(t,I)=>(s(),h(a,{value:t,key:I},{default:c(()=>[_(m(t),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["value","onUpdate:value"])):A("",!0)]),_:1},8,["search-domain"])])}}}),Y=P(F,[["__scopeId","data-v-060733c4"]]);export{Y as default};