1 |
- var b=Object.defineProperty;var d=Object.getOwnPropertySymbols;var L=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable;var c=(a,n,t)=>n in a?b(a,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[n]=t,g=(a,n)=>{for(var t in n||(n={}))L.call(n,t)&&c(a,t,n[t]);if(d)for(var t of d(n))k.call(n,t)&&c(a,t,n[t]);return a};var m=(a,n,t)=>new Promise((e,p)=>{var y=o=>{try{r(t.next(o))}catch(s){p(s)}},T=o=>{try{r(t.throw(o))}catch(s){p(s)}},r=o=>o.done?e(o.value):Promise.resolve(o.value).then(y,T);r((t=t.apply(a,n)).next())});import{P}from"./index.0202f458.js";import{f as U}from"./filters.0e1cdfd6.js";import{c as h}from"./api.a27bfc56.js";import{T as u}from"./index.2710b03b.js";import{d as N,a as v,B as w,i,cg as x,d9 as l,da as f}from"./index.17aa86ea.js";import"./searchs.b637f0d6.js";import"./constant.b4bfe346.js";const E=N({name:"interface-log",setup(){const a=v({loading:!1,pagination:{page:1,rows:10,pageTotal:0},searchForm:{name:""},dataList:[],visiableCity:!1}),n=()=>[{type:"expand",renderExpand:e=>`\u8BF7\u6C42\u53C2\u6570\uFF1A${e.params} `},{title:"\u7F16\u53F7",key:"id",render(e){return i(f,{labelPlacement:"left",column:1},{default:()=>[i(l,{label:"\u65E5\u5FD7\u7F16\u53F7"},{default:()=>[e.id]}),i(l,{label:"\u64CD\u4F5C\u7528\u6237"},{default:()=>[e.nickname]}),i(l,{label:"\u64CD\u4F5C\u65F6\u95F4"},{default:()=>[e.startTime]})]})}},{title:"\u5BA2\u6237\u7AEF",key:"clientType",render(e){return U(e.clientType)}},{title:"\u63A5\u53E3\u4FE1\u606F",key:"requestUri",render(e){return i(f,{labelPlacement:"left",column:1},{default:()=>[i(l,{label:"\u63A5\u53E3\u5730\u5740"},{default:()=>[" ",i(u,{content:e.requestUri},null)," "]}),i(l,{label:"\u63A5\u53E3\u63CF\u8FF0"},{default:()=>[" ",i(u,{content:e.description},null)," "]})]})}},{title:"\u63A5\u53E3\u7C7B\u8DEF\u5F84",key:"classPath",width:230},{title:"\u8C03\u7528\u65F6\u957F",key:"consumingTime",render(e){return`${e.consumingTime}ms`}}],t=()=>m(this,null,function*(){try{a.loading=!0;const{data:e}=yield h(g({},a.pagination));a.loading=!1,a.pagination.pageTotal=Number(e.total),a.dataList=e.rows||[]}catch(e){}});return w(()=>{t()}),()=>i("div",{class:"system-menu-container"},[i("div",{class:["section-container"]},[i(x,{loading:a.loading,columns:n(),data:a.dataList,rowKey:e=>e.id},null),i(P,{page:a.pagination.page,"onUpdate:page":e=>a.pagination.page=e,pageSize:a.pagination.rows,"onUpdate:pageSize":e=>a.pagination.rows=e,pageTotal:a.pagination.pageTotal,"onUpdate:pageTotal":e=>a.pagination.pageTotal=e,onList:t,sync:!0},null)])])}});export{E as default};
|