index-ba9418cf.js 7.0 KB

1
  1. import{ap as N,d as W,r as _,f as Z,B as $,P as aa,o as p,c as R,i as a,w as r,a as l,Q as F,F as I,k as L,l as i,j as d,C as f,a2 as z,U as ea,H as la,D as ta,G as ra,I as oa,v as sa,J as pa,K as ua,L as na,M as ia,N as ca,_ as _a,__tla as da}from"./index-af173888.js";import{_ as ma,__tla as fa}from"./index-a33d7937.js";import{_ as ya,__tla as ga}from"./DictTag-4a35e2b7.js";import{_ as wa,__tla as ha}from"./ContentWrap-b959c1be.js";import{a as G,D as b,__tla as va}from"./dict-093d1dfa.js";import{d as ba,__tla as xa}from"./formatTime-8a6f6c49.js";import{d as Sa}from"./download-20922b56.js";import ka,{__tla as Ta}from"./ApiErrorLogDetail-d6310ac1.js";import{I as y}from"./constants-a3c69b57.js";import{u as Na,__tla as Ra}from"./useMessage-170c1b43.js";import{__tla as Ia}from"./index-54b8f773.js";import"./color-6e929987.js";import{__tla as Ua}from"./el-card-178b9654.js";import{__tla as Va}from"./Dialog-987c90a1.js";import{__tla as Ca}from"./el-descriptions-item-02866442.js";let H,Ea=Promise.all([(()=>{try{return da}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return Ia}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Ca}catch{}})()]).then(async()=>{H=_a(W({name:"InfraApiErrorLog",__name:"index",setup(Pa){const x=Na(),S=_(!0),U=_(0),V=_([]),o=Z({pageNo:1,pageSize:10,userId:null,userType:null,applicationName:null,requestUrl:null,processStatus:null,exceptionTime:[]}),C=_(),k=_(!1),g=async()=>{S.value=!0;try{const t=await(u=o,N.get({url:"/infra/api-error-log/page",params:u}));V.value=t.list,U.value=t.total}finally{S.value=!1}var u},w=()=>{o.pageNo=1,g()},M=()=>{C.value.resetFields(),w()},E=_(),P=async(u,t)=>{try{const m=t===y.DONE?"\u5DF2\u5904\u7406":"\u5DF2\u5FFD\u7565";await x.confirm("\u786E\u8BA4\u6807\u8BB0\u4E3A"+m+"?"),await((n,h)=>N.put({url:"/infra/api-error-log/update-status?id="+n+"&processStatus="+h}))(u,t),await x.success(m),await g()}catch{}},K=async()=>{try{await x.exportConfirm(),k.value=!0;const t=await(u=o,N.download({url:"/infra/api-error-log/export-excel",params:u}));Sa.excel(t,"\u5F02\u5E38\u65E5\u5FD7.xls")}catch{}finally{k.value=!1}var u};return $(()=>{g()}),(u,t)=>{const m=ea,n=la,h=ta,O=ra,j=oa,T=sa,c=pa,B=ua,D=wa,s=na,A=ya,J=ia,Q=ma,v=aa("hasPermi"),X=ca;return p(),R(I,null,[a(D,null,{default:r(()=>[a(B,{class:"-mb-15px",model:l(o),ref_key:"queryFormRef",ref:C,inline:!0,"label-width":"68px"},{default:r(()=>[a(n,{label:"\u7528\u6237\u7F16\u53F7",prop:"userId"},{default:r(()=>[a(m,{modelValue:l(o).userId,"onUpdate:modelValue":t[0]||(t[0]=e=>l(o).userId=e),placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u7F16\u53F7",clearable:"",onKeyup:F(w,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(n,{label:"\u7528\u6237\u7C7B\u578B",prop:"userType"},{default:r(()=>[a(O,{modelValue:l(o).userType,"onUpdate:modelValue":t[1]||(t[1]=e=>l(o).userType=e),placeholder:"\u8BF7\u9009\u62E9\u7528\u6237\u7C7B\u578B",clearable:"",class:"!w-240px"},{default:r(()=>[(p(!0),R(I,null,L(l(G)(l(b).USER_TYPE),e=>(p(),i(h,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(n,{label:"\u5E94\u7528\u540D",prop:"applicationName"},{default:r(()=>[a(m,{modelValue:l(o).applicationName,"onUpdate:modelValue":t[2]||(t[2]=e=>l(o).applicationName=e),placeholder:"\u8BF7\u8F93\u5165\u5E94\u7528\u540D",clearable:"",onKeyup:F(w,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(n,{label:"\u5F02\u5E38\u65F6\u95F4",prop:"exceptionTime"},{default:r(()=>[a(j,{modelValue:l(o).exceptionTime,"onUpdate:modelValue":t[3]||(t[3]=e=>l(o).exceptionTime=e),"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}),a(n,{label:"\u5904\u7406\u72B6\u6001",prop:"processStatus"},{default:r(()=>[a(O,{modelValue:l(o).processStatus,"onUpdate:modelValue":t[4]||(t[4]=e=>l(o).processStatus=e),placeholder:"\u8BF7\u9009\u62E9\u5904\u7406\u72B6\u6001",clearable:"",class:"!w-240px"},{default:r(()=>[(p(!0),R(I,null,L(l(G)(l(b).INFRA_API_ERROR_LOG_PROCESS_STATUS),e=>(p(),i(h,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(n,null,{default:r(()=>[a(c,{onClick:w},{default:r(()=>[a(T,{icon:"ep:search",class:"mr-5px"}),d(" \u641C\u7D22")]),_:1}),a(c,{onClick:M},{default:r(()=>[a(T,{icon:"ep:refresh",class:"mr-5px"}),d(" \u91CD\u7F6E")]),_:1}),f((p(),i(c,{type:"success",plain:"",onClick:K,loading:l(k)},{default:r(()=>[a(T,{icon:"ep:download",class:"mr-5px"}),d(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[v,["infra:api-error-log:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(D,null,{default:r(()=>[f((p(),i(J,{data:l(V)},{default:r(()=>[a(s,{label:"\u65E5\u5FD7\u7F16\u53F7",align:"center",prop:"id"}),a(s,{label:"\u7528\u6237\u7F16\u53F7",align:"center",prop:"userId"}),a(s,{label:"\u7528\u6237\u7C7B\u578B",align:"center",prop:"userType"},{default:r(e=>[a(A,{type:l(b).USER_TYPE,value:e.row.userType},null,8,["type","value"])]),_:1}),a(s,{label:"\u5E94\u7528\u540D",align:"center",prop:"applicationName",width:"200"}),a(s,{label:"\u8BF7\u6C42\u65B9\u6CD5",align:"center",prop:"requestMethod",width:"80"}),a(s,{label:"\u8BF7\u6C42\u5730\u5740",align:"center",prop:"requestUrl",width:"180"}),a(s,{label:"\u5F02\u5E38\u53D1\u751F\u65F6\u95F4",align:"center",prop:"exceptionTime",width:"180",formatter:l(ba)},null,8,["formatter"]),a(s,{label:"\u5F02\u5E38\u540D",align:"center",prop:"exceptionName",width:"180"}),a(s,{label:"\u5904\u7406\u72B6\u6001",align:"center",prop:"processStatus"},{default:r(e=>[a(A,{type:l(b).INFRA_API_ERROR_LOG_PROCESS_STATUS,value:e.row.processStatus},null,8,["type","value"])]),_:1}),a(s,{label:"\u64CD\u4F5C",align:"center",width:"200"},{default:r(e=>[f((p(),i(c,{link:"",type:"primary",onClick:Y=>{return q=e.row,void E.value.open(q);var q}},{default:r(()=>[d(" \u8BE6\u7EC6 ")]),_:2},1032,["onClick"])),[[v,["infra:api-error-log:query"]]]),e.row.processStatus===l(y).INIT?f((p(),i(c,{key:0,link:"",type:"primary",onClick:Y=>P(e.row.id,l(y).DONE)},{default:r(()=>[d(" \u5DF2\u5904\u7406 ")]),_:2},1032,["onClick"])),[[v,["infra:api-error-log:update-status"]]]):z("",!0),e.row.processStatus===l(y).INIT?f((p(),i(c,{key:1,link:"",type:"primary",onClick:Y=>P(e.row.id,l(y).IGNORE)},{default:r(()=>[d(" \u5DF2\u5FFD\u7565 ")]),_:2},1032,["onClick"])),[[v,["infra:api-error-log:update-status"]]]):z("",!0)]),_:1})]),_:1},8,["data"])),[[X,l(S)]]),a(Q,{total:l(U),page:l(o).pageNo,"onUpdate:page":t[5]||(t[5]=e=>l(o).pageNo=e),limit:l(o).pageSize,"onUpdate:limit":t[6]||(t[6]=e=>l(o).pageSize=e),onPagination:g},null,8,["total","page","limit"])]),_:1}),a(ka,{ref_key:"detailRef",ref:E},null,512)],64)}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/infra/apiErrorLog/index.vue"]])});export{Ea as __tla,H as default};