1 |
- import{ar as I,d as X,r as _,f as Z,l as $,R as aa,o as p,c as N,g as a,w as r,a as l,S as q,F as R,v as F,x as i,n as d,y as f,Q as G,W as ea,B as la,z as ta,A as ra,C as oa,q as sa,D as pa,G as na,H as ua,I as ia,J as ca,_ as _a,__tla as da}from"./index-b362e1d5.js";import{_ as ma,__tla as fa}from"./index-ccc64a6d.js";import{_ as ya,__tla as ga}from"./DictTag-e097450d.js";import{_ as wa,__tla as ha}from"./ContentWrap-a3bb871b.js";import{a as L,D as x,__tla as va}from"./dict-9948b178.js";import{d as xa,__tla as ba}from"./formatTime-053b1c05.js";import{d as Sa}from"./download-20922b56.js";import Ta,{__tla as ka}from"./ApiErrorLogDetail-84567cb3.js";import{I as y}from"./constants-637baed6.js";import{u as Ia,__tla as Na}from"./useMessage-7c1dd10e.js";import{__tla as Ra}from"./index-39b44010.js";import"./color-6e929987.js";import{__tla as Va}from"./el-card-732e29b8.js";import{__tla as Ca}from"./Dialog-71bebaff.js";import{__tla as Ea}from"./el-descriptions-item-190ce268.js";let H,Ua=Promise.all([(()=>{try{return da}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Ea}catch{}})()]).then(async()=>{H=_a(X({name:"InfraApiErrorLog",__name:"index",setup(Aa){const b=Ia(),S=_(!0),V=_(0),C=_([]),o=Z({pageNo:1,pageSize:10,userId:null,userType:null,applicationName:null,requestUrl:null,processStatus:null,exceptionTime:[]}),E=_(),T=_(!1),g=async()=>{S.value=!0;try{const t=await(n=o,I.get({url:"/infra/api-error-log/page",params:n}));C.value=t.list,V.value=t.total}finally{S.value=!1}var n},w=()=>{o.pageNo=1,g()},M=()=>{E.value.resetFields(),w()},U=_(),A=async(n,t)=>{try{const m=t===y.DONE?"\u5DF2\u5904\u7406":"\u5DF2\u5FFD\u7565";await b.confirm("\u786E\u8BA4\u6807\u8BB0\u4E3A"+m+"?"),await((u,h)=>I.put({url:"/infra/api-error-log/update-status?id="+u+"&processStatus="+h}))(n,t),await b.success(m),await g()}catch{}},j=async()=>{try{await b.exportConfirm(),T.value=!0;const t=await(n=o,I.download({url:"/infra/api-error-log/export-excel",params:n}));Sa.excel(t,"\u5F02\u5E38\u65E5\u5FD7.xls")}catch{}finally{T.value=!1}var n};return $(()=>{g()}),(n,t)=>{const m=ea,u=la,h=ta,O=ra,K=oa,k=sa,c=pa,B=na,P=wa,s=ua,D=ya,J=ia,Q=ma,v=aa("hasPermi"),W=ca;return p(),N(R,null,[a(P,null,{default:r(()=>[a(B,{class:"-mb-15px",model:l(o),ref_key:"queryFormRef",ref:E,inline:!0,"label-width":"68px"},{default:r(()=>[a(u,{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:q(w,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(u,{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),N(R,null,F(l(L)(l(x).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(u,{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:q(w,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(u,{label:"\u5F02\u5E38\u65F6\u95F4",prop:"exceptionTime"},{default:r(()=>[a(K,{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(u,{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),N(R,null,F(l(L)(l(x).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(u,null,{default:r(()=>[a(c,{onClick:w},{default:r(()=>[a(k,{icon:"ep:search",class:"mr-5px"}),d(" \u641C\u7D22")]),_:1}),a(c,{onClick:M},{default:r(()=>[a(k,{icon:"ep:refresh",class:"mr-5px"}),d(" \u91CD\u7F6E")]),_:1}),f((p(),i(c,{type:"success",plain:"",onClick:j,loading:l(T)},{default:r(()=>[a(k,{icon:"ep:download",class:"mr-5px"}),d(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[v,["infra:api-error-log:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(P,null,{default:r(()=>[f((p(),i(J,{data:l(C)},{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(D,{type:l(x).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(xa)},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(D,{type:l(x).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:z=>{return Y=e.row,void U.value.open(Y);var Y}},{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:z=>A(e.row.id,l(y).DONE)},{default:r(()=>[d(" \u5DF2\u5904\u7406 ")]),_:2},1032,["onClick"])),[[v,["infra:api-error-log:update-status"]]]):G("",!0),e.row.processStatus===l(y).INIT?f((p(),i(c,{key:1,link:"",type:"primary",onClick:z=>A(e.row.id,l(y).IGNORE)},{default:r(()=>[d(" \u5DF2\u5FFD\u7565 ")]),_:2},1032,["onClick"])),[[v,["infra:api-error-log:update-status"]]]):G("",!0)]),_:1})]),_:1},8,["data"])),[[W,l(S)]]),a(Q,{total:l(V),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(Ta,{ref_key:"detailRef",ref:U},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/infra/apiErrorLog/index.vue"]])});export{Ua as __tla,H as default};
|