ApiAccessLogDetail-43dd7ab5.js 2.5 KB

1
  1. import{_ as U,__tla as w}from"./Dialog-b9037609.js";import{d as P,r as o,o as i,v as T,w as t,f as s,n as u,t as l,a as e,c as p,Q as x,P as I,_ as L,__tla as k}from"./index-00ec7b2b.js";import{E as q,a as C,__tla as E}from"./el-descriptions-item-9c8d48e7.js";import{_ as V,__tla as j}from"./DictTag-5c12bb53.js";import{D as M,__tla as R}from"./dict-c140fe9f.js";import{f as y,__tla as z}from"./formatTime-5738baf7.js";import"./color-6e929987.js";let b,H=Promise.all([(()=>{try{return w}catch{}})(),(()=>{try{return k}catch{}})(),(()=>{try{return E}catch{}})(),(()=>{try{return j}catch{}})(),(()=>{try{return R}catch{}})(),(()=>{try{return z}catch{}})()]).then(async()=>{let d,n;d={key:0},n={key:1},b=L(P({name:"ApiAccessLogDetail",__name:"ApiAccessLogDetail",setup(N,{expose:h}){const _=o(!1),c=o(!1),a=o({});return h({open:async m=>{_.value=!0,c.value=!0;try{a.value=m}finally{c.value=!1}}}),(m,f)=>{const r=q,v=V,A=C,g=U;return i(),T(g,{modelValue:e(_),"onUpdate:modelValue":f[0]||(f[0]=D=>I(_)?_.value=D:null),"max-height":500,scroll:!0,title:"\u8BE6\u60C5",width:"800"},{default:t(()=>[s(A,{column:1,border:""},{default:t(()=>[s(r,{label:"\u65E5\u5FD7\u4E3B\u952E","min-width":"120"},{default:t(()=>[u(l(e(a).id),1)]),_:1}),s(r,{label:"\u94FE\u8DEF\u8FFD\u8E2A"},{default:t(()=>[u(l(e(a).traceId),1)]),_:1}),s(r,{label:"\u5E94\u7528\u540D"},{default:t(()=>[u(l(e(a).applicationName),1)]),_:1}),s(r,{label:"\u7528\u6237\u4FE1\u606F"},{default:t(()=>[u(l(e(a).userId)+" ",1),s(v,{type:e(M).USER_TYPE,value:e(a).userType},null,8,["type","value"])]),_:1}),s(r,{label:"\u7528\u6237 IP"},{default:t(()=>[u(l(e(a).userIp),1)]),_:1}),s(r,{label:"\u7528\u6237 UA"},{default:t(()=>[u(l(e(a).userAgent),1)]),_:1}),s(r,{label:"\u8BF7\u6C42\u4FE1\u606F"},{default:t(()=>[u(l(e(a).requestMethod)+" "+l(e(a).requestUrl),1)]),_:1}),s(r,{label:"\u8BF7\u6C42\u53C2\u6570"},{default:t(()=>[u(l(e(a).requestParams),1)]),_:1}),s(r,{label:"\u8BF7\u6C42\u65F6\u95F4"},{default:t(()=>[u(l(e(y)(e(a).beginTime))+" ~ "+l(e(y)(e(a).endTime)),1)]),_:1}),s(r,{label:"\u8BF7\u6C42\u8017\u65F6"},{default:t(()=>[u(l(e(a).duration)+" ms",1)]),_:1}),s(r,{label:"\u64CD\u4F5C\u7ED3\u679C"},{default:t(()=>[e(a).resultCode===0?(i(),p("div",d,"\u6B63\u5E38")):e(a).resultCode>0?(i(),p("div",n," \u5931\u8D25 | "+l(e(a).resultCode)+" | "+l(e(a).resultMsg),1)):x("",!0)]),_:1})]),_:1})]),_:1},8,["modelValue"])}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-business/src/views/infra/apiAccessLog/ApiAccessLogDetail.vue"]])});export{H as __tla,b as default};