1 |
- import{ar as P,d as J,r as i,f as X,z as B,S as O,o as d,c as q,i as e,w as r,a as l,T as f,F as D,C as Q,j as y,m as _,D as v,k as W,t as x,X as Z,I as $,G as ee,H as ae,p as le,_ as te,q as re,J as oe,K as ne,L as ue,M as se,__tla as pe}from"./index-1e808f2e.js";import{_ as ie,__tla as de}from"./index.vue_vue_type_script_setup_true_lang-571824c6.js";import{_ as _e,__tla as ce}from"./DictTag.vue_vue_type_script_lang-5c02ebfe.js";import{_ as me,__tla as fe}from"./ContentWrap.vue_vue_type_script_setup_true_lang-cc335a20.js";import{a as ye,D as K,__tla as ge}from"./dict-a31cb4ba.js";import{d as be}from"./download-20922b56.js";import{f as he,__tla as we}from"./formatTime-a348c3be.js";import{_ as ve,__tla as xe}from"./ApiAccessLogDetail.vue_vue_type_script_setup_true_lang-bb09b97b.js";import{u as Ve,__tla as Te}from"./useMessage-5f9e8917.js";import{__tla as Ce}from"./index-73afebcf.js";import"./color-6e929987.js";import{__tla as Ue}from"./el-card-03b3588b.js";import{__tla as ke}from"./Dialog-f44f9d78.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Ne}from"./el-descriptions-item-8d4be2e8.js";let M,Ie=Promise.all([(()=>{try{return pe}catch{}})(),(()=>{try{return de}catch{}})(),(()=>{try{return ce}catch{}})(),(()=>{try{return fe}catch{}})(),(()=>{try{return ge}catch{}})(),(()=>{try{return we}catch{}})(),(()=>{try{return xe}catch{}})(),(()=>{try{return Te}catch{}})(),(()=>{try{return Ce}catch{}})(),(()=>{try{return Ue}catch{}})(),(()=>{try{return ke}catch{}})(),(()=>{try{return Ne}catch{}})()]).then(async()=>{M=J({name:"InfraApiAccessLog",__name:"index",setup(Pe){const S=Ve(),g=i(!0),V=i(0),T=i([]),o=X({pageNo:1,pageSize:10,userId:null,userType:null,applicationName:null,requestUrl:null,duration:null,resultCode:null,beginTime:[]}),C=i(),b=i(!1),h=async()=>{g.value=!0;try{const t=await(p=o,P.get({url:"/infra/api-access-log/page",params:p}));T.value=t.list,V.value=t.total}finally{g.value=!1}var p},s=()=>{o.pageNo=1,h()},Y=()=>{C.value.resetFields(),s()},U=i(),z=async()=>{try{await S.exportConfirm(),b.value=!0;const t=await(p=o,P.download({url:"/infra/api-access-log/export-excel",params:p}));be.excel(t,"API \u8BBF\u95EE\u65E5\u5FD7.xls")}catch{}finally{b.value=!1}var p};return B(()=>{h()}),(p,t)=>{const c=Z,u=$,E=ee,R=ae,A=le,w=te,m=re,F=oe,k=me,n=ne,H=_e,L=ue,j=ie,N=O("hasPermi"),G=se;return d(),q(D,null,[e(k,null,{default:r(()=>[e(F,{class:"-mb-15px",model:l(o),ref_key:"queryFormRef",ref:C,inline:!0,"label-width":"68px"},{default:r(()=>[e(u,{label:"\u7528\u6237\u7F16\u53F7",prop:"userId"},{default:r(()=>[e(c,{modelValue:l(o).userId,"onUpdate:modelValue":t[0]||(t[0]=a=>l(o).userId=a),placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u7F16\u53F7",clearable:"",onKeyup:f(s,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(u,{label:"\u7528\u6237\u7C7B\u578B",prop:"userType"},{default:r(()=>[e(R,{modelValue:l(o).userType,"onUpdate:modelValue":t[1]||(t[1]=a=>l(o).userType=a),placeholder:"\u8BF7\u9009\u62E9\u7528\u6237\u7C7B\u578B",clearable:"",class:"!w-240px"},{default:r(()=>[(d(!0),q(D,null,Q(l(ye)(l(K).USER_TYPE),a=>(d(),y(E,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(u,{label:"\u5E94\u7528\u540D",prop:"applicationName"},{default:r(()=>[e(c,{modelValue:l(o).applicationName,"onUpdate:modelValue":t[2]||(t[2]=a=>l(o).applicationName=a),placeholder:"\u8BF7\u8F93\u5165\u5E94\u7528\u540D",clearable:"",onKeyup:f(s,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(u,{label:"\u8BF7\u6C42\u65F6\u95F4",prop:"beginTime"},{default:r(()=>[e(A,{modelValue:l(o).beginTime,"onUpdate:modelValue":t[3]||(t[3]=a=>l(o).beginTime=a),"value-format":"YYYY-MM-DD HH:mm:ss",type:"daterange","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","default-time":[new Date("1 00:00:00"),new Date("1 23:59:59")],class:"!w-240px"},null,8,["modelValue","default-time"])]),_:1}),e(u,{label:"\u6267\u884C\u65F6\u957F",prop:"duration"},{default:r(()=>[e(c,{modelValue:l(o).duration,"onUpdate:modelValue":t[4]||(t[4]=a=>l(o).duration=a),placeholder:"\u8BF7\u8F93\u5165\u6267\u884C\u65F6\u957F",clearable:"",onKeyup:f(s,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(u,{label:"\u7ED3\u679C\u7801",prop:"resultCode"},{default:r(()=>[e(c,{modelValue:l(o).resultCode,"onUpdate:modelValue":t[5]||(t[5]=a=>l(o).resultCode=a),placeholder:"\u8BF7\u8F93\u5165\u7ED3\u679C\u7801",clearable:"",onKeyup:f(s,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(u,null,{default:r(()=>[e(m,{onClick:s},{default:r(()=>[e(w,{icon:"ep:search",class:"mr-5px"}),_(" \u641C\u7D22")]),_:1}),e(m,{onClick:Y},{default:r(()=>[e(w,{icon:"ep:refresh",class:"mr-5px"}),_(" \u91CD\u7F6E")]),_:1}),v((d(),y(m,{type:"success",plain:"",onClick:z,loading:l(b)},{default:r(()=>[e(w,{icon:"ep:download",class:"mr-5px"}),_(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[N,["infra:api-error-log:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),e(k,null,{default:r(()=>[v((d(),y(L,{data:l(T)},{default:r(()=>[e(n,{label:"\u65E5\u5FD7\u7F16\u53F7",align:"center",prop:"id"}),e(n,{label:"\u7528\u6237\u7F16\u53F7",align:"center",prop:"userId"}),e(n,{label:"\u7528\u6237\u7C7B\u578B",align:"center",prop:"userType"},{default:r(a=>[e(H,{type:l(K).USER_TYPE,value:a.row.userType},null,8,["type","value"])]),_:1}),e(n,{label:"\u5E94\u7528\u540D",align:"center",prop:"applicationName"}),e(n,{label:"\u8BF7\u6C42\u65B9\u6CD5",align:"center",prop:"requestMethod",width:"80"}),e(n,{label:"\u8BF7\u6C42\u5730\u5740",align:"center",prop:"requestUrl",width:"250"}),e(n,{label:"\u8BF7\u6C42\u65F6\u95F4",align:"center",prop:"beginTime",width:"180"},{default:r(a=>[W("span",null,x(l(he)(a.row.beginTime)),1)]),_:1}),e(n,{label:"\u6267\u884C\u65F6\u957F",align:"center",prop:"duration",width:"180"},{default:r(a=>[_(x(a.row.duration)+" ms ",1)]),_:1}),e(n,{label:"\u64CD\u4F5C\u7ED3\u679C",align:"center",prop:"status"},{default:r(a=>[_(x(a.row.resultCode===0?"\u6210\u529F":"\u5931\u8D25("+a.row.resultMsg+")"),1)]),_:1}),e(n,{label:"\u64CD\u4F5C",align:"center"},{default:r(a=>[v((d(),y(m,{link:"",type:"primary",onClick:qe=>{return I=a.row,void U.value.open(I);var I}},{default:r(()=>[_(" \u8BE6\u7EC6 ")]),_:2},1032,["onClick"])),[[N,["infra:api-access-log:query"]]])]),_:1})]),_:1},8,["data"])),[[G,l(g)]]),e(j,{total:l(V),page:l(o).pageNo,"onUpdate:page":t[6]||(t[6]=a=>l(o).pageNo=a),limit:l(o).pageSize,"onUpdate:limit":t[7]||(t[7]=a=>l(o).pageSize=a),onPagination:h},null,8,["total","page","limit"])]),_:1}),e(ve,{ref_key:"detailRef",ref:U},null,512)],64)}}})});export{Ie as __tla,M as default};
|