1 |
- import{ap as N,d as X,r as _,e as Z,k as $,P as aa,o as s,c as I,f as a,w as r,a as l,Q as F,F as R,n as z,q as i,m as d,v as f,O as G,U as ea,z as la,x as ta,y as ra,A as oa,_ as pa,B as sa,C as ua,D as na,G as ia,H as ca,__tla as _a}from"./index-2eab2d23.js";import{_ as da,__tla as ma}from"./index.vue_vue_type_script_setup_true_lang-5730b053.js";import{_ as fa,__tla as ya}from"./DictTag.vue_vue_type_script_lang-cb1e47ff.js";import{_ as ga,__tla as ha}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5a63038a.js";import{a as H,D as v,__tla as wa}from"./dict-1ad71b6f.js";import{d as ba,__tla as va}from"./formatTime-41155543.js";import{d as xa}from"./download-20922b56.js";import{_ as Sa,__tla as ka}from"./ApiErrorLogDetail.vue_vue_type_script_setup_true_lang-5fd60975.js";import{I as y}from"./constants-40f13f5e.js";import{u as Ta,__tla as Na}from"./useMessage-171aa63e.js";import{__tla as Ia}from"./index-cc63c3c4.js";import"./color-6e929987.js";import{__tla as Ra}from"./el-card-c558f0ec.js";import{__tla as Va}from"./Dialog-c2716df6.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Ua}from"./el-descriptions-item-fd42286f.js";let L,Ca=Promise.all([(()=>{try{return _a}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return Ia}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Ua}catch{}})()]).then(async()=>{L=X({name:"InfraApiErrorLog",__name:"index",setup(Ea){const x=Ta(),S=_(!0),V=_(0),U=_([]),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}));U.value=t.list,V.value=t.total}finally{S.value=!1}var u},h=()=>{o.pageNo=1,g()},M=()=>{C.value.resetFields(),h()},E=_(),O=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,w)=>N.put({url:"/infra/api-error-log/update-status?id="+n+"&processStatus="+w}))(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}));xa.excel(t,"\u5F02\u5E38\u65E5\u5FD7.xls")}catch{}finally{k.value=!1}var u};return $(()=>{g()}),(u,t)=>{const m=ea,n=la,w=ta,P=ra,B=oa,T=pa,c=sa,Q=ua,A=ga,p=na,D=fa,j=ia,J=da,b=aa("hasPermi"),W=ca;return s(),I(R,null,[a(A,null,{default:r(()=>[a(Q,{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(h,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(n,{label:"\u7528\u6237\u7C7B\u578B",prop:"userType"},{default:r(()=>[a(P,{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(()=>[(s(!0),I(R,null,z(l(H)(l(v).USER_TYPE),e=>(s(),i(w,{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(h,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(n,{label:"\u5F02\u5E38\u65F6\u95F4",prop:"exceptionTime"},{default:r(()=>[a(B,{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(P,{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(()=>[(s(!0),I(R,null,z(l(H)(l(v).INFRA_API_ERROR_LOG_PROCESS_STATUS),e=>(s(),i(w,{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:h},{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((s(),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"])),[[b,["infra:api-error-log:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(A,null,{default:r(()=>[f((s(),i(j,{data:l(U)},{default:r(()=>[a(p,{label:"\u65E5\u5FD7\u7F16\u53F7",align:"center",prop:"id"}),a(p,{label:"\u7528\u6237\u7F16\u53F7",align:"center",prop:"userId"}),a(p,{label:"\u7528\u6237\u7C7B\u578B",align:"center",prop:"userType"},{default:r(e=>[a(D,{type:l(v).USER_TYPE,value:e.row.userType},null,8,["type","value"])]),_:1}),a(p,{label:"\u5E94\u7528\u540D",align:"center",prop:"applicationName",width:"200"}),a(p,{label:"\u8BF7\u6C42\u65B9\u6CD5",align:"center",prop:"requestMethod",width:"80"}),a(p,{label:"\u8BF7\u6C42\u5730\u5740",align:"center",prop:"requestUrl",width:"180"}),a(p,{label:"\u5F02\u5E38\u53D1\u751F\u65F6\u95F4",align:"center",prop:"exceptionTime",width:"180",formatter:l(ba)},null,8,["formatter"]),a(p,{label:"\u5F02\u5E38\u540D",align:"center",prop:"exceptionName",width:"180"}),a(p,{label:"\u5904\u7406\u72B6\u6001",align:"center",prop:"processStatus"},{default:r(e=>[a(D,{type:l(v).INFRA_API_ERROR_LOG_PROCESS_STATUS,value:e.row.processStatus},null,8,["type","value"])]),_:1}),a(p,{label:"\u64CD\u4F5C",align:"center",width:"200"},{default:r(e=>[f((s(),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"])),[[b,["infra:api-error-log:query"]]]),e.row.processStatus===l(y).INIT?f((s(),i(c,{key:0,link:"",type:"primary",onClick:Y=>O(e.row.id,l(y).DONE)},{default:r(()=>[d(" \u5DF2\u5904\u7406 ")]),_:2},1032,["onClick"])),[[b,["infra:api-error-log:update-status"]]]):G("",!0),e.row.processStatus===l(y).INIT?f((s(),i(c,{key:1,link:"",type:"primary",onClick:Y=>O(e.row.id,l(y).IGNORE)},{default:r(()=>[d(" \u5DF2\u5FFD\u7565 ")]),_:2},1032,["onClick"])),[[b,["infra:api-error-log:update-status"]]]):G("",!0)]),_:1})]),_:1},8,["data"])),[[W,l(S)]]),a(J,{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(Sa,{ref_key:"detailRef",ref:E},null,512)],64)}}})});export{Ca as __tla,L as default};
|