import{d as $,ai as w,a4 as i,am as D,aj as I,r as n,o as k,a6 as y,a7 as t,a8 as s,ac as T,ak as C,af as A}from"./vendor.e9cda63f.js";import{X as F}from"./xhprof.8f2323b2.js";import{v as B}from"./pagination.7745095e.js";import{_ as X}from"./index.ef7ee694.js";const j=$({name:"Xhprof",components:{vPagination:B},setup(){const l=w({db_tab:"",search:"",page:1,limit:10}),r=i([]),c=i(),_=i(100),v={children:"children",label:"label"};let u=i();const m=()=>(F.getAllXhprofTab().then(e=>{u.value=e.message}),u.value);let f;const d=(e,a)=>{const h=e?u.value.filter(p(e)):u.value;clearTimeout(f),f=setTimeout(()=>{a(h)},300*Math.random())},p=e=>a=>a.value.toLowerCase().indexOf(e.toLowerCase())===0,b=e=>{};D(()=>{u.value=m()});const o=()=>{F.page(l).then(e=>{_.value=e.message.total,r.value=e.message.list,c.value=e.message.ip})},g=e=>{let a=e.uid;a=a.slice(0,a.length-1);const h=c.value+`index.php?run=${a}&source=-${e.model}-${e.action}-${e.unix}-${e.wt}-${e.cpu}-${e.mu}-${e.pmu}-`;window.open(h)};return o(),{useI18n:I,input:l,getData:o,tableData:r,pageTotal:_,defaultProps:v,hrefTo:g,links:u,handleSelect:b,state:i(""),createFilter:p,loadAll:m,querySearchAsync:d,ip:c}}}),V=C("\u8DF3\u8F6C");function E(l,r,c,_,v,u){const m=n("el-alert"),f=n("el-input"),d=n("el-form-item"),p=n("el-button"),b=n("el-form"),o=n("el-table-column"),g=n("el-table"),e=n("vPagination");return k(),y(T,null,[t(m,{class:"info",title:"\u62FC\u63A5\u53D8\u91CF\uFF08model/action/cpu\u4E0D\u53D8 \u603B\u65F6\u95F4=wt \u5185\u5B58=mu \u5CF0\u503C\u5185\u5B58=pmu\uFF09\u3001 \u652F\u6301\u64CD\u4F5C > = < >= <= != \u3001 \u67E5\u8BE2\u793A\u4F8B\uFF1Amodel=Comm,action=CheckSign,wt>1200,mu>2000",type:"info",closable:!1}),t(b,{class:"search",inline:!0},{default:s(()=>[t(d,{class:"search-input",label:l.useI18n().t("xhprof.search_title")},{default:s(()=>[t(f,{modelValue:l.input.search,"onUpdate:modelValue":r[0]||(r[0]=a=>l.input.search=a),placeholder:l.useI18n().t("xhprof.search_tip")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),t(d,{class:"search-and-add"},{default:s(()=>[t(p,{type:"primary",onClick:l.getData},{default:s(()=>[C(A(l.useI18n().t("user.search")),1)]),_:1},8,["onClick"])]),_:1})]),_:1}),t(g,{data:l.tableData,style:{width:"100%"}},{default:s(()=>[t(o,{label:"id",prop:"id"}),t(o,{label:"model",prop:"model"}),t(o,{label:"action",prop:"action"}),t(o,{label:l.useI18n().t("xhprof.unix"),prop:"unix"},null,8,["label"]),t(o,{label:l.useI18n().t("xhprof.wt"),prop:"wt"},null,8,["label"]),t(o,{label:l.useI18n().t("xhprof.cpu"),prop:"cpu"},null,8,["label"]),t(o,{label:l.useI18n().t("xhprof.mu"),prop:"mu"},null,8,["label"]),t(o,{label:l.useI18n().t("xhprof.pmu"),prop:"pmu"},null,8,["label"]),t(o,{align:"center",label:l.useI18n().t("option")},{default:s(a=>[t(p,{type:"success",size:"mini",onClick:h=>l.hrefTo(a.row)},{default:s(()=>[V]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"]),t(e,{pagesize:l.input.limit,total:l.pageTotal,options:l.input,render:l.getData},null,8,["pagesize","total","options","render"])],64)}var L=X(j,[["render",E]]);export{L as default};
