index-6b2da856.js 5.6 KB

1
  1. import{d as E,$ as K,r as s,x as Q,b as W,a4 as X,o as i,c as Y,f as a,A as t,a as l,a5 as Z,F as D,R as $,C as p,D as m,k as h,B as S,E as C,a9 as aa,V as ea,I as la,S as ta,U as ra,Q as oa,J as na,W as sa,X as ia,Y as _a,Z as ua,_ as da,__tla as pa}from"./index-54aa57d8.js";import{_ as ma,__tla as ca}from"./index-e6a7fd1e.js";import{_ as fa,__tla as ba}from"./DictTag-638f5ebc.js";import{_ as ya,__tla as ga}from"./ContentWrap-260746ab.js";import{a as ha,D as I,__tla as va}from"./dict-573b3b04.js";import{f as F,__tla as xa}from"./formatTime-e6197688.js";import{d as wa}from"./download-20922b56.js";import{g as Ta,e as Va,J as Na,__tla as Ua}from"./JobLogDetail-3f628aa7.js";import{u as ka,__tla as Ya}from"./useMessage-f56cafbb.js";import{__tla as Da}from"./index-254a9b5e.js";import"./color-6e929987.js";import{__tla as Sa}from"./el-card-e7d6628c.js";import{__tla as Ca}from"./Dialog-7bb778a5.js";import{__tla as Ia}from"./el-descriptions-item-347c85ca.js";let R,Fa=Promise.all([(()=>{try{return pa}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Ya}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Ia}catch{}})()]).then(async()=>{R=da(E({name:"InfraJobLog",__name:"index",setup(Ra){const j=ka(),{query:z}=K(),c=s(!0),v=s(0),x=s([]),r=Q({pageNo:1,pageSize:10,jobId:z.id,handlerName:void 0,beginTime:void 0,endTime:void 0,status:void 0}),w=s(),f=s(!1),b=async()=>{c.value=!0;try{const _=await Ta(r);x.value=_.list,v.value=_.total}finally{c.value=!1}},y=()=>{r.pageNo=1,b()},A=()=>{w.value.resetFields(),y()},T=s(),H=async()=>{try{await j.exportConfirm(),f.value=!0;const _=await Va(r);wa.excel(_,"\u5B9A\u65F6\u4EFB\u52A1\u6267\u884C\u65E5\u5FD7.xls")}catch{}finally{f.value=!1}};return W(()=>{b()}),(_,o)=>{const J=aa,u=ea,V=la,L=ta,M=ra,g=oa,d=na,O=sa,N=ya,n=ia,P=fa,q=_a,B=ma,U=X("hasPermi"),G=ua;return i(),Y(D,null,[a(N,null,{default:t(()=>[a(O,{class:"-mb-15px",model:l(r),ref_key:"queryFormRef",ref:w,inline:!0,"label-width":"120px"},{default:t(()=>[a(u,{label:"\u5904\u7406\u5668\u7684\u540D\u5B57",prop:"handlerName"},{default:t(()=>[a(J,{modelValue:l(r).handlerName,"onUpdate:modelValue":o[0]||(o[0]=e=>l(r).handlerName=e),placeholder:"\u8BF7\u8F93\u5165\u5904\u7406\u5668\u7684\u540D\u5B57",clearable:"",onKeyup:Z(y,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(u,{label:"\u5F00\u59CB\u6267\u884C\u65F6\u95F4",prop:"beginTime"},{default:t(()=>[a(V,{modelValue:l(r).beginTime,"onUpdate:modelValue":o[1]||(o[1]=e=>l(r).beginTime=e),type:"date","value-format":"YYYY-MM-DD HH:mm:ss",placeholder:"\u9009\u62E9\u5F00\u59CB\u6267\u884C\u65F6\u95F4",clearable:"",class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(u,{label:"\u7ED3\u675F\u6267\u884C\u65F6\u95F4",prop:"endTime"},{default:t(()=>[a(V,{modelValue:l(r).endTime,"onUpdate:modelValue":o[2]||(o[2]=e=>l(r).endTime=e),type:"date","value-format":"YYYY-MM-DD HH:mm:ss",placeholder:"\u9009\u62E9\u7ED3\u675F\u6267\u884C\u65F6\u95F4",clearable:"","default-time":new Date("1 23:59:59"),class:"!w-240px"},null,8,["modelValue","default-time"])]),_:1}),a(u,{label:"\u4EFB\u52A1\u72B6\u6001",prop:"status"},{default:t(()=>[a(M,{modelValue:l(r).status,"onUpdate:modelValue":o[3]||(o[3]=e=>l(r).status=e),placeholder:"\u8BF7\u9009\u62E9\u4EFB\u52A1\u72B6\u6001",clearable:"",class:"!w-240px"},{default:t(()=>[(i(!0),Y(D,null,$(l(ha)(l(I).INFRA_JOB_LOG_STATUS),e=>(i(),p(L,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(u,null,{default:t(()=>[a(d,{onClick:y},{default:t(()=>[a(g,{icon:"ep:search",class:"mr-5px"}),m(" \u641C\u7D22")]),_:1}),a(d,{onClick:A},{default:t(()=>[a(g,{icon:"ep:refresh",class:"mr-5px"}),m(" \u91CD\u7F6E")]),_:1}),h((i(),p(d,{type:"success",plain:"",onClick:H,loading:l(f)},{default:t(()=>[a(g,{icon:"ep:download",class:"mr-5px"}),m(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[U,["infra:job:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(N,null,{default:t(()=>[h((i(),p(q,{data:l(x)},{default:t(()=>[a(n,{label:"\u65E5\u5FD7\u7F16\u53F7",align:"center",prop:"id"}),a(n,{label:"\u4EFB\u52A1\u7F16\u53F7",align:"center",prop:"jobId"}),a(n,{label:"\u5904\u7406\u5668\u7684\u540D\u5B57",align:"center",prop:"handlerName"}),a(n,{label:"\u5904\u7406\u5668\u7684\u53C2\u6570",align:"center",prop:"handlerParam"}),a(n,{label:"\u7B2C\u51E0\u6B21\u6267\u884C",align:"center",prop:"executeIndex"}),a(n,{label:"\u6267\u884C\u65F6\u95F4",align:"center",width:"170s"},{default:t(e=>[S("span",null,C(l(F)(e.row.beginTime)+" ~ "+l(F)(e.row.endTime)),1)]),_:1}),a(n,{label:"\u6267\u884C\u65F6\u957F",align:"center",prop:"duration"},{default:t(e=>[S("span",null,C(e.row.duration+" \u6BEB\u79D2"),1)]),_:1}),a(n,{label:"\u4EFB\u52A1\u72B6\u6001",align:"center",prop:"status"},{default:t(e=>[a(P,{type:l(I).INFRA_JOB_LOG_STATUS,value:e.row.status},null,8,["type","value"])]),_:1}),a(n,{label:"\u64CD\u4F5C",align:"center"},{default:t(e=>[h((i(),p(d,{type:"primary",link:"",onClick:ja=>{return k=e.row.id,void T.value.open(k);var k}},{default:t(()=>[m(" \u8BE6\u7EC6 ")]),_:2},1032,["onClick"])),[[U,["infra:job:query"]]])]),_:1})]),_:1},8,["data"])),[[G,l(c)]]),a(B,{total:l(v),page:l(r).pageNo,"onUpdate:page":o[4]||(o[4]=e=>l(r).pageNo=e),limit:l(r).pageSize,"onUpdate:limit":o[5]||(o[5]=e=>l(r).pageSize=e),onPagination:b},null,8,["total","page","limit"])]),_:1}),a(Na,{ref_key:"detailRef",ref:T},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/infra/job/logger/index.vue"]])});export{Fa as __tla,R as default};