沙钢智慧能源系统前端代码
houzhongjian
2024-10-09 314507f8ddadd9c66e98d260c3b2a5dad1a04015
1
import{d as G,a0 as K,r as s,A as Q,b as W,a1 as X,o as i,c as S,k as e,B as t,a as l,a2 as Z,F as Y,i as $,a3 as E,N as C,O as m,P as y,g as c,C as D,D as I,Q as ee,a7 as ae,S as le,T as te,R as oe,U as ne,V as re,W as se,X as ie,Y as de,Z as pe,$ as ue}from"./index-CHTXMeh8.js";import{_ as me}from"./index.vue_vue_type_script_setup_true_lang-Cenk7Bi3.js";import{_ as ce}from"./DictTag.vue_vue_type_script_lang-DPOZRs0A.js";import{_ as fe}from"./ContentWrap.vue_vue_type_script_setup_true_lang-BjvrLlUT.js";import{f as M}from"./formatTime-DG99nHw2.js";import{d as be}from"./download-e0EdwhTv.js";import{_ as _e,g as ge,e as ve}from"./JobLogDetail.vue_vue_type_script_setup_true_lang-0Hug_Lpz.js";import"./index-DVe591HI.js";import"./color-DXkOL5Tu.js";import"./el-card-Bdk9qx7q.js";import"./Dialog.vue_vue_type_style_index_0_lang-DH0TiLYN.js";import"./el-descriptions-item-XOb4a1bP.js";const ye=G({name:"InfraJobLog",__name:"index",setup(we){const O=ee(),{query:A}=K(),f=s(!0),w=s(0),x=s([]),o=Q({pageNo:1,pageSize:10,jobId:A.id,handlerName:void 0,beginTime:void 0,endTime:void 0,status:void 0}),h=s(),b=s(!1),_=async()=>{f.value=!0;try{const d=await ge(o);x.value=d.list,w.value=d.total}finally{f.value=!1}},g=()=>{o.pageNo=1,_()},F=()=>{h.value.resetFields(),g()},T=s(),H=async()=>{try{await O.exportConfirm(),b.value=!0;const d=await ve(o);be.excel(d,"\u5B9A\u65F6\u4EFB\u52A1\u6267\u884C\u65E5\u5FD7.xls")}catch{}finally{b.value=!1}};return W(()=>{_()}),(d,n)=>{const P=ae,p=le,V=te,R=ue,j=oe,v=ne,u=re,L=se,N=fe,r=ie,q=ce,z=de,B=me,k=X("hasPermi"),J=pe;return i(),S(Y,null,[e(N,null,{default:t(()=>[e(L,{class:"-mb-15px",model:l(o),ref_key:"queryFormRef",ref:h,inline:!0,"label-width":"120px"},{default:t(()=>[e(p,{label:"\u5904\u7406\u5668\u7684\u540D\u5B57",prop:"handlerName"},{default:t(()=>[e(P,{modelValue:l(o).handlerName,"onUpdate:modelValue":n[0]||(n[0]=a=>l(o).handlerName=a),placeholder:"\u8BF7\u8F93\u5165\u5904\u7406\u5668\u7684\u540D\u5B57",clearable:"",onKeyup:Z(g,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),e(p,{label:"\u5F00\u59CB\u6267\u884C\u65F6\u95F4",prop:"beginTime"},{default:t(()=>[e(V,{modelValue:l(o).beginTime,"onUpdate:modelValue":n[1]||(n[1]=a=>l(o).beginTime=a),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}),e(p,{label:"\u7ED3\u675F\u6267\u884C\u65F6\u95F4",prop:"endTime"},{default:t(()=>[e(V,{modelValue:l(o).endTime,"onUpdate:modelValue":n[2]||(n[2]=a=>l(o).endTime=a),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}),e(p,{label:"\u4EFB\u52A1\u72B6\u6001",prop:"status"},{default:t(()=>[e(j,{modelValue:l(o).status,"onUpdate:modelValue":n[3]||(n[3]=a=>l(o).status=a),placeholder:"\u8BF7\u9009\u62E9\u4EFB\u52A1\u72B6\u6001",clearable:"",class:"!w-240px"},{default:t(()=>[(i(!0),S(Y,null,$(l(E)(l(C).INFRA_JOB_LOG_STATUS),a=>(i(),c(R,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(p,null,{default:t(()=>[e(u,{onClick:g},{default:t(()=>[e(v,{icon:"ep:search",class:"mr-5px"}),m(" \u641C\u7D22")]),_:1}),e(u,{onClick:F},{default:t(()=>[e(v,{icon:"ep:refresh",class:"mr-5px"}),m(" \u91CD\u7F6E")]),_:1}),y((i(),c(u,{type:"success",plain:"",onClick:H,loading:l(b)},{default:t(()=>[e(v,{icon:"ep:download",class:"mr-5px"}),m(" \u5BFC\u51FA ")]),_:1},8,["loading"])),[[k,["infra:job:export"]]])]),_:1})]),_:1},8,["model"])]),_:1}),e(N,null,{default:t(()=>[y((i(),c(z,{data:l(x)},{default:t(()=>[e(r,{label:"\u65E5\u5FD7\u7F16\u53F7",align:"center",prop:"id"}),e(r,{label:"\u4EFB\u52A1\u7F16\u53F7",align:"center",prop:"jobId"}),e(r,{label:"\u5904\u7406\u5668\u7684\u540D\u5B57",align:"center",prop:"handlerName"}),e(r,{label:"\u5904\u7406\u5668\u7684\u53C2\u6570",align:"center",prop:"handlerParam"}),e(r,{label:"\u7B2C\u51E0\u6B21\u6267\u884C",align:"center",prop:"executeIndex"}),e(r,{label:"\u6267\u884C\u65F6\u95F4",align:"center",width:"170s"},{default:t(a=>[D("span",null,I(l(M)(a.row.beginTime)+" ~ "+l(M)(a.row.endTime)),1)]),_:1}),e(r,{label:"\u6267\u884C\u65F6\u957F",align:"center",prop:"duration"},{default:t(a=>[D("span",null,I(a.row.duration+" \u6BEB\u79D2"),1)]),_:1}),e(r,{label:"\u4EFB\u52A1\u72B6\u6001",align:"center",prop:"status"},{default:t(a=>[e(q,{type:l(C).INFRA_JOB_LOG_STATUS,value:a.row.status},null,8,["type","value"])]),_:1}),e(r,{label:"\u64CD\u4F5C",align:"center"},{default:t(a=>[y((i(),c(u,{type:"primary",link:"",onClick:xe=>{return U=a.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"])),[[J,l(f)]]),e(B,{total:l(w),page:l(o).pageNo,"onUpdate:page":n[4]||(n[4]=a=>l(o).pageNo=a),limit:l(o).pageSize,"onUpdate:limit":n[5]||(n[5]=a=>l(o).pageSize=a),onPagination:_},null,8,["total","page","limit"])]),_:1}),e(_e,{ref_key:"detailRef",ref:T},null,512)],64)}}});export{ye as default};