blob: 4750bf23b39865143409d95bfec25863a81f199c [file] [log] [blame]
import{c as k}from"./traffic-RcejpLb3.js";import{S as x,a as N,s as c}from"./SearchUtil-y20l-pEy.js";import{d as v,r as C,O as I,f as l,c as o,t as e,K as T,e as m,o as d,y as r,v as w,z as S,h as b,Q as D,J as p,F as E,m as M,_ as V}from"./index-_yryC3Xm.js";import"./request-c67rWRMa.js";const g={class:"__container_resources_application_index"},O=v({__name:"index",setup(R){let _=[{title:"ruleName",key:"ruleName",dataIndex:"ruleName",sorter:(t,a)=>c(t.appName,a.appName),width:140},{title:"createTime",key:"createTime",dataIndex:"createTime",width:120,sorter:(t,a)=>c(t.instanceNum,a.instanceNum)},{title:"lastModifiedTime",key:"lastModifiedTime",dataIndex:"lastModifiedTime",width:120,sorter:(t,a)=>c(t.instanceNum,a.instanceNum)},{title:"operation",key:"operation",dataIndex:"operation",width:200}];const i=C(new x([{label:"serviceGovernance",param:"serviceGovernance",placeholder:"typeRoutingRules",style:{width:"200px"}}],k,_));I(()=>{i.onSearch()});const u=()=>{};return T(M.SEARCH_DOMAIN,i),(t,a)=>{const n=m("a-button"),f=m("a-popconfirm");return d(),l("div",g,[o(N,{"search-domain":i},{customOperation:e(()=>[o(n,{type:"primary"},{default:e(()=>[r("新增路由规则")]),_:1})]),bodyCell:e(({text:y,column:s,record:h})=>[s.dataIndex==="ruleName"?(d(),w(n,{key:0,type:"link",onClick:B=>b(D).replace(`formview/${h[s.key]}`)},{default:e(()=>[r(S(y),1)]),_:2},1032,["onClick"])):p("",!0),s.dataIndex==="operation"?(d(),l(E,{key:1},[o(n,{type:"link"},{default:e(()=>[r("查看")]),_:1}),o(n,{type:"link"},{default:e(()=>[r("修改")]),_:1}),o(f,{title:"确认删除该动态配置?","ok-text":"Yes","cancel-text":"No",onConfirm:u},{default:e(()=>[o(n,{type:"link"},{default:e(()=>[r("删除")]),_:1})]),_:1})],64)):p("",!0)]),_:1},8,["search-domain"])])}}}),K=V(O,[["__scopeId","data-v-0fa6542b"]]);export{K as default};