index-0a1b2bfe.js 5.7 KB

1
  1. import{d as K,I as Q,r as s,e as E,k as W,P as X,o as _,c as Y,f as a,w as t,a as l,Q as Z,F as C,n as $,q as d,m,v as h,g as D,t as I,U as aa,z as ea,A as la,x as ta,y as ra,_ as oa,B as na,C as sa,D as _a,G as ua,H as ia,__tla as pa}from"./index-2eab2d23.js";import{_ as da,__tla as ma}from"./index.vue_vue_type_script_setup_true_lang-5730b053.js";import{_ as ca,__tla as fa}from"./DictTag.vue_vue_type_script_lang-cb1e47ff.js";import{_ as ya,__tla as ba}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5a63038a.js";import{a as ga,D as S,__tla as ha}from"./dict-1ad71b6f.js";import{f as z,__tla as va}from"./formatTime-41155543.js";import{d as xa}from"./download-20922b56.js";import{_ as wa,g as Ta,e as Va,__tla as Na}from"./JobLogDetail.vue_vue_type_script_setup_true_lang-544a228a.js";import{u as ka,__tla as Ua}from"./useMessage-171aa63e.js";import{__tla as Ya}from"./index-cc63c3c4.js";import"./color-6e929987.js";import{__tla as Ca}from"./el-card-c558f0ec.js";import{__tla as Da}from"./Dialog-c2716df6.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Ia}from"./el-descriptions-item-fd42286f.js";let H,Sa=Promise.all([(()=>{try{return pa}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Ya}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Ia}catch{}})()]).then(async()=>{H=K({name:"InfraJobLog",__name:"index",setup(za){const q=ka(),{query:A}=Q(),c=s(!0),v=s(0),x=s([]),r=E({pageNo:1,pageSize:10,jobId:A.id,handlerName:void 0,beginTime:void 0,endTime:void 0,status:void 0}),w=s(),f=s(!1),y=async()=>{c.value=!0;try{const u=await Ta(r);x.value=u.list,v.value=u.total}finally{c.value=!1}},b=()=>{r.pageNo=1,y()},F=()=>{w.value.resetFields(),b()},T=s(),M=async()=>{try{await q.exportConfirm(),f.value=!0;const u=await Va(r);xa.excel(u,"\u5B9A\u65F6\u4EFB\u52A1\u6267\u884C\u65E5\u5FD7.xls")}catch{}finally{f.value=!1}};return W(()=>{y()}),(u,o)=>{const O=aa,i=ea,V=la,P=ta,j=ra,g=oa,p=na,J=sa,N=ya,n=_a,R=ca,B=ua,G=da,k=X("hasPermi"),L=ia;return _(),Y(C,null,[a(N,null,{default:t(()=>[a(J,{class:"-mb-15px",model:l(r),ref_key:"queryFormRef",ref:w,inline:!0,"label-width":"120px"},{default:t(()=>[a(i,{label:"\u5904\u7406\u5668\u7684\u540D\u5B57",prop:"handlerName"},{default:t(()=>[a(O,{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(b,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(i,{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(i,{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(i,{label:"\u4EFB\u52A1\u72B6\u6001",prop:"status"},{default:t(()=>[a(j,{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(()=>[(_(!0),Y(C,null,$(l(ga)(l(S).INFRA_JOB_LOG_STATUS),e=>(_(),d(P,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(i,null,{default:t(()=>[a(p,{onClick:b},{default:t(()=>[a(g,{icon:"ep:search",class:"mr-5px"}),m(" \u641C\u7D22")]),_:1}),a(p,{onClick:F},{default:t(()=>[a(g,{icon:"ep:refresh",class:"mr-5px"}),m(" \u91CD\u7F6E")]),_:1}),h((_(),d(p,{type:"success",plain:"",onClick:M,loading:l(f)},{default:t(()=>[a(g,{icon:"ep:download",class:"mr-5px"}),m(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[k,["infra:job:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(N,null,{default:t(()=>[h((_(),d(B,{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=>[D("span",null,I(l(z)(e.row.beginTime)+" ~ "+l(z)(e.row.endTime)),1)]),_:1}),a(n,{label:"\u6267\u884C\u65F6\u957F",align:"center",prop:"duration"},{default:t(e=>[D("span",null,I(e.row.duration+" \u6BEB\u79D2"),1)]),_:1}),a(n,{label:"\u4EFB\u52A1\u72B6\u6001",align:"center",prop:"status"},{default:t(e=>[a(R,{type:l(S).INFRA_JOB_LOG_STATUS,value:e.row.status},null,8,["type","value"])]),_:1}),a(n,{label:"\u64CD\u4F5C",align:"center"},{default:t(e=>[h((_(),d(p,{type:"primary",link:"",onClick:Ha=>{return U=e.row.id,void T.value.open(U);var U}},{default:t(()=>[m(" \u8BE6\u7EC6 ")]),_:2},1032,["onClick"])),[[k,["infra:job:query"]]])]),_:1})]),_:1},8,["data"])),[[L,l(c)]]),a(G,{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:y},null,8,["total","page","limit"])]),_:1}),a(wa,{ref_key:"detailRef",ref:T},null,512)],64)}}})});export{Sa as __tla,H as default};