1 |
- import{ap as I,d as Q,r as i,e as j,k as J,P as O,o as d,c as q,f as e,w as r,a as l,Q as f,F as D,n as W,q as y,m as _,v,g as X,t as x,U as Z,z as $,x as ee,y as ae,A as le,_ as te,B as re,C as oe,D as ne,G as ue,H as pe,__tla as se}from"./index-2eab2d23.js";import{_ as ie,__tla as de}from"./index.vue_vue_type_script_setup_true_lang-5730b053.js";import{_ as _e,__tla as ce}from"./DictTag.vue_vue_type_script_lang-cb1e47ff.js";import{_ as me,__tla as fe}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5a63038a.js";import{a as ye,D as E,__tla as ge}from"./dict-1ad71b6f.js";import{d as be}from"./download-20922b56.js";import{f as he,__tla as we}from"./formatTime-41155543.js";import{_ as ve,__tla as xe}from"./ApiAccessLogDetail.vue_vue_type_script_setup_true_lang-6bfeb935.js";import{u as Ve,__tla as Te}from"./useMessage-171aa63e.js";import{__tla as Ue}from"./index-cc63c3c4.js";import"./color-6e929987.js";import{__tla as Ce}from"./el-card-c558f0ec.js";import{__tla as ke}from"./Dialog-c2716df6.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Ne}from"./el-descriptions-item-fd42286f.js";let Y,Pe=Promise.all([(()=>{try{return se}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 Ue}catch{}})(),(()=>{try{return Ce}catch{}})(),(()=>{try{return ke}catch{}})(),(()=>{try{return Ne}catch{}})()]).then(async()=>{Y=Q({name:"InfraApiAccessLog",__name:"index",setup(Ie){const z=Ve(),g=i(!0),V=i(0),T=i([]),o=j({pageNo:1,pageSize:10,userId:null,userType:null,applicationName:null,requestUrl:null,duration:null,resultCode:null,beginTime:[]}),U=i(),b=i(!1),h=async()=>{g.value=!0;try{const t=await(s=o,I.get({url:"/infra/api-access-log/page",params:s}));T.value=t.list,V.value=t.total}finally{g.value=!1}var s},p=()=>{o.pageNo=1,h()},S=()=>{U.value.resetFields(),p()},C=i(),A=async()=>{try{await z.exportConfirm(),b.value=!0;const t=await(s=o,I.download({url:"/infra/api-access-log/export-excel",params:s}));be.excel(t,"API \u8BBF\u95EE\u65E5\u5FD7.xls")}catch{}finally{b.value=!1}var s};return J(()=>{h()}),(s,t)=>{const c=Z,u=$,K=ee,M=ae,R=le,w=te,m=re,F=oe,k=me,n=ne,H=_e,B=ue,G=ie,N=O("hasPermi"),L=pe;return d(),q(D,null,[e(k,null,{default:r(()=>[e(F,{class:"-mb-15px",model:l(o),ref_key:"queryFormRef",ref:U,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(p,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(u,{label:"\u7528\u6237\u7C7B\u578B",prop:"userType"},{default:r(()=>[e(M,{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,W(l(ye)(l(E).USER_TYPE),a=>(d(),y(K,{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(p,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(u,{label:"\u8BF7\u6C42\u65F6\u95F4",prop:"beginTime"},{default:r(()=>[e(R,{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(p,["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(p,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(u,null,{default:r(()=>[e(m,{onClick:p},{default:r(()=>[e(w,{icon:"ep:search",class:"mr-5px"}),_(" \u641C\u7D22")]),_:1}),e(m,{onClick:S},{default:r(()=>[e(w,{icon:"ep:refresh",class:"mr-5px"}),_(" \u91CD\u7F6E")]),_:1}),v((d(),y(m,{type:"success",plain:"",onClick:A,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(B,{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(E).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=>[X("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 P=a.row,void C.value.open(P);var P}},{default:r(()=>[_(" \u8BE6\u7EC6 ")]),_:2},1032,["onClick"])),[[N,["infra:api-access-log:query"]]])]),_:1})]),_:1},8,["data"])),[[L,l(g)]]),e(G,{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:C},null,512)],64)}}})});export{Pe as __tla,Y as default};
|